Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for intel_driver 1.6.2.
  4. #
  5. # Report bugs to <haihao.xiang@intel.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16.  
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20.   emulate sh
  21.   NULLCMD=:
  22.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23.   # is contrary to our usage.  Disable this feature.
  24.   alias -g '${1+"$@"}'='"$@"'
  25.   setopt NO_GLOB_SUBST
  26. else
  27.   case `(set -o) 2>/dev/null` in #(
  28.   *posix*) :
  29.     set -o posix ;; #(
  30.   *) :
  31.      ;;
  32. esac
  33. fi
  34.  
  35.  
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47.   as_echo='print -r --'
  48.   as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50.   as_echo='printf %s\n'
  51.   as_echo_n='printf %s'
  52. else
  53.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55.     as_echo_n='/usr/ucb/echo -n'
  56.   else
  57.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58.     as_echo_n_body='eval
  59.       arg=$1;
  60.       case $arg in #(
  61.       *"$as_nl"*)
  62.         expr "X$arg" : "X\\(.*\\)$as_nl";
  63.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64.       esac;
  65.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66.     '
  67.     export as_echo_n_body
  68.     as_echo_n='sh -c $as_echo_n_body as_echo'
  69.   fi
  70.   export as_echo_body
  71.   as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73.  
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76.   PATH_SEPARATOR=:
  77.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79.       PATH_SEPARATOR=';'
  80.   }
  81. fi
  82.  
  83.  
  84. # IFS
  85. # We need space, tab and new line, in precisely that order.  Quoting is
  86. # there to prevent editors from complaining about space-tab.
  87. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  88. # splitting by setting IFS to empty value.)
  89. IFS=" ""        $as_nl"
  90.  
  91. # Find who we are.  Look in the path if we contain no directory separator.
  92. as_myself=
  93. case $0 in #((
  94.   *[\\/]* ) as_myself=$0 ;;
  95.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98.   IFS=$as_save_IFS
  99.   test -z "$as_dir" && as_dir=.
  100.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101.   done
  102. IFS=$as_save_IFS
  103.  
  104.      ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109.   as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113.   exit 1
  114. fi
  115.  
  116. # Unset variables that we do not need and which cause bugs (e.g. in
  117. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  118. # suppresses any "Segmentation fault" message there.  '((' could
  119. # trigger a bug in pdksh 5.2.14.
  120. for as_var in BASH_ENV ENV MAIL MAILPATH
  121. do eval test x\${$as_var+set} = xset \
  122.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  123. done
  124. PS1='$ '
  125. PS2='> '
  126. PS4='+ '
  127.  
  128. # NLS nuisances.
  129. LC_ALL=C
  130. export LC_ALL
  131. LANGUAGE=C
  132. export LANGUAGE
  133.  
  134. # CDPATH.
  135. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  136.  
  137. # Use a proper internal environment variable to ensure we don't fall
  138.   # into an infinite loop, continuously re-executing ourselves.
  139.   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  140.     _as_can_reexec=no; export _as_can_reexec;
  141.     # We cannot yet assume a decent shell, so we have to provide a
  142. # neutralization value for shells without unset; and this also
  143. # works around shells that cannot unset nonexistent variables.
  144. # Preserve -v and -x to the replacement shell.
  145. BASH_ENV=/dev/null
  146. ENV=/dev/null
  147. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  148. case $- in # ((((
  149.   *v*x* | *x*v* ) as_opts=-vx ;;
  150.   *v* ) as_opts=-v ;;
  151.   *x* ) as_opts=-x ;;
  152.   * ) as_opts= ;;
  153. esac
  154. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  155. # Admittedly, this is quite paranoid, since all the known shells bail
  156. # out after a failed `exec'.
  157. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  158. as_fn_exit 255
  159.   fi
  160.   # We don't want this to propagate to other subprocesses.
  161.           { _as_can_reexec=; unset _as_can_reexec;}
  162. if test "x$CONFIG_SHELL" = x; then
  163.   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  164.   emulate sh
  165.   NULLCMD=:
  166.   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  167.   # is contrary to our usage.  Disable this feature.
  168.   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  169.   setopt NO_GLOB_SUBST
  170. else
  171.   case \`(set -o) 2>/dev/null\` in #(
  172.   *posix*) :
  173.     set -o posix ;; #(
  174.   *) :
  175.      ;;
  176. esac
  177. fi
  178. "
  179.   as_required="as_fn_return () { (exit \$1); }
  180. as_fn_success () { as_fn_return 0; }
  181. as_fn_failure () { as_fn_return 1; }
  182. as_fn_ret_success () { return 0; }
  183. as_fn_ret_failure () { return 1; }
  184.  
  185. exitcode=0
  186. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  187. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  188. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  189. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  190. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  191.  
  192. else
  193.   exitcode=1; echo positional parameters were not saved.
  194. fi
  195. test x\$exitcode = x0 || exit 1
  196. test -x / || exit 1"
  197.   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  198.   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  199.   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  200.   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  201.  
  202.   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  203.     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  204.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  205.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  206.     PATH=/empty FPATH=/empty; export PATH FPATH
  207.     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  208.       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  209. test \$(( 1 + 1 )) = 2 || exit 1"
  210.   if (eval "$as_required") 2>/dev/null; then :
  211.   as_have_required=yes
  212. else
  213.   as_have_required=no
  214. fi
  215.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  216.  
  217. else
  218.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  219. as_found=false
  220. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  221. do
  222.   IFS=$as_save_IFS
  223.   test -z "$as_dir" && as_dir=.
  224.   as_found=:
  225.   case $as_dir in #(
  226.          /*)
  227.            for as_base in sh bash ksh sh5; do
  228.              # Try only shells that exist, to save several forks.
  229.              as_shell=$as_dir/$as_base
  230.              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  231.                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  232.   CONFIG_SHELL=$as_shell as_have_required=yes
  233.                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  234.   break 2
  235. fi
  236. fi
  237.            done;;
  238.        esac
  239.   as_found=false
  240. done
  241. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  242.               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  243.   CONFIG_SHELL=$SHELL as_have_required=yes
  244. fi; }
  245. IFS=$as_save_IFS
  246.  
  247.  
  248.       if test "x$CONFIG_SHELL" != x; then :
  249.   export CONFIG_SHELL
  250.              # We cannot yet assume a decent shell, so we have to provide a
  251. # neutralization value for shells without unset; and this also
  252. # works around shells that cannot unset nonexistent variables.
  253. # Preserve -v and -x to the replacement shell.
  254. BASH_ENV=/dev/null
  255. ENV=/dev/null
  256. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  257. case $- in # ((((
  258.   *v*x* | *x*v* ) as_opts=-vx ;;
  259.   *v* ) as_opts=-v ;;
  260.   *x* ) as_opts=-x ;;
  261.   * ) as_opts= ;;
  262. esac
  263. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  264. # Admittedly, this is quite paranoid, since all the known shells bail
  265. # out after a failed `exec'.
  266. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  267. exit 255
  268. fi
  269.  
  270.     if test x$as_have_required = xno; then :
  271.   $as_echo "$0: This script requires a shell more modern than all"
  272.   $as_echo "$0: the shells that I found on your system."
  273.   if test x${ZSH_VERSION+set} = xset ; then
  274.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  275.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  276.   else
  277.     $as_echo "$0: Please tell bug-autoconf@gnu.org and
  278. $0: haihao.xiang@intel.com about your system, including any
  279. $0: error possibly output before this message. Then install
  280. $0: a modern shell, or manually run the script under such a
  281. $0: shell if you do have one."
  282.   fi
  283.   exit 1
  284. fi
  285. fi
  286. fi
  287. SHELL=${CONFIG_SHELL-/bin/sh}
  288. export SHELL
  289. # Unset more variables known to interfere with behavior of common tools.
  290. CLICOLOR_FORCE= GREP_OPTIONS=
  291. unset CLICOLOR_FORCE GREP_OPTIONS
  292.  
  293. ## --------------------- ##
  294. ## M4sh Shell Functions. ##
  295. ## --------------------- ##
  296. # as_fn_unset VAR
  297. # ---------------
  298. # Portably unset VAR.
  299. as_fn_unset ()
  300. {
  301.   { eval $1=; unset $1;}
  302. }
  303. as_unset=as_fn_unset
  304.  
  305. # as_fn_set_status STATUS
  306. # -----------------------
  307. # Set $? to STATUS, without forking.
  308. as_fn_set_status ()
  309. {
  310.   return $1
  311. } # as_fn_set_status
  312.  
  313. # as_fn_exit STATUS
  314. # -----------------
  315. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  316. as_fn_exit ()
  317. {
  318.   set +e
  319.   as_fn_set_status $1
  320.   exit $1
  321. } # as_fn_exit
  322.  
  323. # as_fn_mkdir_p
  324. # -------------
  325. # Create "$as_dir" as a directory, including parents if necessary.
  326. as_fn_mkdir_p ()
  327. {
  328.  
  329.   case $as_dir in #(
  330.   -*) as_dir=./$as_dir;;
  331.   esac
  332.   test -d "$as_dir" || eval $as_mkdir_p || {
  333.     as_dirs=
  334.     while :; do
  335.       case $as_dir in #(
  336.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  337.       *) as_qdir=$as_dir;;
  338.       esac
  339.       as_dirs="'$as_qdir' $as_dirs"
  340.       as_dir=`$as_dirname -- "$as_dir" ||
  341. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  342.          X"$as_dir" : 'X\(//\)[^/]' \| \
  343.          X"$as_dir" : 'X\(//\)$' \| \
  344.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  345. $as_echo X"$as_dir" |
  346.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  347.             s//\1/
  348.             q
  349.           }
  350.           /^X\(\/\/\)[^/].*/{
  351.             s//\1/
  352.             q
  353.           }
  354.           /^X\(\/\/\)$/{
  355.             s//\1/
  356.             q
  357.           }
  358.           /^X\(\/\).*/{
  359.             s//\1/
  360.             q
  361.           }
  362.           s/.*/./; q'`
  363.       test -d "$as_dir" && break
  364.     done
  365.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  366.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  367.  
  368.  
  369. } # as_fn_mkdir_p
  370.  
  371. # as_fn_executable_p FILE
  372. # -----------------------
  373. # Test if FILE is an executable regular file.
  374. as_fn_executable_p ()
  375. {
  376.   test -f "$1" && test -x "$1"
  377. } # as_fn_executable_p
  378. # as_fn_append VAR VALUE
  379. # ----------------------
  380. # Append the text in VALUE to the end of the definition contained in VAR. Take
  381. # advantage of any shell optimizations that allow amortized linear growth over
  382. # repeated appends, instead of the typical quadratic growth present in naive
  383. # implementations.
  384. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  385.   eval 'as_fn_append ()
  386.   {
  387.     eval $1+=\$2
  388.   }'
  389. else
  390.   as_fn_append ()
  391.   {
  392.     eval $1=\$$1\$2
  393.   }
  394. fi # as_fn_append
  395.  
  396. # as_fn_arith ARG...
  397. # ------------------
  398. # Perform arithmetic evaluation on the ARGs, and store the result in the
  399. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  400. # must be portable across $(()) and expr.
  401. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  402.   eval 'as_fn_arith ()
  403.   {
  404.     as_val=$(( $* ))
  405.   }'
  406. else
  407.   as_fn_arith ()
  408.   {
  409.     as_val=`expr "$@" || test $? -eq 1`
  410.   }
  411. fi # as_fn_arith
  412.  
  413.  
  414. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  415. # ----------------------------------------
  416. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  417. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  418. # script with STATUS, using 1 if that was 0.
  419. as_fn_error ()
  420. {
  421.   as_status=$1; test $as_status -eq 0 && as_status=1
  422.   if test "$4"; then
  423.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  424.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  425.   fi
  426.   $as_echo "$as_me: error: $2" >&2
  427.   as_fn_exit $as_status
  428. } # as_fn_error
  429.  
  430. if expr a : '\(a\)' >/dev/null 2>&1 &&
  431.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  432.   as_expr=expr
  433. else
  434.   as_expr=false
  435. fi
  436.  
  437. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  438.   as_basename=basename
  439. else
  440.   as_basename=false
  441. fi
  442.  
  443. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  444.   as_dirname=dirname
  445. else
  446.   as_dirname=false
  447. fi
  448.  
  449. as_me=`$as_basename -- "$0" ||
  450. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  451.          X"$0" : 'X\(//\)$' \| \
  452.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  453. $as_echo X/"$0" |
  454.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  455.             s//\1/
  456.             q
  457.           }
  458.           /^X\/\(\/\/\)$/{
  459.             s//\1/
  460.             q
  461.           }
  462.           /^X\/\(\/\).*/{
  463.             s//\1/
  464.             q
  465.           }
  466.           s/.*/./; q'`
  467.  
  468. # Avoid depending upon Character Ranges.
  469. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  470. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  471. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  472. as_cr_digits='0123456789'
  473. as_cr_alnum=$as_cr_Letters$as_cr_digits
  474.  
  475.  
  476.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  477.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  478.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  479.   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  480.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  481.   sed -n '
  482.     p
  483.     /[$]LINENO/=
  484.   ' <$as_myself |
  485.     sed '
  486.       s/[$]LINENO.*/&-/
  487.       t lineno
  488.       b
  489.       :lineno
  490.       N
  491.       :loop
  492.       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  493.       t loop
  494.       s/-\n.*//
  495.     ' >$as_me.lineno &&
  496.   chmod +x "$as_me.lineno" ||
  497.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  498.  
  499.   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  500.   # already done that, so ensure we don't try to do so again and fall
  501.   # in an infinite loop.  This has already happened in practice.
  502.   _as_can_reexec=no; export _as_can_reexec
  503.   # Don't try to exec as it changes $[0], causing all sort of problems
  504.   # (the dirname of $[0] is not the place where we might find the
  505.   # original and so on.  Autoconf is especially sensitive to this).
  506.   . "./$as_me.lineno"
  507.   # Exit status is that of the last command.
  508.   exit
  509. }
  510.  
  511. ECHO_C= ECHO_N= ECHO_T=
  512. case `echo -n x` in #(((((
  513. -n*)
  514.   case `echo 'xy\c'` in
  515.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  516.   xy)  ECHO_C='\c';;
  517.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  518.        ECHO_T=' ';;
  519.   esac;;
  520. *)
  521.   ECHO_N='-n';;
  522. esac
  523.  
  524. rm -f conf$$ conf$$.exe conf$$.file
  525. if test -d conf$$.dir; then
  526.   rm -f conf$$.dir/conf$$.file
  527. else
  528.   rm -f conf$$.dir
  529.   mkdir conf$$.dir 2>/dev/null
  530. fi
  531. if (echo >conf$$.file) 2>/dev/null; then
  532.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  533.     as_ln_s='ln -s'
  534.     # ... but there are two gotchas:
  535.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  536.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  537.     # In both cases, we have to default to `cp -pR'.
  538.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  539.       as_ln_s='cp -pR'
  540.   elif ln conf$$.file conf$$ 2>/dev/null; then
  541.     as_ln_s=ln
  542.   else
  543.     as_ln_s='cp -pR'
  544.   fi
  545. else
  546.   as_ln_s='cp -pR'
  547. fi
  548. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  549. rmdir conf$$.dir 2>/dev/null
  550.  
  551. if mkdir -p . 2>/dev/null; then
  552.   as_mkdir_p='mkdir -p "$as_dir"'
  553. else
  554.   test -d ./-p && rmdir ./-p
  555.   as_mkdir_p=false
  556. fi
  557.  
  558. as_test_x='test -x'
  559. as_executable_p=as_fn_executable_p
  560.  
  561. # Sed expression to map a string onto a valid CPP name.
  562. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  563.  
  564. # Sed expression to map a string onto a valid variable name.
  565. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  566.  
  567. SHELL=${CONFIG_SHELL-/bin/sh}
  568.  
  569.  
  570. test -n "$DJDIR" || exec 7<&0 </dev/null
  571. exec 6>&1
  572.  
  573. # Name of the host.
  574. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  575. # so uname gets run too.
  576. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  577.  
  578. #
  579. # Initializations.
  580. #
  581. ac_default_prefix=/usr/local
  582. ac_clean_files=
  583. ac_config_libobj_dir=.
  584. LIBOBJS=
  585. cross_compiling=no
  586. subdirs=
  587. MFLAGS=
  588. MAKEFLAGS=
  589.  
  590. # Identity of this package.
  591. PACKAGE_NAME='intel_driver'
  592. PACKAGE_TARNAME='libva-intel-driver'
  593. PACKAGE_VERSION='1.6.2'
  594. PACKAGE_STRING='intel_driver 1.6.2'
  595. PACKAGE_BUGREPORT='haihao.xiang@intel.com'
  596. PACKAGE_URL=''
  597.  
  598. ac_unique_file="Makefile.am"
  599. # Factoring default headers for most tests.
  600. ac_includes_default="\
  601. #include <stdio.h>
  602. #ifdef HAVE_SYS_TYPES_H
  603. # include <sys/types.h>
  604. #endif
  605. #ifdef HAVE_SYS_STAT_H
  606. # include <sys/stat.h>
  607. #endif
  608. #ifdef STDC_HEADERS
  609. # include <stdlib.h>
  610. # include <stddef.h>
  611. #else
  612. # ifdef HAVE_STDLIB_H
  613. #  include <stdlib.h>
  614. # endif
  615. #endif
  616. #ifdef HAVE_STRING_H
  617. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  618. #  include <memory.h>
  619. # endif
  620. # include <string.h>
  621. #endif
  622. #ifdef HAVE_STRINGS_H
  623. # include <strings.h>
  624. #endif
  625. #ifdef HAVE_INTTYPES_H
  626. # include <inttypes.h>
  627. #endif
  628. #ifdef HAVE_STDINT_H
  629. # include <stdint.h>
  630. #endif
  631. #ifdef HAVE_UNISTD_H
  632. # include <unistd.h>
  633. #endif"
  634.  
  635. ac_subst_vars='am__EXEEXT_FALSE
  636. am__EXEEXT_TRUE
  637. LTLIBOBJS
  638. LIBOBJS
  639. wayland_protocoldir
  640. wayland_scanner
  641. WAYLAND_SCANNER_LIBS
  642. WAYLAND_SCANNER_CFLAGS
  643. USE_WAYLAND_FALSE
  644. USE_WAYLAND_TRUE
  645. LIBVA_WAYLAND_DEPS_LIBS
  646. LIBVA_WAYLAND_DEPS_CFLAGS
  647. WAYLAND_LIBS
  648. WAYLAND_CFLAGS
  649. USE_EGL_FALSE
  650. USE_EGL_TRUE
  651. EGL_LIBS
  652. EGL_CFLAGS
  653. LIBVA_DRIVERS_PATH
  654. USE_X11_FALSE
  655. USE_X11_TRUE
  656. LIBVA_X11_DEPS_LIBS
  657. LIBVA_X11_DEPS_CFLAGS
  658. USE_DRM_FALSE
  659. USE_DRM_TRUE
  660. LIBVA_DRM_DEPS_LIBS
  661. LIBVA_DRM_DEPS_CFLAGS
  662. LIBVA_DEPS_LIBS
  663. LIBVA_DEPS_CFLAGS
  664. HAVE_GIT_FALSE
  665. HAVE_GIT_TRUE
  666. GIT
  667. HAVE_GEN4ASM_FALSE
  668. HAVE_GEN4ASM_TRUE
  669. GEN4ASM
  670. GEN4ASM_LIBS
  671. GEN4ASM_CFLAGS
  672. LIBDRM_VERSION
  673. DRM_LIBS
  674. DRM_CFLAGS
  675. PKG_CONFIG_LIBDIR
  676. PKG_CONFIG_PATH
  677. PKG_CONFIG
  678. LIBVA_PACKAGE_VERSION
  679. PYTHON2
  680. CPP
  681. OTOOL64
  682. OTOOL
  683. LIPO
  684. NMEDIT
  685. DSYMUTIL
  686. MANIFEST_TOOL
  687. RANLIB
  688. ac_ct_AR
  689. AR
  690. DLLTOOL
  691. OBJDUMP
  692. LN_S
  693. NM
  694. ac_ct_DUMPBIN
  695. DUMPBIN
  696. LD
  697. FGREP
  698. EGREP
  699. GREP
  700. SED
  701. am__fastdepCC_FALSE
  702. am__fastdepCC_TRUE
  703. CCDEPMODE
  704. am__nodep
  705. AMDEPBACKSLASH
  706. AMDEP_FALSE
  707. AMDEP_TRUE
  708. am__quote
  709. am__include
  710. DEPDIR
  711. OBJEXT
  712. EXEEXT
  713. ac_ct_CC
  714. CPPFLAGS
  715. LDFLAGS
  716. CFLAGS
  717. CC
  718. host_os
  719. host_vendor
  720. host_cpu
  721. host
  722. build_os
  723. build_vendor
  724. build_cpu
  725. build
  726. LIBTOOL
  727. INTEL_DRIVER_LT_LDFLAGS
  728. AM_BACKSLASH
  729. AM_DEFAULT_VERBOSITY
  730. AM_DEFAULT_V
  731. AM_V
  732. am__untar
  733. am__tar
  734. AMTAR
  735. am__leading_dot
  736. SET_MAKE
  737. AWK
  738. mkdir_p
  739. MKDIR_P
  740. INSTALL_STRIP_PROGRAM
  741. STRIP
  742. install_sh
  743. MAKEINFO
  744. AUTOHEADER
  745. AUTOMAKE
  746. AUTOCONF
  747. ACLOCAL
  748. VERSION
  749. PACKAGE
  750. CYGPATH_W
  751. am__isrc
  752. INSTALL_DATA
  753. INSTALL_SCRIPT
  754. INSTALL_PROGRAM
  755. target_alias
  756. host_alias
  757. build_alias
  758. LIBS
  759. ECHO_T
  760. ECHO_N
  761. ECHO_C
  762. DEFS
  763. mandir
  764. localedir
  765. libdir
  766. psdir
  767. pdfdir
  768. dvidir
  769. htmldir
  770. infodir
  771. docdir
  772. oldincludedir
  773. includedir
  774. localstatedir
  775. sharedstatedir
  776. sysconfdir
  777. datadir
  778. datarootdir
  779. libexecdir
  780. sbindir
  781. bindir
  782. program_transform_name
  783. prefix
  784. exec_prefix
  785. PACKAGE_URL
  786. PACKAGE_BUGREPORT
  787. PACKAGE_STRING
  788. PACKAGE_VERSION
  789. PACKAGE_TARNAME
  790. PACKAGE_NAME
  791. PATH_SEPARATOR
  792. SHELL'
  793. ac_subst_files='wayland_scanner_rules'
  794. ac_user_opts='
  795. enable_option_checking
  796. enable_silent_rules
  797. enable_drm
  798. enable_x11
  799. enable_wayland
  800. enable_hybrid_codec
  801. enable_static
  802. enable_shared
  803. with_pic
  804. enable_fast_install
  805. enable_dependency_tracking
  806. with_gnu_ld
  807. with_sysroot
  808. enable_libtool_lock
  809. enable_largefile
  810. '
  811.       ac_precious_vars='build_alias
  812. host_alias
  813. target_alias
  814. CC
  815. CFLAGS
  816. LDFLAGS
  817. LIBS
  818. CPPFLAGS
  819. CPP
  820. PKG_CONFIG
  821. PKG_CONFIG_PATH
  822. PKG_CONFIG_LIBDIR
  823. DRM_CFLAGS
  824. DRM_LIBS
  825. GEN4ASM_CFLAGS
  826. GEN4ASM_LIBS
  827. GIT
  828. LIBVA_DEPS_CFLAGS
  829. LIBVA_DEPS_LIBS
  830. LIBVA_DRM_DEPS_CFLAGS
  831. LIBVA_DRM_DEPS_LIBS
  832. LIBVA_X11_DEPS_CFLAGS
  833. LIBVA_X11_DEPS_LIBS
  834. LIBVA_DRIVERS_PATH
  835. EGL_CFLAGS
  836. EGL_LIBS
  837. WAYLAND_CFLAGS
  838. WAYLAND_LIBS
  839. LIBVA_WAYLAND_DEPS_CFLAGS
  840. LIBVA_WAYLAND_DEPS_LIBS
  841. WAYLAND_SCANNER_CFLAGS
  842. WAYLAND_SCANNER_LIBS'
  843.  
  844.  
  845. # Initialize some variables set by options.
  846. ac_init_help=
  847. ac_init_version=false
  848. ac_unrecognized_opts=
  849. ac_unrecognized_sep=
  850. # The variables have the same names as the options, with
  851. # dashes changed to underlines.
  852. cache_file=/dev/null
  853. exec_prefix=NONE
  854. no_create=
  855. no_recursion=
  856. prefix=NONE
  857. program_prefix=NONE
  858. program_suffix=NONE
  859. program_transform_name=s,x,x,
  860. silent=
  861. site=
  862. srcdir=
  863. verbose=
  864. x_includes=NONE
  865. x_libraries=NONE
  866.  
  867. # Installation directory options.
  868. # These are left unexpanded so users can "make install exec_prefix=/foo"
  869. # and all the variables that are supposed to be based on exec_prefix
  870. # by default will actually change.
  871. # Use braces instead of parens because sh, perl, etc. also accept them.
  872. # (The list follows the same order as the GNU Coding Standards.)
  873. bindir='${exec_prefix}/bin'
  874. sbindir='${exec_prefix}/sbin'
  875. libexecdir='${exec_prefix}/libexec'
  876. datarootdir='${prefix}/share'
  877. datadir='${datarootdir}'
  878. sysconfdir='${prefix}/etc'
  879. sharedstatedir='${prefix}/com'
  880. localstatedir='${prefix}/var'
  881. includedir='${prefix}/include'
  882. oldincludedir='/usr/include'
  883. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  884. infodir='${datarootdir}/info'
  885. htmldir='${docdir}'
  886. dvidir='${docdir}'
  887. pdfdir='${docdir}'
  888. psdir='${docdir}'
  889. libdir='${exec_prefix}/lib'
  890. localedir='${datarootdir}/locale'
  891. mandir='${datarootdir}/man'
  892.  
  893. ac_prev=
  894. ac_dashdash=
  895. for ac_option
  896. do
  897.   # If the previous option needs an argument, assign it.
  898.   if test -n "$ac_prev"; then
  899.     eval $ac_prev=\$ac_option
  900.     ac_prev=
  901.     continue
  902.   fi
  903.  
  904.   case $ac_option in
  905.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  906.   *=)   ac_optarg= ;;
  907.   *)    ac_optarg=yes ;;
  908.   esac
  909.  
  910.   # Accept the important Cygnus configure options, so we can diagnose typos.
  911.  
  912.   case $ac_dashdash$ac_option in
  913.   --)
  914.     ac_dashdash=yes ;;
  915.  
  916.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  917.     ac_prev=bindir ;;
  918.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  919.     bindir=$ac_optarg ;;
  920.  
  921.   -build | --build | --buil | --bui | --bu)
  922.     ac_prev=build_alias ;;
  923.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  924.     build_alias=$ac_optarg ;;
  925.  
  926.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  927.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  928.     ac_prev=cache_file ;;
  929.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  930.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  931.     cache_file=$ac_optarg ;;
  932.  
  933.   --config-cache | -C)
  934.     cache_file=config.cache ;;
  935.  
  936.   -datadir | --datadir | --datadi | --datad)
  937.     ac_prev=datadir ;;
  938.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  939.     datadir=$ac_optarg ;;
  940.  
  941.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  942.   | --dataroo | --dataro | --datar)
  943.     ac_prev=datarootdir ;;
  944.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  945.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  946.     datarootdir=$ac_optarg ;;
  947.  
  948.   -disable-* | --disable-*)
  949.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  950.     # Reject names that are not valid shell variable names.
  951.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  952.       as_fn_error $? "invalid feature name: $ac_useropt"
  953.     ac_useropt_orig=$ac_useropt
  954.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  955.     case $ac_user_opts in
  956.       *"
  957. "enable_$ac_useropt"
  958. "*) ;;
  959.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  960.          ac_unrecognized_sep=', ';;
  961.     esac
  962.     eval enable_$ac_useropt=no ;;
  963.  
  964.   -docdir | --docdir | --docdi | --doc | --do)
  965.     ac_prev=docdir ;;
  966.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  967.     docdir=$ac_optarg ;;
  968.  
  969.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  970.     ac_prev=dvidir ;;
  971.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  972.     dvidir=$ac_optarg ;;
  973.  
  974.   -enable-* | --enable-*)
  975.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  976.     # Reject names that are not valid shell variable names.
  977.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  978.       as_fn_error $? "invalid feature name: $ac_useropt"
  979.     ac_useropt_orig=$ac_useropt
  980.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  981.     case $ac_user_opts in
  982.       *"
  983. "enable_$ac_useropt"
  984. "*) ;;
  985.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  986.          ac_unrecognized_sep=', ';;
  987.     esac
  988.     eval enable_$ac_useropt=\$ac_optarg ;;
  989.  
  990.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  991.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  992.   | --exec | --exe | --ex)
  993.     ac_prev=exec_prefix ;;
  994.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  995.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  996.   | --exec=* | --exe=* | --ex=*)
  997.     exec_prefix=$ac_optarg ;;
  998.  
  999.   -gas | --gas | --ga | --g)
  1000.     # Obsolete; use --with-gas.
  1001.     with_gas=yes ;;
  1002.  
  1003.   -help | --help | --hel | --he | -h)
  1004.     ac_init_help=long ;;
  1005.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1006.     ac_init_help=recursive ;;
  1007.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1008.     ac_init_help=short ;;
  1009.  
  1010.   -host | --host | --hos | --ho)
  1011.     ac_prev=host_alias ;;
  1012.   -host=* | --host=* | --hos=* | --ho=*)
  1013.     host_alias=$ac_optarg ;;
  1014.  
  1015.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1016.     ac_prev=htmldir ;;
  1017.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1018.   | --ht=*)
  1019.     htmldir=$ac_optarg ;;
  1020.  
  1021.   -includedir | --includedir | --includedi | --included | --include \
  1022.   | --includ | --inclu | --incl | --inc)
  1023.     ac_prev=includedir ;;
  1024.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1025.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1026.     includedir=$ac_optarg ;;
  1027.  
  1028.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1029.     ac_prev=infodir ;;
  1030.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1031.     infodir=$ac_optarg ;;
  1032.  
  1033.   -libdir | --libdir | --libdi | --libd)
  1034.     ac_prev=libdir ;;
  1035.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1036.     libdir=$ac_optarg ;;
  1037.  
  1038.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1039.   | --libexe | --libex | --libe)
  1040.     ac_prev=libexecdir ;;
  1041.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1042.   | --libexe=* | --libex=* | --libe=*)
  1043.     libexecdir=$ac_optarg ;;
  1044.  
  1045.   -localedir | --localedir | --localedi | --localed | --locale)
  1046.     ac_prev=localedir ;;
  1047.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1048.     localedir=$ac_optarg ;;
  1049.  
  1050.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1051.   | --localstate | --localstat | --localsta | --localst | --locals)
  1052.     ac_prev=localstatedir ;;
  1053.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1054.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1055.     localstatedir=$ac_optarg ;;
  1056.  
  1057.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1058.     ac_prev=mandir ;;
  1059.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1060.     mandir=$ac_optarg ;;
  1061.  
  1062.   -nfp | --nfp | --nf)
  1063.     # Obsolete; use --without-fp.
  1064.     with_fp=no ;;
  1065.  
  1066.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1067.   | --no-cr | --no-c | -n)
  1068.     no_create=yes ;;
  1069.  
  1070.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1071.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1072.     no_recursion=yes ;;
  1073.  
  1074.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1075.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1076.   | --oldin | --oldi | --old | --ol | --o)
  1077.     ac_prev=oldincludedir ;;
  1078.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1079.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1080.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1081.     oldincludedir=$ac_optarg ;;
  1082.  
  1083.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1084.     ac_prev=prefix ;;
  1085.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1086.     prefix=$ac_optarg ;;
  1087.  
  1088.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1089.   | --program-pre | --program-pr | --program-p)
  1090.     ac_prev=program_prefix ;;
  1091.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1092.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1093.     program_prefix=$ac_optarg ;;
  1094.  
  1095.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1096.   | --program-suf | --program-su | --program-s)
  1097.     ac_prev=program_suffix ;;
  1098.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1099.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1100.     program_suffix=$ac_optarg ;;
  1101.  
  1102.   -program-transform-name | --program-transform-name \
  1103.   | --program-transform-nam | --program-transform-na \
  1104.   | --program-transform-n | --program-transform- \
  1105.   | --program-transform | --program-transfor \
  1106.   | --program-transfo | --program-transf \
  1107.   | --program-trans | --program-tran \
  1108.   | --progr-tra | --program-tr | --program-t)
  1109.     ac_prev=program_transform_name ;;
  1110.   -program-transform-name=* | --program-transform-name=* \
  1111.   | --program-transform-nam=* | --program-transform-na=* \
  1112.   | --program-transform-n=* | --program-transform-=* \
  1113.   | --program-transform=* | --program-transfor=* \
  1114.   | --program-transfo=* | --program-transf=* \
  1115.   | --program-trans=* | --program-tran=* \
  1116.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1117.     program_transform_name=$ac_optarg ;;
  1118.  
  1119.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1120.     ac_prev=pdfdir ;;
  1121.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1122.     pdfdir=$ac_optarg ;;
  1123.  
  1124.   -psdir | --psdir | --psdi | --psd | --ps)
  1125.     ac_prev=psdir ;;
  1126.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1127.     psdir=$ac_optarg ;;
  1128.  
  1129.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1130.   | -silent | --silent | --silen | --sile | --sil)
  1131.     silent=yes ;;
  1132.  
  1133.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1134.     ac_prev=sbindir ;;
  1135.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1136.   | --sbi=* | --sb=*)
  1137.     sbindir=$ac_optarg ;;
  1138.  
  1139.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1140.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1141.   | --sharedst | --shareds | --shared | --share | --shar \
  1142.   | --sha | --sh)
  1143.     ac_prev=sharedstatedir ;;
  1144.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1145.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1146.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1147.   | --sha=* | --sh=*)
  1148.     sharedstatedir=$ac_optarg ;;
  1149.  
  1150.   -site | --site | --sit)
  1151.     ac_prev=site ;;
  1152.   -site=* | --site=* | --sit=*)
  1153.     site=$ac_optarg ;;
  1154.  
  1155.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1156.     ac_prev=srcdir ;;
  1157.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1158.     srcdir=$ac_optarg ;;
  1159.  
  1160.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1161.   | --syscon | --sysco | --sysc | --sys | --sy)
  1162.     ac_prev=sysconfdir ;;
  1163.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1164.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1165.     sysconfdir=$ac_optarg ;;
  1166.  
  1167.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1168.     ac_prev=target_alias ;;
  1169.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1170.     target_alias=$ac_optarg ;;
  1171.  
  1172.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1173.     verbose=yes ;;
  1174.  
  1175.   -version | --version | --versio | --versi | --vers | -V)
  1176.     ac_init_version=: ;;
  1177.  
  1178.   -with-* | --with-*)
  1179.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1180.     # Reject names that are not valid shell variable names.
  1181.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1182.       as_fn_error $? "invalid package name: $ac_useropt"
  1183.     ac_useropt_orig=$ac_useropt
  1184.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1185.     case $ac_user_opts in
  1186.       *"
  1187. "with_$ac_useropt"
  1188. "*) ;;
  1189.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1190.          ac_unrecognized_sep=', ';;
  1191.     esac
  1192.     eval with_$ac_useropt=\$ac_optarg ;;
  1193.  
  1194.   -without-* | --without-*)
  1195.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1196.     # Reject names that are not valid shell variable names.
  1197.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1198.       as_fn_error $? "invalid package name: $ac_useropt"
  1199.     ac_useropt_orig=$ac_useropt
  1200.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1201.     case $ac_user_opts in
  1202.       *"
  1203. "with_$ac_useropt"
  1204. "*) ;;
  1205.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1206.          ac_unrecognized_sep=', ';;
  1207.     esac
  1208.     eval with_$ac_useropt=no ;;
  1209.  
  1210.   --x)
  1211.     # Obsolete; use --with-x.
  1212.     with_x=yes ;;
  1213.  
  1214.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1215.   | --x-incl | --x-inc | --x-in | --x-i)
  1216.     ac_prev=x_includes ;;
  1217.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1218.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1219.     x_includes=$ac_optarg ;;
  1220.  
  1221.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1222.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1223.     ac_prev=x_libraries ;;
  1224.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1225.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1226.     x_libraries=$ac_optarg ;;
  1227.  
  1228.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1229. Try \`$0 --help' for more information"
  1230.     ;;
  1231.  
  1232.   *=*)
  1233.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1234.     # Reject names that are not valid shell variable names.
  1235.     case $ac_envvar in #(
  1236.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1237.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1238.     esac
  1239.     eval $ac_envvar=\$ac_optarg
  1240.     export $ac_envvar ;;
  1241.  
  1242.   *)
  1243.     # FIXME: should be removed in autoconf 3.0.
  1244.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1245.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1246.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1247.     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1248.     ;;
  1249.  
  1250.   esac
  1251. done
  1252.  
  1253. if test -n "$ac_prev"; then
  1254.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1255.   as_fn_error $? "missing argument to $ac_option"
  1256. fi
  1257.  
  1258. if test -n "$ac_unrecognized_opts"; then
  1259.   case $enable_option_checking in
  1260.     no) ;;
  1261.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1262.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1263.   esac
  1264. fi
  1265.  
  1266. # Check all directory arguments for consistency.
  1267. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1268.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1269.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1270.                 libdir localedir mandir
  1271. do
  1272.   eval ac_val=\$$ac_var
  1273.   # Remove trailing slashes.
  1274.   case $ac_val in
  1275.     */ )
  1276.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1277.       eval $ac_var=\$ac_val;;
  1278.   esac
  1279.   # Be sure to have absolute directory names.
  1280.   case $ac_val in
  1281.     [\\/$]* | ?:[\\/]* )  continue;;
  1282.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1283.   esac
  1284.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1285. done
  1286.  
  1287. # There might be people who depend on the old broken behavior: `$host'
  1288. # used to hold the argument of --host etc.
  1289. # FIXME: To remove some day.
  1290. build=$build_alias
  1291. host=$host_alias
  1292. target=$target_alias
  1293.  
  1294. # FIXME: To remove some day.
  1295. if test "x$host_alias" != x; then
  1296.   if test "x$build_alias" = x; then
  1297.     cross_compiling=maybe
  1298.   elif test "x$build_alias" != "x$host_alias"; then
  1299.     cross_compiling=yes
  1300.   fi
  1301. fi
  1302.  
  1303. ac_tool_prefix=
  1304. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1305.  
  1306. test "$silent" = yes && exec 6>/dev/null
  1307.  
  1308.  
  1309. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1310. ac_ls_di=`ls -di .` &&
  1311. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1312.   as_fn_error $? "working directory cannot be determined"
  1313. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1314.   as_fn_error $? "pwd does not report name of working directory"
  1315.  
  1316.  
  1317. # Find the source files, if location was not specified.
  1318. if test -z "$srcdir"; then
  1319.   ac_srcdir_defaulted=yes
  1320.   # Try the directory containing this script, then the parent directory.
  1321.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1322. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1323.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1324.          X"$as_myself" : 'X\(//\)$' \| \
  1325.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1326. $as_echo X"$as_myself" |
  1327.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1328.             s//\1/
  1329.             q
  1330.           }
  1331.           /^X\(\/\/\)[^/].*/{
  1332.             s//\1/
  1333.             q
  1334.           }
  1335.           /^X\(\/\/\)$/{
  1336.             s//\1/
  1337.             q
  1338.           }
  1339.           /^X\(\/\).*/{
  1340.             s//\1/
  1341.             q
  1342.           }
  1343.           s/.*/./; q'`
  1344.   srcdir=$ac_confdir
  1345.   if test ! -r "$srcdir/$ac_unique_file"; then
  1346.     srcdir=..
  1347.   fi
  1348. else
  1349.   ac_srcdir_defaulted=no
  1350. fi
  1351. if test ! -r "$srcdir/$ac_unique_file"; then
  1352.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1353.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1354. fi
  1355. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1356. ac_abs_confdir=`(
  1357.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1358.         pwd)`
  1359. # When building in place, set srcdir=.
  1360. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1361.   srcdir=.
  1362. fi
  1363. # Remove unnecessary trailing slashes from srcdir.
  1364. # Double slashes in file names in object file debugging info
  1365. # mess up M-x gdb in Emacs.
  1366. case $srcdir in
  1367. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1368. esac
  1369. for ac_var in $ac_precious_vars; do
  1370.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1371.   eval ac_env_${ac_var}_value=\$${ac_var}
  1372.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1373.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1374. done
  1375.  
  1376. #
  1377. # Report the --help message.
  1378. #
  1379. if test "$ac_init_help" = "long"; then
  1380.   # Omit some internal or obsolete options to make the list less imposing.
  1381.   # This message is too long to be a string in the A/UX 3.1 sh.
  1382.   cat <<_ACEOF
  1383. \`configure' configures intel_driver 1.6.2 to adapt to many kinds of systems.
  1384.  
  1385. Usage: $0 [OPTION]... [VAR=VALUE]...
  1386.  
  1387. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1388. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1389.  
  1390. Defaults for the options are specified in brackets.
  1391.  
  1392. Configuration:
  1393.   -h, --help              display this help and exit
  1394.       --help=short        display options specific to this package
  1395.       --help=recursive    display the short help of all the included packages
  1396.   -V, --version           display version information and exit
  1397.   -q, --quiet, --silent   do not print \`checking ...' messages
  1398.       --cache-file=FILE   cache test results in FILE [disabled]
  1399.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1400.   -n, --no-create         do not create output files
  1401.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1402.  
  1403. Installation directories:
  1404.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1405.                           [$ac_default_prefix]
  1406.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1407.                           [PREFIX]
  1408.  
  1409. By default, \`make install' will install all the files in
  1410. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1411. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1412. for instance \`--prefix=\$HOME'.
  1413.  
  1414. For better control, use the options below.
  1415.  
  1416. Fine tuning of the installation directories:
  1417.   --bindir=DIR            user executables [EPREFIX/bin]
  1418.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1419.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1420.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1421.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1422.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1423.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1424.   --includedir=DIR        C header files [PREFIX/include]
  1425.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1426.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1427.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1428.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1429.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1430.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1431.   --docdir=DIR            documentation root
  1432.                           [DATAROOTDIR/doc/libva-intel-driver]
  1433.   --htmldir=DIR           html documentation [DOCDIR]
  1434.   --dvidir=DIR            dvi documentation [DOCDIR]
  1435.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1436.   --psdir=DIR             ps documentation [DOCDIR]
  1437. _ACEOF
  1438.  
  1439.   cat <<\_ACEOF
  1440.  
  1441. Program names:
  1442.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1443.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1444.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1445.  
  1446. System types:
  1447.   --build=BUILD     configure for building on BUILD [guessed]
  1448.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1449. _ACEOF
  1450. fi
  1451.  
  1452. if test -n "$ac_init_help"; then
  1453.   case $ac_init_help in
  1454.      short | recursive ) echo "Configuration of intel_driver 1.6.2:";;
  1455.    esac
  1456.   cat <<\_ACEOF
  1457.  
  1458. Optional Features:
  1459.   --disable-option-checking  ignore unrecognized --enable/--with options
  1460.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1461.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1462.   --enable-silent-rules   less verbose build output (undo: "make V=1")
  1463.   --disable-silent-rules  verbose build output (undo: "make V=0")
  1464.   --enable-drm            build with VA/DRM API support [default=yes]
  1465.   --enable-x11            build with VA/X11 API support [default=yes]
  1466.   --enable-wayland        build with VA/Wayland API support [default=yes]
  1467.   --enable-hybrid-codec   build with hybrid codec support [default=no]
  1468.   --enable-static[=PKGS]  build static libraries [default=no]
  1469.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  1470.   --enable-fast-install[=PKGS]
  1471.                           optimize for fast installation [default=yes]
  1472.   --enable-dependency-tracking
  1473.                           do not reject slow dependency extractors
  1474.   --disable-dependency-tracking
  1475.                           speeds up one-time build
  1476.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1477.   --disable-largefile     omit support for large files
  1478.  
  1479. Optional Packages:
  1480.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1481.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1482.   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  1483.                           both]
  1484.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1485.   --with-sysroot=DIR Search for dependent libraries within DIR
  1486.                         (or the compiler's sysroot if not specified).
  1487.  
  1488. Some influential environment variables:
  1489.   CC          C compiler command
  1490.   CFLAGS      C compiler flags
  1491.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1492.               nonstandard directory <lib dir>
  1493.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1494.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1495.               you have headers in a nonstandard directory <include dir>
  1496.   CPP         C preprocessor
  1497.   PKG_CONFIG  path to pkg-config utility
  1498.   PKG_CONFIG_PATH
  1499.               directories to add to pkg-config's search path
  1500.   PKG_CONFIG_LIBDIR
  1501.               path overriding pkg-config's built-in search path
  1502.   DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
  1503.   DRM_LIBS    linker flags for DRM, overriding pkg-config
  1504.   GEN4ASM_CFLAGS
  1505.               C compiler flags for GEN4ASM, overriding pkg-config
  1506.   GEN4ASM_LIBS
  1507.               linker flags for GEN4ASM, overriding pkg-config
  1508.   GIT         Path to git program, if any
  1509.   LIBVA_DEPS_CFLAGS
  1510.               C compiler flags for LIBVA_DEPS, overriding pkg-config
  1511.   LIBVA_DEPS_LIBS
  1512.               linker flags for LIBVA_DEPS, overriding pkg-config
  1513.   LIBVA_DRM_DEPS_CFLAGS
  1514.               C compiler flags for LIBVA_DRM_DEPS, overriding pkg-config
  1515.   LIBVA_DRM_DEPS_LIBS
  1516.               linker flags for LIBVA_DRM_DEPS, overriding pkg-config
  1517.   LIBVA_X11_DEPS_CFLAGS
  1518.               C compiler flags for LIBVA_X11_DEPS, overriding pkg-config
  1519.   LIBVA_X11_DEPS_LIBS
  1520.               linker flags for LIBVA_X11_DEPS, overriding pkg-config
  1521.   LIBVA_DRIVERS_PATH
  1522.               drivers install path
  1523.   EGL_CFLAGS  C compiler flags for EGL, overriding pkg-config
  1524.   EGL_LIBS    linker flags for EGL, overriding pkg-config
  1525.   WAYLAND_CFLAGS
  1526.               C compiler flags for WAYLAND, overriding pkg-config
  1527.   WAYLAND_LIBS
  1528.               linker flags for WAYLAND, overriding pkg-config
  1529.   LIBVA_WAYLAND_DEPS_CFLAGS
  1530.               C compiler flags for LIBVA_WAYLAND_DEPS, overriding pkg-config
  1531.   LIBVA_WAYLAND_DEPS_LIBS
  1532.               linker flags for LIBVA_WAYLAND_DEPS, overriding pkg-config
  1533.   WAYLAND_SCANNER_CFLAGS
  1534.               C compiler flags for WAYLAND_SCANNER, overriding pkg-config
  1535.   WAYLAND_SCANNER_LIBS
  1536.               linker flags for WAYLAND_SCANNER, overriding pkg-config
  1537.  
  1538. Use these variables to override the choices made by `configure' or to help
  1539. it to find libraries and programs with nonstandard names/locations.
  1540.  
  1541. Report bugs to <haihao.xiang@intel.com>.
  1542. _ACEOF
  1543. ac_status=$?
  1544. fi
  1545.  
  1546. if test "$ac_init_help" = "recursive"; then
  1547.   # If there are subdirs, report their specific --help.
  1548.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1549.     test -d "$ac_dir" ||
  1550.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1551.       continue
  1552.     ac_builddir=.
  1553.  
  1554. case "$ac_dir" in
  1555. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1556. *)
  1557.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1558.   # A ".." for each directory in $ac_dir_suffix.
  1559.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1560.   case $ac_top_builddir_sub in
  1561.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1562.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1563.   esac ;;
  1564. esac
  1565. ac_abs_top_builddir=$ac_pwd
  1566. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1567. # for backward compatibility:
  1568. ac_top_builddir=$ac_top_build_prefix
  1569.  
  1570. case $srcdir in
  1571.   .)  # We are building in place.
  1572.     ac_srcdir=.
  1573.     ac_top_srcdir=$ac_top_builddir_sub
  1574.     ac_abs_top_srcdir=$ac_pwd ;;
  1575.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1576.     ac_srcdir=$srcdir$ac_dir_suffix;
  1577.     ac_top_srcdir=$srcdir
  1578.     ac_abs_top_srcdir=$srcdir ;;
  1579.   *) # Relative name.
  1580.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1581.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1582.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1583. esac
  1584. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1585.  
  1586.     cd "$ac_dir" || { ac_status=$?; continue; }
  1587.     # Check for guested configure.
  1588.     if test -f "$ac_srcdir/configure.gnu"; then
  1589.       echo &&
  1590.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1591.     elif test -f "$ac_srcdir/configure"; then
  1592.       echo &&
  1593.       $SHELL "$ac_srcdir/configure" --help=recursive
  1594.     else
  1595.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1596.     fi || ac_status=$?
  1597.     cd "$ac_pwd" || { ac_status=$?; break; }
  1598.   done
  1599. fi
  1600.  
  1601. test -n "$ac_init_help" && exit $ac_status
  1602. if $ac_init_version; then
  1603.   cat <<\_ACEOF
  1604. intel_driver configure 1.6.2
  1605. generated by GNU Autoconf 2.69
  1606.  
  1607. Copyright (C) 2012 Free Software Foundation, Inc.
  1608. This configure script is free software; the Free Software Foundation
  1609. gives unlimited permission to copy, distribute and modify it.
  1610. _ACEOF
  1611.   exit
  1612. fi
  1613.  
  1614. ## ------------------------ ##
  1615. ## Autoconf initialization. ##
  1616. ## ------------------------ ##
  1617.  
  1618. # ac_fn_c_try_compile LINENO
  1619. # --------------------------
  1620. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1621. ac_fn_c_try_compile ()
  1622. {
  1623.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624.   rm -f conftest.$ac_objext
  1625.   if { { ac_try="$ac_compile"
  1626. case "(($ac_try" in
  1627.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1628.   *) ac_try_echo=$ac_try;;
  1629. esac
  1630. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1631. $as_echo "$ac_try_echo"; } >&5
  1632.   (eval "$ac_compile") 2>conftest.err
  1633.   ac_status=$?
  1634.   if test -s conftest.err; then
  1635.     grep -v '^ *+' conftest.err >conftest.er1
  1636.     cat conftest.er1 >&5
  1637.     mv -f conftest.er1 conftest.err
  1638.   fi
  1639.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1640.   test $ac_status = 0; } && {
  1641.          test -z "$ac_c_werror_flag" ||
  1642.          test ! -s conftest.err
  1643.        } && test -s conftest.$ac_objext; then :
  1644.   ac_retval=0
  1645. else
  1646.   $as_echo "$as_me: failed program was:" >&5
  1647. sed 's/^/| /' conftest.$ac_ext >&5
  1648.  
  1649.         ac_retval=1
  1650. fi
  1651.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1652.   as_fn_set_status $ac_retval
  1653.  
  1654. } # ac_fn_c_try_compile
  1655.  
  1656. # ac_fn_c_try_link LINENO
  1657. # -----------------------
  1658. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1659. ac_fn_c_try_link ()
  1660. {
  1661.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662.   rm -f conftest.$ac_objext conftest$ac_exeext
  1663.   if { { ac_try="$ac_link"
  1664. case "(($ac_try" in
  1665.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1666.   *) ac_try_echo=$ac_try;;
  1667. esac
  1668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1669. $as_echo "$ac_try_echo"; } >&5
  1670.   (eval "$ac_link") 2>conftest.err
  1671.   ac_status=$?
  1672.   if test -s conftest.err; then
  1673.     grep -v '^ *+' conftest.err >conftest.er1
  1674.     cat conftest.er1 >&5
  1675.     mv -f conftest.er1 conftest.err
  1676.   fi
  1677.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1678.   test $ac_status = 0; } && {
  1679.          test -z "$ac_c_werror_flag" ||
  1680.          test ! -s conftest.err
  1681.        } && test -s conftest$ac_exeext && {
  1682.          test "$cross_compiling" = yes ||
  1683.          test -x conftest$ac_exeext
  1684.        }; then :
  1685.   ac_retval=0
  1686. else
  1687.   $as_echo "$as_me: failed program was:" >&5
  1688. sed 's/^/| /' conftest.$ac_ext >&5
  1689.  
  1690.         ac_retval=1
  1691. fi
  1692.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1693.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1694.   # interfere with the next link command; also delete a directory that is
  1695.   # left behind by Apple's compiler.  We do this before executing the actions.
  1696.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1697.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1698.   as_fn_set_status $ac_retval
  1699.  
  1700. } # ac_fn_c_try_link
  1701.  
  1702. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1703. # -------------------------------------------------------
  1704. # Tests whether HEADER exists and can be compiled using the include files in
  1705. # INCLUDES, setting the cache variable VAR accordingly.
  1706. ac_fn_c_check_header_compile ()
  1707. {
  1708.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1709.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1710. $as_echo_n "checking for $2... " >&6; }
  1711. if eval \${$3+:} false; then :
  1712.   $as_echo_n "(cached) " >&6
  1713. else
  1714.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1715. /* end confdefs.h.  */
  1716. $4
  1717. #include <$2>
  1718. _ACEOF
  1719. if ac_fn_c_try_compile "$LINENO"; then :
  1720.   eval "$3=yes"
  1721. else
  1722.   eval "$3=no"
  1723. fi
  1724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1725. fi
  1726. eval ac_res=\$$3
  1727.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1728. $as_echo "$ac_res" >&6; }
  1729.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1730.  
  1731. } # ac_fn_c_check_header_compile
  1732.  
  1733. # ac_fn_c_try_cpp LINENO
  1734. # ----------------------
  1735. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1736. ac_fn_c_try_cpp ()
  1737. {
  1738.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1739.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1740. case "(($ac_try" in
  1741.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1742.   *) ac_try_echo=$ac_try;;
  1743. esac
  1744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1745. $as_echo "$ac_try_echo"; } >&5
  1746.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1747.   ac_status=$?
  1748.   if test -s conftest.err; then
  1749.     grep -v '^ *+' conftest.err >conftest.er1
  1750.     cat conftest.er1 >&5
  1751.     mv -f conftest.er1 conftest.err
  1752.   fi
  1753.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1754.   test $ac_status = 0; } > conftest.i && {
  1755.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1756.          test ! -s conftest.err
  1757.        }; then :
  1758.   ac_retval=0
  1759. else
  1760.   $as_echo "$as_me: failed program was:" >&5
  1761. sed 's/^/| /' conftest.$ac_ext >&5
  1762.  
  1763.     ac_retval=1
  1764. fi
  1765.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1766.   as_fn_set_status $ac_retval
  1767.  
  1768. } # ac_fn_c_try_cpp
  1769.  
  1770. # ac_fn_c_try_run LINENO
  1771. # ----------------------
  1772. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1773. # that executables *can* be run.
  1774. ac_fn_c_try_run ()
  1775. {
  1776.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777.   if { { ac_try="$ac_link"
  1778. case "(($ac_try" in
  1779.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1780.   *) ac_try_echo=$ac_try;;
  1781. esac
  1782. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1783. $as_echo "$ac_try_echo"; } >&5
  1784.   (eval "$ac_link") 2>&5
  1785.   ac_status=$?
  1786.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1787.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1788.   { { case "(($ac_try" in
  1789.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1790.   *) ac_try_echo=$ac_try;;
  1791. esac
  1792. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1793. $as_echo "$ac_try_echo"; } >&5
  1794.   (eval "$ac_try") 2>&5
  1795.   ac_status=$?
  1796.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1797.   test $ac_status = 0; }; }; then :
  1798.   ac_retval=0
  1799. else
  1800.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1801.        $as_echo "$as_me: failed program was:" >&5
  1802. sed 's/^/| /' conftest.$ac_ext >&5
  1803.  
  1804.        ac_retval=$ac_status
  1805. fi
  1806.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1807.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1808.   as_fn_set_status $ac_retval
  1809.  
  1810. } # ac_fn_c_try_run
  1811.  
  1812. # ac_fn_c_check_func LINENO FUNC VAR
  1813. # ----------------------------------
  1814. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1815. ac_fn_c_check_func ()
  1816. {
  1817.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1818.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1819. $as_echo_n "checking for $2... " >&6; }
  1820. if eval \${$3+:} false; then :
  1821.   $as_echo_n "(cached) " >&6
  1822. else
  1823.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1824. /* end confdefs.h.  */
  1825. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1826.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1827. #define $2 innocuous_$2
  1828.  
  1829. /* System header to define __stub macros and hopefully few prototypes,
  1830.     which can conflict with char $2 (); below.
  1831.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1832.     <limits.h> exists even on freestanding compilers.  */
  1833.  
  1834. #ifdef __STDC__
  1835. # include <limits.h>
  1836. #else
  1837. # include <assert.h>
  1838. #endif
  1839.  
  1840. #undef $2
  1841.  
  1842. /* Override any GCC internal prototype to avoid an error.
  1843.    Use char because int might match the return type of a GCC
  1844.    builtin and then its argument prototype would still apply.  */
  1845. #ifdef __cplusplus
  1846. extern "C"
  1847. #endif
  1848. char $2 ();
  1849. /* The GNU C library defines this for functions which it implements
  1850.     to always fail with ENOSYS.  Some functions are actually named
  1851.     something starting with __ and the normal name is an alias.  */
  1852. #if defined __stub_$2 || defined __stub___$2
  1853. choke me
  1854. #endif
  1855.  
  1856. int
  1857. main ()
  1858. {
  1859. return $2 ();
  1860.   ;
  1861.   return 0;
  1862. }
  1863. _ACEOF
  1864. if ac_fn_c_try_link "$LINENO"; then :
  1865.   eval "$3=yes"
  1866. else
  1867.   eval "$3=no"
  1868. fi
  1869. rm -f core conftest.err conftest.$ac_objext \
  1870.     conftest$ac_exeext conftest.$ac_ext
  1871. fi
  1872. eval ac_res=\$$3
  1873.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1874. $as_echo "$ac_res" >&6; }
  1875.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1876.  
  1877. } # ac_fn_c_check_func
  1878.  
  1879. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1880. # -------------------------------------------------------
  1881. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1882. # the include files in INCLUDES and setting the cache variable VAR
  1883. # accordingly.
  1884. ac_fn_c_check_header_mongrel ()
  1885. {
  1886.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1887.   if eval \${$3+:} false; then :
  1888.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1889. $as_echo_n "checking for $2... " >&6; }
  1890. if eval \${$3+:} false; then :
  1891.   $as_echo_n "(cached) " >&6
  1892. fi
  1893. eval ac_res=\$$3
  1894.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1895. $as_echo "$ac_res" >&6; }
  1896. else
  1897.   # Is the header compilable?
  1898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1899. $as_echo_n "checking $2 usability... " >&6; }
  1900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1901. /* end confdefs.h.  */
  1902. $4
  1903. #include <$2>
  1904. _ACEOF
  1905. if ac_fn_c_try_compile "$LINENO"; then :
  1906.   ac_header_compiler=yes
  1907. else
  1908.   ac_header_compiler=no
  1909. fi
  1910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1912. $as_echo "$ac_header_compiler" >&6; }
  1913.  
  1914. # Is the header present?
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1916. $as_echo_n "checking $2 presence... " >&6; }
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h.  */
  1919. #include <$2>
  1920. _ACEOF
  1921. if ac_fn_c_try_cpp "$LINENO"; then :
  1922.   ac_header_preproc=yes
  1923. else
  1924.   ac_header_preproc=no
  1925. fi
  1926. rm -f conftest.err conftest.i conftest.$ac_ext
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1928. $as_echo "$ac_header_preproc" >&6; }
  1929.  
  1930. # So?  What about this header?
  1931. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1932.   yes:no: )
  1933.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1934. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1935.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1936. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1937.     ;;
  1938.   no:yes:* )
  1939.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1940. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1941.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1942. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1943.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1944. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1945.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1946. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1947.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1948. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1949. ( $as_echo "## ------------------------------------- ##
  1950. ## Report this to haihao.xiang@intel.com ##
  1951. ## ------------------------------------- ##"
  1952.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  1953.     ;;
  1954. esac
  1955.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1956. $as_echo_n "checking for $2... " >&6; }
  1957. if eval \${$3+:} false; then :
  1958.   $as_echo_n "(cached) " >&6
  1959. else
  1960.   eval "$3=\$ac_header_compiler"
  1961. fi
  1962. eval ac_res=\$$3
  1963.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1964. $as_echo "$ac_res" >&6; }
  1965. fi
  1966.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1967.  
  1968. } # ac_fn_c_check_header_mongrel
  1969. cat >config.log <<_ACEOF
  1970. This file contains any messages produced by compilers while
  1971. running configure, to aid debugging if configure makes a mistake.
  1972.  
  1973. It was created by intel_driver $as_me 1.6.2, which was
  1974. generated by GNU Autoconf 2.69.  Invocation command line was
  1975.  
  1976.   $ $0 $@
  1977.  
  1978. _ACEOF
  1979. exec 5>>config.log
  1980. {
  1981. cat <<_ASUNAME
  1982. ## --------- ##
  1983. ## Platform. ##
  1984. ## --------- ##
  1985.  
  1986. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1987. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1988. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1989. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1990. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1991.  
  1992. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1993. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1994.  
  1995. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1996. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1997. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1998. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1999. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2000. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2001. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2002.  
  2003. _ASUNAME
  2004.  
  2005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2006. for as_dir in $PATH
  2007. do
  2008.   IFS=$as_save_IFS
  2009.   test -z "$as_dir" && as_dir=.
  2010.     $as_echo "PATH: $as_dir"
  2011.   done
  2012. IFS=$as_save_IFS
  2013.  
  2014. } >&5
  2015.  
  2016. cat >&5 <<_ACEOF
  2017.  
  2018.  
  2019. ## ----------- ##
  2020. ## Core tests. ##
  2021. ## ----------- ##
  2022.  
  2023. _ACEOF
  2024.  
  2025.  
  2026. # Keep a trace of the command line.
  2027. # Strip out --no-create and --no-recursion so they do not pile up.
  2028. # Strip out --silent because we don't want to record it for future runs.
  2029. # Also quote any args containing shell meta-characters.
  2030. # Make two passes to allow for proper duplicate-argument suppression.
  2031. ac_configure_args=
  2032. ac_configure_args0=
  2033. ac_configure_args1=
  2034. ac_must_keep_next=false
  2035. for ac_pass in 1 2
  2036. do
  2037.   for ac_arg
  2038.   do
  2039.     case $ac_arg in
  2040.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2041.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2042.     | -silent | --silent | --silen | --sile | --sil)
  2043.       continue ;;
  2044.     *\'*)
  2045.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2046.     esac
  2047.     case $ac_pass in
  2048.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2049.     2)
  2050.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2051.       if test $ac_must_keep_next = true; then
  2052.         ac_must_keep_next=false # Got value, back to normal.
  2053.       else
  2054.         case $ac_arg in
  2055.           *=* | --config-cache | -C | -disable-* | --disable-* \
  2056.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2057.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2058.           | -with-* | --with-* | -without-* | --without-* | --x)
  2059.             case "$ac_configure_args0 " in
  2060.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2061.             esac
  2062.             ;;
  2063.           -* ) ac_must_keep_next=true ;;
  2064.         esac
  2065.       fi
  2066.       as_fn_append ac_configure_args " '$ac_arg'"
  2067.       ;;
  2068.     esac
  2069.   done
  2070. done
  2071. { ac_configure_args0=; unset ac_configure_args0;}
  2072. { ac_configure_args1=; unset ac_configure_args1;}
  2073.  
  2074. # When interrupted or exit'd, cleanup temporary files, and complete
  2075. # config.log.  We remove comments because anyway the quotes in there
  2076. # would cause problems or look ugly.
  2077. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2078. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2079. trap 'exit_status=$?
  2080.   # Save into config.log some information that might help in debugging.
  2081.   {
  2082.     echo
  2083.  
  2084.     $as_echo "## ---------------- ##
  2085. ## Cache variables. ##
  2086. ## ---------------- ##"
  2087.     echo
  2088.     # The following way of writing the cache mishandles newlines in values,
  2089. (
  2090.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2091.     eval ac_val=\$$ac_var
  2092.     case $ac_val in #(
  2093.     *${as_nl}*)
  2094.       case $ac_var in #(
  2095.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2096. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2097.       esac
  2098.       case $ac_var in #(
  2099.       _ | IFS | as_nl) ;; #(
  2100.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2101.       *) { eval $ac_var=; unset $ac_var;} ;;
  2102.       esac ;;
  2103.     esac
  2104.   done
  2105.   (set) 2>&1 |
  2106.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2107.     *${as_nl}ac_space=\ *)
  2108.       sed -n \
  2109.         "s/'\''/'\''\\\\'\'''\''/g;
  2110.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2111.       ;; #(
  2112.     *)
  2113.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2114.       ;;
  2115.     esac |
  2116.     sort
  2117. )
  2118.     echo
  2119.  
  2120.     $as_echo "## ----------------- ##
  2121. ## Output variables. ##
  2122. ## ----------------- ##"
  2123.     echo
  2124.     for ac_var in $ac_subst_vars
  2125.     do
  2126.       eval ac_val=\$$ac_var
  2127.       case $ac_val in
  2128.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2129.       esac
  2130.       $as_echo "$ac_var='\''$ac_val'\''"
  2131.     done | sort
  2132.     echo
  2133.  
  2134.     if test -n "$ac_subst_files"; then
  2135.       $as_echo "## ------------------- ##
  2136. ## File substitutions. ##
  2137. ## ------------------- ##"
  2138.       echo
  2139.       for ac_var in $ac_subst_files
  2140.       do
  2141.         eval ac_val=\$$ac_var
  2142.         case $ac_val in
  2143.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2144.         esac
  2145.         $as_echo "$ac_var='\''$ac_val'\''"
  2146.       done | sort
  2147.       echo
  2148.     fi
  2149.  
  2150.     if test -s confdefs.h; then
  2151.       $as_echo "## ----------- ##
  2152. ## confdefs.h. ##
  2153. ## ----------- ##"
  2154.       echo
  2155.       cat confdefs.h
  2156.       echo
  2157.     fi
  2158.     test "$ac_signal" != 0 &&
  2159.       $as_echo "$as_me: caught signal $ac_signal"
  2160.     $as_echo "$as_me: exit $exit_status"
  2161.   } >&5
  2162.   rm -f core *.core core.conftest.* &&
  2163.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2164.     exit $exit_status
  2165. ' 0
  2166. for ac_signal in 1 2 13 15; do
  2167.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2168. done
  2169. ac_signal=0
  2170.  
  2171. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2172. rm -f -r conftest* confdefs.h
  2173.  
  2174. $as_echo "/* confdefs.h */" > confdefs.h
  2175.  
  2176. # Predefined preprocessor variables.
  2177.  
  2178. cat >>confdefs.h <<_ACEOF
  2179. #define PACKAGE_NAME "$PACKAGE_NAME"
  2180. _ACEOF
  2181.  
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2184. _ACEOF
  2185.  
  2186. cat >>confdefs.h <<_ACEOF
  2187. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2188. _ACEOF
  2189.  
  2190. cat >>confdefs.h <<_ACEOF
  2191. #define PACKAGE_STRING "$PACKAGE_STRING"
  2192. _ACEOF
  2193.  
  2194. cat >>confdefs.h <<_ACEOF
  2195. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2196. _ACEOF
  2197.  
  2198. cat >>confdefs.h <<_ACEOF
  2199. #define PACKAGE_URL "$PACKAGE_URL"
  2200. _ACEOF
  2201.  
  2202.  
  2203. # Let the site file select an alternate cache file if it wants to.
  2204. # Prefer an explicitly selected file to automatically selected ones.
  2205. ac_site_file1=NONE
  2206. ac_site_file2=NONE
  2207. if test -n "$CONFIG_SITE"; then
  2208.   # We do not want a PATH search for config.site.
  2209.   case $CONFIG_SITE in #((
  2210.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2211.     */*) ac_site_file1=$CONFIG_SITE;;
  2212.     *)   ac_site_file1=./$CONFIG_SITE;;
  2213.   esac
  2214. elif test "x$prefix" != xNONE; then
  2215.   ac_site_file1=$prefix/share/config.site
  2216.   ac_site_file2=$prefix/etc/config.site
  2217. else
  2218.   ac_site_file1=$ac_default_prefix/share/config.site
  2219.   ac_site_file2=$ac_default_prefix/etc/config.site
  2220. fi
  2221. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2222. do
  2223.   test "x$ac_site_file" = xNONE && continue
  2224.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2225.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2226. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2227.     sed 's/^/| /' "$ac_site_file" >&5
  2228.     . "$ac_site_file" \
  2229.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2230. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2231. as_fn_error $? "failed to load site script $ac_site_file
  2232. See \`config.log' for more details" "$LINENO" 5; }
  2233.   fi
  2234. done
  2235.  
  2236. if test -r "$cache_file"; then
  2237.   # Some versions of bash will fail to source /dev/null (special files
  2238.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2239.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2240.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2241. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2242.     case $cache_file in
  2243.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2244.       *)                      . "./$cache_file";;
  2245.     esac
  2246.   fi
  2247. else
  2248.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2249. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2250.   >$cache_file
  2251. fi
  2252.  
  2253. # Check that the precious variables saved in the cache have kept the same
  2254. # value.
  2255. ac_cache_corrupted=false
  2256. for ac_var in $ac_precious_vars; do
  2257.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2258.   eval ac_new_set=\$ac_env_${ac_var}_set
  2259.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2260.   eval ac_new_val=\$ac_env_${ac_var}_value
  2261.   case $ac_old_set,$ac_new_set in
  2262.     set,)
  2263.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2264. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2265.       ac_cache_corrupted=: ;;
  2266.     ,set)
  2267.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2268. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2269.       ac_cache_corrupted=: ;;
  2270.     ,);;
  2271.     *)
  2272.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2273.         # differences in whitespace do not lead to failure.
  2274.         ac_old_val_w=`echo x $ac_old_val`
  2275.         ac_new_val_w=`echo x $ac_new_val`
  2276.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2277.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2278. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2279.           ac_cache_corrupted=:
  2280.         else
  2281.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2282. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2283.           eval $ac_var=\$ac_old_val
  2284.         fi
  2285.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2286. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2287.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2288. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2289.       fi;;
  2290.   esac
  2291.   # Pass precious variables to config.status.
  2292.   if test "$ac_new_set" = set; then
  2293.     case $ac_new_val in
  2294.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2295.     *) ac_arg=$ac_var=$ac_new_val ;;
  2296.     esac
  2297.     case " $ac_configure_args " in
  2298.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2299.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2300.     esac
  2301.   fi
  2302. done
  2303. if $ac_cache_corrupted; then
  2304.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2305. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2306.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2307. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2308.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2309. fi
  2310. ## -------------------- ##
  2311. ## Main body of script. ##
  2312. ## -------------------- ##
  2313.  
  2314. ac_ext=c
  2315. ac_cpp='$CPP $CPPFLAGS'
  2316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2319.  
  2320.  
  2321.  
  2322. am__api_version='1.14'
  2323.  
  2324. ac_aux_dir=
  2325. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2326.   if test -f "$ac_dir/install-sh"; then
  2327.     ac_aux_dir=$ac_dir
  2328.     ac_install_sh="$ac_aux_dir/install-sh -c"
  2329.     break
  2330.   elif test -f "$ac_dir/install.sh"; then
  2331.     ac_aux_dir=$ac_dir
  2332.     ac_install_sh="$ac_aux_dir/install.sh -c"
  2333.     break
  2334.   elif test -f "$ac_dir/shtool"; then
  2335.     ac_aux_dir=$ac_dir
  2336.     ac_install_sh="$ac_aux_dir/shtool install -c"
  2337.     break
  2338.   fi
  2339. done
  2340. if test -z "$ac_aux_dir"; then
  2341.   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2342. fi
  2343.  
  2344. # These three variables are undocumented and unsupported,
  2345. # and are intended to be withdrawn in a future Autoconf release.
  2346. # They can cause serious problems if a builder's source tree is in a directory
  2347. # whose full name contains unusual characters.
  2348. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2349. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2350. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2351.  
  2352.  
  2353. # Find a good install program.  We prefer a C program (faster),
  2354. # so one script is as good as another.  But avoid the broken or
  2355. # incompatible versions:
  2356. # SysV /etc/install, /usr/sbin/install
  2357. # SunOS /usr/etc/install
  2358. # IRIX /sbin/install
  2359. # AIX /bin/install
  2360. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2361. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2362. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2363. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2364. # OS/2's system install, which has a completely different semantic
  2365. # ./install, which can be erroneously created by make from ./install.sh.
  2366. # Reject install programs that cannot install multiple files.
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2368. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2369. if test -z "$INSTALL"; then
  2370. if ${ac_cv_path_install+:} false; then :
  2371.   $as_echo_n "(cached) " >&6
  2372. else
  2373.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2374. for as_dir in $PATH
  2375. do
  2376.   IFS=$as_save_IFS
  2377.   test -z "$as_dir" && as_dir=.
  2378.     # Account for people who put trailing slashes in PATH elements.
  2379. case $as_dir/ in #((
  2380.   ./ | .// | /[cC]/* | \
  2381.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2382.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2383.   /usr/ucb/* ) ;;
  2384.   *)
  2385.     # OSF1 and SCO ODT 3.0 have their own names for install.
  2386.     # Don't use installbsd from OSF since it installs stuff as root
  2387.     # by default.
  2388.     for ac_prog in ginstall scoinst install; do
  2389.       for ac_exec_ext in '' $ac_executable_extensions; do
  2390.         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2391.           if test $ac_prog = install &&
  2392.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2393.             # AIX install.  It has an incompatible calling convention.
  2394.             :
  2395.           elif test $ac_prog = install &&
  2396.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2397.             # program-specific install script used by HP pwplus--don't use.
  2398.             :
  2399.           else
  2400.             rm -rf conftest.one conftest.two conftest.dir
  2401.             echo one > conftest.one
  2402.             echo two > conftest.two
  2403.             mkdir conftest.dir
  2404.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2405.               test -s conftest.one && test -s conftest.two &&
  2406.               test -s conftest.dir/conftest.one &&
  2407.               test -s conftest.dir/conftest.two
  2408.             then
  2409.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2410.               break 3
  2411.             fi
  2412.           fi
  2413.         fi
  2414.       done
  2415.     done
  2416.     ;;
  2417. esac
  2418.  
  2419.   done
  2420. IFS=$as_save_IFS
  2421.  
  2422. rm -rf conftest.one conftest.two conftest.dir
  2423.  
  2424. fi
  2425.   if test "${ac_cv_path_install+set}" = set; then
  2426.     INSTALL=$ac_cv_path_install
  2427.   else
  2428.     # As a last resort, use the slow shell script.  Don't cache a
  2429.     # value for INSTALL within a source directory, because that will
  2430.     # break other packages using the cache if that directory is
  2431.     # removed, or if the value is a relative name.
  2432.     INSTALL=$ac_install_sh
  2433.   fi
  2434. fi
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2436. $as_echo "$INSTALL" >&6; }
  2437.  
  2438. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2439. # It thinks the first close brace ends the variable substitution.
  2440. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2441.  
  2442. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2443.  
  2444. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2445.  
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2447. $as_echo_n "checking whether build environment is sane... " >&6; }
  2448. # Reject unsafe characters in $srcdir or the absolute working directory
  2449. # name.  Accept space and tab only in the latter.
  2450. am_lf='
  2451. '
  2452. case `pwd` in
  2453.   *[\\\"\#\$\&\'\`$am_lf]*)
  2454.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2455. esac
  2456. case $srcdir in
  2457.   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
  2458.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2459. esac
  2460.  
  2461. # Do 'set' in a subshell so we don't clobber the current shell's
  2462. # arguments.  Must try -L first in case configure is actually a
  2463. # symlink; some systems play weird games with the mod time of symlinks
  2464. # (eg FreeBSD returns the mod time of the symlink's containing
  2465. # directory).
  2466. if (
  2467.    am_has_slept=no
  2468.    for am_try in 1 2; do
  2469.      echo "timestamp, slept: $am_has_slept" > conftest.file
  2470.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2471.      if test "$*" = "X"; then
  2472.         # -L didn't work.
  2473.         set X `ls -t "$srcdir/configure" conftest.file`
  2474.      fi
  2475.      if test "$*" != "X $srcdir/configure conftest.file" \
  2476.         && test "$*" != "X conftest.file $srcdir/configure"; then
  2477.  
  2478.         # If neither matched, then we have a broken ls.  This can happen
  2479.         # if, for instance, CONFIG_SHELL is bash and it inherits a
  2480.         # broken ls alias from the environment.  This has actually
  2481.         # happened.  Such a system could not be considered "sane".
  2482.         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  2483.   alias in your environment" "$LINENO" 5
  2484.      fi
  2485.      if test "$2" = conftest.file || test $am_try -eq 2; then
  2486.        break
  2487.      fi
  2488.      # Just in case.
  2489.      sleep 1
  2490.      am_has_slept=yes
  2491.    done
  2492.    test "$2" = conftest.file
  2493.    )
  2494. then
  2495.    # Ok.
  2496.    :
  2497. else
  2498.    as_fn_error $? "newly created file is older than distributed files!
  2499. Check your system clock" "$LINENO" 5
  2500. fi
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2502. $as_echo "yes" >&6; }
  2503. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2504. # generated files are strictly newer.
  2505. am_sleep_pid=
  2506. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2507.   ( sleep 1 ) &
  2508.   am_sleep_pid=$!
  2509. fi
  2510.  
  2511. rm -f conftest.file
  2512.  
  2513. test "$program_prefix" != NONE &&
  2514.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2515. # Use a double $ so make ignores it.
  2516. test "$program_suffix" != NONE &&
  2517.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2518. # Double any \ or $.
  2519. # By default was `s,x,x', remove it if useless.
  2520. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2521. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2522.  
  2523. # expand $ac_aux_dir to an absolute path
  2524. am_aux_dir=`cd $ac_aux_dir && pwd`
  2525.  
  2526. if test x"${MISSING+set}" != xset; then
  2527.   case $am_aux_dir in
  2528.   *\ * | *\     *)
  2529.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2530.   *)
  2531.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2532.   esac
  2533. fi
  2534. # Use eval to expand $SHELL
  2535. if eval "$MISSING --is-lightweight"; then
  2536.   am_missing_run="$MISSING "
  2537. else
  2538.   am_missing_run=
  2539.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2540. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2541. fi
  2542.  
  2543. if test x"${install_sh}" != xset; then
  2544.   case $am_aux_dir in
  2545.   *\ * | *\     *)
  2546.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2547.   *)
  2548.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  2549.   esac
  2550. fi
  2551.  
  2552. # Installed binaries are usually stripped using 'strip' when the user
  2553. # run "make install-strip".  However 'strip' might not be the right
  2554. # tool to use in cross-compilation environments, therefore Automake
  2555. # will honor the 'STRIP' environment variable to overrule this program.
  2556. if test "$cross_compiling" != no; then
  2557.   if test -n "$ac_tool_prefix"; then
  2558.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2559. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2561. $as_echo_n "checking for $ac_word... " >&6; }
  2562. if ${ac_cv_prog_STRIP+:} false; then :
  2563.   $as_echo_n "(cached) " >&6
  2564. else
  2565.   if test -n "$STRIP"; then
  2566.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2567. else
  2568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2569. for as_dir in $PATH
  2570. do
  2571.   IFS=$as_save_IFS
  2572.   test -z "$as_dir" && as_dir=.
  2573.     for ac_exec_ext in '' $ac_executable_extensions; do
  2574.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2575.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2576.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2577.     break 2
  2578.   fi
  2579. done
  2580.   done
  2581. IFS=$as_save_IFS
  2582.  
  2583. fi
  2584. fi
  2585. STRIP=$ac_cv_prog_STRIP
  2586. if test -n "$STRIP"; then
  2587.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2588. $as_echo "$STRIP" >&6; }
  2589. else
  2590.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2591. $as_echo "no" >&6; }
  2592. fi
  2593.  
  2594.  
  2595. fi
  2596. if test -z "$ac_cv_prog_STRIP"; then
  2597.   ac_ct_STRIP=$STRIP
  2598.   # Extract the first word of "strip", so it can be a program name with args.
  2599. set dummy strip; ac_word=$2
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2601. $as_echo_n "checking for $ac_word... " >&6; }
  2602. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2603.   $as_echo_n "(cached) " >&6
  2604. else
  2605.   if test -n "$ac_ct_STRIP"; then
  2606.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2607. else
  2608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611.   IFS=$as_save_IFS
  2612.   test -z "$as_dir" && as_dir=.
  2613.     for ac_exec_ext in '' $ac_executable_extensions; do
  2614.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2615.     ac_cv_prog_ac_ct_STRIP="strip"
  2616.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2617.     break 2
  2618.   fi
  2619. done
  2620.   done
  2621. IFS=$as_save_IFS
  2622.  
  2623. fi
  2624. fi
  2625. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2626. if test -n "$ac_ct_STRIP"; then
  2627.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2628. $as_echo "$ac_ct_STRIP" >&6; }
  2629. else
  2630.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2631. $as_echo "no" >&6; }
  2632. fi
  2633.  
  2634.   if test "x$ac_ct_STRIP" = x; then
  2635.     STRIP=":"
  2636.   else
  2637.     case $cross_compiling:$ac_tool_warned in
  2638. yes:)
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2640. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2641. ac_tool_warned=yes ;;
  2642. esac
  2643.     STRIP=$ac_ct_STRIP
  2644.   fi
  2645. else
  2646.   STRIP="$ac_cv_prog_STRIP"
  2647. fi
  2648.  
  2649. fi
  2650. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2651.  
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2653. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2654. if test -z "$MKDIR_P"; then
  2655.   if ${ac_cv_path_mkdir+:} false; then :
  2656.   $as_echo_n "(cached) " >&6
  2657. else
  2658.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2659. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2660. do
  2661.   IFS=$as_save_IFS
  2662.   test -z "$as_dir" && as_dir=.
  2663.     for ac_prog in mkdir gmkdir; do
  2664.          for ac_exec_ext in '' $ac_executable_extensions; do
  2665.            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2666.            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2667.              'mkdir (GNU coreutils) '* | \
  2668.              'mkdir (coreutils) '* | \
  2669.              'mkdir (fileutils) '4.1*)
  2670.                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2671.                break 3;;
  2672.            esac
  2673.          done
  2674.        done
  2675.   done
  2676. IFS=$as_save_IFS
  2677.  
  2678. fi
  2679.  
  2680.   test -d ./--version && rmdir ./--version
  2681.   if test "${ac_cv_path_mkdir+set}" = set; then
  2682.     MKDIR_P="$ac_cv_path_mkdir -p"
  2683.   else
  2684.     # As a last resort, use the slow shell script.  Don't cache a
  2685.     # value for MKDIR_P within a source directory, because that will
  2686.     # break other packages using the cache if that directory is
  2687.     # removed, or if the value is a relative name.
  2688.     MKDIR_P="$ac_install_sh -d"
  2689.   fi
  2690. fi
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2692. $as_echo "$MKDIR_P" >&6; }
  2693.  
  2694. for ac_prog in gawk mawk nawk awk
  2695. do
  2696.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2697. set dummy $ac_prog; ac_word=$2
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2699. $as_echo_n "checking for $ac_word... " >&6; }
  2700. if ${ac_cv_prog_AWK+:} false; then :
  2701.   $as_echo_n "(cached) " >&6
  2702. else
  2703.   if test -n "$AWK"; then
  2704.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2705. else
  2706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2707. for as_dir in $PATH
  2708. do
  2709.   IFS=$as_save_IFS
  2710.   test -z "$as_dir" && as_dir=.
  2711.     for ac_exec_ext in '' $ac_executable_extensions; do
  2712.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2713.     ac_cv_prog_AWK="$ac_prog"
  2714.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2715.     break 2
  2716.   fi
  2717. done
  2718.   done
  2719. IFS=$as_save_IFS
  2720.  
  2721. fi
  2722. fi
  2723. AWK=$ac_cv_prog_AWK
  2724. if test -n "$AWK"; then
  2725.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2726. $as_echo "$AWK" >&6; }
  2727. else
  2728.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2729. $as_echo "no" >&6; }
  2730. fi
  2731.  
  2732.  
  2733.   test -n "$AWK" && break
  2734. done
  2735.  
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2737. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2738. set x ${MAKE-make}
  2739. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2740. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2741.   $as_echo_n "(cached) " >&6
  2742. else
  2743.   cat >conftest.make <<\_ACEOF
  2744. SHELL = /bin/sh
  2745. all:
  2746.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  2747. _ACEOF
  2748. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2749. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2750.   *@@@%%%=?*=@@@%%%*)
  2751.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2752.   *)
  2753.     eval ac_cv_prog_make_${ac_make}_set=no;;
  2754. esac
  2755. rm -f conftest.make
  2756. fi
  2757. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2758.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2759. $as_echo "yes" >&6; }
  2760.   SET_MAKE=
  2761. else
  2762.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2763. $as_echo "no" >&6; }
  2764.   SET_MAKE="MAKE=${MAKE-make}"
  2765. fi
  2766.  
  2767. rm -rf .tst 2>/dev/null
  2768. mkdir .tst 2>/dev/null
  2769. if test -d .tst; then
  2770.   am__leading_dot=.
  2771. else
  2772.   am__leading_dot=_
  2773. fi
  2774. rmdir .tst 2>/dev/null
  2775.  
  2776. # Check whether --enable-silent-rules was given.
  2777. if test "${enable_silent_rules+set}" = set; then :
  2778.   enableval=$enable_silent_rules;
  2779. fi
  2780.  
  2781. case $enable_silent_rules in # (((
  2782.   yes) AM_DEFAULT_VERBOSITY=0;;
  2783.    no) AM_DEFAULT_VERBOSITY=1;;
  2784.     *) AM_DEFAULT_VERBOSITY=1;;
  2785. esac
  2786. am_make=${MAKE-make}
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2788. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2789. if ${am_cv_make_support_nested_variables+:} false; then :
  2790.   $as_echo_n "(cached) " >&6
  2791. else
  2792.   if $as_echo 'TRUE=$(BAR$(V))
  2793. BAR0=false
  2794. BAR1=true
  2795. V=1
  2796. am__doit:
  2797.         @$(TRUE)
  2798. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2799.   am_cv_make_support_nested_variables=yes
  2800. else
  2801.   am_cv_make_support_nested_variables=no
  2802. fi
  2803. fi
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2805. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2806. if test $am_cv_make_support_nested_variables = yes; then
  2807.     AM_V='$(V)'
  2808.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2809. else
  2810.   AM_V=$AM_DEFAULT_VERBOSITY
  2811.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2812. fi
  2813. AM_BACKSLASH='\'
  2814.  
  2815. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2816.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2817.   # is not polluted with repeated "-I."
  2818.   am__isrc=' -I$(srcdir)'
  2819.   # test to see if srcdir already configured
  2820.   if test -f $srcdir/config.status; then
  2821.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2822.   fi
  2823. fi
  2824.  
  2825. # test whether we have cygpath
  2826. if test -z "$CYGPATH_W"; then
  2827.   if (cygpath --version) >/dev/null 2>/dev/null; then
  2828.     CYGPATH_W='cygpath -w'
  2829.   else
  2830.     CYGPATH_W=echo
  2831.   fi
  2832. fi
  2833.  
  2834.  
  2835. # Define the identity of the package.
  2836.  PACKAGE='libva-intel-driver'
  2837.  VERSION='1.6.2'
  2838.  
  2839.  
  2840. cat >>confdefs.h <<_ACEOF
  2841. #define PACKAGE "$PACKAGE"
  2842. _ACEOF
  2843.  
  2844.  
  2845. cat >>confdefs.h <<_ACEOF
  2846. #define VERSION "$VERSION"
  2847. _ACEOF
  2848.  
  2849. # Some tools Automake needs.
  2850.  
  2851. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2852.  
  2853.  
  2854. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2855.  
  2856.  
  2857. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2858.  
  2859.  
  2860. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2861.  
  2862.  
  2863. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2864.  
  2865. # For better backward compatibility.  To be removed once Automake 1.9.x
  2866. # dies out for good.  For more background, see:
  2867. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2868. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2869. mkdir_p='$(MKDIR_P)'
  2870.  
  2871. # We need awk for the "check" target.  The system "awk" is bad on
  2872. # some platforms.
  2873. # Always define AMTAR for backward compatibility.  Yes, it's still used
  2874. # in the wild :-(  We should find a proper way to deprecate it ...
  2875. AMTAR='$${TAR-tar}'
  2876.  
  2877.  
  2878. # We'll loop over all known methods to create a tar archive until one works.
  2879. _am_tools='gnutar plaintar pax cpio none'
  2880.  
  2881. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  2882.       # There is notably a 21 bits limit for the UID and the GID.  In fact,
  2883.       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  2884.       # and bug#13588).
  2885.       am_max_uid=2097151 # 2^21 - 1
  2886.       am_max_gid=$am_max_uid
  2887.       # The $UID and $GID variables are not portable, so we need to resort
  2888.       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
  2889.       # below are definitely unexpected, so allow the users to see them
  2890.       # (that is, avoid stderr redirection).
  2891.       am_uid=`id -u || echo unknown`
  2892.       am_gid=`id -g || echo unknown`
  2893.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  2894. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  2895.       if test $am_uid -le $am_max_uid; then
  2896.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2897. $as_echo "yes" >&6; }
  2898.       else
  2899.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2900. $as_echo "no" >&6; }
  2901.          _am_tools=none
  2902.       fi
  2903.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  2904. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  2905.       if test $am_gid -le $am_max_gid; then
  2906.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2907. $as_echo "yes" >&6; }
  2908.       else
  2909.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2910. $as_echo "no" >&6; }
  2911.         _am_tools=none
  2912.       fi
  2913.  
  2914.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  2915. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  2916.  
  2917.   # Go ahead even if we have the value already cached.  We do so because we
  2918.   # need to set the values for the 'am__tar' and 'am__untar' variables.
  2919.   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  2920.  
  2921.   for _am_tool in $_am_tools; do
  2922.     case $_am_tool in
  2923.     gnutar)
  2924.       for _am_tar in tar gnutar gtar; do
  2925.         { echo "$as_me:$LINENO: $_am_tar --version" >&5
  2926.    ($_am_tar --version) >&5 2>&5
  2927.    ac_status=$?
  2928.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2929.    (exit $ac_status); } && break
  2930.       done
  2931.       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  2932.       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  2933.       am__untar="$_am_tar -xf -"
  2934.       ;;
  2935.     plaintar)
  2936.       # Must skip GNU tar: if it does not support --format= it doesn't create
  2937.       # ustar tarball either.
  2938.       (tar --version) >/dev/null 2>&1 && continue
  2939.       am__tar='tar chf - "$$tardir"'
  2940.       am__tar_='tar chf - "$tardir"'
  2941.       am__untar='tar xf -'
  2942.       ;;
  2943.     pax)
  2944.       am__tar='pax -L -x ustar -w "$$tardir"'
  2945.       am__tar_='pax -L -x ustar -w "$tardir"'
  2946.       am__untar='pax -r'
  2947.       ;;
  2948.     cpio)
  2949.       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  2950.       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  2951.       am__untar='cpio -i -H ustar -d'
  2952.       ;;
  2953.     none)
  2954.       am__tar=false
  2955.       am__tar_=false
  2956.       am__untar=false
  2957.       ;;
  2958.     esac
  2959.  
  2960.     # If the value was cached, stop now.  We just wanted to have am__tar
  2961.     # and am__untar set.
  2962.     test -n "${am_cv_prog_tar_ustar}" && break
  2963.  
  2964.     # tar/untar a dummy directory, and stop if the command works.
  2965.     rm -rf conftest.dir
  2966.     mkdir conftest.dir
  2967.     echo GrepMe > conftest.dir/file
  2968.     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  2969.    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  2970.    ac_status=$?
  2971.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2972.    (exit $ac_status); }
  2973.     rm -rf conftest.dir
  2974.     if test -s conftest.tar; then
  2975.       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  2976.    ($am__untar <conftest.tar) >&5 2>&5
  2977.    ac_status=$?
  2978.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2979.    (exit $ac_status); }
  2980.       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  2981.    (cat conftest.dir/file) >&5 2>&5
  2982.    ac_status=$?
  2983.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2984.    (exit $ac_status); }
  2985.       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  2986.     fi
  2987.   done
  2988.   rm -rf conftest.dir
  2989.  
  2990.   if ${am_cv_prog_tar_ustar+:} false; then :
  2991.   $as_echo_n "(cached) " >&6
  2992. else
  2993.   am_cv_prog_tar_ustar=$_am_tool
  2994. fi
  2995.  
  2996.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  2997. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004. # POSIX will say in a future version that running "rm -f" with no argument
  3005. # is OK; and we want to be able to make that assumption in our Makefile
  3006. # recipes.  So use an aggressive probe to check that the usage we want is
  3007. # actually supported "in the wild" to an acceptable degree.
  3008. # See automake bug#10828.
  3009. # To make any issue more visible, cause the running configure to be aborted
  3010. # by default if the 'rm' program in use doesn't match our expectations; the
  3011. # user can still override this though.
  3012. if rm -f && rm -fr && rm -rf; then : OK; else
  3013.   cat >&2 <<'END'
  3014. Oops!
  3015.  
  3016. Your 'rm' program seems unable to run without file operands specified
  3017. on the command line, even when the '-f' option is present.  This is contrary
  3018. to the behaviour of most rm programs out there, and not conforming with
  3019. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3020.  
  3021. Please tell bug-automake@gnu.org about your system, including the value
  3022. of your $PATH and any error possibly output before this message.  This
  3023. can help us improve future automake versions.
  3024.  
  3025. END
  3026.   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3027.     echo 'Configuration will proceed anyway, since you have set the' >&2
  3028.     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3029.     echo >&2
  3030.   else
  3031.     cat >&2 <<'END'
  3032. Aborting the configuration process, to ensure you take notice of the issue.
  3033.  
  3034. You can download and install GNU coreutils to get an 'rm' implementation
  3035. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3036.  
  3037. If you want to complete the configuration process using your problematic
  3038. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3039. to "yes", and re-run configure.
  3040.  
  3041. END
  3042.     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3043.   fi
  3044. fi
  3045.  
  3046. ac_config_headers="$ac_config_headers src/config.h"
  3047.  
  3048.  
  3049. INTEL_DRIVER_MAJOR_VERSION=1
  3050. INTEL_DRIVER_MINOR_VERSION=6
  3051. INTEL_DRIVER_MICRO_VERSION=2
  3052.  
  3053. $as_echo "#define INTEL_DRIVER_MAJOR_VERSION 1" >>confdefs.h
  3054.  
  3055.  
  3056. $as_echo "#define INTEL_DRIVER_MINOR_VERSION 6" >>confdefs.h
  3057.  
  3058.  
  3059. $as_echo "#define INTEL_DRIVER_MICRO_VERSION 2" >>confdefs.h
  3060.  
  3061.  
  3062. $as_echo "#define INTEL_DRIVER_PRE_VERSION 0" >>confdefs.h
  3063.  
  3064.  
  3065. INTEL_DRIVER_LT_LDFLAGS="-avoid-version"
  3066.  
  3067.  
  3068. # Check whether --enable-silent-rules was given.
  3069. if test "${enable_silent_rules+set}" = set; then :
  3070.   enableval=$enable_silent_rules;
  3071. fi
  3072.  
  3073. case $enable_silent_rules in # (((
  3074.   yes) AM_DEFAULT_VERBOSITY=0;;
  3075.    no) AM_DEFAULT_VERBOSITY=1;;
  3076.     *) AM_DEFAULT_VERBOSITY=0;;
  3077. esac
  3078. am_make=${MAKE-make}
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3080. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3081. if ${am_cv_make_support_nested_variables+:} false; then :
  3082.   $as_echo_n "(cached) " >&6
  3083. else
  3084.   if $as_echo 'TRUE=$(BAR$(V))
  3085. BAR0=false
  3086. BAR1=true
  3087. V=1
  3088. am__doit:
  3089.         @$(TRUE)
  3090. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3091.   am_cv_make_support_nested_variables=yes
  3092. else
  3093.   am_cv_make_support_nested_variables=no
  3094. fi
  3095. fi
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3097. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3098. if test $am_cv_make_support_nested_variables = yes; then
  3099.     AM_V='$(V)'
  3100.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3101. else
  3102.   AM_V=$AM_DEFAULT_VERBOSITY
  3103.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3104. fi
  3105. AM_BACKSLASH='\'
  3106.  
  3107.  
  3108. # Check whether --enable-drm was given.
  3109. if test "${enable_drm+set}" = set; then :
  3110.   enableval=$enable_drm;
  3111. else
  3112.   enable_drm="yes"
  3113. fi
  3114.  
  3115.  
  3116. # Check whether --enable-x11 was given.
  3117. if test "${enable_x11+set}" = set; then :
  3118.   enableval=$enable_x11;
  3119. else
  3120.   enable_x11="yes"
  3121. fi
  3122.  
  3123.  
  3124. # Check whether --enable-wayland was given.
  3125. if test "${enable_wayland+set}" = set; then :
  3126.   enableval=$enable_wayland;
  3127. else
  3128.   enable_wayland="yes"
  3129. fi
  3130.  
  3131.  
  3132. # Check whether --enable-hybrid-codec was given.
  3133. if test "${enable_hybrid_codec+set}" = set; then :
  3134.   enableval=$enable_hybrid_codec;
  3135. else
  3136.   enable_hybrid_codec="no"
  3137. fi
  3138.  
  3139.  
  3140. # Check whether --enable-static was given.
  3141. if test "${enable_static+set}" = set; then :
  3142.   enableval=$enable_static; p=${PACKAGE-default}
  3143.     case $enableval in
  3144.     yes) enable_static=yes ;;
  3145.     no) enable_static=no ;;
  3146.     *)
  3147.      enable_static=no
  3148.       # Look at the argument we got.  We use all the common list separators.
  3149.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3150.       for pkg in $enableval; do
  3151.         IFS="$lt_save_ifs"
  3152.         if test "X$pkg" = "X$p"; then
  3153.           enable_static=yes
  3154.         fi
  3155.       done
  3156.       IFS="$lt_save_ifs"
  3157.       ;;
  3158.     esac
  3159. else
  3160.   enable_static=no
  3161. fi
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171. case `pwd` in
  3172.   *\ * | *\     *)
  3173.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3174. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3175. esac
  3176.  
  3177.  
  3178.  
  3179. macro_version='2.4.2'
  3180. macro_revision='1.3337'
  3181.  
  3182.  
  3183.  
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194. ltmain="$ac_aux_dir/ltmain.sh"
  3195.  
  3196. # Make sure we can run config.sub.
  3197. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3198.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3199.  
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3201. $as_echo_n "checking build system type... " >&6; }
  3202. if ${ac_cv_build+:} false; then :
  3203.   $as_echo_n "(cached) " >&6
  3204. else
  3205.   ac_build_alias=$build_alias
  3206. test "x$ac_build_alias" = x &&
  3207.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3208. test "x$ac_build_alias" = x &&
  3209.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3210. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3211.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3212.  
  3213. fi
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3215. $as_echo "$ac_cv_build" >&6; }
  3216. case $ac_cv_build in
  3217. *-*-*) ;;
  3218. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3219. esac
  3220. build=$ac_cv_build
  3221. ac_save_IFS=$IFS; IFS='-'
  3222. set x $ac_cv_build
  3223. shift
  3224. build_cpu=$1
  3225. build_vendor=$2
  3226. shift; shift
  3227. # Remember, the first character of IFS is used to create $*,
  3228. # except with old shells:
  3229. build_os=$*
  3230. IFS=$ac_save_IFS
  3231. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3232.  
  3233.  
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3235. $as_echo_n "checking host system type... " >&6; }
  3236. if ${ac_cv_host+:} false; then :
  3237.   $as_echo_n "(cached) " >&6
  3238. else
  3239.   if test "x$host_alias" = x; then
  3240.   ac_cv_host=$ac_cv_build
  3241. else
  3242.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3243.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3244. fi
  3245.  
  3246. fi
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3248. $as_echo "$ac_cv_host" >&6; }
  3249. case $ac_cv_host in
  3250. *-*-*) ;;
  3251. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3252. esac
  3253. host=$ac_cv_host
  3254. ac_save_IFS=$IFS; IFS='-'
  3255. set x $ac_cv_host
  3256. shift
  3257. host_cpu=$1
  3258. host_vendor=$2
  3259. shift; shift
  3260. # Remember, the first character of IFS is used to create $*,
  3261. # except with old shells:
  3262. host_os=$*
  3263. IFS=$ac_save_IFS
  3264. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3265.  
  3266.  
  3267. # Backslashify metacharacters that are still active within
  3268. # double-quoted strings.
  3269. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3270.  
  3271. # Same as above, but do not quote variable references.
  3272. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3273.  
  3274. # Sed substitution to delay expansion of an escaped shell variable in a
  3275. # double_quote_subst'ed string.
  3276. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3277.  
  3278. # Sed substitution to delay expansion of an escaped single quote.
  3279. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3280.  
  3281. # Sed substitution to avoid accidental globbing in evaled expressions
  3282. no_glob_subst='s/\*/\\\*/g'
  3283.  
  3284. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3285. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3286. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3287.  
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3289. $as_echo_n "checking how to print strings... " >&6; }
  3290. # Test print first, because it will be a builtin if present.
  3291. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3292.    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3293.   ECHO='print -r --'
  3294. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3295.   ECHO='printf %s\n'
  3296. else
  3297.   # Use this function as a fallback that always works.
  3298.   func_fallback_echo ()
  3299.   {
  3300.     eval 'cat <<_LTECHO_EOF
  3301. $1
  3302. _LTECHO_EOF'
  3303.   }
  3304.   ECHO='func_fallback_echo'
  3305. fi
  3306.  
  3307. # func_echo_all arg...
  3308. # Invoke $ECHO with all args, space-separated.
  3309. func_echo_all ()
  3310. {
  3311.     $ECHO ""
  3312. }
  3313.  
  3314. case "$ECHO" in
  3315.   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3316. $as_echo "printf" >&6; } ;;
  3317.   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3318. $as_echo "print -r" >&6; } ;;
  3319.   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3320. $as_echo "cat" >&6; } ;;
  3321. esac
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336. DEPDIR="${am__leading_dot}deps"
  3337.  
  3338. ac_config_commands="$ac_config_commands depfiles"
  3339.  
  3340.  
  3341. am_make=${MAKE-make}
  3342. cat > confinc << 'END'
  3343. am__doit:
  3344.         @echo this is the am__doit target
  3345. .PHONY: am__doit
  3346. END
  3347. # If we don't find an include directive, just comment out the code.
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3349. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3350. am__include="#"
  3351. am__quote=
  3352. _am_result=none
  3353. # First try GNU make style include.
  3354. echo "include confinc" > confmf
  3355. # Ignore all kinds of additional output from 'make'.
  3356. case `$am_make -s -f confmf 2> /dev/null` in #(
  3357. *the\ am__doit\ target*)
  3358.   am__include=include
  3359.   am__quote=
  3360.   _am_result=GNU
  3361.   ;;
  3362. esac
  3363. # Now try BSD make style include.
  3364. if test "$am__include" = "#"; then
  3365.    echo '.include "confinc"' > confmf
  3366.    case `$am_make -s -f confmf 2> /dev/null` in #(
  3367.    *the\ am__doit\ target*)
  3368.      am__include=.include
  3369.      am__quote="\""
  3370.      _am_result=BSD
  3371.      ;;
  3372.    esac
  3373. fi
  3374.  
  3375.  
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3377. $as_echo "$_am_result" >&6; }
  3378. rm -f confinc confmf
  3379.  
  3380. # Check whether --enable-dependency-tracking was given.
  3381. if test "${enable_dependency_tracking+set}" = set; then :
  3382.   enableval=$enable_dependency_tracking;
  3383. fi
  3384.  
  3385. if test "x$enable_dependency_tracking" != xno; then
  3386.   am_depcomp="$ac_aux_dir/depcomp"
  3387.   AMDEPBACKSLASH='\'
  3388.   am__nodep='_no'
  3389. fi
  3390.  if test "x$enable_dependency_tracking" != xno; then
  3391.   AMDEP_TRUE=
  3392.   AMDEP_FALSE='#'
  3393. else
  3394.   AMDEP_TRUE='#'
  3395.   AMDEP_FALSE=
  3396. fi
  3397.  
  3398.  
  3399. ac_ext=c
  3400. ac_cpp='$CPP $CPPFLAGS'
  3401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3404. if test -n "$ac_tool_prefix"; then
  3405.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3406. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3408. $as_echo_n "checking for $ac_word... " >&6; }
  3409. if ${ac_cv_prog_CC+:} false; then :
  3410.   $as_echo_n "(cached) " >&6
  3411. else
  3412.   if test -n "$CC"; then
  3413.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3414. else
  3415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3416. for as_dir in $PATH
  3417. do
  3418.   IFS=$as_save_IFS
  3419.   test -z "$as_dir" && as_dir=.
  3420.     for ac_exec_ext in '' $ac_executable_extensions; do
  3421.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3422.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3423.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3424.     break 2
  3425.   fi
  3426. done
  3427.   done
  3428. IFS=$as_save_IFS
  3429.  
  3430. fi
  3431. fi
  3432. CC=$ac_cv_prog_CC
  3433. if test -n "$CC"; then
  3434.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3435. $as_echo "$CC" >&6; }
  3436. else
  3437.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3438. $as_echo "no" >&6; }
  3439. fi
  3440.  
  3441.  
  3442. fi
  3443. if test -z "$ac_cv_prog_CC"; then
  3444.   ac_ct_CC=$CC
  3445.   # Extract the first word of "gcc", so it can be a program name with args.
  3446. set dummy gcc; ac_word=$2
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3448. $as_echo_n "checking for $ac_word... " >&6; }
  3449. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3450.   $as_echo_n "(cached) " >&6
  3451. else
  3452.   if test -n "$ac_ct_CC"; then
  3453.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3454. else
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH
  3457. do
  3458.   IFS=$as_save_IFS
  3459.   test -z "$as_dir" && as_dir=.
  3460.     for ac_exec_ext in '' $ac_executable_extensions; do
  3461.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3462.     ac_cv_prog_ac_ct_CC="gcc"
  3463.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3464.     break 2
  3465.   fi
  3466. done
  3467.   done
  3468. IFS=$as_save_IFS
  3469.  
  3470. fi
  3471. fi
  3472. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3473. if test -n "$ac_ct_CC"; then
  3474.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3475. $as_echo "$ac_ct_CC" >&6; }
  3476. else
  3477.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3478. $as_echo "no" >&6; }
  3479. fi
  3480.  
  3481.   if test "x$ac_ct_CC" = x; then
  3482.     CC=""
  3483.   else
  3484.     case $cross_compiling:$ac_tool_warned in
  3485. yes:)
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3487. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3488. ac_tool_warned=yes ;;
  3489. esac
  3490.     CC=$ac_ct_CC
  3491.   fi
  3492. else
  3493.   CC="$ac_cv_prog_CC"
  3494. fi
  3495.  
  3496. if test -z "$CC"; then
  3497.           if test -n "$ac_tool_prefix"; then
  3498.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3499. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3501. $as_echo_n "checking for $ac_word... " >&6; }
  3502. if ${ac_cv_prog_CC+:} false; then :
  3503.   $as_echo_n "(cached) " >&6
  3504. else
  3505.   if test -n "$CC"; then
  3506.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3507. else
  3508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3509. for as_dir in $PATH
  3510. do
  3511.   IFS=$as_save_IFS
  3512.   test -z "$as_dir" && as_dir=.
  3513.     for ac_exec_ext in '' $ac_executable_extensions; do
  3514.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3515.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3516.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3517.     break 2
  3518.   fi
  3519. done
  3520.   done
  3521. IFS=$as_save_IFS
  3522.  
  3523. fi
  3524. fi
  3525. CC=$ac_cv_prog_CC
  3526. if test -n "$CC"; then
  3527.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3528. $as_echo "$CC" >&6; }
  3529. else
  3530.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3531. $as_echo "no" >&6; }
  3532. fi
  3533.  
  3534.  
  3535.   fi
  3536. fi
  3537. if test -z "$CC"; then
  3538.   # Extract the first word of "cc", so it can be a program name with args.
  3539. set dummy cc; ac_word=$2
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3541. $as_echo_n "checking for $ac_word... " >&6; }
  3542. if ${ac_cv_prog_CC+:} false; then :
  3543.   $as_echo_n "(cached) " >&6
  3544. else
  3545.   if test -n "$CC"; then
  3546.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3547. else
  3548.   ac_prog_rejected=no
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH
  3551. do
  3552.   IFS=$as_save_IFS
  3553.   test -z "$as_dir" && as_dir=.
  3554.     for ac_exec_ext in '' $ac_executable_extensions; do
  3555.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3556.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3557.        ac_prog_rejected=yes
  3558.        continue
  3559.      fi
  3560.     ac_cv_prog_CC="cc"
  3561.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3562.     break 2
  3563.   fi
  3564. done
  3565.   done
  3566. IFS=$as_save_IFS
  3567.  
  3568. if test $ac_prog_rejected = yes; then
  3569.   # We found a bogon in the path, so make sure we never use it.
  3570.   set dummy $ac_cv_prog_CC
  3571.   shift
  3572.   if test $# != 0; then
  3573.     # We chose a different compiler from the bogus one.
  3574.     # However, it has the same basename, so the bogon will be chosen
  3575.     # first if we set CC to just the basename; use the full file name.
  3576.     shift
  3577.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3578.   fi
  3579. fi
  3580. fi
  3581. fi
  3582. CC=$ac_cv_prog_CC
  3583. if test -n "$CC"; then
  3584.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3585. $as_echo "$CC" >&6; }
  3586. else
  3587.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3588. $as_echo "no" >&6; }
  3589. fi
  3590.  
  3591.  
  3592. fi
  3593. if test -z "$CC"; then
  3594.   if test -n "$ac_tool_prefix"; then
  3595.   for ac_prog in cl.exe
  3596.   do
  3597.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3598. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3600. $as_echo_n "checking for $ac_word... " >&6; }
  3601. if ${ac_cv_prog_CC+:} false; then :
  3602.   $as_echo_n "(cached) " >&6
  3603. else
  3604.   if test -n "$CC"; then
  3605.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3606. else
  3607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3608. for as_dir in $PATH
  3609. do
  3610.   IFS=$as_save_IFS
  3611.   test -z "$as_dir" && as_dir=.
  3612.     for ac_exec_ext in '' $ac_executable_extensions; do
  3613.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3614.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3615.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3616.     break 2
  3617.   fi
  3618. done
  3619.   done
  3620. IFS=$as_save_IFS
  3621.  
  3622. fi
  3623. fi
  3624. CC=$ac_cv_prog_CC
  3625. if test -n "$CC"; then
  3626.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3627. $as_echo "$CC" >&6; }
  3628. else
  3629.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3630. $as_echo "no" >&6; }
  3631. fi
  3632.  
  3633.  
  3634.     test -n "$CC" && break
  3635.   done
  3636. fi
  3637. if test -z "$CC"; then
  3638.   ac_ct_CC=$CC
  3639.   for ac_prog in cl.exe
  3640. do
  3641.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3642. set dummy $ac_prog; ac_word=$2
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3644. $as_echo_n "checking for $ac_word... " >&6; }
  3645. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3646.   $as_echo_n "(cached) " >&6
  3647. else
  3648.   if test -n "$ac_ct_CC"; then
  3649.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3650. else
  3651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3652. for as_dir in $PATH
  3653. do
  3654.   IFS=$as_save_IFS
  3655.   test -z "$as_dir" && as_dir=.
  3656.     for ac_exec_ext in '' $ac_executable_extensions; do
  3657.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3658.     ac_cv_prog_ac_ct_CC="$ac_prog"
  3659.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3660.     break 2
  3661.   fi
  3662. done
  3663.   done
  3664. IFS=$as_save_IFS
  3665.  
  3666. fi
  3667. fi
  3668. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3669. if test -n "$ac_ct_CC"; then
  3670.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3671. $as_echo "$ac_ct_CC" >&6; }
  3672. else
  3673.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3674. $as_echo "no" >&6; }
  3675. fi
  3676.  
  3677.  
  3678.   test -n "$ac_ct_CC" && break
  3679. done
  3680.  
  3681.   if test "x$ac_ct_CC" = x; then
  3682.     CC=""
  3683.   else
  3684.     case $cross_compiling:$ac_tool_warned in
  3685. yes:)
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3688. ac_tool_warned=yes ;;
  3689. esac
  3690.     CC=$ac_ct_CC
  3691.   fi
  3692. fi
  3693.  
  3694. fi
  3695.  
  3696.  
  3697. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3698. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3699. as_fn_error $? "no acceptable C compiler found in \$PATH
  3700. See \`config.log' for more details" "$LINENO" 5; }
  3701.  
  3702. # Provide some information about the compiler.
  3703. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3704. set X $ac_compile
  3705. ac_compiler=$2
  3706. for ac_option in --version -v -V -qversion; do
  3707.   { { ac_try="$ac_compiler $ac_option >&5"
  3708. case "(($ac_try" in
  3709.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3710.   *) ac_try_echo=$ac_try;;
  3711. esac
  3712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3713. $as_echo "$ac_try_echo"; } >&5
  3714.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3715.   ac_status=$?
  3716.   if test -s conftest.err; then
  3717.     sed '10a\
  3718. ... rest of stderr output deleted ...
  3719.          10q' conftest.err >conftest.er1
  3720.     cat conftest.er1 >&5
  3721.   fi
  3722.   rm -f conftest.er1 conftest.err
  3723.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3724.   test $ac_status = 0; }
  3725. done
  3726.  
  3727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3728. /* end confdefs.h.  */
  3729.  
  3730. int
  3731. main ()
  3732. {
  3733.  
  3734.   ;
  3735.   return 0;
  3736. }
  3737. _ACEOF
  3738. ac_clean_files_save=$ac_clean_files
  3739. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3740. # Try to create an executable without -o first, disregard a.out.
  3741. # It will help us diagnose broken compilers, and finding out an intuition
  3742. # of exeext.
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3744. $as_echo_n "checking whether the C compiler works... " >&6; }
  3745. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3746.  
  3747. # The possible output files:
  3748. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3749.  
  3750. ac_rmfiles=
  3751. for ac_file in $ac_files
  3752. do
  3753.   case $ac_file in
  3754.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3755.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3756.   esac
  3757. done
  3758. rm -f $ac_rmfiles
  3759.  
  3760. if { { ac_try="$ac_link_default"
  3761. case "(($ac_try" in
  3762.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3763.   *) ac_try_echo=$ac_try;;
  3764. esac
  3765. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3766. $as_echo "$ac_try_echo"; } >&5
  3767.   (eval "$ac_link_default") 2>&5
  3768.   ac_status=$?
  3769.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3770.   test $ac_status = 0; }; then :
  3771.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3772. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3773. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3774. # so that the user can short-circuit this test for compilers unknown to
  3775. # Autoconf.
  3776. for ac_file in $ac_files ''
  3777. do
  3778.   test -f "$ac_file" || continue
  3779.   case $ac_file in
  3780.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3781.         ;;
  3782.     [ab].out )
  3783.         # We found the default executable, but exeext='' is most
  3784.         # certainly right.
  3785.         break;;
  3786.     *.* )
  3787.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3788.         then :; else
  3789.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3790.         fi
  3791.         # We set ac_cv_exeext here because the later test for it is not
  3792.         # safe: cross compilers may not add the suffix if given an `-o'
  3793.         # argument, so we may need to know it at that point already.
  3794.         # Even if this section looks crufty: it has the advantage of
  3795.         # actually working.
  3796.         break;;
  3797.     * )
  3798.         break;;
  3799.   esac
  3800. done
  3801. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3802.  
  3803. else
  3804.   ac_file=''
  3805. fi
  3806. if test -z "$ac_file"; then :
  3807.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3808. $as_echo "no" >&6; }
  3809. $as_echo "$as_me: failed program was:" >&5
  3810. sed 's/^/| /' conftest.$ac_ext >&5
  3811.  
  3812. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3813. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3814. as_fn_error 77 "C compiler cannot create executables
  3815. See \`config.log' for more details" "$LINENO" 5; }
  3816. else
  3817.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3818. $as_echo "yes" >&6; }
  3819. fi
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3821. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3823. $as_echo "$ac_file" >&6; }
  3824. ac_exeext=$ac_cv_exeext
  3825.  
  3826. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3827. ac_clean_files=$ac_clean_files_save
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3829. $as_echo_n "checking for suffix of executables... " >&6; }
  3830. if { { ac_try="$ac_link"
  3831. case "(($ac_try" in
  3832.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3833.   *) ac_try_echo=$ac_try;;
  3834. esac
  3835. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3836. $as_echo "$ac_try_echo"; } >&5
  3837.   (eval "$ac_link") 2>&5
  3838.   ac_status=$?
  3839.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3840.   test $ac_status = 0; }; then :
  3841.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3842. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3843. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3844. # `rm'.
  3845. for ac_file in conftest.exe conftest conftest.*; do
  3846.   test -f "$ac_file" || continue
  3847.   case $ac_file in
  3848.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3849.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3850.           break;;
  3851.     * ) break;;
  3852.   esac
  3853. done
  3854. else
  3855.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3856. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3857. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3858. See \`config.log' for more details" "$LINENO" 5; }
  3859. fi
  3860. rm -f conftest conftest$ac_cv_exeext
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3862. $as_echo "$ac_cv_exeext" >&6; }
  3863.  
  3864. rm -f conftest.$ac_ext
  3865. EXEEXT=$ac_cv_exeext
  3866. ac_exeext=$EXEEXT
  3867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3868. /* end confdefs.h.  */
  3869. #include <stdio.h>
  3870. int
  3871. main ()
  3872. {
  3873. FILE *f = fopen ("conftest.out", "w");
  3874.  return ferror (f) || fclose (f) != 0;
  3875.  
  3876.   ;
  3877.   return 0;
  3878. }
  3879. _ACEOF
  3880. ac_clean_files="$ac_clean_files conftest.out"
  3881. # Check that the compiler produces executables we can run.  If not, either
  3882. # the compiler is broken, or we cross compile.
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3884. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3885. if test "$cross_compiling" != yes; then
  3886.   { { ac_try="$ac_link"
  3887. case "(($ac_try" in
  3888.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3889.   *) ac_try_echo=$ac_try;;
  3890. esac
  3891. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3892. $as_echo "$ac_try_echo"; } >&5
  3893.   (eval "$ac_link") 2>&5
  3894.   ac_status=$?
  3895.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3896.   test $ac_status = 0; }
  3897.   if { ac_try='./conftest$ac_cv_exeext'
  3898.   { { case "(($ac_try" in
  3899.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3900.   *) ac_try_echo=$ac_try;;
  3901. esac
  3902. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3903. $as_echo "$ac_try_echo"; } >&5
  3904.   (eval "$ac_try") 2>&5
  3905.   ac_status=$?
  3906.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3907.   test $ac_status = 0; }; }; then
  3908.     cross_compiling=no
  3909.   else
  3910.     if test "$cross_compiling" = maybe; then
  3911.         cross_compiling=yes
  3912.     else
  3913.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3914. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3915. as_fn_error $? "cannot run C compiled programs.
  3916. If you meant to cross compile, use \`--host'.
  3917. See \`config.log' for more details" "$LINENO" 5; }
  3918.     fi
  3919.   fi
  3920. fi
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3922. $as_echo "$cross_compiling" >&6; }
  3923.  
  3924. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3925. ac_clean_files=$ac_clean_files_save
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3927. $as_echo_n "checking for suffix of object files... " >&6; }
  3928. if ${ac_cv_objext+:} false; then :
  3929.   $as_echo_n "(cached) " >&6
  3930. else
  3931.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3932. /* end confdefs.h.  */
  3933.  
  3934. int
  3935. main ()
  3936. {
  3937.  
  3938.   ;
  3939.   return 0;
  3940. }
  3941. _ACEOF
  3942. rm -f conftest.o conftest.obj
  3943. if { { ac_try="$ac_compile"
  3944. case "(($ac_try" in
  3945.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3946.   *) ac_try_echo=$ac_try;;
  3947. esac
  3948. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3949. $as_echo "$ac_try_echo"; } >&5
  3950.   (eval "$ac_compile") 2>&5
  3951.   ac_status=$?
  3952.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3953.   test $ac_status = 0; }; then :
  3954.   for ac_file in conftest.o conftest.obj conftest.*; do
  3955.   test -f "$ac_file" || continue;
  3956.   case $ac_file in
  3957.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3958.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3959.        break;;
  3960.   esac
  3961. done
  3962. else
  3963.   $as_echo "$as_me: failed program was:" >&5
  3964. sed 's/^/| /' conftest.$ac_ext >&5
  3965.  
  3966. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3967. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3968. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3969. See \`config.log' for more details" "$LINENO" 5; }
  3970. fi
  3971. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3974. $as_echo "$ac_cv_objext" >&6; }
  3975. OBJEXT=$ac_cv_objext
  3976. ac_objext=$OBJEXT
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3978. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3979. if ${ac_cv_c_compiler_gnu+:} false; then :
  3980.   $as_echo_n "(cached) " >&6
  3981. else
  3982.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3983. /* end confdefs.h.  */
  3984.  
  3985. int
  3986. main ()
  3987. {
  3988. #ifndef __GNUC__
  3989.        choke me
  3990. #endif
  3991.  
  3992.   ;
  3993.   return 0;
  3994. }
  3995. _ACEOF
  3996. if ac_fn_c_try_compile "$LINENO"; then :
  3997.   ac_compiler_gnu=yes
  3998. else
  3999.   ac_compiler_gnu=no
  4000. fi
  4001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4002. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4003.  
  4004. fi
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4006. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4007. if test $ac_compiler_gnu = yes; then
  4008.   GCC=yes
  4009. else
  4010.   GCC=
  4011. fi
  4012. ac_test_CFLAGS=${CFLAGS+set}
  4013. ac_save_CFLAGS=$CFLAGS
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4015. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4016. if ${ac_cv_prog_cc_g+:} false; then :
  4017.   $as_echo_n "(cached) " >&6
  4018. else
  4019.   ac_save_c_werror_flag=$ac_c_werror_flag
  4020.    ac_c_werror_flag=yes
  4021.    ac_cv_prog_cc_g=no
  4022.    CFLAGS="-g"
  4023.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4024. /* end confdefs.h.  */
  4025.  
  4026. int
  4027. main ()
  4028. {
  4029.  
  4030.   ;
  4031.   return 0;
  4032. }
  4033. _ACEOF
  4034. if ac_fn_c_try_compile "$LINENO"; then :
  4035.   ac_cv_prog_cc_g=yes
  4036. else
  4037.   CFLAGS=""
  4038.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4039. /* end confdefs.h.  */
  4040.  
  4041. int
  4042. main ()
  4043. {
  4044.  
  4045.   ;
  4046.   return 0;
  4047. }
  4048. _ACEOF
  4049. if ac_fn_c_try_compile "$LINENO"; then :
  4050.  
  4051. else
  4052.   ac_c_werror_flag=$ac_save_c_werror_flag
  4053.          CFLAGS="-g"
  4054.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4055. /* end confdefs.h.  */
  4056.  
  4057. int
  4058. main ()
  4059. {
  4060.  
  4061.   ;
  4062.   return 0;
  4063. }
  4064. _ACEOF
  4065. if ac_fn_c_try_compile "$LINENO"; then :
  4066.   ac_cv_prog_cc_g=yes
  4067. fi
  4068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4069. fi
  4070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4071. fi
  4072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4073.    ac_c_werror_flag=$ac_save_c_werror_flag
  4074. fi
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4076. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4077. if test "$ac_test_CFLAGS" = set; then
  4078.   CFLAGS=$ac_save_CFLAGS
  4079. elif test $ac_cv_prog_cc_g = yes; then
  4080.   if test "$GCC" = yes; then
  4081.     CFLAGS="-g -O2"
  4082.   else
  4083.     CFLAGS="-g"
  4084.   fi
  4085. else
  4086.   if test "$GCC" = yes; then
  4087.     CFLAGS="-O2"
  4088.   else
  4089.     CFLAGS=
  4090.   fi
  4091. fi
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4093. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4094. if ${ac_cv_prog_cc_c89+:} false; then :
  4095.   $as_echo_n "(cached) " >&6
  4096. else
  4097.   ac_cv_prog_cc_c89=no
  4098. ac_save_CC=$CC
  4099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4100. /* end confdefs.h.  */
  4101. #include <stdarg.h>
  4102. #include <stdio.h>
  4103. struct stat;
  4104. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4105. struct buf { int x; };
  4106. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4107. static char *e (p, i)
  4108.      char **p;
  4109.      int i;
  4110. {
  4111.   return p[i];
  4112. }
  4113. static char *f (char * (*g) (char **, int), char **p, ...)
  4114. {
  4115.   char *s;
  4116.   va_list v;
  4117.   va_start (v,p);
  4118.   s = g (p, va_arg (v,int));
  4119.   va_end (v);
  4120.   return s;
  4121. }
  4122.  
  4123. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4124.    function prototypes and stuff, but not '\xHH' hex character constants.
  4125.    These don't provoke an error unfortunately, instead are silently treated
  4126.    as 'x'.  The following induces an error, until -std is added to get
  4127.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4128.    array size at least.  It's necessary to write '\x00'==0 to get something
  4129.    that's true only with -std.  */
  4130. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4131.  
  4132. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4133.    inside strings and character constants.  */
  4134. #define FOO(x) 'x'
  4135. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4136.  
  4137. int test (int i, double x);
  4138. struct s1 {int (*f) (int a);};
  4139. struct s2 {int (*f) (double a);};
  4140. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4141. int argc;
  4142. char **argv;
  4143. int
  4144. main ()
  4145. {
  4146. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4147.   ;
  4148.   return 0;
  4149. }
  4150. _ACEOF
  4151. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4152.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4153. do
  4154.   CC="$ac_save_CC $ac_arg"
  4155.   if ac_fn_c_try_compile "$LINENO"; then :
  4156.   ac_cv_prog_cc_c89=$ac_arg
  4157. fi
  4158. rm -f core conftest.err conftest.$ac_objext
  4159.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4160. done
  4161. rm -f conftest.$ac_ext
  4162. CC=$ac_save_CC
  4163.  
  4164. fi
  4165. # AC_CACHE_VAL
  4166. case "x$ac_cv_prog_cc_c89" in
  4167.   x)
  4168.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4169. $as_echo "none needed" >&6; } ;;
  4170.   xno)
  4171.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4172. $as_echo "unsupported" >&6; } ;;
  4173.   *)
  4174.     CC="$CC $ac_cv_prog_cc_c89"
  4175.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4176. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4177. esac
  4178. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4179.  
  4180. fi
  4181.  
  4182. ac_ext=c
  4183. ac_cpp='$CPP $CPPFLAGS'
  4184. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4185. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4186. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4187.  
  4188. ac_ext=c
  4189. ac_cpp='$CPP $CPPFLAGS'
  4190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4194. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4195. if ${am_cv_prog_cc_c_o+:} false; then :
  4196.   $as_echo_n "(cached) " >&6
  4197. else
  4198.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4199. /* end confdefs.h.  */
  4200.  
  4201. int
  4202. main ()
  4203. {
  4204.  
  4205.   ;
  4206.   return 0;
  4207. }
  4208. _ACEOF
  4209.   # Make sure it works both with $CC and with simple cc.
  4210.   # Following AC_PROG_CC_C_O, we do the test twice because some
  4211.   # compilers refuse to overwrite an existing .o file with -o,
  4212.   # though they will create one.
  4213.   am_cv_prog_cc_c_o=yes
  4214.   for am_i in 1 2; do
  4215.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4216.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4217.    ac_status=$?
  4218.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4219.    (exit $ac_status); } \
  4220.          && test -f conftest2.$ac_objext; then
  4221.       : OK
  4222.     else
  4223.       am_cv_prog_cc_c_o=no
  4224.       break
  4225.     fi
  4226.   done
  4227.   rm -f core conftest*
  4228.   unset am_i
  4229. fi
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4231. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4232. if test "$am_cv_prog_cc_c_o" != yes; then
  4233.    # Losing compiler, so override with the script.
  4234.    # FIXME: It is wrong to rewrite CC.
  4235.    # But if we don't then we get into trouble of one sort or another.
  4236.    # A longer-term fix would be to have automake use am__CC in this case,
  4237.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4238.    CC="$am_aux_dir/compile $CC"
  4239. fi
  4240. ac_ext=c
  4241. ac_cpp='$CPP $CPPFLAGS'
  4242. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4243. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4244. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4245.  
  4246.  
  4247. depcc="$CC"   am_compiler_list=
  4248.  
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4250. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4251. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4252.   $as_echo_n "(cached) " >&6
  4253. else
  4254.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4255.   # We make a subdir and do the tests there.  Otherwise we can end up
  4256.   # making bogus files that we don't know about and never remove.  For
  4257.   # instance it was reported that on HP-UX the gcc test will end up
  4258.   # making a dummy file named 'D' -- because '-MD' means "put the output
  4259.   # in D".
  4260.   rm -rf conftest.dir
  4261.   mkdir conftest.dir
  4262.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4263.   # using a relative directory.
  4264.   cp "$am_depcomp" conftest.dir
  4265.   cd conftest.dir
  4266.   # We will build objects and dependencies in a subdirectory because
  4267.   # it helps to detect inapplicable dependency modes.  For instance
  4268.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4269.   # side effect of compilation, but ICC will put the dependencies in
  4270.   # the current directory while Tru64 will put them in the object
  4271.   # directory.
  4272.   mkdir sub
  4273.  
  4274.   am_cv_CC_dependencies_compiler_type=none
  4275.   if test "$am_compiler_list" = ""; then
  4276.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4277.   fi
  4278.   am__universal=false
  4279.   case " $depcc " in #(
  4280.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4281.      esac
  4282.  
  4283.   for depmode in $am_compiler_list; do
  4284.     # Setup a source with many dependencies, because some compilers
  4285.     # like to wrap large dependency lists on column 80 (with \), and
  4286.     # we should not choose a depcomp mode which is confused by this.
  4287.     #
  4288.     # We need to recreate these files for each test, as the compiler may
  4289.     # overwrite some of them when testing with obscure command lines.
  4290.     # This happens at least with the AIX C compiler.
  4291.     : > sub/conftest.c
  4292.     for i in 1 2 3 4 5 6; do
  4293.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4294.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4295.       # Solaris 10 /bin/sh.
  4296.       echo '/* dummy */' > sub/conftst$i.h
  4297.     done
  4298.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4299.  
  4300.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4301.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4302.     # handle '-M -o', and we need to detect this.  Also, some Intel
  4303.     # versions had trouble with output in subdirs.
  4304.     am__obj=sub/conftest.${OBJEXT-o}
  4305.     am__minus_obj="-o $am__obj"
  4306.     case $depmode in
  4307.     gcc)
  4308.       # This depmode causes a compiler race in universal mode.
  4309.       test "$am__universal" = false || continue
  4310.       ;;
  4311.     nosideeffect)
  4312.       # After this tag, mechanisms are not by side-effect, so they'll
  4313.       # only be used when explicitly requested.
  4314.       if test "x$enable_dependency_tracking" = xyes; then
  4315.         continue
  4316.       else
  4317.         break
  4318.       fi
  4319.       ;;
  4320.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4321.       # This compiler won't grok '-c -o', but also, the minuso test has
  4322.       # not run yet.  These depmodes are late enough in the game, and
  4323.       # so weak that their functioning should not be impacted.
  4324.       am__obj=conftest.${OBJEXT-o}
  4325.       am__minus_obj=
  4326.       ;;
  4327.     none) break ;;
  4328.     esac
  4329.     if depmode=$depmode \
  4330.        source=sub/conftest.c object=$am__obj \
  4331.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4332.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4333.          >/dev/null 2>conftest.err &&
  4334.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4335.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4336.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4337.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4338.       # icc doesn't choke on unknown options, it will just issue warnings
  4339.       # or remarks (even with -Werror).  So we grep stderr for any message
  4340.       # that says an option was ignored or not supported.
  4341.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4342.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4343.       # The diagnosis changed in icc 8.0:
  4344.       #   icc: Command line remark: option '-MP' not supported
  4345.       if (grep 'ignoring option' conftest.err ||
  4346.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4347.         am_cv_CC_dependencies_compiler_type=$depmode
  4348.         break
  4349.       fi
  4350.     fi
  4351.   done
  4352.  
  4353.   cd ..
  4354.   rm -rf conftest.dir
  4355. else
  4356.   am_cv_CC_dependencies_compiler_type=none
  4357. fi
  4358.  
  4359. fi
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4361. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4362. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4363.  
  4364.  if
  4365.   test "x$enable_dependency_tracking" != xno \
  4366.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4367.   am__fastdepCC_TRUE=
  4368.   am__fastdepCC_FALSE='#'
  4369. else
  4370.   am__fastdepCC_TRUE='#'
  4371.   am__fastdepCC_FALSE=
  4372. fi
  4373.  
  4374.  
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4376. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4377. if ${ac_cv_path_SED+:} false; then :
  4378.   $as_echo_n "(cached) " >&6
  4379. else
  4380.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4381.      for ac_i in 1 2 3 4 5 6 7; do
  4382.        ac_script="$ac_script$as_nl$ac_script"
  4383.      done
  4384.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4385.      { ac_script=; unset ac_script;}
  4386.      if test -z "$SED"; then
  4387.   ac_path_SED_found=false
  4388.   # Loop through the user's path and test for each of PROGNAME-LIST
  4389.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4390. for as_dir in $PATH
  4391. do
  4392.   IFS=$as_save_IFS
  4393.   test -z "$as_dir" && as_dir=.
  4394.     for ac_prog in sed gsed; do
  4395.     for ac_exec_ext in '' $ac_executable_extensions; do
  4396.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4397.       as_fn_executable_p "$ac_path_SED" || continue
  4398. # Check for GNU ac_path_SED and select it if it is found.
  4399.   # Check for GNU $ac_path_SED
  4400. case `"$ac_path_SED" --version 2>&1` in
  4401. *GNU*)
  4402.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4403. *)
  4404.   ac_count=0
  4405.   $as_echo_n 0123456789 >"conftest.in"
  4406.   while :
  4407.   do
  4408.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4409.     mv "conftest.tmp" "conftest.in"
  4410.     cp "conftest.in" "conftest.nl"
  4411.     $as_echo '' >> "conftest.nl"
  4412.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4413.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4414.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4415.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  4416.       # Best one so far, save it but keep looking for a better one
  4417.       ac_cv_path_SED="$ac_path_SED"
  4418.       ac_path_SED_max=$ac_count
  4419.     fi
  4420.     # 10*(2^10) chars as input seems more than enough
  4421.     test $ac_count -gt 10 && break
  4422.   done
  4423.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4424. esac
  4425.  
  4426.       $ac_path_SED_found && break 3
  4427.     done
  4428.   done
  4429.   done
  4430. IFS=$as_save_IFS
  4431.   if test -z "$ac_cv_path_SED"; then
  4432.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4433.   fi
  4434. else
  4435.   ac_cv_path_SED=$SED
  4436. fi
  4437.  
  4438. fi
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4440. $as_echo "$ac_cv_path_SED" >&6; }
  4441.  SED="$ac_cv_path_SED"
  4442.   rm -f conftest.sed
  4443.  
  4444. test -z "$SED" && SED=sed
  4445. Xsed="$SED -e 1s/^X//"
  4446.  
  4447.  
  4448.  
  4449.  
  4450.  
  4451.  
  4452.  
  4453.  
  4454.  
  4455.  
  4456.  
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4458. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4459. if ${ac_cv_path_GREP+:} false; then :
  4460.   $as_echo_n "(cached) " >&6
  4461. else
  4462.   if test -z "$GREP"; then
  4463.   ac_path_GREP_found=false
  4464.   # Loop through the user's path and test for each of PROGNAME-LIST
  4465.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4466. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4467. do
  4468.   IFS=$as_save_IFS
  4469.   test -z "$as_dir" && as_dir=.
  4470.     for ac_prog in grep ggrep; do
  4471.     for ac_exec_ext in '' $ac_executable_extensions; do
  4472.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4473.       as_fn_executable_p "$ac_path_GREP" || continue
  4474. # Check for GNU ac_path_GREP and select it if it is found.
  4475.   # Check for GNU $ac_path_GREP
  4476. case `"$ac_path_GREP" --version 2>&1` in
  4477. *GNU*)
  4478.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4479. *)
  4480.   ac_count=0
  4481.   $as_echo_n 0123456789 >"conftest.in"
  4482.   while :
  4483.   do
  4484.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4485.     mv "conftest.tmp" "conftest.in"
  4486.     cp "conftest.in" "conftest.nl"
  4487.     $as_echo 'GREP' >> "conftest.nl"
  4488.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4489.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4490.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4491.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4492.       # Best one so far, save it but keep looking for a better one
  4493.       ac_cv_path_GREP="$ac_path_GREP"
  4494.       ac_path_GREP_max=$ac_count
  4495.     fi
  4496.     # 10*(2^10) chars as input seems more than enough
  4497.     test $ac_count -gt 10 && break
  4498.   done
  4499.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4500. esac
  4501.  
  4502.       $ac_path_GREP_found && break 3
  4503.     done
  4504.   done
  4505.   done
  4506. IFS=$as_save_IFS
  4507.   if test -z "$ac_cv_path_GREP"; then
  4508.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4509.   fi
  4510. else
  4511.   ac_cv_path_GREP=$GREP
  4512. fi
  4513.  
  4514. fi
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4516. $as_echo "$ac_cv_path_GREP" >&6; }
  4517.  GREP="$ac_cv_path_GREP"
  4518.  
  4519.  
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4521. $as_echo_n "checking for egrep... " >&6; }
  4522. if ${ac_cv_path_EGREP+:} false; then :
  4523.   $as_echo_n "(cached) " >&6
  4524. else
  4525.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4526.    then ac_cv_path_EGREP="$GREP -E"
  4527.    else
  4528.      if test -z "$EGREP"; then
  4529.   ac_path_EGREP_found=false
  4530.   # Loop through the user's path and test for each of PROGNAME-LIST
  4531.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4532. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4533. do
  4534.   IFS=$as_save_IFS
  4535.   test -z "$as_dir" && as_dir=.
  4536.     for ac_prog in egrep; do
  4537.     for ac_exec_ext in '' $ac_executable_extensions; do
  4538.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4539.       as_fn_executable_p "$ac_path_EGREP" || continue
  4540. # Check for GNU ac_path_EGREP and select it if it is found.
  4541.   # Check for GNU $ac_path_EGREP
  4542. case `"$ac_path_EGREP" --version 2>&1` in
  4543. *GNU*)
  4544.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4545. *)
  4546.   ac_count=0
  4547.   $as_echo_n 0123456789 >"conftest.in"
  4548.   while :
  4549.   do
  4550.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4551.     mv "conftest.tmp" "conftest.in"
  4552.     cp "conftest.in" "conftest.nl"
  4553.     $as_echo 'EGREP' >> "conftest.nl"
  4554.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4555.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4556.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4557.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4558.       # Best one so far, save it but keep looking for a better one
  4559.       ac_cv_path_EGREP="$ac_path_EGREP"
  4560.       ac_path_EGREP_max=$ac_count
  4561.     fi
  4562.     # 10*(2^10) chars as input seems more than enough
  4563.     test $ac_count -gt 10 && break
  4564.   done
  4565.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4566. esac
  4567.  
  4568.       $ac_path_EGREP_found && break 3
  4569.     done
  4570.   done
  4571.   done
  4572. IFS=$as_save_IFS
  4573.   if test -z "$ac_cv_path_EGREP"; then
  4574.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4575.   fi
  4576. else
  4577.   ac_cv_path_EGREP=$EGREP
  4578. fi
  4579.  
  4580.    fi
  4581. fi
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4583. $as_echo "$ac_cv_path_EGREP" >&6; }
  4584.  EGREP="$ac_cv_path_EGREP"
  4585.  
  4586.  
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4588. $as_echo_n "checking for fgrep... " >&6; }
  4589. if ${ac_cv_path_FGREP+:} false; then :
  4590.   $as_echo_n "(cached) " >&6
  4591. else
  4592.   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4593.    then ac_cv_path_FGREP="$GREP -F"
  4594.    else
  4595.      if test -z "$FGREP"; then
  4596.   ac_path_FGREP_found=false
  4597.   # Loop through the user's path and test for each of PROGNAME-LIST
  4598.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4599. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4600. do
  4601.   IFS=$as_save_IFS
  4602.   test -z "$as_dir" && as_dir=.
  4603.     for ac_prog in fgrep; do
  4604.     for ac_exec_ext in '' $ac_executable_extensions; do
  4605.       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4606.       as_fn_executable_p "$ac_path_FGREP" || continue
  4607. # Check for GNU ac_path_FGREP and select it if it is found.
  4608.   # Check for GNU $ac_path_FGREP
  4609. case `"$ac_path_FGREP" --version 2>&1` in
  4610. *GNU*)
  4611.   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4612. *)
  4613.   ac_count=0
  4614.   $as_echo_n 0123456789 >"conftest.in"
  4615.   while :
  4616.   do
  4617.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4618.     mv "conftest.tmp" "conftest.in"
  4619.     cp "conftest.in" "conftest.nl"
  4620.     $as_echo 'FGREP' >> "conftest.nl"
  4621.     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4622.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4623.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4624.     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4625.       # Best one so far, save it but keep looking for a better one
  4626.       ac_cv_path_FGREP="$ac_path_FGREP"
  4627.       ac_path_FGREP_max=$ac_count
  4628.     fi
  4629.     # 10*(2^10) chars as input seems more than enough
  4630.     test $ac_count -gt 10 && break
  4631.   done
  4632.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4633. esac
  4634.  
  4635.       $ac_path_FGREP_found && break 3
  4636.     done
  4637.   done
  4638.   done
  4639. IFS=$as_save_IFS
  4640.   if test -z "$ac_cv_path_FGREP"; then
  4641.     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4642.   fi
  4643. else
  4644.   ac_cv_path_FGREP=$FGREP
  4645. fi
  4646.  
  4647.    fi
  4648. fi
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4650. $as_echo "$ac_cv_path_FGREP" >&6; }
  4651.  FGREP="$ac_cv_path_FGREP"
  4652.  
  4653.  
  4654. test -z "$GREP" && GREP=grep
  4655.  
  4656.  
  4657.  
  4658.  
  4659.  
  4660.  
  4661.  
  4662.  
  4663.  
  4664.  
  4665.  
  4666.  
  4667.  
  4668.  
  4669.  
  4670.  
  4671.  
  4672.  
  4673.  
  4674. # Check whether --with-gnu-ld was given.
  4675. if test "${with_gnu_ld+set}" = set; then :
  4676.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4677. else
  4678.   with_gnu_ld=no
  4679. fi
  4680.  
  4681. ac_prog=ld
  4682. if test "$GCC" = yes; then
  4683.   # Check if gcc -print-prog-name=ld gives a path.
  4684.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4685. $as_echo_n "checking for ld used by $CC... " >&6; }
  4686.   case $host in
  4687.   *-*-mingw*)
  4688.     # gcc leaves a trailing carriage return which upsets mingw
  4689.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4690.   *)
  4691.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4692.   esac
  4693.   case $ac_prog in
  4694.     # Accept absolute paths.
  4695.     [\\/]* | ?:[\\/]*)
  4696.       re_direlt='/[^/][^/]*/\.\./'
  4697.       # Canonicalize the pathname of ld
  4698.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4699.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4700.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4701.       done
  4702.       test -z "$LD" && LD="$ac_prog"
  4703.       ;;
  4704.   "")
  4705.     # If it fails, then pretend we aren't using GCC.
  4706.     ac_prog=ld
  4707.     ;;
  4708.   *)
  4709.     # If it is relative, then search for the first ld in PATH.
  4710.     with_gnu_ld=unknown
  4711.     ;;
  4712.   esac
  4713. elif test "$with_gnu_ld" = yes; then
  4714.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4715. $as_echo_n "checking for GNU ld... " >&6; }
  4716. else
  4717.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4718. $as_echo_n "checking for non-GNU ld... " >&6; }
  4719. fi
  4720. if ${lt_cv_path_LD+:} false; then :
  4721.   $as_echo_n "(cached) " >&6
  4722. else
  4723.   if test -z "$LD"; then
  4724.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4725.   for ac_dir in $PATH; do
  4726.     IFS="$lt_save_ifs"
  4727.     test -z "$ac_dir" && ac_dir=.
  4728.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4729.       lt_cv_path_LD="$ac_dir/$ac_prog"
  4730.       # Check to see if the program is GNU ld.  I'd rather use --version,
  4731.       # but apparently some variants of GNU ld only accept -v.
  4732.       # Break only if it was the GNU/non-GNU ld that we prefer.
  4733.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4734.       *GNU* | *'with BFD'*)
  4735.         test "$with_gnu_ld" != no && break
  4736.         ;;
  4737.       *)
  4738.         test "$with_gnu_ld" != yes && break
  4739.         ;;
  4740.       esac
  4741.     fi
  4742.   done
  4743.   IFS="$lt_save_ifs"
  4744. else
  4745.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4746. fi
  4747. fi
  4748.  
  4749. LD="$lt_cv_path_LD"
  4750. if test -n "$LD"; then
  4751.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4752. $as_echo "$LD" >&6; }
  4753. else
  4754.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4755. $as_echo "no" >&6; }
  4756. fi
  4757. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4759. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4760. if ${lt_cv_prog_gnu_ld+:} false; then :
  4761.   $as_echo_n "(cached) " >&6
  4762. else
  4763.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4764. case `$LD -v 2>&1 </dev/null` in
  4765. *GNU* | *'with BFD'*)
  4766.   lt_cv_prog_gnu_ld=yes
  4767.   ;;
  4768. *)
  4769.   lt_cv_prog_gnu_ld=no
  4770.   ;;
  4771. esac
  4772. fi
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4774. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4775. with_gnu_ld=$lt_cv_prog_gnu_ld
  4776.  
  4777.  
  4778.  
  4779.  
  4780.  
  4781.  
  4782.  
  4783.  
  4784.  
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4786. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4787. if ${lt_cv_path_NM+:} false; then :
  4788.   $as_echo_n "(cached) " >&6
  4789. else
  4790.   if test -n "$NM"; then
  4791.   # Let the user override the test.
  4792.   lt_cv_path_NM="$NM"
  4793. else
  4794.   lt_nm_to_check="${ac_tool_prefix}nm"
  4795.   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4796.     lt_nm_to_check="$lt_nm_to_check nm"
  4797.   fi
  4798.   for lt_tmp_nm in $lt_nm_to_check; do
  4799.     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4800.     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4801.       IFS="$lt_save_ifs"
  4802.       test -z "$ac_dir" && ac_dir=.
  4803.       tmp_nm="$ac_dir/$lt_tmp_nm"
  4804.       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4805.         # Check to see if the nm accepts a BSD-compat flag.
  4806.         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4807.         #   nm: unknown option "B" ignored
  4808.         # Tru64's nm complains that /dev/null is an invalid object file
  4809.         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4810.         */dev/null* | *'Invalid file or object type'*)
  4811.           lt_cv_path_NM="$tmp_nm -B"
  4812.           break
  4813.           ;;
  4814.         *)
  4815.           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4816.           */dev/null*)
  4817.             lt_cv_path_NM="$tmp_nm -p"
  4818.             break
  4819.             ;;
  4820.           *)
  4821.             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4822.             continue # so that we can try to find one that supports BSD flags
  4823.             ;;
  4824.           esac
  4825.           ;;
  4826.         esac
  4827.       fi
  4828.     done
  4829.     IFS="$lt_save_ifs"
  4830.   done
  4831.   : ${lt_cv_path_NM=no}
  4832. fi
  4833. fi
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4835. $as_echo "$lt_cv_path_NM" >&6; }
  4836. if test "$lt_cv_path_NM" != "no"; then
  4837.   NM="$lt_cv_path_NM"
  4838. else
  4839.   # Didn't find any BSD compatible name lister, look for dumpbin.
  4840.   if test -n "$DUMPBIN"; then :
  4841.     # Let the user override the test.
  4842.   else
  4843.     if test -n "$ac_tool_prefix"; then
  4844.   for ac_prog in dumpbin "link -dump"
  4845.   do
  4846.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4847. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4849. $as_echo_n "checking for $ac_word... " >&6; }
  4850. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4851.   $as_echo_n "(cached) " >&6
  4852. else
  4853.   if test -n "$DUMPBIN"; then
  4854.   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4855. else
  4856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4857. for as_dir in $PATH
  4858. do
  4859.   IFS=$as_save_IFS
  4860.   test -z "$as_dir" && as_dir=.
  4861.     for ac_exec_ext in '' $ac_executable_extensions; do
  4862.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4863.     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4864.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4865.     break 2
  4866.   fi
  4867. done
  4868.   done
  4869. IFS=$as_save_IFS
  4870.  
  4871. fi
  4872. fi
  4873. DUMPBIN=$ac_cv_prog_DUMPBIN
  4874. if test -n "$DUMPBIN"; then
  4875.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4876. $as_echo "$DUMPBIN" >&6; }
  4877. else
  4878.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4879. $as_echo "no" >&6; }
  4880. fi
  4881.  
  4882.  
  4883.     test -n "$DUMPBIN" && break
  4884.   done
  4885. fi
  4886. if test -z "$DUMPBIN"; then
  4887.   ac_ct_DUMPBIN=$DUMPBIN
  4888.   for ac_prog in dumpbin "link -dump"
  4889. do
  4890.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4891. set dummy $ac_prog; ac_word=$2
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4893. $as_echo_n "checking for $ac_word... " >&6; }
  4894. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4895.   $as_echo_n "(cached) " >&6
  4896. else
  4897.   if test -n "$ac_ct_DUMPBIN"; then
  4898.   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4899. else
  4900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4901. for as_dir in $PATH
  4902. do
  4903.   IFS=$as_save_IFS
  4904.   test -z "$as_dir" && as_dir=.
  4905.     for ac_exec_ext in '' $ac_executable_extensions; do
  4906.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4907.     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4908.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4909.     break 2
  4910.   fi
  4911. done
  4912.   done
  4913. IFS=$as_save_IFS
  4914.  
  4915. fi
  4916. fi
  4917. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4918. if test -n "$ac_ct_DUMPBIN"; then
  4919.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4920. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4921. else
  4922.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4923. $as_echo "no" >&6; }
  4924. fi
  4925.  
  4926.  
  4927.   test -n "$ac_ct_DUMPBIN" && break
  4928. done
  4929.  
  4930.   if test "x$ac_ct_DUMPBIN" = x; then
  4931.     DUMPBIN=":"
  4932.   else
  4933.     case $cross_compiling:$ac_tool_warned in
  4934. yes:)
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4937. ac_tool_warned=yes ;;
  4938. esac
  4939.     DUMPBIN=$ac_ct_DUMPBIN
  4940.   fi
  4941. fi
  4942.  
  4943.     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4944.     *COFF*)
  4945.       DUMPBIN="$DUMPBIN -symbols"
  4946.       ;;
  4947.     *)
  4948.       DUMPBIN=:
  4949.       ;;
  4950.     esac
  4951.   fi
  4952.  
  4953.   if test "$DUMPBIN" != ":"; then
  4954.     NM="$DUMPBIN"
  4955.   fi
  4956. fi
  4957. test -z "$NM" && NM=nm
  4958.  
  4959.  
  4960.  
  4961.  
  4962.  
  4963.  
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4965. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4966. if ${lt_cv_nm_interface+:} false; then :
  4967.   $as_echo_n "(cached) " >&6
  4968. else
  4969.   lt_cv_nm_interface="BSD nm"
  4970.   echo "int some_variable = 0;" > conftest.$ac_ext
  4971.   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4972.   (eval "$ac_compile" 2>conftest.err)
  4973.   cat conftest.err >&5
  4974.   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4975.   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4976.   cat conftest.err >&5
  4977.   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4978.   cat conftest.out >&5
  4979.   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4980.     lt_cv_nm_interface="MS dumpbin"
  4981.   fi
  4982.   rm -f conftest*
  4983. fi
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4985. $as_echo "$lt_cv_nm_interface" >&6; }
  4986.  
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4988. $as_echo_n "checking whether ln -s works... " >&6; }
  4989. LN_S=$as_ln_s
  4990. if test "$LN_S" = "ln -s"; then
  4991.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4992. $as_echo "yes" >&6; }
  4993. else
  4994.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4995. $as_echo "no, using $LN_S" >&6; }
  4996. fi
  4997.  
  4998. # find the maximum length of command line arguments
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5000. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5001. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5002.   $as_echo_n "(cached) " >&6
  5003. else
  5004.     i=0
  5005.   teststring="ABCD"
  5006.  
  5007.   case $build_os in
  5008.   msdosdjgpp*)
  5009.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  5010.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  5011.     # during glob expansion).  Even if it were fixed, the result of this
  5012.     # check would be larger than it should be.
  5013.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  5014.     ;;
  5015.  
  5016.   gnu*)
  5017.     # Under GNU Hurd, this test is not required because there is
  5018.     # no limit to the length of command line arguments.
  5019.     # Libtool will interpret -1 as no limit whatsoever
  5020.     lt_cv_sys_max_cmd_len=-1;
  5021.     ;;
  5022.  
  5023.   cygwin* | mingw* | cegcc*)
  5024.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  5025.     # about 5 minutes as the teststring grows exponentially.
  5026.     # Worse, since 9x/ME are not pre-emptively multitasking,
  5027.     # you end up with a "frozen" computer, even though with patience
  5028.     # the test eventually succeeds (with a max line length of 256k).
  5029.     # Instead, let's just punt: use the minimum linelength reported by
  5030.     # all of the supported platforms: 8192 (on NT/2K/XP).
  5031.     lt_cv_sys_max_cmd_len=8192;
  5032.     ;;
  5033.  
  5034.   mint*)
  5035.     # On MiNT this can take a long time and run out of memory.
  5036.     lt_cv_sys_max_cmd_len=8192;
  5037.     ;;
  5038.  
  5039.   amigaos*)
  5040.     # On AmigaOS with pdksh, this test takes hours, literally.
  5041.     # So we just punt and use a minimum line length of 8192.
  5042.     lt_cv_sys_max_cmd_len=8192;
  5043.     ;;
  5044.  
  5045.   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5046.     # This has been around since 386BSD, at least.  Likely further.
  5047.     if test -x /sbin/sysctl; then
  5048.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5049.     elif test -x /usr/sbin/sysctl; then
  5050.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5051.     else
  5052.       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
  5053.     fi
  5054.     # And add a safety zone
  5055.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5056.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5057.     ;;
  5058.  
  5059.   interix*)
  5060.     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5061.     lt_cv_sys_max_cmd_len=196608
  5062.     ;;
  5063.  
  5064.   os2*)
  5065.     # The test takes a long time on OS/2.
  5066.     lt_cv_sys_max_cmd_len=8192
  5067.     ;;
  5068.  
  5069.   osf*)
  5070.     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5071.     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5072.     # nice to cause kernel panics so lets avoid the loop below.
  5073.     # First set a reasonable default.
  5074.     lt_cv_sys_max_cmd_len=16384
  5075.     #
  5076.     if test -x /sbin/sysconfig; then
  5077.       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5078.         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5079.       esac
  5080.     fi
  5081.     ;;
  5082.   sco3.2v5*)
  5083.     lt_cv_sys_max_cmd_len=102400
  5084.     ;;
  5085.   sysv5* | sco5v6* | sysv4.2uw2*)
  5086.     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5087.     if test -n "$kargmax"; then
  5088.       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
  5089.     else
  5090.       lt_cv_sys_max_cmd_len=32768
  5091.     fi
  5092.     ;;
  5093.   *)
  5094.     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5095.     if test -n "$lt_cv_sys_max_cmd_len" && \
  5096.         test undefined != "$lt_cv_sys_max_cmd_len"; then
  5097.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5098.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5099.     else
  5100.       # Make teststring a little bigger before we do anything with it.
  5101.       # a 1K string should be a reasonable start.
  5102.       for i in 1 2 3 4 5 6 7 8 ; do
  5103.         teststring=$teststring$teststring
  5104.       done
  5105.       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5106.       # If test is not a shell built-in, we'll probably end up computing a
  5107.       # maximum length that is only half of the actual maximum length, but
  5108.       # we can't tell.
  5109.       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5110.                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5111.               test $i != 17 # 1/2 MB should be enough
  5112.       do
  5113.         i=`expr $i + 1`
  5114.         teststring=$teststring$teststring
  5115.       done
  5116.       # Only check the string length outside the loop.
  5117.       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5118.       teststring=
  5119.       # Add a significant safety factor because C++ compilers can tack on
  5120.       # massive amounts of additional arguments before passing them to the
  5121.       # linker.  It appears as though 1/2 is a usable value.
  5122.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5123.     fi
  5124.     ;;
  5125.   esac
  5126.  
  5127. fi
  5128.  
  5129. if test -n $lt_cv_sys_max_cmd_len ; then
  5130.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5131. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5132. else
  5133.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5134. $as_echo "none" >&6; }
  5135. fi
  5136. max_cmd_len=$lt_cv_sys_max_cmd_len
  5137.  
  5138.  
  5139.  
  5140.  
  5141.  
  5142.  
  5143. : ${CP="cp -f"}
  5144. : ${MV="mv -f"}
  5145. : ${RM="rm -f"}
  5146.  
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5148. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5149. # Try some XSI features
  5150. xsi_shell=no
  5151. ( _lt_dummy="a/b/c"
  5152.   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5153.       = c,a/b,b/c, \
  5154.     && eval 'test $(( 1 + 1 )) -eq 2 \
  5155.     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5156.   && xsi_shell=yes
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5158. $as_echo "$xsi_shell" >&6; }
  5159.  
  5160.  
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5162. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5163. lt_shell_append=no
  5164. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5165.     >/dev/null 2>&1 \
  5166.   && lt_shell_append=yes
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5168. $as_echo "$lt_shell_append" >&6; }
  5169.  
  5170.  
  5171. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5172.   lt_unset=unset
  5173. else
  5174.   lt_unset=false
  5175. fi
  5176.  
  5177.  
  5178.  
  5179.  
  5180.  
  5181. # test EBCDIC or ASCII
  5182. case `echo X|tr X '\101'` in
  5183.  A) # ASCII based system
  5184.     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5185.   lt_SP2NL='tr \040 \012'
  5186.   lt_NL2SP='tr \015\012 \040\040'
  5187.   ;;
  5188.  *) # EBCDIC based system
  5189.   lt_SP2NL='tr \100 \n'
  5190.   lt_NL2SP='tr \r\n \100\100'
  5191.   ;;
  5192. esac
  5193.  
  5194.  
  5195.  
  5196.  
  5197.  
  5198.  
  5199.  
  5200.  
  5201.  
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5203. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5204. if ${lt_cv_to_host_file_cmd+:} false; then :
  5205.   $as_echo_n "(cached) " >&6
  5206. else
  5207.   case $host in
  5208.   *-*-mingw* )
  5209.     case $build in
  5210.       *-*-mingw* ) # actually msys
  5211.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5212.         ;;
  5213.       *-*-cygwin* )
  5214.         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5215.         ;;
  5216.       * ) # otherwise, assume *nix
  5217.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5218.         ;;
  5219.     esac
  5220.     ;;
  5221.   *-*-cygwin* )
  5222.     case $build in
  5223.       *-*-mingw* ) # actually msys
  5224.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5225.         ;;
  5226.       *-*-cygwin* )
  5227.         lt_cv_to_host_file_cmd=func_convert_file_noop
  5228.         ;;
  5229.       * ) # otherwise, assume *nix
  5230.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5231.         ;;
  5232.     esac
  5233.     ;;
  5234.   * ) # unhandled hosts (and "normal" native builds)
  5235.     lt_cv_to_host_file_cmd=func_convert_file_noop
  5236.     ;;
  5237. esac
  5238.  
  5239. fi
  5240.  
  5241. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5243. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5244.  
  5245.  
  5246.  
  5247.  
  5248.  
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5250. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5251. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5252.   $as_echo_n "(cached) " >&6
  5253. else
  5254.   #assume ordinary cross tools, or native build.
  5255. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5256. case $host in
  5257.   *-*-mingw* )
  5258.     case $build in
  5259.       *-*-mingw* ) # actually msys
  5260.         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5261.         ;;
  5262.     esac
  5263.     ;;
  5264. esac
  5265.  
  5266. fi
  5267.  
  5268. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5270. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5271.  
  5272.  
  5273.  
  5274.  
  5275.  
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5277. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5278. if ${lt_cv_ld_reload_flag+:} false; then :
  5279.   $as_echo_n "(cached) " >&6
  5280. else
  5281.   lt_cv_ld_reload_flag='-r'
  5282. fi
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5284. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5285. reload_flag=$lt_cv_ld_reload_flag
  5286. case $reload_flag in
  5287. "" | " "*) ;;
  5288. *) reload_flag=" $reload_flag" ;;
  5289. esac
  5290. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5291. case $host_os in
  5292.   cygwin* | mingw* | pw32* | cegcc*)
  5293.     if test "$GCC" != yes; then
  5294.       reload_cmds=false
  5295.     fi
  5296.     ;;
  5297.   darwin*)
  5298.     if test "$GCC" = yes; then
  5299.       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5300.     else
  5301.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5302.     fi
  5303.     ;;
  5304. esac
  5305.  
  5306.  
  5307.  
  5308.  
  5309.  
  5310.  
  5311.  
  5312.  
  5313.  
  5314. if test -n "$ac_tool_prefix"; then
  5315.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5316. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5318. $as_echo_n "checking for $ac_word... " >&6; }
  5319. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5320.   $as_echo_n "(cached) " >&6
  5321. else
  5322.   if test -n "$OBJDUMP"; then
  5323.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5324. else
  5325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5326. for as_dir in $PATH
  5327. do
  5328.   IFS=$as_save_IFS
  5329.   test -z "$as_dir" && as_dir=.
  5330.     for ac_exec_ext in '' $ac_executable_extensions; do
  5331.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5332.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5333.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5334.     break 2
  5335.   fi
  5336. done
  5337.   done
  5338. IFS=$as_save_IFS
  5339.  
  5340. fi
  5341. fi
  5342. OBJDUMP=$ac_cv_prog_OBJDUMP
  5343. if test -n "$OBJDUMP"; then
  5344.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5345. $as_echo "$OBJDUMP" >&6; }
  5346. else
  5347.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5348. $as_echo "no" >&6; }
  5349. fi
  5350.  
  5351.  
  5352. fi
  5353. if test -z "$ac_cv_prog_OBJDUMP"; then
  5354.   ac_ct_OBJDUMP=$OBJDUMP
  5355.   # Extract the first word of "objdump", so it can be a program name with args.
  5356. set dummy objdump; ac_word=$2
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5358. $as_echo_n "checking for $ac_word... " >&6; }
  5359. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5360.   $as_echo_n "(cached) " >&6
  5361. else
  5362.   if test -n "$ac_ct_OBJDUMP"; then
  5363.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5364. else
  5365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5366. for as_dir in $PATH
  5367. do
  5368.   IFS=$as_save_IFS
  5369.   test -z "$as_dir" && as_dir=.
  5370.     for ac_exec_ext in '' $ac_executable_extensions; do
  5371.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5372.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5373.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5374.     break 2
  5375.   fi
  5376. done
  5377.   done
  5378. IFS=$as_save_IFS
  5379.  
  5380. fi
  5381. fi
  5382. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5383. if test -n "$ac_ct_OBJDUMP"; then
  5384.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5385. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5386. else
  5387.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5388. $as_echo "no" >&6; }
  5389. fi
  5390.  
  5391.   if test "x$ac_ct_OBJDUMP" = x; then
  5392.     OBJDUMP="false"
  5393.   else
  5394.     case $cross_compiling:$ac_tool_warned in
  5395. yes:)
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5397. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5398. ac_tool_warned=yes ;;
  5399. esac
  5400.     OBJDUMP=$ac_ct_OBJDUMP
  5401.   fi
  5402. else
  5403.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  5404. fi
  5405.  
  5406. test -z "$OBJDUMP" && OBJDUMP=objdump
  5407.  
  5408.  
  5409.  
  5410.  
  5411.  
  5412.  
  5413.  
  5414.  
  5415.  
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5417. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5418. if ${lt_cv_deplibs_check_method+:} false; then :
  5419.   $as_echo_n "(cached) " >&6
  5420. else
  5421.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  5422. lt_cv_file_magic_test_file=
  5423. lt_cv_deplibs_check_method='unknown'
  5424. # Need to set the preceding variable on all platforms that support
  5425. # interlibrary dependencies.
  5426. # 'none' -- dependencies not supported.
  5427. # `unknown' -- same as none, but documents that we really don't know.
  5428. # 'pass_all' -- all dependencies passed with no checks.
  5429. # 'test_compile' -- check by making test program.
  5430. # 'file_magic [[regex]]' -- check by looking for files in library path
  5431. # which responds to the $file_magic_cmd with a given extended regex.
  5432. # If you have `file' or equivalent on your system and you're not sure
  5433. # whether `pass_all' will *always* work, you probably want this one.
  5434.  
  5435. case $host_os in
  5436. aix[4-9]*)
  5437.   lt_cv_deplibs_check_method=pass_all
  5438.   ;;
  5439.  
  5440. beos*)
  5441.   lt_cv_deplibs_check_method=pass_all
  5442.   ;;
  5443.  
  5444. bsdi[45]*)
  5445.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5446.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  5447.   lt_cv_file_magic_test_file=/shlib/libc.so
  5448.   ;;
  5449.  
  5450. cygwin*)
  5451.   # func_win32_libid is a shell function defined in ltmain.sh
  5452.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5453.   lt_cv_file_magic_cmd='func_win32_libid'
  5454.   ;;
  5455.  
  5456. mingw* | pw32*)
  5457.   # Base MSYS/MinGW do not provide the 'file' command needed by
  5458.   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5459.   # unless we find 'file', for example because we are cross-compiling.
  5460.   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5461.   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5462.     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5463.     lt_cv_file_magic_cmd='func_win32_libid'
  5464.   else
  5465.     # Keep this pattern in sync with the one in func_win32_libid.
  5466.     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5467.     lt_cv_file_magic_cmd='$OBJDUMP -f'
  5468.   fi
  5469.   ;;
  5470.  
  5471. cegcc*)
  5472.   # use the weaker test based on 'objdump'. See mingw*.
  5473.   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5474.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  5475.   ;;
  5476.  
  5477. darwin* | rhapsody*)
  5478.   lt_cv_deplibs_check_method=pass_all
  5479.   ;;
  5480.  
  5481. freebsd* | dragonfly*)
  5482.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5483.     case $host_cpu in
  5484.     i*86 )
  5485.       # Not sure whether the presence of OpenBSD here was a mistake.
  5486.       # Let's accept both of them until this is cleared up.
  5487.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5488.       lt_cv_file_magic_cmd=/usr/bin/file
  5489.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5490.       ;;
  5491.     esac
  5492.   else
  5493.     lt_cv_deplibs_check_method=pass_all
  5494.   fi
  5495.   ;;
  5496.  
  5497. haiku*)
  5498.   lt_cv_deplibs_check_method=pass_all
  5499.   ;;
  5500.  
  5501. hpux10.20* | hpux11*)
  5502.   lt_cv_file_magic_cmd=/usr/bin/file
  5503.   case $host_cpu in
  5504.   ia64*)
  5505.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5506.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5507.     ;;
  5508.   hppa*64*)
  5509.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5510.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5511.     ;;
  5512.   *)
  5513.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5514.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5515.     ;;
  5516.   esac
  5517.   ;;
  5518.  
  5519. interix[3-9]*)
  5520.   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5521.   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5522.   ;;
  5523.  
  5524. irix5* | irix6* | nonstopux*)
  5525.   case $LD in
  5526.   *-32|*"-32 ") libmagic=32-bit;;
  5527.   *-n32|*"-n32 ") libmagic=N32;;
  5528.   *-64|*"-64 ") libmagic=64-bit;;
  5529.   *) libmagic=never-match;;
  5530.   esac
  5531.   lt_cv_deplibs_check_method=pass_all
  5532.   ;;
  5533.  
  5534. # This must be glibc/ELF.
  5535. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5536.   lt_cv_deplibs_check_method=pass_all
  5537.   ;;
  5538.  
  5539. netbsd* | netbsdelf*-gnu)
  5540.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5541.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5542.   else
  5543.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5544.   fi
  5545.   ;;
  5546.  
  5547. newos6*)
  5548.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5549.   lt_cv_file_magic_cmd=/usr/bin/file
  5550.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5551.   ;;
  5552.  
  5553. *nto* | *qnx*)
  5554.   lt_cv_deplibs_check_method=pass_all
  5555.   ;;
  5556.  
  5557. openbsd*)
  5558.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5559.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5560.   else
  5561.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5562.   fi
  5563.   ;;
  5564.  
  5565. osf3* | osf4* | osf5*)
  5566.   lt_cv_deplibs_check_method=pass_all
  5567.   ;;
  5568.  
  5569. rdos*)
  5570.   lt_cv_deplibs_check_method=pass_all
  5571.   ;;
  5572.  
  5573. solaris*)
  5574.   lt_cv_deplibs_check_method=pass_all
  5575.   ;;
  5576.  
  5577. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5578.   lt_cv_deplibs_check_method=pass_all
  5579.   ;;
  5580.  
  5581. sysv4 | sysv4.3*)
  5582.   case $host_vendor in
  5583.   motorola)
  5584.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5585.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5586.     ;;
  5587.   ncr)
  5588.     lt_cv_deplibs_check_method=pass_all
  5589.     ;;
  5590.   sequent)
  5591.     lt_cv_file_magic_cmd='/bin/file'
  5592.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5593.     ;;
  5594.   sni)
  5595.     lt_cv_file_magic_cmd='/bin/file'
  5596.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5597.     lt_cv_file_magic_test_file=/lib/libc.so
  5598.     ;;
  5599.   siemens)
  5600.     lt_cv_deplibs_check_method=pass_all
  5601.     ;;
  5602.   pc)
  5603.     lt_cv_deplibs_check_method=pass_all
  5604.     ;;
  5605.   esac
  5606.   ;;
  5607.  
  5608. tpf*)
  5609.   lt_cv_deplibs_check_method=pass_all
  5610.   ;;
  5611. esac
  5612.  
  5613. fi
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5615. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5616.  
  5617. file_magic_glob=
  5618. want_nocaseglob=no
  5619. if test "$build" = "$host"; then
  5620.   case $host_os in
  5621.   mingw* | pw32*)
  5622.     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5623.       want_nocaseglob=yes
  5624.     else
  5625.       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5626.     fi
  5627.     ;;
  5628.   esac
  5629. fi
  5630.  
  5631. file_magic_cmd=$lt_cv_file_magic_cmd
  5632. deplibs_check_method=$lt_cv_deplibs_check_method
  5633. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5634.  
  5635.  
  5636.  
  5637.  
  5638.  
  5639.  
  5640.  
  5641.  
  5642.  
  5643.  
  5644.  
  5645.  
  5646.  
  5647.  
  5648.  
  5649.  
  5650.  
  5651.  
  5652.  
  5653.  
  5654.  
  5655.  
  5656. if test -n "$ac_tool_prefix"; then
  5657.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5658. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5660. $as_echo_n "checking for $ac_word... " >&6; }
  5661. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5662.   $as_echo_n "(cached) " >&6
  5663. else
  5664.   if test -n "$DLLTOOL"; then
  5665.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5666. else
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670.   IFS=$as_save_IFS
  5671.   test -z "$as_dir" && as_dir=.
  5672.     for ac_exec_ext in '' $ac_executable_extensions; do
  5673.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5674.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5675.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5676.     break 2
  5677.   fi
  5678. done
  5679.   done
  5680. IFS=$as_save_IFS
  5681.  
  5682. fi
  5683. fi
  5684. DLLTOOL=$ac_cv_prog_DLLTOOL
  5685. if test -n "$DLLTOOL"; then
  5686.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5687. $as_echo "$DLLTOOL" >&6; }
  5688. else
  5689.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5690. $as_echo "no" >&6; }
  5691. fi
  5692.  
  5693.  
  5694. fi
  5695. if test -z "$ac_cv_prog_DLLTOOL"; then
  5696.   ac_ct_DLLTOOL=$DLLTOOL
  5697.   # Extract the first word of "dlltool", so it can be a program name with args.
  5698. set dummy dlltool; ac_word=$2
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5700. $as_echo_n "checking for $ac_word... " >&6; }
  5701. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5702.   $as_echo_n "(cached) " >&6
  5703. else
  5704.   if test -n "$ac_ct_DLLTOOL"; then
  5705.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5706. else
  5707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5708. for as_dir in $PATH
  5709. do
  5710.   IFS=$as_save_IFS
  5711.   test -z "$as_dir" && as_dir=.
  5712.     for ac_exec_ext in '' $ac_executable_extensions; do
  5713.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5714.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5715.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5716.     break 2
  5717.   fi
  5718. done
  5719.   done
  5720. IFS=$as_save_IFS
  5721.  
  5722. fi
  5723. fi
  5724. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5725. if test -n "$ac_ct_DLLTOOL"; then
  5726.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5727. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5728. else
  5729.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5730. $as_echo "no" >&6; }
  5731. fi
  5732.  
  5733.   if test "x$ac_ct_DLLTOOL" = x; then
  5734.     DLLTOOL="false"
  5735.   else
  5736.     case $cross_compiling:$ac_tool_warned in
  5737. yes:)
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5739. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5740. ac_tool_warned=yes ;;
  5741. esac
  5742.     DLLTOOL=$ac_ct_DLLTOOL
  5743.   fi
  5744. else
  5745.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  5746. fi
  5747.  
  5748. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5749.  
  5750.  
  5751.  
  5752.  
  5753.  
  5754.  
  5755.  
  5756.  
  5757.  
  5758.  
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5760. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5761. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5762.   $as_echo_n "(cached) " >&6
  5763. else
  5764.   lt_cv_sharedlib_from_linklib_cmd='unknown'
  5765.  
  5766. case $host_os in
  5767. cygwin* | mingw* | pw32* | cegcc*)
  5768.   # two different shell functions defined in ltmain.sh
  5769.   # decide which to use based on capabilities of $DLLTOOL
  5770.   case `$DLLTOOL --help 2>&1` in
  5771.   *--identify-strict*)
  5772.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5773.     ;;
  5774.   *)
  5775.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5776.     ;;
  5777.   esac
  5778.   ;;
  5779. *)
  5780.   # fallback: assume linklib IS sharedlib
  5781.   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5782.   ;;
  5783. esac
  5784.  
  5785. fi
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5787. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5788. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5789. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5790.  
  5791.  
  5792.  
  5793.  
  5794.  
  5795.  
  5796.  
  5797.  
  5798. if test -n "$ac_tool_prefix"; then
  5799.   for ac_prog in ar
  5800.   do
  5801.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5802. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5804. $as_echo_n "checking for $ac_word... " >&6; }
  5805. if ${ac_cv_prog_AR+:} false; then :
  5806.   $as_echo_n "(cached) " >&6
  5807. else
  5808.   if test -n "$AR"; then
  5809.   ac_cv_prog_AR="$AR" # Let the user override the test.
  5810. else
  5811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5812. for as_dir in $PATH
  5813. do
  5814.   IFS=$as_save_IFS
  5815.   test -z "$as_dir" && as_dir=.
  5816.     for ac_exec_ext in '' $ac_executable_extensions; do
  5817.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5818.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5819.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5820.     break 2
  5821.   fi
  5822. done
  5823.   done
  5824. IFS=$as_save_IFS
  5825.  
  5826. fi
  5827. fi
  5828. AR=$ac_cv_prog_AR
  5829. if test -n "$AR"; then
  5830.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5831. $as_echo "$AR" >&6; }
  5832. else
  5833.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5834. $as_echo "no" >&6; }
  5835. fi
  5836.  
  5837.  
  5838.     test -n "$AR" && break
  5839.   done
  5840. fi
  5841. if test -z "$AR"; then
  5842.   ac_ct_AR=$AR
  5843.   for ac_prog in ar
  5844. do
  5845.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5846. set dummy $ac_prog; ac_word=$2
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5848. $as_echo_n "checking for $ac_word... " >&6; }
  5849. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5850.   $as_echo_n "(cached) " >&6
  5851. else
  5852.   if test -n "$ac_ct_AR"; then
  5853.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5854. else
  5855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5856. for as_dir in $PATH
  5857. do
  5858.   IFS=$as_save_IFS
  5859.   test -z "$as_dir" && as_dir=.
  5860.     for ac_exec_ext in '' $ac_executable_extensions; do
  5861.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5862.     ac_cv_prog_ac_ct_AR="$ac_prog"
  5863.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5864.     break 2
  5865.   fi
  5866. done
  5867.   done
  5868. IFS=$as_save_IFS
  5869.  
  5870. fi
  5871. fi
  5872. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5873. if test -n "$ac_ct_AR"; then
  5874.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5875. $as_echo "$ac_ct_AR" >&6; }
  5876. else
  5877.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5878. $as_echo "no" >&6; }
  5879. fi
  5880.  
  5881.  
  5882.   test -n "$ac_ct_AR" && break
  5883. done
  5884.  
  5885.   if test "x$ac_ct_AR" = x; then
  5886.     AR="false"
  5887.   else
  5888.     case $cross_compiling:$ac_tool_warned in
  5889. yes:)
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5891. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5892. ac_tool_warned=yes ;;
  5893. esac
  5894.     AR=$ac_ct_AR
  5895.   fi
  5896. fi
  5897.  
  5898. : ${AR=ar}
  5899. : ${AR_FLAGS=cru}
  5900.  
  5901.  
  5902.  
  5903.  
  5904.  
  5905.  
  5906.  
  5907.  
  5908.  
  5909.  
  5910.  
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5912. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5913. if ${lt_cv_ar_at_file+:} false; then :
  5914.   $as_echo_n "(cached) " >&6
  5915. else
  5916.   lt_cv_ar_at_file=no
  5917.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5918. /* end confdefs.h.  */
  5919.  
  5920. int
  5921. main ()
  5922. {
  5923.  
  5924.   ;
  5925.   return 0;
  5926. }
  5927. _ACEOF
  5928. if ac_fn_c_try_compile "$LINENO"; then :
  5929.   echo conftest.$ac_objext > conftest.lst
  5930.       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5931.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5932.   (eval $lt_ar_try) 2>&5
  5933.   ac_status=$?
  5934.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5935.   test $ac_status = 0; }
  5936.       if test "$ac_status" -eq 0; then
  5937.         # Ensure the archiver fails upon bogus file names.
  5938.         rm -f conftest.$ac_objext libconftest.a
  5939.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5940.   (eval $lt_ar_try) 2>&5
  5941.   ac_status=$?
  5942.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5943.   test $ac_status = 0; }
  5944.         if test "$ac_status" -ne 0; then
  5945.           lt_cv_ar_at_file=@
  5946.         fi
  5947.       fi
  5948.       rm -f conftest.* libconftest.a
  5949.  
  5950. fi
  5951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5952.  
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5955. $as_echo "$lt_cv_ar_at_file" >&6; }
  5956.  
  5957. if test "x$lt_cv_ar_at_file" = xno; then
  5958.   archiver_list_spec=
  5959. else
  5960.   archiver_list_spec=$lt_cv_ar_at_file
  5961. fi
  5962.  
  5963.  
  5964.  
  5965.  
  5966.  
  5967.  
  5968.  
  5969. if test -n "$ac_tool_prefix"; then
  5970.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5971. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5973. $as_echo_n "checking for $ac_word... " >&6; }
  5974. if ${ac_cv_prog_STRIP+:} false; then :
  5975.   $as_echo_n "(cached) " >&6
  5976. else
  5977.   if test -n "$STRIP"; then
  5978.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5979. else
  5980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5981. for as_dir in $PATH
  5982. do
  5983.   IFS=$as_save_IFS
  5984.   test -z "$as_dir" && as_dir=.
  5985.     for ac_exec_ext in '' $ac_executable_extensions; do
  5986.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5987.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5988.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5989.     break 2
  5990.   fi
  5991. done
  5992.   done
  5993. IFS=$as_save_IFS
  5994.  
  5995. fi
  5996. fi
  5997. STRIP=$ac_cv_prog_STRIP
  5998. if test -n "$STRIP"; then
  5999.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6000. $as_echo "$STRIP" >&6; }
  6001. else
  6002.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. fi
  6005.  
  6006.  
  6007. fi
  6008. if test -z "$ac_cv_prog_STRIP"; then
  6009.   ac_ct_STRIP=$STRIP
  6010.   # Extract the first word of "strip", so it can be a program name with args.
  6011. set dummy strip; ac_word=$2
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6013. $as_echo_n "checking for $ac_word... " >&6; }
  6014. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6015.   $as_echo_n "(cached) " >&6
  6016. else
  6017.   if test -n "$ac_ct_STRIP"; then
  6018.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6019. else
  6020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6021. for as_dir in $PATH
  6022. do
  6023.   IFS=$as_save_IFS
  6024.   test -z "$as_dir" && as_dir=.
  6025.     for ac_exec_ext in '' $ac_executable_extensions; do
  6026.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6027.     ac_cv_prog_ac_ct_STRIP="strip"
  6028.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6029.     break 2
  6030.   fi
  6031. done
  6032.   done
  6033. IFS=$as_save_IFS
  6034.  
  6035. fi
  6036. fi
  6037. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6038. if test -n "$ac_ct_STRIP"; then
  6039.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6040. $as_echo "$ac_ct_STRIP" >&6; }
  6041. else
  6042.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; }
  6044. fi
  6045.  
  6046.   if test "x$ac_ct_STRIP" = x; then
  6047.     STRIP=":"
  6048.   else
  6049.     case $cross_compiling:$ac_tool_warned in
  6050. yes:)
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6052. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6053. ac_tool_warned=yes ;;
  6054. esac
  6055.     STRIP=$ac_ct_STRIP
  6056.   fi
  6057. else
  6058.   STRIP="$ac_cv_prog_STRIP"
  6059. fi
  6060.  
  6061. test -z "$STRIP" && STRIP=:
  6062.  
  6063.  
  6064.  
  6065.  
  6066.  
  6067.  
  6068. if test -n "$ac_tool_prefix"; then
  6069.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6070. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6072. $as_echo_n "checking for $ac_word... " >&6; }
  6073. if ${ac_cv_prog_RANLIB+:} false; then :
  6074.   $as_echo_n "(cached) " >&6
  6075. else
  6076.   if test -n "$RANLIB"; then
  6077.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6078. else
  6079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6080. for as_dir in $PATH
  6081. do
  6082.   IFS=$as_save_IFS
  6083.   test -z "$as_dir" && as_dir=.
  6084.     for ac_exec_ext in '' $ac_executable_extensions; do
  6085.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6086.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6087.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6088.     break 2
  6089.   fi
  6090. done
  6091.   done
  6092. IFS=$as_save_IFS
  6093.  
  6094. fi
  6095. fi
  6096. RANLIB=$ac_cv_prog_RANLIB
  6097. if test -n "$RANLIB"; then
  6098.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6099. $as_echo "$RANLIB" >&6; }
  6100. else
  6101.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6102. $as_echo "no" >&6; }
  6103. fi
  6104.  
  6105.  
  6106. fi
  6107. if test -z "$ac_cv_prog_RANLIB"; then
  6108.   ac_ct_RANLIB=$RANLIB
  6109.   # Extract the first word of "ranlib", so it can be a program name with args.
  6110. set dummy ranlib; ac_word=$2
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6112. $as_echo_n "checking for $ac_word... " >&6; }
  6113. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6114.   $as_echo_n "(cached) " >&6
  6115. else
  6116.   if test -n "$ac_ct_RANLIB"; then
  6117.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6118. else
  6119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6120. for as_dir in $PATH
  6121. do
  6122.   IFS=$as_save_IFS
  6123.   test -z "$as_dir" && as_dir=.
  6124.     for ac_exec_ext in '' $ac_executable_extensions; do
  6125.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6126.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  6127.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6128.     break 2
  6129.   fi
  6130. done
  6131.   done
  6132. IFS=$as_save_IFS
  6133.  
  6134. fi
  6135. fi
  6136. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6137. if test -n "$ac_ct_RANLIB"; then
  6138.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6139. $as_echo "$ac_ct_RANLIB" >&6; }
  6140. else
  6141.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6142. $as_echo "no" >&6; }
  6143. fi
  6144.  
  6145.   if test "x$ac_ct_RANLIB" = x; then
  6146.     RANLIB=":"
  6147.   else
  6148.     case $cross_compiling:$ac_tool_warned in
  6149. yes:)
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6151. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6152. ac_tool_warned=yes ;;
  6153. esac
  6154.     RANLIB=$ac_ct_RANLIB
  6155.   fi
  6156. else
  6157.   RANLIB="$ac_cv_prog_RANLIB"
  6158. fi
  6159.  
  6160. test -z "$RANLIB" && RANLIB=:
  6161.  
  6162.  
  6163.  
  6164.  
  6165.  
  6166.  
  6167. # Determine commands to create old-style static archives.
  6168. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6169. old_postinstall_cmds='chmod 644 $oldlib'
  6170. old_postuninstall_cmds=
  6171.  
  6172. if test -n "$RANLIB"; then
  6173.   case $host_os in
  6174.   openbsd*)
  6175.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6176.     ;;
  6177.   *)
  6178.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6179.     ;;
  6180.   esac
  6181.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6182. fi
  6183.  
  6184. case $host_os in
  6185.   darwin*)
  6186.     lock_old_archive_extraction=yes ;;
  6187.   *)
  6188.     lock_old_archive_extraction=no ;;
  6189. esac
  6190.  
  6191.  
  6192.  
  6193.  
  6194.  
  6195.  
  6196.  
  6197.  
  6198.  
  6199.  
  6200.  
  6201.  
  6202.  
  6203.  
  6204.  
  6205.  
  6206.  
  6207.  
  6208.  
  6209.  
  6210.  
  6211.  
  6212.  
  6213.  
  6214.  
  6215.  
  6216.  
  6217.  
  6218.  
  6219.  
  6220.  
  6221.  
  6222.  
  6223.  
  6224.  
  6225.  
  6226.  
  6227.  
  6228.  
  6229. # If no C compiler was specified, use CC.
  6230. LTCC=${LTCC-"$CC"}
  6231.  
  6232. # If no C compiler flags were specified, use CFLAGS.
  6233. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6234.  
  6235. # Allow CC to be a program name with arguments.
  6236. compiler=$CC
  6237.  
  6238.  
  6239. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6241. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6242. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6243.   $as_echo_n "(cached) " >&6
  6244. else
  6245.  
  6246. # These are sane defaults that work on at least a few old systems.
  6247. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  6248.  
  6249. # Character class describing NM global symbol codes.
  6250. symcode='[BCDEGRST]'
  6251.  
  6252. # Regexp to match symbols that can be accessed directly from C.
  6253. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6254.  
  6255. # Define system-specific variables.
  6256. case $host_os in
  6257. aix*)
  6258.   symcode='[BCDT]'
  6259.   ;;
  6260. cygwin* | mingw* | pw32* | cegcc*)
  6261.   symcode='[ABCDGISTW]'
  6262.   ;;
  6263. hpux*)
  6264.   if test "$host_cpu" = ia64; then
  6265.     symcode='[ABCDEGRST]'
  6266.   fi
  6267.   ;;
  6268. irix* | nonstopux*)
  6269.   symcode='[BCDEGRST]'
  6270.   ;;
  6271. osf*)
  6272.   symcode='[BCDEGQRST]'
  6273.   ;;
  6274. solaris*)
  6275.   symcode='[BDRT]'
  6276.   ;;
  6277. sco3.2v5*)
  6278.   symcode='[DT]'
  6279.   ;;
  6280. sysv4.2uw2*)
  6281.   symcode='[DT]'
  6282.   ;;
  6283. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6284.   symcode='[ABDT]'
  6285.   ;;
  6286. sysv4)
  6287.   symcode='[DFNSTU]'
  6288.   ;;
  6289. esac
  6290.  
  6291. # If we're using GNU nm, then use its standard symbol codes.
  6292. case `$NM -V 2>&1` in
  6293. *GNU* | *'with BFD'*)
  6294.   symcode='[ABCDGIRSTW]' ;;
  6295. esac
  6296.  
  6297. # Transform an extracted symbol line into a proper C declaration.
  6298. # Some systems (esp. on ia64) link data and code symbols differently,
  6299. # so use this general approach.
  6300. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6301.  
  6302. # Transform an extracted symbol line into symbol name and symbol address
  6303. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
  6304. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
  6305.  
  6306. # Handle CRLF in mingw tool chain
  6307. opt_cr=
  6308. case $build_os in
  6309. mingw*)
  6310.   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6311.   ;;
  6312. esac
  6313.  
  6314. # Try without a prefix underscore, then with it.
  6315. for ac_symprfx in "" "_"; do
  6316.  
  6317.   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6318.   symxfrm="\\1 $ac_symprfx\\2 \\2"
  6319.  
  6320.   # Write the raw and C identifiers.
  6321.   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6322.     # Fake it for dumpbin and say T for any non-static function
  6323.     # and D for any global variable.
  6324.     # Also find C++ and __fastcall symbols from MSVC++,
  6325.     # which start with @ or ?.
  6326.     lt_cv_sys_global_symbol_pipe="$AWK '"\
  6327. "     {last_section=section; section=\$ 3};"\
  6328. "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6329. "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6330. "     \$ 0!~/External *\|/{next};"\
  6331. "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6332. "     {if(hide[section]) next};"\
  6333. "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6334. "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6335. "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6336. "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6337. "     ' prfx=^$ac_symprfx"
  6338.   else
  6339.     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6340.   fi
  6341.   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6342.  
  6343.   # Check to see that the pipe works correctly.
  6344.   pipe_works=no
  6345.  
  6346.   rm -f conftest*
  6347.   cat > conftest.$ac_ext <<_LT_EOF
  6348. #ifdef __cplusplus
  6349. extern "C" {
  6350. #endif
  6351. char nm_test_var;
  6352. void nm_test_func(void);
  6353. void nm_test_func(void){}
  6354. #ifdef __cplusplus
  6355. }
  6356. #endif
  6357. int main(){nm_test_var='a';nm_test_func();return(0);}
  6358. _LT_EOF
  6359.  
  6360.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6361.   (eval $ac_compile) 2>&5
  6362.   ac_status=$?
  6363.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6364.   test $ac_status = 0; }; then
  6365.     # Now try to grab the symbols.
  6366.     nlist=conftest.nm
  6367.     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6368.   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6369.   ac_status=$?
  6370.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6371.   test $ac_status = 0; } && test -s "$nlist"; then
  6372.       # Try sorting and uniquifying the output.
  6373.       if sort "$nlist" | uniq > "$nlist"T; then
  6374.         mv -f "$nlist"T "$nlist"
  6375.       else
  6376.         rm -f "$nlist"T
  6377.       fi
  6378.  
  6379.       # Make sure that we snagged all the symbols we need.
  6380.       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6381.         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6382.           cat <<_LT_EOF > conftest.$ac_ext
  6383. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  6384. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6385. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6386.    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  6387. # define LT_DLSYM_CONST
  6388. #elif defined(__osf__)
  6389. /* This system does not cope well with relocations in const data.  */
  6390. # define LT_DLSYM_CONST
  6391. #else
  6392. # define LT_DLSYM_CONST const
  6393. #endif
  6394.  
  6395. #ifdef __cplusplus
  6396. extern "C" {
  6397. #endif
  6398.  
  6399. _LT_EOF
  6400.           # Now generate the symbol file.
  6401.           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6402.  
  6403.           cat <<_LT_EOF >> conftest.$ac_ext
  6404.  
  6405. /* The mapping between symbol names and symbols.  */
  6406. LT_DLSYM_CONST struct {
  6407.   const char *name;
  6408.   void       *address;
  6409. }
  6410. lt__PROGRAM__LTX_preloaded_symbols[] =
  6411. {
  6412.   { "@PROGRAM@", (void *) 0 },
  6413. _LT_EOF
  6414.           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6415.           cat <<\_LT_EOF >> conftest.$ac_ext
  6416.   {0, (void *) 0}
  6417. };
  6418.  
  6419. /* This works around a problem in FreeBSD linker */
  6420. #ifdef FREEBSD_WORKAROUND
  6421. static const void *lt_preloaded_setup() {
  6422.   return lt__PROGRAM__LTX_preloaded_symbols;
  6423. }
  6424. #endif
  6425.  
  6426. #ifdef __cplusplus
  6427. }
  6428. #endif
  6429. _LT_EOF
  6430.           # Now try linking the two files.
  6431.           mv conftest.$ac_objext conftstm.$ac_objext
  6432.           lt_globsym_save_LIBS=$LIBS
  6433.           lt_globsym_save_CFLAGS=$CFLAGS
  6434.           LIBS="conftstm.$ac_objext"
  6435.           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6436.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6437.   (eval $ac_link) 2>&5
  6438.   ac_status=$?
  6439.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6440.   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6441.             pipe_works=yes
  6442.           fi
  6443.           LIBS=$lt_globsym_save_LIBS
  6444.           CFLAGS=$lt_globsym_save_CFLAGS
  6445.         else
  6446.           echo "cannot find nm_test_func in $nlist" >&5
  6447.         fi
  6448.       else
  6449.         echo "cannot find nm_test_var in $nlist" >&5
  6450.       fi
  6451.     else
  6452.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6453.     fi
  6454.   else
  6455.     echo "$progname: failed program was:" >&5
  6456.     cat conftest.$ac_ext >&5
  6457.   fi
  6458.   rm -rf conftest* conftst*
  6459.  
  6460.   # Do not use the global_symbol_pipe unless it works.
  6461.   if test "$pipe_works" = yes; then
  6462.     break
  6463.   else
  6464.     lt_cv_sys_global_symbol_pipe=
  6465.   fi
  6466. done
  6467.  
  6468. fi
  6469.  
  6470. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6471.   lt_cv_sys_global_symbol_to_cdecl=
  6472. fi
  6473. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6474.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6475. $as_echo "failed" >&6; }
  6476. else
  6477.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6478. $as_echo "ok" >&6; }
  6479. fi
  6480.  
  6481. # Response file support.
  6482. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6483.   nm_file_list_spec='@'
  6484. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6485.   nm_file_list_spec='@'
  6486. fi
  6487.  
  6488.  
  6489.  
  6490.  
  6491.  
  6492.  
  6493.  
  6494.  
  6495.  
  6496.  
  6497.  
  6498.  
  6499.  
  6500.  
  6501.  
  6502.  
  6503.  
  6504.  
  6505.  
  6506.  
  6507.  
  6508.  
  6509.  
  6510.  
  6511.  
  6512.  
  6513.  
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6515. $as_echo_n "checking for sysroot... " >&6; }
  6516.  
  6517. # Check whether --with-sysroot was given.
  6518. if test "${with_sysroot+set}" = set; then :
  6519.   withval=$with_sysroot;
  6520. else
  6521.   with_sysroot=no
  6522. fi
  6523.  
  6524.  
  6525. lt_sysroot=
  6526. case ${with_sysroot} in #(
  6527.  yes)
  6528.    if test "$GCC" = yes; then
  6529.      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6530.    fi
  6531.    ;; #(
  6532.  /*)
  6533.    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6534.    ;; #(
  6535.  no|'')
  6536.    ;; #(
  6537.  *)
  6538.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6539. $as_echo "${with_sysroot}" >&6; }
  6540.    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6541.    ;;
  6542. esac
  6543.  
  6544.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6545. $as_echo "${lt_sysroot:-no}" >&6; }
  6546.  
  6547.  
  6548.  
  6549.  
  6550.  
  6551. # Check whether --enable-libtool-lock was given.
  6552. if test "${enable_libtool_lock+set}" = set; then :
  6553.   enableval=$enable_libtool_lock;
  6554. fi
  6555.  
  6556. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6557.  
  6558. # Some flags need to be propagated to the compiler or linker for good
  6559. # libtool support.
  6560. case $host in
  6561. ia64-*-hpux*)
  6562.   # Find out which ABI we are using.
  6563.   echo 'int i;' > conftest.$ac_ext
  6564.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6565.   (eval $ac_compile) 2>&5
  6566.   ac_status=$?
  6567.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6568.   test $ac_status = 0; }; then
  6569.     case `/usr/bin/file conftest.$ac_objext` in
  6570.       *ELF-32*)
  6571.         HPUX_IA64_MODE="32"
  6572.         ;;
  6573.       *ELF-64*)
  6574.         HPUX_IA64_MODE="64"
  6575.         ;;
  6576.     esac
  6577.   fi
  6578.   rm -rf conftest*
  6579.   ;;
  6580. *-*-irix6*)
  6581.   # Find out which ABI we are using.
  6582.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6583.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6584.   (eval $ac_compile) 2>&5
  6585.   ac_status=$?
  6586.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6587.   test $ac_status = 0; }; then
  6588.     if test "$lt_cv_prog_gnu_ld" = yes; then
  6589.       case `/usr/bin/file conftest.$ac_objext` in
  6590.         *32-bit*)
  6591.           LD="${LD-ld} -melf32bsmip"
  6592.           ;;
  6593.         *N32*)
  6594.           LD="${LD-ld} -melf32bmipn32"
  6595.           ;;
  6596.         *64-bit*)
  6597.           LD="${LD-ld} -melf64bmip"
  6598.         ;;
  6599.       esac
  6600.     else
  6601.       case `/usr/bin/file conftest.$ac_objext` in
  6602.         *32-bit*)
  6603.           LD="${LD-ld} -32"
  6604.           ;;
  6605.         *N32*)
  6606.           LD="${LD-ld} -n32"
  6607.           ;;
  6608.         *64-bit*)
  6609.           LD="${LD-ld} -64"
  6610.           ;;
  6611.       esac
  6612.     fi
  6613.   fi
  6614.   rm -rf conftest*
  6615.   ;;
  6616.  
  6617. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6618. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6619.   # Find out which ABI we are using.
  6620.   echo 'int i;' > conftest.$ac_ext
  6621.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6622.   (eval $ac_compile) 2>&5
  6623.   ac_status=$?
  6624.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6625.   test $ac_status = 0; }; then
  6626.     case `/usr/bin/file conftest.o` in
  6627.       *32-bit*)
  6628.         case $host in
  6629.           x86_64-*kfreebsd*-gnu)
  6630.             LD="${LD-ld} -m elf_i386_fbsd"
  6631.             ;;
  6632.           x86_64-*linux*)
  6633.             case `/usr/bin/file conftest.o` in
  6634.               *x86-64*)
  6635.                 LD="${LD-ld} -m elf32_x86_64"
  6636.                 ;;
  6637.               *)
  6638.                 LD="${LD-ld} -m elf_i386"
  6639.                 ;;
  6640.             esac
  6641.             ;;
  6642.           powerpc64le-*)
  6643.             LD="${LD-ld} -m elf32lppclinux"
  6644.             ;;
  6645.           powerpc64-*)
  6646.             LD="${LD-ld} -m elf32ppclinux"
  6647.             ;;
  6648.           s390x-*linux*)
  6649.             LD="${LD-ld} -m elf_s390"
  6650.             ;;
  6651.           sparc64-*linux*)
  6652.             LD="${LD-ld} -m elf32_sparc"
  6653.             ;;
  6654.         esac
  6655.         ;;
  6656.       *64-bit*)
  6657.         case $host in
  6658.           x86_64-*kfreebsd*-gnu)
  6659.             LD="${LD-ld} -m elf_x86_64_fbsd"
  6660.             ;;
  6661.           x86_64-*linux*)
  6662.             LD="${LD-ld} -m elf_x86_64"
  6663.             ;;
  6664.           powerpcle-*)
  6665.             LD="${LD-ld} -m elf64lppc"
  6666.             ;;
  6667.           powerpc-*)
  6668.             LD="${LD-ld} -m elf64ppc"
  6669.             ;;
  6670.           s390*-*linux*|s390*-*tpf*)
  6671.             LD="${LD-ld} -m elf64_s390"
  6672.             ;;
  6673.           sparc*-*linux*)
  6674.             LD="${LD-ld} -m elf64_sparc"
  6675.             ;;
  6676.         esac
  6677.         ;;
  6678.     esac
  6679.   fi
  6680.   rm -rf conftest*
  6681.   ;;
  6682.  
  6683. *-*-sco3.2v5*)
  6684.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6685.   SAVE_CFLAGS="$CFLAGS"
  6686.   CFLAGS="$CFLAGS -belf"
  6687.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6688. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6689. if ${lt_cv_cc_needs_belf+:} false; then :
  6690.   $as_echo_n "(cached) " >&6
  6691. else
  6692.   ac_ext=c
  6693. ac_cpp='$CPP $CPPFLAGS'
  6694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6697.  
  6698.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6699. /* end confdefs.h.  */
  6700.  
  6701. int
  6702. main ()
  6703. {
  6704.  
  6705.   ;
  6706.   return 0;
  6707. }
  6708. _ACEOF
  6709. if ac_fn_c_try_link "$LINENO"; then :
  6710.   lt_cv_cc_needs_belf=yes
  6711. else
  6712.   lt_cv_cc_needs_belf=no
  6713. fi
  6714. rm -f core conftest.err conftest.$ac_objext \
  6715.     conftest$ac_exeext conftest.$ac_ext
  6716.      ac_ext=c
  6717. ac_cpp='$CPP $CPPFLAGS'
  6718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6721.  
  6722. fi
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6724. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6725.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6726.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6727.     CFLAGS="$SAVE_CFLAGS"
  6728.   fi
  6729.   ;;
  6730. *-*solaris*)
  6731.   # Find out which ABI we are using.
  6732.   echo 'int i;' > conftest.$ac_ext
  6733.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6734.   (eval $ac_compile) 2>&5
  6735.   ac_status=$?
  6736.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6737.   test $ac_status = 0; }; then
  6738.     case `/usr/bin/file conftest.o` in
  6739.     *64-bit*)
  6740.       case $lt_cv_prog_gnu_ld in
  6741.       yes*)
  6742.         case $host in
  6743.         i?86-*-solaris*)
  6744.           LD="${LD-ld} -m elf_x86_64"
  6745.           ;;
  6746.         sparc*-*-solaris*)
  6747.           LD="${LD-ld} -m elf64_sparc"
  6748.           ;;
  6749.         esac
  6750.         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  6751.         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6752.           LD="${LD-ld}_sol2"
  6753.         fi
  6754.         ;;
  6755.       *)
  6756.         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6757.           LD="${LD-ld} -64"
  6758.         fi
  6759.         ;;
  6760.       esac
  6761.       ;;
  6762.     esac
  6763.   fi
  6764.   rm -rf conftest*
  6765.   ;;
  6766. esac
  6767.  
  6768. need_locks="$enable_libtool_lock"
  6769.  
  6770. if test -n "$ac_tool_prefix"; then
  6771.   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6772. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6774. $as_echo_n "checking for $ac_word... " >&6; }
  6775. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6776.   $as_echo_n "(cached) " >&6
  6777. else
  6778.   if test -n "$MANIFEST_TOOL"; then
  6779.   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6780. else
  6781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6782. for as_dir in $PATH
  6783. do
  6784.   IFS=$as_save_IFS
  6785.   test -z "$as_dir" && as_dir=.
  6786.     for ac_exec_ext in '' $ac_executable_extensions; do
  6787.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6788.     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6789.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6790.     break 2
  6791.   fi
  6792. done
  6793.   done
  6794. IFS=$as_save_IFS
  6795.  
  6796. fi
  6797. fi
  6798. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6799. if test -n "$MANIFEST_TOOL"; then
  6800.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6801. $as_echo "$MANIFEST_TOOL" >&6; }
  6802. else
  6803.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6804. $as_echo "no" >&6; }
  6805. fi
  6806.  
  6807.  
  6808. fi
  6809. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6810.   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6811.   # Extract the first word of "mt", so it can be a program name with args.
  6812. set dummy mt; ac_word=$2
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6814. $as_echo_n "checking for $ac_word... " >&6; }
  6815. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6816.   $as_echo_n "(cached) " >&6
  6817. else
  6818.   if test -n "$ac_ct_MANIFEST_TOOL"; then
  6819.   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6820. else
  6821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6822. for as_dir in $PATH
  6823. do
  6824.   IFS=$as_save_IFS
  6825.   test -z "$as_dir" && as_dir=.
  6826.     for ac_exec_ext in '' $ac_executable_extensions; do
  6827.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6828.     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6829.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6830.     break 2
  6831.   fi
  6832. done
  6833.   done
  6834. IFS=$as_save_IFS
  6835.  
  6836. fi
  6837. fi
  6838. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6839. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6840.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6841. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6842. else
  6843.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6844. $as_echo "no" >&6; }
  6845. fi
  6846.  
  6847.   if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6848.     MANIFEST_TOOL=":"
  6849.   else
  6850.     case $cross_compiling:$ac_tool_warned in
  6851. yes:)
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6854. ac_tool_warned=yes ;;
  6855. esac
  6856.     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6857.   fi
  6858. else
  6859.   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6860. fi
  6861.  
  6862. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6864. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6865. if ${lt_cv_path_mainfest_tool+:} false; then :
  6866.   $as_echo_n "(cached) " >&6
  6867. else
  6868.   lt_cv_path_mainfest_tool=no
  6869.   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6870.   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6871.   cat conftest.err >&5
  6872.   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6873.     lt_cv_path_mainfest_tool=yes
  6874.   fi
  6875.   rm -f conftest*
  6876. fi
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6878. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6879. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6880.   MANIFEST_TOOL=:
  6881. fi
  6882.  
  6883.  
  6884.  
  6885.  
  6886.  
  6887.  
  6888.   case $host_os in
  6889.     rhapsody* | darwin*)
  6890.     if test -n "$ac_tool_prefix"; then
  6891.   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6892. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6894. $as_echo_n "checking for $ac_word... " >&6; }
  6895. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6896.   $as_echo_n "(cached) " >&6
  6897. else
  6898.   if test -n "$DSYMUTIL"; then
  6899.   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6900. else
  6901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6902. for as_dir in $PATH
  6903. do
  6904.   IFS=$as_save_IFS
  6905.   test -z "$as_dir" && as_dir=.
  6906.     for ac_exec_ext in '' $ac_executable_extensions; do
  6907.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6908.     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6909.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6910.     break 2
  6911.   fi
  6912. done
  6913.   done
  6914. IFS=$as_save_IFS
  6915.  
  6916. fi
  6917. fi
  6918. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6919. if test -n "$DSYMUTIL"; then
  6920.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6921. $as_echo "$DSYMUTIL" >&6; }
  6922. else
  6923.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6924. $as_echo "no" >&6; }
  6925. fi
  6926.  
  6927.  
  6928. fi
  6929. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6930.   ac_ct_DSYMUTIL=$DSYMUTIL
  6931.   # Extract the first word of "dsymutil", so it can be a program name with args.
  6932. set dummy dsymutil; ac_word=$2
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6934. $as_echo_n "checking for $ac_word... " >&6; }
  6935. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6936.   $as_echo_n "(cached) " >&6
  6937. else
  6938.   if test -n "$ac_ct_DSYMUTIL"; then
  6939.   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6940. else
  6941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6942. for as_dir in $PATH
  6943. do
  6944.   IFS=$as_save_IFS
  6945.   test -z "$as_dir" && as_dir=.
  6946.     for ac_exec_ext in '' $ac_executable_extensions; do
  6947.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6948.     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6949.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6950.     break 2
  6951.   fi
  6952. done
  6953.   done
  6954. IFS=$as_save_IFS
  6955.  
  6956. fi
  6957. fi
  6958. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6959. if test -n "$ac_ct_DSYMUTIL"; then
  6960.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6961. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6962. else
  6963.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6964. $as_echo "no" >&6; }
  6965. fi
  6966.  
  6967.   if test "x$ac_ct_DSYMUTIL" = x; then
  6968.     DSYMUTIL=":"
  6969.   else
  6970.     case $cross_compiling:$ac_tool_warned in
  6971. yes:)
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6974. ac_tool_warned=yes ;;
  6975. esac
  6976.     DSYMUTIL=$ac_ct_DSYMUTIL
  6977.   fi
  6978. else
  6979.   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6980. fi
  6981.  
  6982.     if test -n "$ac_tool_prefix"; then
  6983.   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6984. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6986. $as_echo_n "checking for $ac_word... " >&6; }
  6987. if ${ac_cv_prog_NMEDIT+:} false; then :
  6988.   $as_echo_n "(cached) " >&6
  6989. else
  6990.   if test -n "$NMEDIT"; then
  6991.   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6992. else
  6993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6994. for as_dir in $PATH
  6995. do
  6996.   IFS=$as_save_IFS
  6997.   test -z "$as_dir" && as_dir=.
  6998.     for ac_exec_ext in '' $ac_executable_extensions; do
  6999.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7000.     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7001.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7002.     break 2
  7003.   fi
  7004. done
  7005.   done
  7006. IFS=$as_save_IFS
  7007.  
  7008. fi
  7009. fi
  7010. NMEDIT=$ac_cv_prog_NMEDIT
  7011. if test -n "$NMEDIT"; then
  7012.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7013. $as_echo "$NMEDIT" >&6; }
  7014. else
  7015.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7016. $as_echo "no" >&6; }
  7017. fi
  7018.  
  7019.  
  7020. fi
  7021. if test -z "$ac_cv_prog_NMEDIT"; then
  7022.   ac_ct_NMEDIT=$NMEDIT
  7023.   # Extract the first word of "nmedit", so it can be a program name with args.
  7024. set dummy nmedit; ac_word=$2
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7026. $as_echo_n "checking for $ac_word... " >&6; }
  7027. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7028.   $as_echo_n "(cached) " >&6
  7029. else
  7030.   if test -n "$ac_ct_NMEDIT"; then
  7031.   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7032. else
  7033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7034. for as_dir in $PATH
  7035. do
  7036.   IFS=$as_save_IFS
  7037.   test -z "$as_dir" && as_dir=.
  7038.     for ac_exec_ext in '' $ac_executable_extensions; do
  7039.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7040.     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7041.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7042.     break 2
  7043.   fi
  7044. done
  7045.   done
  7046. IFS=$as_save_IFS
  7047.  
  7048. fi
  7049. fi
  7050. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7051. if test -n "$ac_ct_NMEDIT"; then
  7052.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7053. $as_echo "$ac_ct_NMEDIT" >&6; }
  7054. else
  7055.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7056. $as_echo "no" >&6; }
  7057. fi
  7058.  
  7059.   if test "x$ac_ct_NMEDIT" = x; then
  7060.     NMEDIT=":"
  7061.   else
  7062.     case $cross_compiling:$ac_tool_warned in
  7063. yes:)
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7065. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7066. ac_tool_warned=yes ;;
  7067. esac
  7068.     NMEDIT=$ac_ct_NMEDIT
  7069.   fi
  7070. else
  7071.   NMEDIT="$ac_cv_prog_NMEDIT"
  7072. fi
  7073.  
  7074.     if test -n "$ac_tool_prefix"; then
  7075.   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7076. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7078. $as_echo_n "checking for $ac_word... " >&6; }
  7079. if ${ac_cv_prog_LIPO+:} false; then :
  7080.   $as_echo_n "(cached) " >&6
  7081. else
  7082.   if test -n "$LIPO"; then
  7083.   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7084. else
  7085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7086. for as_dir in $PATH
  7087. do
  7088.   IFS=$as_save_IFS
  7089.   test -z "$as_dir" && as_dir=.
  7090.     for ac_exec_ext in '' $ac_executable_extensions; do
  7091.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7092.     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7093.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7094.     break 2
  7095.   fi
  7096. done
  7097.   done
  7098. IFS=$as_save_IFS
  7099.  
  7100. fi
  7101. fi
  7102. LIPO=$ac_cv_prog_LIPO
  7103. if test -n "$LIPO"; then
  7104.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7105. $as_echo "$LIPO" >&6; }
  7106. else
  7107.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7108. $as_echo "no" >&6; }
  7109. fi
  7110.  
  7111.  
  7112. fi
  7113. if test -z "$ac_cv_prog_LIPO"; then
  7114.   ac_ct_LIPO=$LIPO
  7115.   # Extract the first word of "lipo", so it can be a program name with args.
  7116. set dummy lipo; ac_word=$2
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7118. $as_echo_n "checking for $ac_word... " >&6; }
  7119. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7120.   $as_echo_n "(cached) " >&6
  7121. else
  7122.   if test -n "$ac_ct_LIPO"; then
  7123.   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7124. else
  7125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7126. for as_dir in $PATH
  7127. do
  7128.   IFS=$as_save_IFS
  7129.   test -z "$as_dir" && as_dir=.
  7130.     for ac_exec_ext in '' $ac_executable_extensions; do
  7131.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7132.     ac_cv_prog_ac_ct_LIPO="lipo"
  7133.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7134.     break 2
  7135.   fi
  7136. done
  7137.   done
  7138. IFS=$as_save_IFS
  7139.  
  7140. fi
  7141. fi
  7142. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7143. if test -n "$ac_ct_LIPO"; then
  7144.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7145. $as_echo "$ac_ct_LIPO" >&6; }
  7146. else
  7147.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7148. $as_echo "no" >&6; }
  7149. fi
  7150.  
  7151.   if test "x$ac_ct_LIPO" = x; then
  7152.     LIPO=":"
  7153.   else
  7154.     case $cross_compiling:$ac_tool_warned in
  7155. yes:)
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7157. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7158. ac_tool_warned=yes ;;
  7159. esac
  7160.     LIPO=$ac_ct_LIPO
  7161.   fi
  7162. else
  7163.   LIPO="$ac_cv_prog_LIPO"
  7164. fi
  7165.  
  7166.     if test -n "$ac_tool_prefix"; then
  7167.   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7168. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7170. $as_echo_n "checking for $ac_word... " >&6; }
  7171. if ${ac_cv_prog_OTOOL+:} false; then :
  7172.   $as_echo_n "(cached) " >&6
  7173. else
  7174.   if test -n "$OTOOL"; then
  7175.   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7176. else
  7177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7178. for as_dir in $PATH
  7179. do
  7180.   IFS=$as_save_IFS
  7181.   test -z "$as_dir" && as_dir=.
  7182.     for ac_exec_ext in '' $ac_executable_extensions; do
  7183.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7184.     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7185.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7186.     break 2
  7187.   fi
  7188. done
  7189.   done
  7190. IFS=$as_save_IFS
  7191.  
  7192. fi
  7193. fi
  7194. OTOOL=$ac_cv_prog_OTOOL
  7195. if test -n "$OTOOL"; then
  7196.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7197. $as_echo "$OTOOL" >&6; }
  7198. else
  7199.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7200. $as_echo "no" >&6; }
  7201. fi
  7202.  
  7203.  
  7204. fi
  7205. if test -z "$ac_cv_prog_OTOOL"; then
  7206.   ac_ct_OTOOL=$OTOOL
  7207.   # Extract the first word of "otool", so it can be a program name with args.
  7208. set dummy otool; ac_word=$2
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7210. $as_echo_n "checking for $ac_word... " >&6; }
  7211. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7212.   $as_echo_n "(cached) " >&6
  7213. else
  7214.   if test -n "$ac_ct_OTOOL"; then
  7215.   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7216. else
  7217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7218. for as_dir in $PATH
  7219. do
  7220.   IFS=$as_save_IFS
  7221.   test -z "$as_dir" && as_dir=.
  7222.     for ac_exec_ext in '' $ac_executable_extensions; do
  7223.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7224.     ac_cv_prog_ac_ct_OTOOL="otool"
  7225.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7226.     break 2
  7227.   fi
  7228. done
  7229.   done
  7230. IFS=$as_save_IFS
  7231.  
  7232. fi
  7233. fi
  7234. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7235. if test -n "$ac_ct_OTOOL"; then
  7236.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7237. $as_echo "$ac_ct_OTOOL" >&6; }
  7238. else
  7239.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7240. $as_echo "no" >&6; }
  7241. fi
  7242.  
  7243.   if test "x$ac_ct_OTOOL" = x; then
  7244.     OTOOL=":"
  7245.   else
  7246.     case $cross_compiling:$ac_tool_warned in
  7247. yes:)
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7249. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7250. ac_tool_warned=yes ;;
  7251. esac
  7252.     OTOOL=$ac_ct_OTOOL
  7253.   fi
  7254. else
  7255.   OTOOL="$ac_cv_prog_OTOOL"
  7256. fi
  7257.  
  7258.     if test -n "$ac_tool_prefix"; then
  7259.   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7260. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7262. $as_echo_n "checking for $ac_word... " >&6; }
  7263. if ${ac_cv_prog_OTOOL64+:} false; then :
  7264.   $as_echo_n "(cached) " >&6
  7265. else
  7266.   if test -n "$OTOOL64"; then
  7267.   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7268. else
  7269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7270. for as_dir in $PATH
  7271. do
  7272.   IFS=$as_save_IFS
  7273.   test -z "$as_dir" && as_dir=.
  7274.     for ac_exec_ext in '' $ac_executable_extensions; do
  7275.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7276.     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7277.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7278.     break 2
  7279.   fi
  7280. done
  7281.   done
  7282. IFS=$as_save_IFS
  7283.  
  7284. fi
  7285. fi
  7286. OTOOL64=$ac_cv_prog_OTOOL64
  7287. if test -n "$OTOOL64"; then
  7288.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7289. $as_echo "$OTOOL64" >&6; }
  7290. else
  7291.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7292. $as_echo "no" >&6; }
  7293. fi
  7294.  
  7295.  
  7296. fi
  7297. if test -z "$ac_cv_prog_OTOOL64"; then
  7298.   ac_ct_OTOOL64=$OTOOL64
  7299.   # Extract the first word of "otool64", so it can be a program name with args.
  7300. set dummy otool64; ac_word=$2
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7302. $as_echo_n "checking for $ac_word... " >&6; }
  7303. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7304.   $as_echo_n "(cached) " >&6
  7305. else
  7306.   if test -n "$ac_ct_OTOOL64"; then
  7307.   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7308. else
  7309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7310. for as_dir in $PATH
  7311. do
  7312.   IFS=$as_save_IFS
  7313.   test -z "$as_dir" && as_dir=.
  7314.     for ac_exec_ext in '' $ac_executable_extensions; do
  7315.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7316.     ac_cv_prog_ac_ct_OTOOL64="otool64"
  7317.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7318.     break 2
  7319.   fi
  7320. done
  7321.   done
  7322. IFS=$as_save_IFS
  7323.  
  7324. fi
  7325. fi
  7326. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7327. if test -n "$ac_ct_OTOOL64"; then
  7328.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7329. $as_echo "$ac_ct_OTOOL64" >&6; }
  7330. else
  7331.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7332. $as_echo "no" >&6; }
  7333. fi
  7334.  
  7335.   if test "x$ac_ct_OTOOL64" = x; then
  7336.     OTOOL64=":"
  7337.   else
  7338.     case $cross_compiling:$ac_tool_warned in
  7339. yes:)
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7342. ac_tool_warned=yes ;;
  7343. esac
  7344.     OTOOL64=$ac_ct_OTOOL64
  7345.   fi
  7346. else
  7347.   OTOOL64="$ac_cv_prog_OTOOL64"
  7348. fi
  7349.  
  7350.  
  7351.  
  7352.  
  7353.  
  7354.  
  7355.  
  7356.  
  7357.  
  7358.  
  7359.  
  7360.  
  7361.  
  7362.  
  7363.  
  7364.  
  7365.  
  7366.  
  7367.  
  7368.  
  7369.  
  7370.  
  7371.  
  7372.  
  7373.  
  7374.  
  7375.  
  7376.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7377. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7378. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7379.   $as_echo_n "(cached) " >&6
  7380. else
  7381.   lt_cv_apple_cc_single_mod=no
  7382.       if test -z "${LT_MULTI_MODULE}"; then
  7383.         # By default we will add the -single_module flag. You can override
  7384.         # by either setting the environment variable LT_MULTI_MODULE
  7385.         # non-empty at configure time, or by adding -multi_module to the
  7386.         # link flags.
  7387.         rm -rf libconftest.dylib*
  7388.         echo "int foo(void){return 1;}" > conftest.c
  7389.         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7390. -dynamiclib -Wl,-single_module conftest.c" >&5
  7391.         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7392.           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7393.         _lt_result=$?
  7394.         # If there is a non-empty error log, and "single_module"
  7395.         # appears in it, assume the flag caused a linker warning
  7396.         if test -s conftest.err && $GREP single_module conftest.err; then
  7397.           cat conftest.err >&5
  7398.         # Otherwise, if the output was created with a 0 exit code from
  7399.         # the compiler, it worked.
  7400.         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7401.           lt_cv_apple_cc_single_mod=yes
  7402.         else
  7403.           cat conftest.err >&5
  7404.         fi
  7405.         rm -rf libconftest.dylib*
  7406.         rm -f conftest.*
  7407.       fi
  7408. fi
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7410. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7411.  
  7412.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7413. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7414. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7415.   $as_echo_n "(cached) " >&6
  7416. else
  7417.   lt_cv_ld_exported_symbols_list=no
  7418.       save_LDFLAGS=$LDFLAGS
  7419.       echo "_main" > conftest.sym
  7420.       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7421.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7422. /* end confdefs.h.  */
  7423.  
  7424. int
  7425. main ()
  7426. {
  7427.  
  7428.   ;
  7429.   return 0;
  7430. }
  7431. _ACEOF
  7432. if ac_fn_c_try_link "$LINENO"; then :
  7433.   lt_cv_ld_exported_symbols_list=yes
  7434. else
  7435.   lt_cv_ld_exported_symbols_list=no
  7436. fi
  7437. rm -f core conftest.err conftest.$ac_objext \
  7438.     conftest$ac_exeext conftest.$ac_ext
  7439.         LDFLAGS="$save_LDFLAGS"
  7440.  
  7441. fi
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7443. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7444.  
  7445.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7446. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7447. if ${lt_cv_ld_force_load+:} false; then :
  7448.   $as_echo_n "(cached) " >&6
  7449. else
  7450.   lt_cv_ld_force_load=no
  7451.       cat > conftest.c << _LT_EOF
  7452. int forced_loaded() { return 2;}
  7453. _LT_EOF
  7454.       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7455.       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7456.       echo "$AR cru libconftest.a conftest.o" >&5
  7457.       $AR cru libconftest.a conftest.o 2>&5
  7458.       echo "$RANLIB libconftest.a" >&5
  7459.       $RANLIB libconftest.a 2>&5
  7460.       cat > conftest.c << _LT_EOF
  7461. int main() { return 0;}
  7462. _LT_EOF
  7463.       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7464.       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7465.       _lt_result=$?
  7466.       if test -s conftest.err && $GREP force_load conftest.err; then
  7467.         cat conftest.err >&5
  7468.       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7469.         lt_cv_ld_force_load=yes
  7470.       else
  7471.         cat conftest.err >&5
  7472.       fi
  7473.         rm -f conftest.err libconftest.a conftest conftest.c
  7474.         rm -rf conftest.dSYM
  7475.  
  7476. fi
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7478. $as_echo "$lt_cv_ld_force_load" >&6; }
  7479.     case $host_os in
  7480.     rhapsody* | darwin1.[012])
  7481.       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7482.     darwin1.*)
  7483.       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7484.     darwin*) # darwin 5.x on
  7485.       # if running on 10.5 or later, the deployment target defaults
  7486.       # to the OS version, if on x86, and 10.4, the deployment
  7487.       # target defaults to 10.4. Don't you love it?
  7488.       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7489.         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7490.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7491.         10.[012]*)
  7492.           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7493.         10.*)
  7494.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7495.       esac
  7496.     ;;
  7497.   esac
  7498.     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7499.       _lt_dar_single_mod='$single_module'
  7500.     fi
  7501.     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7502.       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7503.     else
  7504.       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7505.     fi
  7506.     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7507.       _lt_dsymutil='~$DSYMUTIL $lib || :'
  7508.     else
  7509.       _lt_dsymutil=
  7510.     fi
  7511.     ;;
  7512.   esac
  7513.  
  7514. ac_ext=c
  7515. ac_cpp='$CPP $CPPFLAGS'
  7516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7520. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7521. # On Suns, sometimes $CPP names a directory.
  7522. if test -n "$CPP" && test -d "$CPP"; then
  7523.   CPP=
  7524. fi
  7525. if test -z "$CPP"; then
  7526.   if ${ac_cv_prog_CPP+:} false; then :
  7527.   $as_echo_n "(cached) " >&6
  7528. else
  7529.       # Double quotes because CPP needs to be expanded
  7530.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7531.     do
  7532.       ac_preproc_ok=false
  7533. for ac_c_preproc_warn_flag in '' yes
  7534. do
  7535.   # Use a header file that comes with gcc, so configuring glibc
  7536.   # with a fresh cross-compiler works.
  7537.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7538.   # <limits.h> exists even on freestanding compilers.
  7539.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7540.   # not just through cpp. "Syntax error" is here to catch this case.
  7541.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7542. /* end confdefs.h.  */
  7543. #ifdef __STDC__
  7544. # include <limits.h>
  7545. #else
  7546. # include <assert.h>
  7547. #endif
  7548.                      Syntax error
  7549. _ACEOF
  7550. if ac_fn_c_try_cpp "$LINENO"; then :
  7551.  
  7552. else
  7553.   # Broken: fails on valid input.
  7554. continue
  7555. fi
  7556. rm -f conftest.err conftest.i conftest.$ac_ext
  7557.  
  7558.   # OK, works on sane cases.  Now check whether nonexistent headers
  7559.   # can be detected and how.
  7560.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7561. /* end confdefs.h.  */
  7562. #include <ac_nonexistent.h>
  7563. _ACEOF
  7564. if ac_fn_c_try_cpp "$LINENO"; then :
  7565.   # Broken: success on invalid input.
  7566. continue
  7567. else
  7568.   # Passes both tests.
  7569. ac_preproc_ok=:
  7570. break
  7571. fi
  7572. rm -f conftest.err conftest.i conftest.$ac_ext
  7573.  
  7574. done
  7575. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7576. rm -f conftest.i conftest.err conftest.$ac_ext
  7577. if $ac_preproc_ok; then :
  7578.   break
  7579. fi
  7580.  
  7581.     done
  7582.     ac_cv_prog_CPP=$CPP
  7583.  
  7584. fi
  7585.   CPP=$ac_cv_prog_CPP
  7586. else
  7587.   ac_cv_prog_CPP=$CPP
  7588. fi
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7590. $as_echo "$CPP" >&6; }
  7591. ac_preproc_ok=false
  7592. for ac_c_preproc_warn_flag in '' yes
  7593. do
  7594.   # Use a header file that comes with gcc, so configuring glibc
  7595.   # with a fresh cross-compiler works.
  7596.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7597.   # <limits.h> exists even on freestanding compilers.
  7598.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7599.   # not just through cpp. "Syntax error" is here to catch this case.
  7600.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7601. /* end confdefs.h.  */
  7602. #ifdef __STDC__
  7603. # include <limits.h>
  7604. #else
  7605. # include <assert.h>
  7606. #endif
  7607.                      Syntax error
  7608. _ACEOF
  7609. if ac_fn_c_try_cpp "$LINENO"; then :
  7610.  
  7611. else
  7612.   # Broken: fails on valid input.
  7613. continue
  7614. fi
  7615. rm -f conftest.err conftest.i conftest.$ac_ext
  7616.  
  7617.   # OK, works on sane cases.  Now check whether nonexistent headers
  7618.   # can be detected and how.
  7619.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7620. /* end confdefs.h.  */
  7621. #include <ac_nonexistent.h>
  7622. _ACEOF
  7623. if ac_fn_c_try_cpp "$LINENO"; then :
  7624.   # Broken: success on invalid input.
  7625. continue
  7626. else
  7627.   # Passes both tests.
  7628. ac_preproc_ok=:
  7629. break
  7630. fi
  7631. rm -f conftest.err conftest.i conftest.$ac_ext
  7632.  
  7633. done
  7634. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7635. rm -f conftest.i conftest.err conftest.$ac_ext
  7636. if $ac_preproc_ok; then :
  7637.  
  7638. else
  7639.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7641. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7642. See \`config.log' for more details" "$LINENO" 5; }
  7643. fi
  7644.  
  7645. ac_ext=c
  7646. ac_cpp='$CPP $CPPFLAGS'
  7647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7650.  
  7651.  
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7653. $as_echo_n "checking for ANSI C header files... " >&6; }
  7654. if ${ac_cv_header_stdc+:} false; then :
  7655.   $as_echo_n "(cached) " >&6
  7656. else
  7657.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7658. /* end confdefs.h.  */
  7659. #include <stdlib.h>
  7660. #include <stdarg.h>
  7661. #include <string.h>
  7662. #include <float.h>
  7663.  
  7664. int
  7665. main ()
  7666. {
  7667.  
  7668.   ;
  7669.   return 0;
  7670. }
  7671. _ACEOF
  7672. if ac_fn_c_try_compile "$LINENO"; then :
  7673.   ac_cv_header_stdc=yes
  7674. else
  7675.   ac_cv_header_stdc=no
  7676. fi
  7677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7678.  
  7679. if test $ac_cv_header_stdc = yes; then
  7680.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7681.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7682. /* end confdefs.h.  */
  7683. #include <string.h>
  7684.  
  7685. _ACEOF
  7686. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7687.   $EGREP "memchr" >/dev/null 2>&1; then :
  7688.  
  7689. else
  7690.   ac_cv_header_stdc=no
  7691. fi
  7692. rm -f conftest*
  7693.  
  7694. fi
  7695.  
  7696. if test $ac_cv_header_stdc = yes; then
  7697.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7698.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7699. /* end confdefs.h.  */
  7700. #include <stdlib.h>
  7701.  
  7702. _ACEOF
  7703. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7704.   $EGREP "free" >/dev/null 2>&1; then :
  7705.  
  7706. else
  7707.   ac_cv_header_stdc=no
  7708. fi
  7709. rm -f conftest*
  7710.  
  7711. fi
  7712.  
  7713. if test $ac_cv_header_stdc = yes; then
  7714.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7715.   if test "$cross_compiling" = yes; then :
  7716.   :
  7717. else
  7718.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7719. /* end confdefs.h.  */
  7720. #include <ctype.h>
  7721. #include <stdlib.h>
  7722. #if ((' ' & 0x0FF) == 0x020)
  7723. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7724. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7725. #else
  7726. # define ISLOWER(c) \
  7727.                    (('a' <= (c) && (c) <= 'i') \
  7728.                      || ('j' <= (c) && (c) <= 'r') \
  7729.                      || ('s' <= (c) && (c) <= 'z'))
  7730. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7731. #endif
  7732.  
  7733. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7734. int
  7735. main ()
  7736. {
  7737.   int i;
  7738.   for (i = 0; i < 256; i++)
  7739.     if (XOR (islower (i), ISLOWER (i))
  7740.         || toupper (i) != TOUPPER (i))
  7741.       return 2;
  7742.   return 0;
  7743. }
  7744. _ACEOF
  7745. if ac_fn_c_try_run "$LINENO"; then :
  7746.  
  7747. else
  7748.   ac_cv_header_stdc=no
  7749. fi
  7750. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7751.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  7752. fi
  7753.  
  7754. fi
  7755. fi
  7756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7757. $as_echo "$ac_cv_header_stdc" >&6; }
  7758. if test $ac_cv_header_stdc = yes; then
  7759.  
  7760. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7761.  
  7762. fi
  7763.  
  7764. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7765. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7766.                   inttypes.h stdint.h unistd.h
  7767. do :
  7768.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7769. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7770. "
  7771. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7772.   cat >>confdefs.h <<_ACEOF
  7773. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7774. _ACEOF
  7775.  
  7776. fi
  7777.  
  7778. done
  7779.  
  7780.  
  7781. for ac_header in dlfcn.h
  7782. do :
  7783.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7784. "
  7785. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7786.   cat >>confdefs.h <<_ACEOF
  7787. #define HAVE_DLFCN_H 1
  7788. _ACEOF
  7789.  
  7790. fi
  7791.  
  7792. done
  7793.  
  7794.  
  7795.  
  7796.  
  7797.  
  7798. # Set options
  7799.  
  7800.  
  7801.  
  7802.         enable_dlopen=no
  7803.  
  7804.  
  7805.   enable_win32_dll=no
  7806.  
  7807.  
  7808.             # Check whether --enable-shared was given.
  7809. if test "${enable_shared+set}" = set; then :
  7810.   enableval=$enable_shared; p=${PACKAGE-default}
  7811.     case $enableval in
  7812.     yes) enable_shared=yes ;;
  7813.     no) enable_shared=no ;;
  7814.     *)
  7815.       enable_shared=no
  7816.       # Look at the argument we got.  We use all the common list separators.
  7817.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7818.       for pkg in $enableval; do
  7819.         IFS="$lt_save_ifs"
  7820.         if test "X$pkg" = "X$p"; then
  7821.           enable_shared=yes
  7822.         fi
  7823.       done
  7824.       IFS="$lt_save_ifs"
  7825.       ;;
  7826.     esac
  7827. else
  7828.   enable_shared=yes
  7829. fi
  7830.  
  7831.  
  7832.  
  7833.  
  7834.  
  7835.  
  7836.  
  7837.  
  7838.  
  7839.  
  7840.  
  7841. # Check whether --with-pic was given.
  7842. if test "${with_pic+set}" = set; then :
  7843.   withval=$with_pic; lt_p=${PACKAGE-default}
  7844.     case $withval in
  7845.     yes|no) pic_mode=$withval ;;
  7846.     *)
  7847.       pic_mode=default
  7848.       # Look at the argument we got.  We use all the common list separators.
  7849.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7850.       for lt_pkg in $withval; do
  7851.         IFS="$lt_save_ifs"
  7852.         if test "X$lt_pkg" = "X$lt_p"; then
  7853.           pic_mode=yes
  7854.         fi
  7855.       done
  7856.       IFS="$lt_save_ifs"
  7857.       ;;
  7858.     esac
  7859. else
  7860.   pic_mode=default
  7861. fi
  7862.  
  7863.  
  7864. test -z "$pic_mode" && pic_mode=default
  7865.  
  7866.  
  7867.  
  7868.  
  7869.  
  7870.  
  7871.  
  7872.   # Check whether --enable-fast-install was given.
  7873. if test "${enable_fast_install+set}" = set; then :
  7874.   enableval=$enable_fast_install; p=${PACKAGE-default}
  7875.     case $enableval in
  7876.     yes) enable_fast_install=yes ;;
  7877.     no) enable_fast_install=no ;;
  7878.     *)
  7879.       enable_fast_install=no
  7880.       # Look at the argument we got.  We use all the common list separators.
  7881.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7882.       for pkg in $enableval; do
  7883.         IFS="$lt_save_ifs"
  7884.         if test "X$pkg" = "X$p"; then
  7885.           enable_fast_install=yes
  7886.         fi
  7887.       done
  7888.       IFS="$lt_save_ifs"
  7889.       ;;
  7890.     esac
  7891. else
  7892.   enable_fast_install=yes
  7893. fi
  7894.  
  7895.  
  7896.  
  7897.  
  7898.  
  7899.  
  7900.  
  7901.  
  7902.  
  7903.  
  7904.  
  7905. # This can be used to rebuild libtool when needed
  7906. LIBTOOL_DEPS="$ltmain"
  7907.  
  7908. # Always use our own libtool.
  7909. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7910.  
  7911.  
  7912.  
  7913.  
  7914.  
  7915.  
  7916.  
  7917.  
  7918.  
  7919.  
  7920.  
  7921.  
  7922.  
  7923.  
  7924.  
  7925.  
  7926.  
  7927.  
  7928.  
  7929.  
  7930.  
  7931.  
  7932.  
  7933.  
  7934.  
  7935.  
  7936.  
  7937.  
  7938.  
  7939.  
  7940. test -z "$LN_S" && LN_S="ln -s"
  7941.  
  7942.  
  7943.  
  7944.  
  7945.  
  7946.  
  7947.  
  7948.  
  7949.  
  7950.  
  7951.  
  7952.  
  7953.  
  7954.  
  7955. if test -n "${ZSH_VERSION+set}" ; then
  7956.    setopt NO_GLOB_SUBST
  7957. fi
  7958.  
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7960. $as_echo_n "checking for objdir... " >&6; }
  7961. if ${lt_cv_objdir+:} false; then :
  7962.   $as_echo_n "(cached) " >&6
  7963. else
  7964.   rm -f .libs 2>/dev/null
  7965. mkdir .libs 2>/dev/null
  7966. if test -d .libs; then
  7967.   lt_cv_objdir=.libs
  7968. else
  7969.   # MS-DOS does not allow filenames that begin with a dot.
  7970.   lt_cv_objdir=_libs
  7971. fi
  7972. rmdir .libs 2>/dev/null
  7973. fi
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7975. $as_echo "$lt_cv_objdir" >&6; }
  7976. objdir=$lt_cv_objdir
  7977.  
  7978.  
  7979.  
  7980.  
  7981.  
  7982. cat >>confdefs.h <<_ACEOF
  7983. #define LT_OBJDIR "$lt_cv_objdir/"
  7984. _ACEOF
  7985.  
  7986.  
  7987.  
  7988.  
  7989. case $host_os in
  7990. aix3*)
  7991.   # AIX sometimes has problems with the GCC collect2 program.  For some
  7992.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  7993.   # vanish in a puff of smoke.
  7994.   if test "X${COLLECT_NAMES+set}" != Xset; then
  7995.     COLLECT_NAMES=
  7996.     export COLLECT_NAMES
  7997.   fi
  7998.   ;;
  7999. esac
  8000.  
  8001. # Global variables:
  8002. ofile=libtool
  8003. can_build_shared=yes
  8004.  
  8005. # All known linkers require a `.a' archive for static linking (except MSVC,
  8006. # which needs '.lib').
  8007. libext=a
  8008.  
  8009. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8010.  
  8011. old_CC="$CC"
  8012. old_CFLAGS="$CFLAGS"
  8013.  
  8014. # Set sane defaults for various variables
  8015. test -z "$CC" && CC=cc
  8016. test -z "$LTCC" && LTCC=$CC
  8017. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8018. test -z "$LD" && LD=ld
  8019. test -z "$ac_objext" && ac_objext=o
  8020.  
  8021. for cc_temp in $compiler""; do
  8022.   case $cc_temp in
  8023.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8024.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8025.     \-*) ;;
  8026.     *) break;;
  8027.   esac
  8028. done
  8029. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8030.  
  8031.  
  8032. # Only perform the check for file, if the check method requires it
  8033. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8034. case $deplibs_check_method in
  8035. file_magic*)
  8036.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8037.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8038. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8039. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8040.   $as_echo_n "(cached) " >&6
  8041. else
  8042.   case $MAGIC_CMD in
  8043. [\\/*] |  ?:[\\/]*)
  8044.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8045.   ;;
  8046. *)
  8047.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8048.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8049.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8050.   for ac_dir in $ac_dummy; do
  8051.     IFS="$lt_save_ifs"
  8052.     test -z "$ac_dir" && ac_dir=.
  8053.     if test -f $ac_dir/${ac_tool_prefix}file; then
  8054.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8055.       if test -n "$file_magic_test_file"; then
  8056.         case $deplibs_check_method in
  8057.         "file_magic "*)
  8058.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8059.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8060.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8061.             $EGREP "$file_magic_regex" > /dev/null; then
  8062.             :
  8063.           else
  8064.             cat <<_LT_EOF 1>&2
  8065.  
  8066. *** Warning: the command libtool uses to detect shared libraries,
  8067. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8068. *** The result is that libtool may fail to recognize shared libraries
  8069. *** as such.  This will affect the creation of libtool libraries that
  8070. *** depend on shared libraries, but programs linked with such libtool
  8071. *** libraries will work regardless of this problem.  Nevertheless, you
  8072. *** may want to report the problem to your system manager and/or to
  8073. *** bug-libtool@gnu.org
  8074.  
  8075. _LT_EOF
  8076.           fi ;;
  8077.         esac
  8078.       fi
  8079.       break
  8080.     fi
  8081.   done
  8082.   IFS="$lt_save_ifs"
  8083.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8084.   ;;
  8085. esac
  8086. fi
  8087.  
  8088. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8089. if test -n "$MAGIC_CMD"; then
  8090.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8091. $as_echo "$MAGIC_CMD" >&6; }
  8092. else
  8093.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8094. $as_echo "no" >&6; }
  8095. fi
  8096.  
  8097.  
  8098.  
  8099.  
  8100.  
  8101. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8102.   if test -n "$ac_tool_prefix"; then
  8103.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8104. $as_echo_n "checking for file... " >&6; }
  8105. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8106.   $as_echo_n "(cached) " >&6
  8107. else
  8108.   case $MAGIC_CMD in
  8109. [\\/*] |  ?:[\\/]*)
  8110.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8111.   ;;
  8112. *)
  8113.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8114.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8115.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8116.   for ac_dir in $ac_dummy; do
  8117.     IFS="$lt_save_ifs"
  8118.     test -z "$ac_dir" && ac_dir=.
  8119.     if test -f $ac_dir/file; then
  8120.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8121.       if test -n "$file_magic_test_file"; then
  8122.         case $deplibs_check_method in
  8123.         "file_magic "*)
  8124.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8125.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8126.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8127.             $EGREP "$file_magic_regex" > /dev/null; then
  8128.             :
  8129.           else
  8130.             cat <<_LT_EOF 1>&2
  8131.  
  8132. *** Warning: the command libtool uses to detect shared libraries,
  8133. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8134. *** The result is that libtool may fail to recognize shared libraries
  8135. *** as such.  This will affect the creation of libtool libraries that
  8136. *** depend on shared libraries, but programs linked with such libtool
  8137. *** libraries will work regardless of this problem.  Nevertheless, you
  8138. *** may want to report the problem to your system manager and/or to
  8139. *** bug-libtool@gnu.org
  8140.  
  8141. _LT_EOF
  8142.           fi ;;
  8143.         esac
  8144.       fi
  8145.       break
  8146.     fi
  8147.   done
  8148.   IFS="$lt_save_ifs"
  8149.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8150.   ;;
  8151. esac
  8152. fi
  8153.  
  8154. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8155. if test -n "$MAGIC_CMD"; then
  8156.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8157. $as_echo "$MAGIC_CMD" >&6; }
  8158. else
  8159.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8160. $as_echo "no" >&6; }
  8161. fi
  8162.  
  8163.  
  8164.   else
  8165.     MAGIC_CMD=:
  8166.   fi
  8167. fi
  8168.  
  8169.   fi
  8170.   ;;
  8171. esac
  8172.  
  8173. # Use C for the default configuration in the libtool script
  8174.  
  8175. lt_save_CC="$CC"
  8176. ac_ext=c
  8177. ac_cpp='$CPP $CPPFLAGS'
  8178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8181.  
  8182.  
  8183. # Source file extension for C test sources.
  8184. ac_ext=c
  8185.  
  8186. # Object file extension for compiled C test sources.
  8187. objext=o
  8188. objext=$objext
  8189.  
  8190. # Code to be used in simple compile tests
  8191. lt_simple_compile_test_code="int some_variable = 0;"
  8192.  
  8193. # Code to be used in simple link tests
  8194. lt_simple_link_test_code='int main(){return(0);}'
  8195.  
  8196.  
  8197.  
  8198.  
  8199.  
  8200.  
  8201.  
  8202. # If no C compiler was specified, use CC.
  8203. LTCC=${LTCC-"$CC"}
  8204.  
  8205. # If no C compiler flags were specified, use CFLAGS.
  8206. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8207.  
  8208. # Allow CC to be a program name with arguments.
  8209. compiler=$CC
  8210.  
  8211. # Save the default compiler, since it gets overwritten when the other
  8212. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8213. compiler_DEFAULT=$CC
  8214.  
  8215. # save warnings/boilerplate of simple test code
  8216. ac_outfile=conftest.$ac_objext
  8217. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8218. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8219. _lt_compiler_boilerplate=`cat conftest.err`
  8220. $RM conftest*
  8221.  
  8222. ac_outfile=conftest.$ac_objext
  8223. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8224. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8225. _lt_linker_boilerplate=`cat conftest.err`
  8226. $RM -r conftest*
  8227.  
  8228.  
  8229. if test -n "$compiler"; then
  8230.  
  8231. lt_prog_compiler_no_builtin_flag=
  8232.  
  8233. if test "$GCC" = yes; then
  8234.   case $cc_basename in
  8235.   nvcc*)
  8236.     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8237.   *)
  8238.     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8239.   esac
  8240.  
  8241.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8242. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8243. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8244.   $as_echo_n "(cached) " >&6
  8245. else
  8246.   lt_cv_prog_compiler_rtti_exceptions=no
  8247.    ac_outfile=conftest.$ac_objext
  8248.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8249.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  8250.    # Insert the option either (1) after the last *FLAGS variable, or
  8251.    # (2) before a word containing "conftest.", or (3) at the end.
  8252.    # Note that $ac_compile itself does not contain backslashes and begins
  8253.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8254.    # The option is referenced via a variable to avoid confusing sed.
  8255.    lt_compile=`echo "$ac_compile" | $SED \
  8256.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8257.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8258.    -e 's:$: $lt_compiler_flag:'`
  8259.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8260.    (eval "$lt_compile" 2>conftest.err)
  8261.    ac_status=$?
  8262.    cat conftest.err >&5
  8263.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8264.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8265.      # The compiler can only warn and ignore the option if not recognized
  8266.      # So say no if there are warnings other than the usual output.
  8267.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8268.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8269.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8270.        lt_cv_prog_compiler_rtti_exceptions=yes
  8271.      fi
  8272.    fi
  8273.    $RM conftest*
  8274.  
  8275. fi
  8276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8277. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8278.  
  8279. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8280.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8281. else
  8282.     :
  8283. fi
  8284.  
  8285. fi
  8286.  
  8287.  
  8288.  
  8289.  
  8290.  
  8291.  
  8292.   lt_prog_compiler_wl=
  8293. lt_prog_compiler_pic=
  8294. lt_prog_compiler_static=
  8295.  
  8296.  
  8297.   if test "$GCC" = yes; then
  8298.     lt_prog_compiler_wl='-Wl,'
  8299.     lt_prog_compiler_static='-static'
  8300.  
  8301.     case $host_os in
  8302.       aix*)
  8303.       # All AIX code is PIC.
  8304.       if test "$host_cpu" = ia64; then
  8305.         # AIX 5 now supports IA64 processor
  8306.         lt_prog_compiler_static='-Bstatic'
  8307.       fi
  8308.       ;;
  8309.  
  8310.     amigaos*)
  8311.       case $host_cpu in
  8312.       powerpc)
  8313.             # see comment about AmigaOS4 .so support
  8314.             lt_prog_compiler_pic='-fPIC'
  8315.         ;;
  8316.       m68k)
  8317.             # FIXME: we need at least 68020 code to build shared libraries, but
  8318.             # adding the `-m68020' flag to GCC prevents building anything better,
  8319.             # like `-m68040'.
  8320.             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8321.         ;;
  8322.       esac
  8323.       ;;
  8324.  
  8325.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8326.       # PIC is the default for these OSes.
  8327.       ;;
  8328.  
  8329.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8330.       # This hack is so that the source file can tell whether it is being
  8331.       # built for inclusion in a dll (and should export symbols for example).
  8332.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8333.       # (--disable-auto-import) libraries
  8334.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8335.       ;;
  8336.  
  8337.     darwin* | rhapsody*)
  8338.       # PIC is the default on this platform
  8339.       # Common symbols not allowed in MH_DYLIB files
  8340.       lt_prog_compiler_pic='-fno-common'
  8341.       ;;
  8342.  
  8343.     haiku*)
  8344.       # PIC is the default for Haiku.
  8345.       # The "-static" flag exists, but is broken.
  8346.       lt_prog_compiler_static=
  8347.       ;;
  8348.  
  8349.     hpux*)
  8350.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8351.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  8352.       # sets the default TLS model and affects inlining.
  8353.       case $host_cpu in
  8354.       hppa*64*)
  8355.         # +Z the default
  8356.         ;;
  8357.       *)
  8358.         lt_prog_compiler_pic='-fPIC'
  8359.         ;;
  8360.       esac
  8361.       ;;
  8362.  
  8363.     interix[3-9]*)
  8364.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8365.       # Instead, we relocate shared libraries at runtime.
  8366.       ;;
  8367.  
  8368.     msdosdjgpp*)
  8369.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  8370.       # on systems that don't support them.
  8371.       lt_prog_compiler_can_build_shared=no
  8372.       enable_shared=no
  8373.       ;;
  8374.  
  8375.     *nto* | *qnx*)
  8376.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8377.       # it will coredump.
  8378.       lt_prog_compiler_pic='-fPIC -shared'
  8379.       ;;
  8380.  
  8381.     sysv4*MP*)
  8382.       if test -d /usr/nec; then
  8383.         lt_prog_compiler_pic=-Kconform_pic
  8384.       fi
  8385.       ;;
  8386.  
  8387.     *)
  8388.       lt_prog_compiler_pic='-fPIC'
  8389.       ;;
  8390.     esac
  8391.  
  8392.     case $cc_basename in
  8393.     nvcc*) # Cuda Compiler Driver 2.2
  8394.       lt_prog_compiler_wl='-Xlinker '
  8395.       if test -n "$lt_prog_compiler_pic"; then
  8396.         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8397.       fi
  8398.       ;;
  8399.     esac
  8400.   else
  8401.     # PORTME Check for flag to pass linker flags through the system compiler.
  8402.     case $host_os in
  8403.     aix*)
  8404.       lt_prog_compiler_wl='-Wl,'
  8405.       if test "$host_cpu" = ia64; then
  8406.         # AIX 5 now supports IA64 processor
  8407.         lt_prog_compiler_static='-Bstatic'
  8408.       else
  8409.         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8410.       fi
  8411.       ;;
  8412.  
  8413.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8414.       # This hack is so that the source file can tell whether it is being
  8415.       # built for inclusion in a dll (and should export symbols for example).
  8416.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8417.       ;;
  8418.  
  8419.     hpux9* | hpux10* | hpux11*)
  8420.       lt_prog_compiler_wl='-Wl,'
  8421.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8422.       # not for PA HP-UX.
  8423.       case $host_cpu in
  8424.       hppa*64*|ia64*)
  8425.         # +Z the default
  8426.         ;;
  8427.       *)
  8428.         lt_prog_compiler_pic='+Z'
  8429.         ;;
  8430.       esac
  8431.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8432.       lt_prog_compiler_static='${wl}-a ${wl}archive'
  8433.       ;;
  8434.  
  8435.     irix5* | irix6* | nonstopux*)
  8436.       lt_prog_compiler_wl='-Wl,'
  8437.       # PIC (with -KPIC) is the default.
  8438.       lt_prog_compiler_static='-non_shared'
  8439.       ;;
  8440.  
  8441.     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8442.       case $cc_basename in
  8443.       # old Intel for x86_64 which still supported -KPIC.
  8444.       ecc*)
  8445.         lt_prog_compiler_wl='-Wl,'
  8446.         lt_prog_compiler_pic='-KPIC'
  8447.         lt_prog_compiler_static='-static'
  8448.         ;;
  8449.       # icc used to be incompatible with GCC.
  8450.       # ICC 10 doesn't accept -KPIC any more.
  8451.       icc* | ifort*)
  8452.         lt_prog_compiler_wl='-Wl,'
  8453.         lt_prog_compiler_pic='-fPIC'
  8454.         lt_prog_compiler_static='-static'
  8455.         ;;
  8456.       # Lahey Fortran 8.1.
  8457.       lf95*)
  8458.         lt_prog_compiler_wl='-Wl,'
  8459.         lt_prog_compiler_pic='--shared'
  8460.         lt_prog_compiler_static='--static'
  8461.         ;;
  8462.       nagfor*)
  8463.         # NAG Fortran compiler
  8464.         lt_prog_compiler_wl='-Wl,-Wl,,'
  8465.         lt_prog_compiler_pic='-PIC'
  8466.         lt_prog_compiler_static='-Bstatic'
  8467.         ;;
  8468.       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8469.         # Portland Group compilers (*not* the Pentium gcc compiler,
  8470.         # which looks to be a dead project)
  8471.         lt_prog_compiler_wl='-Wl,'
  8472.         lt_prog_compiler_pic='-fpic'
  8473.         lt_prog_compiler_static='-Bstatic'
  8474.         ;;
  8475.       ccc*)
  8476.         lt_prog_compiler_wl='-Wl,'
  8477.         # All Alpha code is PIC.
  8478.         lt_prog_compiler_static='-non_shared'
  8479.         ;;
  8480.       xl* | bgxl* | bgf* | mpixl*)
  8481.         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8482.         lt_prog_compiler_wl='-Wl,'
  8483.         lt_prog_compiler_pic='-qpic'
  8484.         lt_prog_compiler_static='-qstaticlink'
  8485.         ;;
  8486.       *)
  8487.         case `$CC -V 2>&1 | sed 5q` in
  8488.         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8489.           # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8490.           lt_prog_compiler_pic='-KPIC'
  8491.           lt_prog_compiler_static='-Bstatic'
  8492.           lt_prog_compiler_wl=''
  8493.           ;;
  8494.         *Sun\ F* | *Sun*Fortran*)
  8495.           lt_prog_compiler_pic='-KPIC'
  8496.           lt_prog_compiler_static='-Bstatic'
  8497.           lt_prog_compiler_wl='-Qoption ld '
  8498.           ;;
  8499.         *Sun\ C*)
  8500.           # Sun C 5.9
  8501.           lt_prog_compiler_pic='-KPIC'
  8502.           lt_prog_compiler_static='-Bstatic'
  8503.           lt_prog_compiler_wl='-Wl,'
  8504.           ;;
  8505.         *Intel*\ [CF]*Compiler*)
  8506.           lt_prog_compiler_wl='-Wl,'
  8507.           lt_prog_compiler_pic='-fPIC'
  8508.           lt_prog_compiler_static='-static'
  8509.           ;;
  8510.         *Portland\ Group*)
  8511.           lt_prog_compiler_wl='-Wl,'
  8512.           lt_prog_compiler_pic='-fpic'
  8513.           lt_prog_compiler_static='-Bstatic'
  8514.           ;;
  8515.         esac
  8516.         ;;
  8517.       esac
  8518.       ;;
  8519.  
  8520.     newsos6)
  8521.       lt_prog_compiler_pic='-KPIC'
  8522.       lt_prog_compiler_static='-Bstatic'
  8523.       ;;
  8524.  
  8525.     *nto* | *qnx*)
  8526.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8527.       # it will coredump.
  8528.       lt_prog_compiler_pic='-fPIC -shared'
  8529.       ;;
  8530.  
  8531.     osf3* | osf4* | osf5*)
  8532.       lt_prog_compiler_wl='-Wl,'
  8533.       # All OSF/1 code is PIC.
  8534.       lt_prog_compiler_static='-non_shared'
  8535.       ;;
  8536.  
  8537.     rdos*)
  8538.       lt_prog_compiler_static='-non_shared'
  8539.       ;;
  8540.  
  8541.     solaris*)
  8542.       lt_prog_compiler_pic='-KPIC'
  8543.       lt_prog_compiler_static='-Bstatic'
  8544.       case $cc_basename in
  8545.       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8546.         lt_prog_compiler_wl='-Qoption ld ';;
  8547.       *)
  8548.         lt_prog_compiler_wl='-Wl,';;
  8549.       esac
  8550.       ;;
  8551.  
  8552.     sunos4*)
  8553.       lt_prog_compiler_wl='-Qoption ld '
  8554.       lt_prog_compiler_pic='-PIC'
  8555.       lt_prog_compiler_static='-Bstatic'
  8556.       ;;
  8557.  
  8558.     sysv4 | sysv4.2uw2* | sysv4.3*)
  8559.       lt_prog_compiler_wl='-Wl,'
  8560.       lt_prog_compiler_pic='-KPIC'
  8561.       lt_prog_compiler_static='-Bstatic'
  8562.       ;;
  8563.  
  8564.     sysv4*MP*)
  8565.       if test -d /usr/nec ;then
  8566.         lt_prog_compiler_pic='-Kconform_pic'
  8567.         lt_prog_compiler_static='-Bstatic'
  8568.       fi
  8569.       ;;
  8570.  
  8571.     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8572.       lt_prog_compiler_wl='-Wl,'
  8573.       lt_prog_compiler_pic='-KPIC'
  8574.       lt_prog_compiler_static='-Bstatic'
  8575.       ;;
  8576.  
  8577.     unicos*)
  8578.       lt_prog_compiler_wl='-Wl,'
  8579.       lt_prog_compiler_can_build_shared=no
  8580.       ;;
  8581.  
  8582.     uts4*)
  8583.       lt_prog_compiler_pic='-pic'
  8584.       lt_prog_compiler_static='-Bstatic'
  8585.       ;;
  8586.  
  8587.     *)
  8588.       lt_prog_compiler_can_build_shared=no
  8589.       ;;
  8590.     esac
  8591.   fi
  8592.  
  8593. case $host_os in
  8594.   # For platforms which do not support PIC, -DPIC is meaningless:
  8595.   *djgpp*)
  8596.     lt_prog_compiler_pic=
  8597.     ;;
  8598.   *)
  8599.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8600.     ;;
  8601. esac
  8602.  
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8604. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8605. if ${lt_cv_prog_compiler_pic+:} false; then :
  8606.   $as_echo_n "(cached) " >&6
  8607. else
  8608.   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8609. fi
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8611. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8612. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8613.  
  8614. #
  8615. # Check to make sure the PIC flag actually works.
  8616. #
  8617. if test -n "$lt_prog_compiler_pic"; then
  8618.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8619. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8620. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8621.   $as_echo_n "(cached) " >&6
  8622. else
  8623.   lt_cv_prog_compiler_pic_works=no
  8624.    ac_outfile=conftest.$ac_objext
  8625.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8626.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8627.    # Insert the option either (1) after the last *FLAGS variable, or
  8628.    # (2) before a word containing "conftest.", or (3) at the end.
  8629.    # Note that $ac_compile itself does not contain backslashes and begins
  8630.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8631.    # The option is referenced via a variable to avoid confusing sed.
  8632.    lt_compile=`echo "$ac_compile" | $SED \
  8633.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8634.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8635.    -e 's:$: $lt_compiler_flag:'`
  8636.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8637.    (eval "$lt_compile" 2>conftest.err)
  8638.    ac_status=$?
  8639.    cat conftest.err >&5
  8640.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8641.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8642.      # The compiler can only warn and ignore the option if not recognized
  8643.      # So say no if there are warnings other than the usual output.
  8644.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8645.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8646.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8647.        lt_cv_prog_compiler_pic_works=yes
  8648.      fi
  8649.    fi
  8650.    $RM conftest*
  8651.  
  8652. fi
  8653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8654. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8655.  
  8656. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8657.     case $lt_prog_compiler_pic in
  8658.      "" | " "*) ;;
  8659.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8660.      esac
  8661. else
  8662.     lt_prog_compiler_pic=
  8663.      lt_prog_compiler_can_build_shared=no
  8664. fi
  8665.  
  8666. fi
  8667.  
  8668.  
  8669.  
  8670.  
  8671.  
  8672.  
  8673.  
  8674.  
  8675.  
  8676.  
  8677.  
  8678. #
  8679. # Check to make sure the static flag actually works.
  8680. #
  8681. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8683. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8684. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8685.   $as_echo_n "(cached) " >&6
  8686. else
  8687.   lt_cv_prog_compiler_static_works=no
  8688.    save_LDFLAGS="$LDFLAGS"
  8689.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8690.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8691.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8692.      # The linker can only warn and ignore the option if not recognized
  8693.      # So say no if there are warnings
  8694.      if test -s conftest.err; then
  8695.        # Append any errors to the config.log.
  8696.        cat conftest.err 1>&5
  8697.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8698.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8699.        if diff conftest.exp conftest.er2 >/dev/null; then
  8700.          lt_cv_prog_compiler_static_works=yes
  8701.        fi
  8702.      else
  8703.        lt_cv_prog_compiler_static_works=yes
  8704.      fi
  8705.    fi
  8706.    $RM -r conftest*
  8707.    LDFLAGS="$save_LDFLAGS"
  8708.  
  8709. fi
  8710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8711. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8712.  
  8713. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8714.     :
  8715. else
  8716.     lt_prog_compiler_static=
  8717. fi
  8718.  
  8719.  
  8720.  
  8721.  
  8722.  
  8723.  
  8724.  
  8725.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8726. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8727. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8728.   $as_echo_n "(cached) " >&6
  8729. else
  8730.   lt_cv_prog_compiler_c_o=no
  8731.    $RM -r conftest 2>/dev/null
  8732.    mkdir conftest
  8733.    cd conftest
  8734.    mkdir out
  8735.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8736.  
  8737.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  8738.    # Insert the option either (1) after the last *FLAGS variable, or
  8739.    # (2) before a word containing "conftest.", or (3) at the end.
  8740.    # Note that $ac_compile itself does not contain backslashes and begins
  8741.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8742.    lt_compile=`echo "$ac_compile" | $SED \
  8743.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8744.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8745.    -e 's:$: $lt_compiler_flag:'`
  8746.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8747.    (eval "$lt_compile" 2>out/conftest.err)
  8748.    ac_status=$?
  8749.    cat out/conftest.err >&5
  8750.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8751.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8752.    then
  8753.      # The compiler can only warn and ignore the option if not recognized
  8754.      # So say no if there are warnings
  8755.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8756.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8757.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8758.        lt_cv_prog_compiler_c_o=yes
  8759.      fi
  8760.    fi
  8761.    chmod u+w . 2>&5
  8762.    $RM conftest*
  8763.    # SGI C++ compiler will create directory out/ii_files/ for
  8764.    # template instantiation
  8765.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8766.    $RM out/* && rmdir out
  8767.    cd ..
  8768.    $RM -r conftest
  8769.    $RM conftest*
  8770.  
  8771. fi
  8772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8773. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8774.  
  8775.  
  8776.  
  8777.  
  8778.  
  8779.  
  8780.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8781. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8782. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8783.   $as_echo_n "(cached) " >&6
  8784. else
  8785.   lt_cv_prog_compiler_c_o=no
  8786.    $RM -r conftest 2>/dev/null
  8787.    mkdir conftest
  8788.    cd conftest
  8789.    mkdir out
  8790.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8791.  
  8792.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  8793.    # Insert the option either (1) after the last *FLAGS variable, or
  8794.    # (2) before a word containing "conftest.", or (3) at the end.
  8795.    # Note that $ac_compile itself does not contain backslashes and begins
  8796.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8797.    lt_compile=`echo "$ac_compile" | $SED \
  8798.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8799.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8800.    -e 's:$: $lt_compiler_flag:'`
  8801.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8802.    (eval "$lt_compile" 2>out/conftest.err)
  8803.    ac_status=$?
  8804.    cat out/conftest.err >&5
  8805.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8806.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8807.    then
  8808.      # The compiler can only warn and ignore the option if not recognized
  8809.      # So say no if there are warnings
  8810.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8811.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8812.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8813.        lt_cv_prog_compiler_c_o=yes
  8814.      fi
  8815.    fi
  8816.    chmod u+w . 2>&5
  8817.    $RM conftest*
  8818.    # SGI C++ compiler will create directory out/ii_files/ for
  8819.    # template instantiation
  8820.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8821.    $RM out/* && rmdir out
  8822.    cd ..
  8823.    $RM -r conftest
  8824.    $RM conftest*
  8825.  
  8826. fi
  8827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8828. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8829.  
  8830.  
  8831.  
  8832.  
  8833. hard_links="nottested"
  8834. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8835.   # do not overwrite the value of need_locks provided by the user
  8836.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8837. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8838.   hard_links=yes
  8839.   $RM conftest*
  8840.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8841.   touch conftest.a
  8842.   ln conftest.a conftest.b 2>&5 || hard_links=no
  8843.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8844.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8845. $as_echo "$hard_links" >&6; }
  8846.   if test "$hard_links" = no; then
  8847.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8848. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8849.     need_locks=warn
  8850.   fi
  8851. else
  8852.   need_locks=no
  8853. fi
  8854.  
  8855.  
  8856.  
  8857.  
  8858.  
  8859.  
  8860.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8861. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8862.  
  8863.   runpath_var=
  8864.   allow_undefined_flag=
  8865.   always_export_symbols=no
  8866.   archive_cmds=
  8867.   archive_expsym_cmds=
  8868.   compiler_needs_object=no
  8869.   enable_shared_with_static_runtimes=no
  8870.   export_dynamic_flag_spec=
  8871.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8872.   hardcode_automatic=no
  8873.   hardcode_direct=no
  8874.   hardcode_direct_absolute=no
  8875.   hardcode_libdir_flag_spec=
  8876.   hardcode_libdir_separator=
  8877.   hardcode_minus_L=no
  8878.   hardcode_shlibpath_var=unsupported
  8879.   inherit_rpath=no
  8880.   link_all_deplibs=unknown
  8881.   module_cmds=
  8882.   module_expsym_cmds=
  8883.   old_archive_from_new_cmds=
  8884.   old_archive_from_expsyms_cmds=
  8885.   thread_safe_flag_spec=
  8886.   whole_archive_flag_spec=
  8887.   # include_expsyms should be a list of space-separated symbols to be *always*
  8888.   # included in the symbol list
  8889.   include_expsyms=
  8890.   # exclude_expsyms can be an extended regexp of symbols to exclude
  8891.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8892.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8893.   # as well as any symbol that contains `d'.
  8894.   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8895.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8896.   # platforms (ab)use it in PIC code, but their linkers get confused if
  8897.   # the symbol is explicitly referenced.  Since portable code cannot
  8898.   # rely on this symbol name, it's probably fine to never include it in
  8899.   # preloaded symbol tables.
  8900.   # Exclude shared library initialization/finalization symbols.
  8901.   extract_expsyms_cmds=
  8902.  
  8903.   case $host_os in
  8904.   cygwin* | mingw* | pw32* | cegcc*)
  8905.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8906.     # When not using gcc, we currently assume that we are using
  8907.     # Microsoft Visual C++.
  8908.     if test "$GCC" != yes; then
  8909.       with_gnu_ld=no
  8910.     fi
  8911.     ;;
  8912.   interix*)
  8913.     # we just hope/assume this is gcc and not c89 (= MSVC++)
  8914.     with_gnu_ld=yes
  8915.     ;;
  8916.   openbsd*)
  8917.     with_gnu_ld=no
  8918.     ;;
  8919.   linux* | k*bsd*-gnu | gnu*)
  8920.     link_all_deplibs=no
  8921.     ;;
  8922.   esac
  8923.  
  8924.   ld_shlibs=yes
  8925.  
  8926.   # On some targets, GNU ld is compatible enough with the native linker
  8927.   # that we're better off using the native interface for both.
  8928.   lt_use_gnu_ld_interface=no
  8929.   if test "$with_gnu_ld" = yes; then
  8930.     case $host_os in
  8931.       aix*)
  8932.         # The AIX port of GNU ld has always aspired to compatibility
  8933.         # with the native linker.  However, as the warning in the GNU ld
  8934.         # block says, versions before 2.19.5* couldn't really create working
  8935.         # shared libraries, regardless of the interface used.
  8936.         case `$LD -v 2>&1` in
  8937.           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8938.           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8939.           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8940.           *)
  8941.             lt_use_gnu_ld_interface=yes
  8942.             ;;
  8943.         esac
  8944.         ;;
  8945.       *)
  8946.         lt_use_gnu_ld_interface=yes
  8947.         ;;
  8948.     esac
  8949.   fi
  8950.  
  8951.   if test "$lt_use_gnu_ld_interface" = yes; then
  8952.     # If archive_cmds runs LD, not CC, wlarc should be empty
  8953.     wlarc='${wl}'
  8954.  
  8955.     # Set some defaults for GNU ld with shared library support. These
  8956.     # are reset later if shared libraries are not supported. Putting them
  8957.     # here allows them to be overridden if necessary.
  8958.     runpath_var=LD_RUN_PATH
  8959.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8960.     export_dynamic_flag_spec='${wl}--export-dynamic'
  8961.     # ancient GNU ld didn't support --whole-archive et. al.
  8962.     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8963.       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8964.     else
  8965.       whole_archive_flag_spec=
  8966.     fi
  8967.     supports_anon_versioning=no
  8968.     case `$LD -v 2>&1` in
  8969.       *GNU\ gold*) supports_anon_versioning=yes ;;
  8970.       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8971.       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8972.       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8973.       *\ 2.11.*) ;; # other 2.11 versions
  8974.       *) supports_anon_versioning=yes ;;
  8975.     esac
  8976.  
  8977.     # See if GNU ld supports shared libraries.
  8978.     case $host_os in
  8979.     aix[3-9]*)
  8980.       # On AIX/PPC, the GNU linker is very broken
  8981.       if test "$host_cpu" != ia64; then
  8982.         ld_shlibs=no
  8983.         cat <<_LT_EOF 1>&2
  8984.  
  8985. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8986. *** to be unable to reliably create shared libraries on AIX.
  8987. *** Therefore, libtool is disabling shared libraries support.  If you
  8988. *** really care for shared libraries, you may want to install binutils
  8989. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8990. *** You will then need to restart the configuration process.
  8991.  
  8992. _LT_EOF
  8993.       fi
  8994.       ;;
  8995.  
  8996.     amigaos*)
  8997.       case $host_cpu in
  8998.       powerpc)
  8999.             # see comment about AmigaOS4 .so support
  9000.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9001.             archive_expsym_cmds=''
  9002.         ;;
  9003.       m68k)
  9004.             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9005.             hardcode_libdir_flag_spec='-L$libdir'
  9006.             hardcode_minus_L=yes
  9007.         ;;
  9008.       esac
  9009.       ;;
  9010.  
  9011.     beos*)
  9012.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9013.         allow_undefined_flag=unsupported
  9014.         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9015.         # support --undefined.  This deserves some investigation.  FIXME
  9016.         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9017.       else
  9018.         ld_shlibs=no
  9019.       fi
  9020.       ;;
  9021.  
  9022.     cygwin* | mingw* | pw32* | cegcc*)
  9023.       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9024.       # as there is no search path for DLLs.
  9025.       hardcode_libdir_flag_spec='-L$libdir'
  9026.       export_dynamic_flag_spec='${wl}--export-all-symbols'
  9027.       allow_undefined_flag=unsupported
  9028.       always_export_symbols=no
  9029.       enable_shared_with_static_runtimes=yes
  9030.       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  9031.       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9032.  
  9033.       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9034.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9035.         # If the export-symbols file already is a .def file (1st line
  9036.         # is EXPORTS), use it as is; otherwise, prepend...
  9037.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9038.           cp $export_symbols $output_objdir/$soname.def;
  9039.         else
  9040.           echo EXPORTS > $output_objdir/$soname.def;
  9041.           cat $export_symbols >> $output_objdir/$soname.def;
  9042.         fi~
  9043.         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9044.       else
  9045.         ld_shlibs=no
  9046.       fi
  9047.       ;;
  9048.  
  9049.     haiku*)
  9050.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9051.       link_all_deplibs=yes
  9052.       ;;
  9053.  
  9054.     interix[3-9]*)
  9055.       hardcode_direct=no
  9056.       hardcode_shlibpath_var=no
  9057.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9058.       export_dynamic_flag_spec='${wl}-E'
  9059.       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9060.       # Instead, shared libraries are loaded at an image base (0x10000000 by
  9061.       # default) and relocated if they conflict, which is a slow very memory
  9062.       # consuming and fragmenting process.  To avoid this, we pick a random,
  9063.       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9064.       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  9065.       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9066.       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9067.       ;;
  9068.  
  9069.     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9070.       tmp_diet=no
  9071.       if test "$host_os" = linux-dietlibc; then
  9072.         case $cc_basename in
  9073.           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
  9074.         esac
  9075.       fi
  9076.       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9077.          && test "$tmp_diet" = no
  9078.       then
  9079.         tmp_addflag=' $pic_flag'
  9080.         tmp_sharedflag='-shared'
  9081.         case $cc_basename,$host_cpu in
  9082.         pgcc*)                          # Portland Group C compiler
  9083.           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9084.           tmp_addflag=' $pic_flag'
  9085.           ;;
  9086.         pgf77* | pgf90* | pgf95* | pgfortran*)
  9087.                                         # Portland Group f77 and f90 compilers
  9088.           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9089.           tmp_addflag=' $pic_flag -Mnomain' ;;
  9090.         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
  9091.           tmp_addflag=' -i_dynamic' ;;
  9092.         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
  9093.           tmp_addflag=' -i_dynamic -nofor_main' ;;
  9094.         ifc* | ifort*)                  # Intel Fortran compiler
  9095.           tmp_addflag=' -nofor_main' ;;
  9096.         lf95*)                          # Lahey Fortran 8.1
  9097.           whole_archive_flag_spec=
  9098.           tmp_sharedflag='--shared' ;;
  9099.         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9100.           tmp_sharedflag='-qmkshrobj'
  9101.           tmp_addflag= ;;
  9102.         nvcc*)  # Cuda Compiler Driver 2.2
  9103.           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9104.           compiler_needs_object=yes
  9105.           ;;
  9106.         esac
  9107.         case `$CC -V 2>&1 | sed 5q` in
  9108.         *Sun\ C*)                       # Sun C 5.9
  9109.           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9110.           compiler_needs_object=yes
  9111.           tmp_sharedflag='-G' ;;
  9112.         *Sun\ F*)                       # Sun Fortran 8.3
  9113.           tmp_sharedflag='-G' ;;
  9114.         esac
  9115.         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9116.  
  9117.         if test "x$supports_anon_versioning" = xyes; then
  9118.           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9119.             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9120.             echo "local: *; };" >> $output_objdir/$libname.ver~
  9121.             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9122.         fi
  9123.  
  9124.         case $cc_basename in
  9125.         xlf* | bgf* | bgxlf* | mpixlf*)
  9126.           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9127.           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9128.           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9129.           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9130.           if test "x$supports_anon_versioning" = xyes; then
  9131.             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9132.               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9133.               echo "local: *; };" >> $output_objdir/$libname.ver~
  9134.               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9135.           fi
  9136.           ;;
  9137.         esac
  9138.       else
  9139.         ld_shlibs=no
  9140.       fi
  9141.       ;;
  9142.  
  9143.     netbsd* | netbsdelf*-gnu)
  9144.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9145.         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9146.         wlarc=
  9147.       else
  9148.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9149.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9150.       fi
  9151.       ;;
  9152.  
  9153.     solaris*)
  9154.       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9155.         ld_shlibs=no
  9156.         cat <<_LT_EOF 1>&2
  9157.  
  9158. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9159. *** create shared libraries on Solaris systems.  Therefore, libtool
  9160. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9161. *** binutils to release 2.9.1 or newer.  Another option is to modify
  9162. *** your PATH or compiler configuration so that the native linker is
  9163. *** used, and then restart.
  9164.  
  9165. _LT_EOF
  9166.       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9167.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9168.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9169.       else
  9170.         ld_shlibs=no
  9171.       fi
  9172.       ;;
  9173.  
  9174.     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9175.       case `$LD -v 2>&1` in
  9176.         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9177.         ld_shlibs=no
  9178.         cat <<_LT_EOF 1>&2
  9179.  
  9180. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9181. *** reliably create shared libraries on SCO systems.  Therefore, libtool
  9182. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9183. *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  9184. *** your PATH or compiler configuration so that the native linker is
  9185. *** used, and then restart.
  9186.  
  9187. _LT_EOF
  9188.         ;;
  9189.         *)
  9190.           # For security reasons, it is highly recommended that you always
  9191.           # use absolute paths for naming shared libraries, and exclude the
  9192.           # DT_RUNPATH tag from executables and libraries.  But doing so
  9193.           # requires that you compile everything twice, which is a pain.
  9194.           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9195.             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9196.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9197.             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9198.           else
  9199.             ld_shlibs=no
  9200.           fi
  9201.         ;;
  9202.       esac
  9203.       ;;
  9204.  
  9205.     sunos4*)
  9206.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9207.       wlarc=
  9208.       hardcode_direct=yes
  9209.       hardcode_shlibpath_var=no
  9210.       ;;
  9211.  
  9212.     *)
  9213.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9214.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9215.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9216.       else
  9217.         ld_shlibs=no
  9218.       fi
  9219.       ;;
  9220.     esac
  9221.  
  9222.     if test "$ld_shlibs" = no; then
  9223.       runpath_var=
  9224.       hardcode_libdir_flag_spec=
  9225.       export_dynamic_flag_spec=
  9226.       whole_archive_flag_spec=
  9227.     fi
  9228.   else
  9229.     # PORTME fill in a description of your system's linker (not GNU ld)
  9230.     case $host_os in
  9231.     aix3*)
  9232.       allow_undefined_flag=unsupported
  9233.       always_export_symbols=yes
  9234.       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9235.       # Note: this linker hardcodes the directories in LIBPATH if there
  9236.       # are no directories specified by -L.
  9237.       hardcode_minus_L=yes
  9238.       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9239.         # Neither direct hardcoding nor static linking is supported with a
  9240.         # broken collect2.
  9241.         hardcode_direct=unsupported
  9242.       fi
  9243.       ;;
  9244.  
  9245.     aix[4-9]*)
  9246.       if test "$host_cpu" = ia64; then
  9247.         # On IA64, the linker does run time linking by default, so we don't
  9248.         # have to do anything special.
  9249.         aix_use_runtimelinking=no
  9250.         exp_sym_flag='-Bexport'
  9251.         no_entry_flag=""
  9252.       else
  9253.         # If we're using GNU nm, then we don't want the "-C" option.
  9254.         # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9255.         # Also, AIX nm treats weak defined symbols like other global
  9256.         # defined symbols, whereas GNU nm marks them as "W".
  9257.         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9258.           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  9259.         else
  9260.           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  9261.         fi
  9262.         aix_use_runtimelinking=no
  9263.  
  9264.         # Test if we are trying to use run time linking or normal
  9265.         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9266.         # need to do runtime linking.
  9267.         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9268.           for ld_flag in $LDFLAGS; do
  9269.           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9270.             aix_use_runtimelinking=yes
  9271.             break
  9272.           fi
  9273.           done
  9274.           ;;
  9275.         esac
  9276.  
  9277.         exp_sym_flag='-bexport'
  9278.         no_entry_flag='-bnoentry'
  9279.       fi
  9280.  
  9281.       # When large executables or shared objects are built, AIX ld can
  9282.       # have problems creating the table of contents.  If linking a library
  9283.       # or program results in "error TOC overflow" add -mminimal-toc to
  9284.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  9285.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9286.  
  9287.       archive_cmds=''
  9288.       hardcode_direct=yes
  9289.       hardcode_direct_absolute=yes
  9290.       hardcode_libdir_separator=':'
  9291.       link_all_deplibs=yes
  9292.       file_list_spec='${wl}-f,'
  9293.  
  9294.       if test "$GCC" = yes; then
  9295.         case $host_os in aix4.[012]|aix4.[012].*)
  9296.         # We only want to do this on AIX 4.2 and lower, the check
  9297.         # below for broken collect2 doesn't work under 4.3+
  9298.           collect2name=`${CC} -print-prog-name=collect2`
  9299.           if test -f "$collect2name" &&
  9300.            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9301.           then
  9302.           # We have reworked collect2
  9303.           :
  9304.           else
  9305.           # We have old collect2
  9306.           hardcode_direct=unsupported
  9307.           # It fails to find uninstalled libraries when the uninstalled
  9308.           # path is not listed in the libpath.  Setting hardcode_minus_L
  9309.           # to unsupported forces relinking
  9310.           hardcode_minus_L=yes
  9311.           hardcode_libdir_flag_spec='-L$libdir'
  9312.           hardcode_libdir_separator=
  9313.           fi
  9314.           ;;
  9315.         esac
  9316.         shared_flag='-shared'
  9317.         if test "$aix_use_runtimelinking" = yes; then
  9318.           shared_flag="$shared_flag "'${wl}-G'
  9319.         fi
  9320.         link_all_deplibs=no
  9321.       else
  9322.         # not using gcc
  9323.         if test "$host_cpu" = ia64; then
  9324.         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9325.         # chokes on -Wl,-G. The following line is correct:
  9326.           shared_flag='-G'
  9327.         else
  9328.           if test "$aix_use_runtimelinking" = yes; then
  9329.             shared_flag='${wl}-G'
  9330.           else
  9331.             shared_flag='${wl}-bM:SRE'
  9332.           fi
  9333.         fi
  9334.       fi
  9335.  
  9336.       export_dynamic_flag_spec='${wl}-bexpall'
  9337.       # It seems that -bexpall does not export symbols beginning with
  9338.       # underscore (_), so it is better to generate a list of symbols to export.
  9339.       always_export_symbols=yes
  9340.       if test "$aix_use_runtimelinking" = yes; then
  9341.         # Warning - without using the other runtime loading flags (-brtl),
  9342.         # -berok will link without error, but may produce a broken library.
  9343.         allow_undefined_flag='-berok'
  9344.         # Determine the default libpath from the value encoded in an
  9345.         # empty executable.
  9346.         if test "${lt_cv_aix_libpath+set}" = set; then
  9347.   aix_libpath=$lt_cv_aix_libpath
  9348. else
  9349.   if ${lt_cv_aix_libpath_+:} false; then :
  9350.   $as_echo_n "(cached) " >&6
  9351. else
  9352.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9353. /* end confdefs.h.  */
  9354.  
  9355. int
  9356. main ()
  9357. {
  9358.  
  9359.   ;
  9360.   return 0;
  9361. }
  9362. _ACEOF
  9363. if ac_fn_c_try_link "$LINENO"; then :
  9364.  
  9365.   lt_aix_libpath_sed='
  9366.       /Import File Strings/,/^$/ {
  9367.           /^0/ {
  9368.               s/^0  *\([^ ]*\) *$/\1/
  9369.               p
  9370.           }
  9371.       }'
  9372.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9373.   # Check for a 64-bit object if we didn't find anything.
  9374.   if test -z "$lt_cv_aix_libpath_"; then
  9375.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9376.   fi
  9377. fi
  9378. rm -f core conftest.err conftest.$ac_objext \
  9379.     conftest$ac_exeext conftest.$ac_ext
  9380.   if test -z "$lt_cv_aix_libpath_"; then
  9381.     lt_cv_aix_libpath_="/usr/lib:/lib"
  9382.   fi
  9383.  
  9384. fi
  9385.  
  9386.   aix_libpath=$lt_cv_aix_libpath_
  9387. fi
  9388.  
  9389.         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9390.         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9391.       else
  9392.         if test "$host_cpu" = ia64; then
  9393.           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9394.           allow_undefined_flag="-z nodefs"
  9395.           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9396.         else
  9397.          # Determine the default libpath from the value encoded in an
  9398.          # empty executable.
  9399.          if test "${lt_cv_aix_libpath+set}" = set; then
  9400.   aix_libpath=$lt_cv_aix_libpath
  9401. else
  9402.   if ${lt_cv_aix_libpath_+:} false; then :
  9403.   $as_echo_n "(cached) " >&6
  9404. else
  9405.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9406. /* end confdefs.h.  */
  9407.  
  9408. int
  9409. main ()
  9410. {
  9411.  
  9412.   ;
  9413.   return 0;
  9414. }
  9415. _ACEOF
  9416. if ac_fn_c_try_link "$LINENO"; then :
  9417.  
  9418.   lt_aix_libpath_sed='
  9419.       /Import File Strings/,/^$/ {
  9420.           /^0/ {
  9421.               s/^0  *\([^ ]*\) *$/\1/
  9422.               p
  9423.           }
  9424.       }'
  9425.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9426.   # Check for a 64-bit object if we didn't find anything.
  9427.   if test -z "$lt_cv_aix_libpath_"; then
  9428.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9429.   fi
  9430. fi
  9431. rm -f core conftest.err conftest.$ac_objext \
  9432.     conftest$ac_exeext conftest.$ac_ext
  9433.   if test -z "$lt_cv_aix_libpath_"; then
  9434.     lt_cv_aix_libpath_="/usr/lib:/lib"
  9435.   fi
  9436.  
  9437. fi
  9438.  
  9439.   aix_libpath=$lt_cv_aix_libpath_
  9440. fi
  9441.  
  9442.          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9443.           # Warning - without using the other run time loading flags,
  9444.           # -berok will link without error, but may produce a broken library.
  9445.           no_undefined_flag=' ${wl}-bernotok'
  9446.           allow_undefined_flag=' ${wl}-berok'
  9447.           if test "$with_gnu_ld" = yes; then
  9448.             # We only use this code for GNU lds that support --whole-archive.
  9449.             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9450.           else
  9451.             # Exported symbols can be pulled into shared objects from archives
  9452.             whole_archive_flag_spec='$convenience'
  9453.           fi
  9454.           archive_cmds_need_lc=yes
  9455.           # This is similar to how AIX traditionally builds its shared libraries.
  9456.           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9457.         fi
  9458.       fi
  9459.       ;;
  9460.  
  9461.     amigaos*)
  9462.       case $host_cpu in
  9463.       powerpc)
  9464.             # see comment about AmigaOS4 .so support
  9465.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9466.             archive_expsym_cmds=''
  9467.         ;;
  9468.       m68k)
  9469.             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9470.             hardcode_libdir_flag_spec='-L$libdir'
  9471.             hardcode_minus_L=yes
  9472.         ;;
  9473.       esac
  9474.       ;;
  9475.  
  9476.     bsdi[45]*)
  9477.       export_dynamic_flag_spec=-rdynamic
  9478.       ;;
  9479.  
  9480.     cygwin* | mingw* | pw32* | cegcc*)
  9481.       # When not using gcc, we currently assume that we are using
  9482.       # Microsoft Visual C++.
  9483.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  9484.       # no search path for DLLs.
  9485.       case $cc_basename in
  9486.       cl*)
  9487.         # Native MSVC
  9488.         hardcode_libdir_flag_spec=' '
  9489.         allow_undefined_flag=unsupported
  9490.         always_export_symbols=yes
  9491.         file_list_spec='@'
  9492.         # Tell ltmain to make .lib files, not .a files.
  9493.         libext=lib
  9494.         # Tell ltmain to make .dll files, not .so files.
  9495.         shrext_cmds=".dll"
  9496.         # FIXME: Setting linknames here is a bad hack.
  9497.         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9498.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9499.             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9500.           else
  9501.             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9502.           fi~
  9503.           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9504.           linknames='
  9505.         # The linker will not automatically build a static lib if we build a DLL.
  9506.         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9507.         enable_shared_with_static_runtimes=yes
  9508.         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9509.         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9510.         # Don't use ranlib
  9511.         old_postinstall_cmds='chmod 644 $oldlib'
  9512.         postlink_cmds='lt_outputfile="@OUTPUT@"~
  9513.           lt_tool_outputfile="@TOOL_OUTPUT@"~
  9514.           case $lt_outputfile in
  9515.             *.exe|*.EXE) ;;
  9516.             *)
  9517.               lt_outputfile="$lt_outputfile.exe"
  9518.               lt_tool_outputfile="$lt_tool_outputfile.exe"
  9519.               ;;
  9520.           esac~
  9521.           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9522.             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9523.             $RM "$lt_outputfile.manifest";
  9524.           fi'
  9525.         ;;
  9526.       *)
  9527.         # Assume MSVC wrapper
  9528.         hardcode_libdir_flag_spec=' '
  9529.         allow_undefined_flag=unsupported
  9530.         # Tell ltmain to make .lib files, not .a files.
  9531.         libext=lib
  9532.         # Tell ltmain to make .dll files, not .so files.
  9533.         shrext_cmds=".dll"
  9534.         # FIXME: Setting linknames here is a bad hack.
  9535.         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9536.         # The linker will automatically build a .lib file if we build a DLL.
  9537.         old_archive_from_new_cmds='true'
  9538.         # FIXME: Should let the user specify the lib program.
  9539.         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9540.         enable_shared_with_static_runtimes=yes
  9541.         ;;
  9542.       esac
  9543.       ;;
  9544.  
  9545.     darwin* | rhapsody*)
  9546.  
  9547.  
  9548.   archive_cmds_need_lc=no
  9549.   hardcode_direct=no
  9550.   hardcode_automatic=yes
  9551.   hardcode_shlibpath_var=unsupported
  9552.   if test "$lt_cv_ld_force_load" = "yes"; then
  9553.     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9554.  
  9555.   else
  9556.     whole_archive_flag_spec=''
  9557.   fi
  9558.   link_all_deplibs=yes
  9559.   allow_undefined_flag="$_lt_dar_allow_undefined"
  9560.   case $cc_basename in
  9561.      ifort*) _lt_dar_can_shared=yes ;;
  9562.      *) _lt_dar_can_shared=$GCC ;;
  9563.   esac
  9564.   if test "$_lt_dar_can_shared" = "yes"; then
  9565.     output_verbose_link_cmd=func_echo_all
  9566.     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9567.     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9568.     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  9569.     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  9570.  
  9571.   else
  9572.   ld_shlibs=no
  9573.   fi
  9574.  
  9575.       ;;
  9576.  
  9577.     dgux*)
  9578.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9579.       hardcode_libdir_flag_spec='-L$libdir'
  9580.       hardcode_shlibpath_var=no
  9581.       ;;
  9582.  
  9583.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9584.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  9585.     # does not break anything, and helps significantly (at the cost of a little
  9586.     # extra space).
  9587.     freebsd2.2*)
  9588.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9589.       hardcode_libdir_flag_spec='-R$libdir'
  9590.       hardcode_direct=yes
  9591.       hardcode_shlibpath_var=no
  9592.       ;;
  9593.  
  9594.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9595.     freebsd2.*)
  9596.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9597.       hardcode_direct=yes
  9598.       hardcode_minus_L=yes
  9599.       hardcode_shlibpath_var=no
  9600.       ;;
  9601.  
  9602.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9603.     freebsd* | dragonfly*)
  9604.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9605.       hardcode_libdir_flag_spec='-R$libdir'
  9606.       hardcode_direct=yes
  9607.       hardcode_shlibpath_var=no
  9608.       ;;
  9609.  
  9610.     hpux9*)
  9611.       if test "$GCC" = yes; then
  9612.         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9613.       else
  9614.         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9615.       fi
  9616.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9617.       hardcode_libdir_separator=:
  9618.       hardcode_direct=yes
  9619.  
  9620.       # hardcode_minus_L: Not really in the search PATH,
  9621.       # but as the default location of the library.
  9622.       hardcode_minus_L=yes
  9623.       export_dynamic_flag_spec='${wl}-E'
  9624.       ;;
  9625.  
  9626.     hpux10*)
  9627.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9628.         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9629.       else
  9630.         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9631.       fi
  9632.       if test "$with_gnu_ld" = no; then
  9633.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9634.         hardcode_libdir_separator=:
  9635.         hardcode_direct=yes
  9636.         hardcode_direct_absolute=yes
  9637.         export_dynamic_flag_spec='${wl}-E'
  9638.         # hardcode_minus_L: Not really in the search PATH,
  9639.         # but as the default location of the library.
  9640.         hardcode_minus_L=yes
  9641.       fi
  9642.       ;;
  9643.  
  9644.     hpux11*)
  9645.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9646.         case $host_cpu in
  9647.         hppa*64*)
  9648.           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9649.           ;;
  9650.         ia64*)
  9651.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9652.           ;;
  9653.         *)
  9654.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9655.           ;;
  9656.         esac
  9657.       else
  9658.         case $host_cpu in
  9659.         hppa*64*)
  9660.           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9661.           ;;
  9662.         ia64*)
  9663.           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9664.           ;;
  9665.         *)
  9666.  
  9667.           # Older versions of the 11.00 compiler do not understand -b yet
  9668.           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9669.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9670. $as_echo_n "checking if $CC understands -b... " >&6; }
  9671. if ${lt_cv_prog_compiler__b+:} false; then :
  9672.   $as_echo_n "(cached) " >&6
  9673. else
  9674.   lt_cv_prog_compiler__b=no
  9675.    save_LDFLAGS="$LDFLAGS"
  9676.    LDFLAGS="$LDFLAGS -b"
  9677.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9678.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9679.      # The linker can only warn and ignore the option if not recognized
  9680.      # So say no if there are warnings
  9681.      if test -s conftest.err; then
  9682.        # Append any errors to the config.log.
  9683.        cat conftest.err 1>&5
  9684.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9685.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9686.        if diff conftest.exp conftest.er2 >/dev/null; then
  9687.          lt_cv_prog_compiler__b=yes
  9688.        fi
  9689.      else
  9690.        lt_cv_prog_compiler__b=yes
  9691.      fi
  9692.    fi
  9693.    $RM -r conftest*
  9694.    LDFLAGS="$save_LDFLAGS"
  9695.  
  9696. fi
  9697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9698. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9699.  
  9700. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9701.     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9702. else
  9703.     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9704. fi
  9705.  
  9706.           ;;
  9707.         esac
  9708.       fi
  9709.       if test "$with_gnu_ld" = no; then
  9710.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9711.         hardcode_libdir_separator=:
  9712.  
  9713.         case $host_cpu in
  9714.         hppa*64*|ia64*)
  9715.           hardcode_direct=no
  9716.           hardcode_shlibpath_var=no
  9717.           ;;
  9718.         *)
  9719.           hardcode_direct=yes
  9720.           hardcode_direct_absolute=yes
  9721.           export_dynamic_flag_spec='${wl}-E'
  9722.  
  9723.           # hardcode_minus_L: Not really in the search PATH,
  9724.           # but as the default location of the library.
  9725.           hardcode_minus_L=yes
  9726.           ;;
  9727.         esac
  9728.       fi
  9729.       ;;
  9730.  
  9731.     irix5* | irix6* | nonstopux*)
  9732.       if test "$GCC" = yes; then
  9733.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9734.         # Try to use the -exported_symbol ld option, if it does not
  9735.         # work, assume that -exports_file does not work either and
  9736.         # implicitly export all symbols.
  9737.         # This should be the same for all languages, so no per-tag cache variable.
  9738.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9739. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9740. if ${lt_cv_irix_exported_symbol+:} false; then :
  9741.   $as_echo_n "(cached) " >&6
  9742. else
  9743.   save_LDFLAGS="$LDFLAGS"
  9744.            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9745.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9746. /* end confdefs.h.  */
  9747. int foo (void) { return 0; }
  9748. _ACEOF
  9749. if ac_fn_c_try_link "$LINENO"; then :
  9750.   lt_cv_irix_exported_symbol=yes
  9751. else
  9752.   lt_cv_irix_exported_symbol=no
  9753. fi
  9754. rm -f core conftest.err conftest.$ac_objext \
  9755.     conftest$ac_exeext conftest.$ac_ext
  9756.            LDFLAGS="$save_LDFLAGS"
  9757. fi
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9759. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9760.         if test "$lt_cv_irix_exported_symbol" = yes; then
  9761.           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9762.         fi
  9763.       else
  9764.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9765.         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9766.       fi
  9767.       archive_cmds_need_lc='no'
  9768.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9769.       hardcode_libdir_separator=:
  9770.       inherit_rpath=yes
  9771.       link_all_deplibs=yes
  9772.       ;;
  9773.  
  9774.     netbsd* | netbsdelf*-gnu)
  9775.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9776.         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  9777.       else
  9778.         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  9779.       fi
  9780.       hardcode_libdir_flag_spec='-R$libdir'
  9781.       hardcode_direct=yes
  9782.       hardcode_shlibpath_var=no
  9783.       ;;
  9784.  
  9785.     newsos6)
  9786.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9787.       hardcode_direct=yes
  9788.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9789.       hardcode_libdir_separator=:
  9790.       hardcode_shlibpath_var=no
  9791.       ;;
  9792.  
  9793.     *nto* | *qnx*)
  9794.       ;;
  9795.  
  9796.     openbsd*)
  9797.       if test -f /usr/libexec/ld.so; then
  9798.         hardcode_direct=yes
  9799.         hardcode_shlibpath_var=no
  9800.         hardcode_direct_absolute=yes
  9801.         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9802.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9803.           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9804.           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9805.           export_dynamic_flag_spec='${wl}-E'
  9806.         else
  9807.           case $host_os in
  9808.            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9809.              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9810.              hardcode_libdir_flag_spec='-R$libdir'
  9811.              ;;
  9812.            *)
  9813.              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9814.              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9815.              ;;
  9816.           esac
  9817.         fi
  9818.       else
  9819.         ld_shlibs=no
  9820.       fi
  9821.       ;;
  9822.  
  9823.     os2*)
  9824.       hardcode_libdir_flag_spec='-L$libdir'
  9825.       hardcode_minus_L=yes
  9826.       allow_undefined_flag=unsupported
  9827.       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9828.       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9829.       ;;
  9830.  
  9831.     osf3*)
  9832.       if test "$GCC" = yes; then
  9833.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9834.         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9835.       else
  9836.         allow_undefined_flag=' -expect_unresolved \*'
  9837.         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9838.       fi
  9839.       archive_cmds_need_lc='no'
  9840.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9841.       hardcode_libdir_separator=:
  9842.       ;;
  9843.  
  9844.     osf4* | osf5*)      # as osf3* with the addition of -msym flag
  9845.       if test "$GCC" = yes; then
  9846.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9847.         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9848.         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9849.       else
  9850.         allow_undefined_flag=' -expect_unresolved \*'
  9851.         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9852.         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9853.         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9854.  
  9855.         # Both c and cxx compiler support -rpath directly
  9856.         hardcode_libdir_flag_spec='-rpath $libdir'
  9857.       fi
  9858.       archive_cmds_need_lc='no'
  9859.       hardcode_libdir_separator=:
  9860.       ;;
  9861.  
  9862.     solaris*)
  9863.       no_undefined_flag=' -z defs'
  9864.       if test "$GCC" = yes; then
  9865.         wlarc='${wl}'
  9866.         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9867.         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9868.           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9869.       else
  9870.         case `$CC -V 2>&1` in
  9871.         *"Compilers 5.0"*)
  9872.           wlarc=''
  9873.           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9874.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9875.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9876.           ;;
  9877.         *)
  9878.           wlarc='${wl}'
  9879.           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9880.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9881.           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9882.           ;;
  9883.         esac
  9884.       fi
  9885.       hardcode_libdir_flag_spec='-R$libdir'
  9886.       hardcode_shlibpath_var=no
  9887.       case $host_os in
  9888.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  9889.       *)
  9890.         # The compiler driver will combine and reorder linker options,
  9891.         # but understands `-z linker_flag'.  GCC discards it without `$wl',
  9892.         # but is careful enough not to reorder.
  9893.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  9894.         if test "$GCC" = yes; then
  9895.           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9896.         else
  9897.           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9898.         fi
  9899.         ;;
  9900.       esac
  9901.       link_all_deplibs=yes
  9902.       ;;
  9903.  
  9904.     sunos4*)
  9905.       if test "x$host_vendor" = xsequent; then
  9906.         # Use $CC to link under sequent, because it throws in some extra .o
  9907.         # files that make .init and .fini sections work.
  9908.         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9909.       else
  9910.         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9911.       fi
  9912.       hardcode_libdir_flag_spec='-L$libdir'
  9913.       hardcode_direct=yes
  9914.       hardcode_minus_L=yes
  9915.       hardcode_shlibpath_var=no
  9916.       ;;
  9917.  
  9918.     sysv4)
  9919.       case $host_vendor in
  9920.         sni)
  9921.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9922.           hardcode_direct=yes # is this really true???
  9923.         ;;
  9924.         siemens)
  9925.           ## LD is ld it makes a PLAMLIB
  9926.           ## CC just makes a GrossModule.
  9927.           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9928.           reload_cmds='$CC -r -o $output$reload_objs'
  9929.           hardcode_direct=no
  9930.         ;;
  9931.         motorola)
  9932.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9933.           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9934.         ;;
  9935.       esac
  9936.       runpath_var='LD_RUN_PATH'
  9937.       hardcode_shlibpath_var=no
  9938.       ;;
  9939.  
  9940.     sysv4.3*)
  9941.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9942.       hardcode_shlibpath_var=no
  9943.       export_dynamic_flag_spec='-Bexport'
  9944.       ;;
  9945.  
  9946.     sysv4*MP*)
  9947.       if test -d /usr/nec; then
  9948.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9949.         hardcode_shlibpath_var=no
  9950.         runpath_var=LD_RUN_PATH
  9951.         hardcode_runpath_var=yes
  9952.         ld_shlibs=yes
  9953.       fi
  9954.       ;;
  9955.  
  9956.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9957.       no_undefined_flag='${wl}-z,text'
  9958.       archive_cmds_need_lc=no
  9959.       hardcode_shlibpath_var=no
  9960.       runpath_var='LD_RUN_PATH'
  9961.  
  9962.       if test "$GCC" = yes; then
  9963.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9964.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9965.       else
  9966.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9967.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9968.       fi
  9969.       ;;
  9970.  
  9971.     sysv5* | sco3.2v5* | sco5v6*)
  9972.       # Note: We can NOT use -z defs as we might desire, because we do not
  9973.       # link with -lc, and that would cause any symbols used from libc to
  9974.       # always be unresolved, which means just about no library would
  9975.       # ever link correctly.  If we're not using GNU ld we use -z text
  9976.       # though, which does catch some bad symbols but isn't as heavy-handed
  9977.       # as -z defs.
  9978.       no_undefined_flag='${wl}-z,text'
  9979.       allow_undefined_flag='${wl}-z,nodefs'
  9980.       archive_cmds_need_lc=no
  9981.       hardcode_shlibpath_var=no
  9982.       hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9983.       hardcode_libdir_separator=':'
  9984.       link_all_deplibs=yes
  9985.       export_dynamic_flag_spec='${wl}-Bexport'
  9986.       runpath_var='LD_RUN_PATH'
  9987.  
  9988.       if test "$GCC" = yes; then
  9989.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9990.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9991.       else
  9992.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9993.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9994.       fi
  9995.       ;;
  9996.  
  9997.     uts4*)
  9998.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9999.       hardcode_libdir_flag_spec='-L$libdir'
  10000.       hardcode_shlibpath_var=no
  10001.       ;;
  10002.  
  10003.     *)
  10004.       ld_shlibs=no
  10005.       ;;
  10006.     esac
  10007.  
  10008.     if test x$host_vendor = xsni; then
  10009.       case $host in
  10010.       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10011.         export_dynamic_flag_spec='${wl}-Blargedynsym'
  10012.         ;;
  10013.       esac
  10014.     fi
  10015.   fi
  10016.  
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10018. $as_echo "$ld_shlibs" >&6; }
  10019. test "$ld_shlibs" = no && can_build_shared=no
  10020.  
  10021. with_gnu_ld=$with_gnu_ld
  10022.  
  10023.  
  10024.  
  10025.  
  10026.  
  10027.  
  10028.  
  10029.  
  10030.  
  10031.  
  10032.  
  10033.  
  10034.  
  10035.  
  10036.  
  10037. #
  10038. # Do we need to explicitly link libc?
  10039. #
  10040. case "x$archive_cmds_need_lc" in
  10041. x|xyes)
  10042.   # Assume -lc should be added
  10043.   archive_cmds_need_lc=yes
  10044.  
  10045.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  10046.     case $archive_cmds in
  10047.     *'~'*)
  10048.       # FIXME: we may have to deal with multi-command sequences.
  10049.       ;;
  10050.     '$CC '*)
  10051.       # Test whether the compiler implicitly links with -lc since on some
  10052.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10053.       # to ld, don't add -lc before -lgcc.
  10054.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10055. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10056. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10057.   $as_echo_n "(cached) " >&6
  10058. else
  10059.   $RM conftest*
  10060.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10061.  
  10062.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10063.   (eval $ac_compile) 2>&5
  10064.   ac_status=$?
  10065.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10066.   test $ac_status = 0; } 2>conftest.err; then
  10067.           soname=conftest
  10068.           lib=conftest
  10069.           libobjs=conftest.$ac_objext
  10070.           deplibs=
  10071.           wl=$lt_prog_compiler_wl
  10072.           pic_flag=$lt_prog_compiler_pic
  10073.           compiler_flags=-v
  10074.           linker_flags=-v
  10075.           verstring=
  10076.           output_objdir=.
  10077.           libname=conftest
  10078.           lt_save_allow_undefined_flag=$allow_undefined_flag
  10079.           allow_undefined_flag=
  10080.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10081.   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10082.   ac_status=$?
  10083.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10084.   test $ac_status = 0; }
  10085.           then
  10086.             lt_cv_archive_cmds_need_lc=no
  10087.           else
  10088.             lt_cv_archive_cmds_need_lc=yes
  10089.           fi
  10090.           allow_undefined_flag=$lt_save_allow_undefined_flag
  10091.         else
  10092.           cat conftest.err 1>&5
  10093.         fi
  10094.         $RM conftest*
  10095.  
  10096. fi
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10098. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10099.       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10100.       ;;
  10101.     esac
  10102.   fi
  10103.   ;;
  10104. esac
  10105.  
  10106.  
  10107.  
  10108.  
  10109.  
  10110.  
  10111.  
  10112.  
  10113.  
  10114.  
  10115.  
  10116.  
  10117.  
  10118.  
  10119.  
  10120.  
  10121.  
  10122.  
  10123.  
  10124.  
  10125.  
  10126.  
  10127.  
  10128.  
  10129.  
  10130.  
  10131.  
  10132.  
  10133.  
  10134.  
  10135.  
  10136.  
  10137.  
  10138.  
  10139.  
  10140.  
  10141.  
  10142.  
  10143.  
  10144.  
  10145.  
  10146.  
  10147.  
  10148.  
  10149.  
  10150.  
  10151.  
  10152.  
  10153.  
  10154.  
  10155.  
  10156.  
  10157.  
  10158.  
  10159.  
  10160.  
  10161.  
  10162.  
  10163.  
  10164.  
  10165.  
  10166.  
  10167.  
  10168.  
  10169.  
  10170.  
  10171.  
  10172.  
  10173.  
  10174.  
  10175.  
  10176.  
  10177.  
  10178.  
  10179.  
  10180.  
  10181.  
  10182.  
  10183.  
  10184.  
  10185.  
  10186.  
  10187.  
  10188.  
  10189.  
  10190.  
  10191.  
  10192.  
  10193.  
  10194.  
  10195.  
  10196.  
  10197.  
  10198.  
  10199.  
  10200.  
  10201.  
  10202.  
  10203.  
  10204.  
  10205.  
  10206.  
  10207.  
  10208.  
  10209.  
  10210.  
  10211.  
  10212.  
  10213.  
  10214.  
  10215.  
  10216.  
  10217.  
  10218.  
  10219.  
  10220.  
  10221.  
  10222.  
  10223.  
  10224.  
  10225.  
  10226.  
  10227.  
  10228.  
  10229.  
  10230.  
  10231.  
  10232.  
  10233.  
  10234.  
  10235.  
  10236.  
  10237.  
  10238.  
  10239.  
  10240.  
  10241.  
  10242.  
  10243.  
  10244.  
  10245.  
  10246.  
  10247.  
  10248.  
  10249.  
  10250.  
  10251.  
  10252.  
  10253.  
  10254.  
  10255.  
  10256.  
  10257.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10258. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10259.  
  10260. if test "$GCC" = yes; then
  10261.   case $host_os in
  10262.     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10263.     *) lt_awk_arg="/^libraries:/" ;;
  10264.   esac
  10265.   case $host_os in
  10266.     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  10267.     *) lt_sed_strip_eq="s,=/,/,g" ;;
  10268.   esac
  10269.   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10270.   case $lt_search_path_spec in
  10271.   *\;*)
  10272.     # if the path contains ";" then we assume it to be the separator
  10273.     # otherwise default to the standard path separator (i.e. ":") - it is
  10274.     # assumed that no part of a normal pathname contains ";" but that should
  10275.     # okay in the real world where ";" in dirpaths is itself problematic.
  10276.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10277.     ;;
  10278.   *)
  10279.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10280.     ;;
  10281.   esac
  10282.   # Ok, now we have the path, separated by spaces, we can step through it
  10283.   # and add multilib dir if necessary.
  10284.   lt_tmp_lt_search_path_spec=
  10285.   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10286.   for lt_sys_path in $lt_search_path_spec; do
  10287.     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10288.       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10289.     else
  10290.       test -d "$lt_sys_path" && \
  10291.         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10292.     fi
  10293.   done
  10294.   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10295. BEGIN {RS=" "; FS="/|\n";} {
  10296.   lt_foo="";
  10297.   lt_count=0;
  10298.   for (lt_i = NF; lt_i > 0; lt_i--) {
  10299.     if ($lt_i != "" && $lt_i != ".") {
  10300.       if ($lt_i == "..") {
  10301.         lt_count++;
  10302.       } else {
  10303.         if (lt_count == 0) {
  10304.           lt_foo="/" $lt_i lt_foo;
  10305.         } else {
  10306.           lt_count--;
  10307.         }
  10308.       }
  10309.     }
  10310.   }
  10311.   if (lt_foo != "") { lt_freq[lt_foo]++; }
  10312.   if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10313. }'`
  10314.   # AWK program above erroneously prepends '/' to C:/dos/paths
  10315.   # for these hosts.
  10316.   case $host_os in
  10317.     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10318.       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  10319.   esac
  10320.   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10321. else
  10322.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10323. fi
  10324. library_names_spec=
  10325. libname_spec='lib$name'
  10326. soname_spec=
  10327. shrext_cmds=".so"
  10328. postinstall_cmds=
  10329. postuninstall_cmds=
  10330. finish_cmds=
  10331. finish_eval=
  10332. shlibpath_var=
  10333. shlibpath_overrides_runpath=unknown
  10334. version_type=none
  10335. dynamic_linker="$host_os ld.so"
  10336. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10337. need_lib_prefix=unknown
  10338. hardcode_into_libs=no
  10339.  
  10340. # when you set need_version to no, make sure it does not cause -set_version
  10341. # flags to be left without arguments
  10342. need_version=unknown
  10343.  
  10344. case $host_os in
  10345. aix3*)
  10346.   version_type=linux # correct to gnu/linux during the next big refactor
  10347.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10348.   shlibpath_var=LIBPATH
  10349.  
  10350.   # AIX 3 has no versioning support, so we append a major version to the name.
  10351.   soname_spec='${libname}${release}${shared_ext}$major'
  10352.   ;;
  10353.  
  10354. aix[4-9]*)
  10355.   version_type=linux # correct to gnu/linux during the next big refactor
  10356.   need_lib_prefix=no
  10357.   need_version=no
  10358.   hardcode_into_libs=yes
  10359.   if test "$host_cpu" = ia64; then
  10360.     # AIX 5 supports IA64
  10361.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10362.     shlibpath_var=LD_LIBRARY_PATH
  10363.   else
  10364.     # With GCC up to 2.95.x, collect2 would create an import file
  10365.     # for dependence libraries.  The import file would start with
  10366.     # the line `#! .'.  This would cause the generated library to
  10367.     # depend on `.', always an invalid library.  This was fixed in
  10368.     # development snapshots of GCC prior to 3.0.
  10369.     case $host_os in
  10370.       aix4 | aix4.[01] | aix4.[01].*)
  10371.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10372.            echo ' yes '
  10373.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10374.         :
  10375.       else
  10376.         can_build_shared=no
  10377.       fi
  10378.       ;;
  10379.     esac
  10380.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10381.     # soname into executable. Probably we can add versioning support to
  10382.     # collect2, so additional links can be useful in future.
  10383.     if test "$aix_use_runtimelinking" = yes; then
  10384.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10385.       # instead of lib<name>.a to let people know that these are not
  10386.       # typical AIX shared libraries.
  10387.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10388.     else
  10389.       # We preserve .a as extension for shared libraries through AIX4.2
  10390.       # and later when we are not doing run time linking.
  10391.       library_names_spec='${libname}${release}.a $libname.a'
  10392.       soname_spec='${libname}${release}${shared_ext}$major'
  10393.     fi
  10394.     shlibpath_var=LIBPATH
  10395.   fi
  10396.   ;;
  10397.  
  10398. amigaos*)
  10399.   case $host_cpu in
  10400.   powerpc)
  10401.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  10402.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10403.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10404.     ;;
  10405.   m68k)
  10406.     library_names_spec='$libname.ixlibrary $libname.a'
  10407.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10408.     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10409.     ;;
  10410.   esac
  10411.   ;;
  10412.  
  10413. beos*)
  10414.   library_names_spec='${libname}${shared_ext}'
  10415.   dynamic_linker="$host_os ld.so"
  10416.   shlibpath_var=LIBRARY_PATH
  10417.   ;;
  10418.  
  10419. bsdi[45]*)
  10420.   version_type=linux # correct to gnu/linux during the next big refactor
  10421.   need_version=no
  10422.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10423.   soname_spec='${libname}${release}${shared_ext}$major'
  10424.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10425.   shlibpath_var=LD_LIBRARY_PATH
  10426.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10427.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10428.   # the default ld.so.conf also contains /usr/contrib/lib and
  10429.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10430.   # libtool to hard-code these into programs
  10431.   ;;
  10432.  
  10433. cygwin* | mingw* | pw32* | cegcc*)
  10434.   version_type=windows
  10435.   shrext_cmds=".dll"
  10436.   need_version=no
  10437.   need_lib_prefix=no
  10438.  
  10439.   case $GCC,$cc_basename in
  10440.   yes,*)
  10441.     # gcc
  10442.     library_names_spec='$libname.dll.a'
  10443.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10444.     postinstall_cmds='base_file=`basename \${file}`~
  10445.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10446.       dldir=$destdir/`dirname \$dlpath`~
  10447.       test -d \$dldir || mkdir -p \$dldir~
  10448.       $install_prog $dir/$dlname \$dldir/$dlname~
  10449.       chmod a+x \$dldir/$dlname~
  10450.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10451.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10452.       fi'
  10453.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10454.       dlpath=$dir/\$dldll~
  10455.        $RM \$dlpath'
  10456.     shlibpath_overrides_runpath=yes
  10457.  
  10458.     case $host_os in
  10459.     cygwin*)
  10460.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10461.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10462.  
  10463.       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10464.       ;;
  10465.     mingw* | cegcc*)
  10466.       # MinGW DLLs use traditional 'lib' prefix
  10467.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10468.       ;;
  10469.     pw32*)
  10470.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  10471.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10472.       ;;
  10473.     esac
  10474.     dynamic_linker='Win32 ld.exe'
  10475.     ;;
  10476.  
  10477.   *,cl*)
  10478.     # Native MSVC
  10479.     libname_spec='$name'
  10480.     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10481.     library_names_spec='${libname}.dll.lib'
  10482.  
  10483.     case $build_os in
  10484.     mingw*)
  10485.       sys_lib_search_path_spec=
  10486.       lt_save_ifs=$IFS
  10487.       IFS=';'
  10488.       for lt_path in $LIB
  10489.       do
  10490.         IFS=$lt_save_ifs
  10491.         # Let DOS variable expansion print the short 8.3 style file name.
  10492.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10493.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10494.       done
  10495.       IFS=$lt_save_ifs
  10496.       # Convert to MSYS style.
  10497.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10498.       ;;
  10499.     cygwin*)
  10500.       # Convert to unix form, then to dos form, then back to unix form
  10501.       # but this time dos style (no spaces!) so that the unix form looks
  10502.       # like /cygdrive/c/PROGRA~1:/cygdr...
  10503.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10504.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10505.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10506.       ;;
  10507.     *)
  10508.       sys_lib_search_path_spec="$LIB"
  10509.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10510.         # It is most probably a Windows format PATH.
  10511.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10512.       else
  10513.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10514.       fi
  10515.       # FIXME: find the short name or the path components, as spaces are
  10516.       # common. (e.g. "Program Files" -> "PROGRA~1")
  10517.       ;;
  10518.     esac
  10519.  
  10520.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10521.     postinstall_cmds='base_file=`basename \${file}`~
  10522.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10523.       dldir=$destdir/`dirname \$dlpath`~
  10524.       test -d \$dldir || mkdir -p \$dldir~
  10525.       $install_prog $dir/$dlname \$dldir/$dlname'
  10526.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10527.       dlpath=$dir/\$dldll~
  10528.        $RM \$dlpath'
  10529.     shlibpath_overrides_runpath=yes
  10530.     dynamic_linker='Win32 link.exe'
  10531.     ;;
  10532.  
  10533.   *)
  10534.     # Assume MSVC wrapper
  10535.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10536.     dynamic_linker='Win32 ld.exe'
  10537.     ;;
  10538.   esac
  10539.   # FIXME: first we should search . and the directory the executable is in
  10540.   shlibpath_var=PATH
  10541.   ;;
  10542.  
  10543. darwin* | rhapsody*)
  10544.   dynamic_linker="$host_os dyld"
  10545.   version_type=darwin
  10546.   need_lib_prefix=no
  10547.   need_version=no
  10548.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10549.   soname_spec='${libname}${release}${major}$shared_ext'
  10550.   shlibpath_overrides_runpath=yes
  10551.   shlibpath_var=DYLD_LIBRARY_PATH
  10552.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10553.  
  10554.   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10555.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10556.   ;;
  10557.  
  10558. dgux*)
  10559.   version_type=linux # correct to gnu/linux during the next big refactor
  10560.   need_lib_prefix=no
  10561.   need_version=no
  10562.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10563.   soname_spec='${libname}${release}${shared_ext}$major'
  10564.   shlibpath_var=LD_LIBRARY_PATH
  10565.   ;;
  10566.  
  10567. freebsd* | dragonfly*)
  10568.   # DragonFly does not have aout.  When/if they implement a new
  10569.   # versioning mechanism, adjust this.
  10570.   if test -x /usr/bin/objformat; then
  10571.     objformat=`/usr/bin/objformat`
  10572.   else
  10573.     case $host_os in
  10574.     freebsd[23].*) objformat=aout ;;
  10575.     *) objformat=elf ;;
  10576.     esac
  10577.   fi
  10578.   version_type=freebsd-$objformat
  10579.   case $version_type in
  10580.     freebsd-elf*)
  10581.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10582.       need_version=no
  10583.       need_lib_prefix=no
  10584.       ;;
  10585.     freebsd-*)
  10586.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10587.       need_version=yes
  10588.       ;;
  10589.   esac
  10590.   shlibpath_var=LD_LIBRARY_PATH
  10591.   case $host_os in
  10592.   freebsd2.*)
  10593.     shlibpath_overrides_runpath=yes
  10594.     ;;
  10595.   freebsd3.[01]* | freebsdelf3.[01]*)
  10596.     shlibpath_overrides_runpath=yes
  10597.     hardcode_into_libs=yes
  10598.     ;;
  10599.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10600.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10601.     shlibpath_overrides_runpath=no
  10602.     hardcode_into_libs=yes
  10603.     ;;
  10604.   *) # from 4.6 on, and DragonFly
  10605.     shlibpath_overrides_runpath=yes
  10606.     hardcode_into_libs=yes
  10607.     ;;
  10608.   esac
  10609.   ;;
  10610.  
  10611. haiku*)
  10612.   version_type=linux # correct to gnu/linux during the next big refactor
  10613.   need_lib_prefix=no
  10614.   need_version=no
  10615.   dynamic_linker="$host_os runtime_loader"
  10616.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10617.   soname_spec='${libname}${release}${shared_ext}$major'
  10618.   shlibpath_var=LIBRARY_PATH
  10619.   shlibpath_overrides_runpath=yes
  10620.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10621.   hardcode_into_libs=yes
  10622.   ;;
  10623.  
  10624. hpux9* | hpux10* | hpux11*)
  10625.   # Give a soname corresponding to the major version so that dld.sl refuses to
  10626.   # link against other versions.
  10627.   version_type=sunos
  10628.   need_lib_prefix=no
  10629.   need_version=no
  10630.   case $host_cpu in
  10631.   ia64*)
  10632.     shrext_cmds='.so'
  10633.     hardcode_into_libs=yes
  10634.     dynamic_linker="$host_os dld.so"
  10635.     shlibpath_var=LD_LIBRARY_PATH
  10636.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10637.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10638.     soname_spec='${libname}${release}${shared_ext}$major'
  10639.     if test "X$HPUX_IA64_MODE" = X32; then
  10640.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10641.     else
  10642.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10643.     fi
  10644.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10645.     ;;
  10646.   hppa*64*)
  10647.     shrext_cmds='.sl'
  10648.     hardcode_into_libs=yes
  10649.     dynamic_linker="$host_os dld.sl"
  10650.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10651.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10652.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10653.     soname_spec='${libname}${release}${shared_ext}$major'
  10654.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10655.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10656.     ;;
  10657.   *)
  10658.     shrext_cmds='.sl'
  10659.     dynamic_linker="$host_os dld.sl"
  10660.     shlibpath_var=SHLIB_PATH
  10661.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10662.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10663.     soname_spec='${libname}${release}${shared_ext}$major'
  10664.     ;;
  10665.   esac
  10666.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10667.   postinstall_cmds='chmod 555 $lib'
  10668.   # or fails outright, so override atomically:
  10669.   install_override_mode=555
  10670.   ;;
  10671.  
  10672. interix[3-9]*)
  10673.   version_type=linux # correct to gnu/linux during the next big refactor
  10674.   need_lib_prefix=no
  10675.   need_version=no
  10676.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10677.   soname_spec='${libname}${release}${shared_ext}$major'
  10678.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10679.   shlibpath_var=LD_LIBRARY_PATH
  10680.   shlibpath_overrides_runpath=no
  10681.   hardcode_into_libs=yes
  10682.   ;;
  10683.  
  10684. irix5* | irix6* | nonstopux*)
  10685.   case $host_os in
  10686.     nonstopux*) version_type=nonstopux ;;
  10687.     *)
  10688.         if test "$lt_cv_prog_gnu_ld" = yes; then
  10689.                 version_type=linux # correct to gnu/linux during the next big refactor
  10690.         else
  10691.                 version_type=irix
  10692.         fi ;;
  10693.   esac
  10694.   need_lib_prefix=no
  10695.   need_version=no
  10696.   soname_spec='${libname}${release}${shared_ext}$major'
  10697.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10698.   case $host_os in
  10699.   irix5* | nonstopux*)
  10700.     libsuff= shlibsuff=
  10701.     ;;
  10702.   *)
  10703.     case $LD in # libtool.m4 will add one of these switches to LD
  10704.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10705.       libsuff= shlibsuff= libmagic=32-bit;;
  10706.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10707.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  10708.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10709.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10710.     *) libsuff= shlibsuff= libmagic=never-match;;
  10711.     esac
  10712.     ;;
  10713.   esac
  10714.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10715.   shlibpath_overrides_runpath=no
  10716.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10717.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10718.   hardcode_into_libs=yes
  10719.   ;;
  10720.  
  10721. # No shared lib support for Linux oldld, aout, or coff.
  10722. linux*oldld* | linux*aout* | linux*coff*)
  10723.   dynamic_linker=no
  10724.   ;;
  10725.  
  10726. # This must be glibc/ELF.
  10727. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10728.   version_type=linux # correct to gnu/linux during the next big refactor
  10729.   need_lib_prefix=no
  10730.   need_version=no
  10731.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10732.   soname_spec='${libname}${release}${shared_ext}$major'
  10733.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10734.   shlibpath_var=LD_LIBRARY_PATH
  10735.   shlibpath_overrides_runpath=no
  10736.  
  10737.   # Some binutils ld are patched to set DT_RUNPATH
  10738.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10739.   $as_echo_n "(cached) " >&6
  10740. else
  10741.   lt_cv_shlibpath_overrides_runpath=no
  10742.     save_LDFLAGS=$LDFLAGS
  10743.     save_libdir=$libdir
  10744.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10745.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10746.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10747. /* end confdefs.h.  */
  10748.  
  10749. int
  10750. main ()
  10751. {
  10752.  
  10753.   ;
  10754.   return 0;
  10755. }
  10756. _ACEOF
  10757. if ac_fn_c_try_link "$LINENO"; then :
  10758.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10759.   lt_cv_shlibpath_overrides_runpath=yes
  10760. fi
  10761. fi
  10762. rm -f core conftest.err conftest.$ac_objext \
  10763.     conftest$ac_exeext conftest.$ac_ext
  10764.     LDFLAGS=$save_LDFLAGS
  10765.     libdir=$save_libdir
  10766.  
  10767. fi
  10768.  
  10769.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10770.  
  10771.   # This implies no fast_install, which is unacceptable.
  10772.   # Some rework will be needed to allow for fast_install
  10773.   # before this can be enabled.
  10774.   hardcode_into_libs=yes
  10775.  
  10776.   # Append ld.so.conf contents to the search path
  10777.   if test -f /etc/ld.so.conf; then
  10778.     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10779.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10780.   fi
  10781.  
  10782.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  10783.   # powerpc, because MkLinux only supported shared libraries with the
  10784.   # GNU dynamic linker.  Since this was broken with cross compilers,
  10785.   # most powerpc-linux boxes support dynamic linking these days and
  10786.   # people can always --disable-shared, the test was removed, and we
  10787.   # assume the GNU/Linux dynamic linker is in use.
  10788.   dynamic_linker='GNU/Linux ld.so'
  10789.   ;;
  10790.  
  10791. netbsdelf*-gnu)
  10792.   version_type=linux
  10793.   need_lib_prefix=no
  10794.   need_version=no
  10795.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10796.   soname_spec='${libname}${release}${shared_ext}$major'
  10797.   shlibpath_var=LD_LIBRARY_PATH
  10798.   shlibpath_overrides_runpath=no
  10799.   hardcode_into_libs=yes
  10800.   dynamic_linker='NetBSD ld.elf_so'
  10801.   ;;
  10802.  
  10803. netbsd*)
  10804.   version_type=sunos
  10805.   need_lib_prefix=no
  10806.   need_version=no
  10807.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10808.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10809.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10810.     dynamic_linker='NetBSD (a.out) ld.so'
  10811.   else
  10812.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10813.     soname_spec='${libname}${release}${shared_ext}$major'
  10814.     dynamic_linker='NetBSD ld.elf_so'
  10815.   fi
  10816.   shlibpath_var=LD_LIBRARY_PATH
  10817.   shlibpath_overrides_runpath=yes
  10818.   hardcode_into_libs=yes
  10819.   ;;
  10820.  
  10821. newsos6)
  10822.   version_type=linux # correct to gnu/linux during the next big refactor
  10823.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10824.   shlibpath_var=LD_LIBRARY_PATH
  10825.   shlibpath_overrides_runpath=yes
  10826.   ;;
  10827.  
  10828. *nto* | *qnx*)
  10829.   version_type=qnx
  10830.   need_lib_prefix=no
  10831.   need_version=no
  10832.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10833.   soname_spec='${libname}${release}${shared_ext}$major'
  10834.   shlibpath_var=LD_LIBRARY_PATH
  10835.   shlibpath_overrides_runpath=no
  10836.   hardcode_into_libs=yes
  10837.   dynamic_linker='ldqnx.so'
  10838.   ;;
  10839.  
  10840. openbsd*)
  10841.   version_type=sunos
  10842.   sys_lib_dlsearch_path_spec="/usr/lib"
  10843.   need_lib_prefix=no
  10844.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10845.   case $host_os in
  10846.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  10847.     *)                          need_version=no  ;;
  10848.   esac
  10849.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10850.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10851.   shlibpath_var=LD_LIBRARY_PATH
  10852.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10853.     case $host_os in
  10854.       openbsd2.[89] | openbsd2.[89].*)
  10855.         shlibpath_overrides_runpath=no
  10856.         ;;
  10857.       *)
  10858.         shlibpath_overrides_runpath=yes
  10859.         ;;
  10860.       esac
  10861.   else
  10862.     shlibpath_overrides_runpath=yes
  10863.   fi
  10864.   ;;
  10865.  
  10866. os2*)
  10867.   libname_spec='$name'
  10868.   shrext_cmds=".dll"
  10869.   need_lib_prefix=no
  10870.   library_names_spec='$libname${shared_ext} $libname.a'
  10871.   dynamic_linker='OS/2 ld.exe'
  10872.   shlibpath_var=LIBPATH
  10873.   ;;
  10874.  
  10875. osf3* | osf4* | osf5*)
  10876.   version_type=osf
  10877.   need_lib_prefix=no
  10878.   need_version=no
  10879.   soname_spec='${libname}${release}${shared_ext}$major'
  10880.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10881.   shlibpath_var=LD_LIBRARY_PATH
  10882.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10883.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10884.   ;;
  10885.  
  10886. rdos*)
  10887.   dynamic_linker=no
  10888.   ;;
  10889.  
  10890. solaris*)
  10891.   version_type=linux # correct to gnu/linux during the next big refactor
  10892.   need_lib_prefix=no
  10893.   need_version=no
  10894.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10895.   soname_spec='${libname}${release}${shared_ext}$major'
  10896.   shlibpath_var=LD_LIBRARY_PATH
  10897.   shlibpath_overrides_runpath=yes
  10898.   hardcode_into_libs=yes
  10899.   # ldd complains unless libraries are executable
  10900.   postinstall_cmds='chmod +x $lib'
  10901.   ;;
  10902.  
  10903. sunos4*)
  10904.   version_type=sunos
  10905.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10906.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10907.   shlibpath_var=LD_LIBRARY_PATH
  10908.   shlibpath_overrides_runpath=yes
  10909.   if test "$with_gnu_ld" = yes; then
  10910.     need_lib_prefix=no
  10911.   fi
  10912.   need_version=yes
  10913.   ;;
  10914.  
  10915. sysv4 | sysv4.3*)
  10916.   version_type=linux # correct to gnu/linux during the next big refactor
  10917.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10918.   soname_spec='${libname}${release}${shared_ext}$major'
  10919.   shlibpath_var=LD_LIBRARY_PATH
  10920.   case $host_vendor in
  10921.     sni)
  10922.       shlibpath_overrides_runpath=no
  10923.       need_lib_prefix=no
  10924.       runpath_var=LD_RUN_PATH
  10925.       ;;
  10926.     siemens)
  10927.       need_lib_prefix=no
  10928.       ;;
  10929.     motorola)
  10930.       need_lib_prefix=no
  10931.       need_version=no
  10932.       shlibpath_overrides_runpath=no
  10933.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10934.       ;;
  10935.   esac
  10936.   ;;
  10937.  
  10938. sysv4*MP*)
  10939.   if test -d /usr/nec ;then
  10940.     version_type=linux # correct to gnu/linux during the next big refactor
  10941.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10942.     soname_spec='$libname${shared_ext}.$major'
  10943.     shlibpath_var=LD_LIBRARY_PATH
  10944.   fi
  10945.   ;;
  10946.  
  10947. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10948.   version_type=freebsd-elf
  10949.   need_lib_prefix=no
  10950.   need_version=no
  10951.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10952.   soname_spec='${libname}${release}${shared_ext}$major'
  10953.   shlibpath_var=LD_LIBRARY_PATH
  10954.   shlibpath_overrides_runpath=yes
  10955.   hardcode_into_libs=yes
  10956.   if test "$with_gnu_ld" = yes; then
  10957.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10958.   else
  10959.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10960.     case $host_os in
  10961.       sco3.2v5*)
  10962.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10963.         ;;
  10964.     esac
  10965.   fi
  10966.   sys_lib_dlsearch_path_spec='/usr/lib'
  10967.   ;;
  10968.  
  10969. tpf*)
  10970.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  10971.   version_type=linux # correct to gnu/linux during the next big refactor
  10972.   need_lib_prefix=no
  10973.   need_version=no
  10974.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10975.   shlibpath_var=LD_LIBRARY_PATH
  10976.   shlibpath_overrides_runpath=no
  10977.   hardcode_into_libs=yes
  10978.   ;;
  10979.  
  10980. uts4*)
  10981.   version_type=linux # correct to gnu/linux during the next big refactor
  10982.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10983.   soname_spec='${libname}${release}${shared_ext}$major'
  10984.   shlibpath_var=LD_LIBRARY_PATH
  10985.   ;;
  10986.  
  10987. *)
  10988.   dynamic_linker=no
  10989.   ;;
  10990. esac
  10991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10992. $as_echo "$dynamic_linker" >&6; }
  10993. test "$dynamic_linker" = no && can_build_shared=no
  10994.  
  10995. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10996. if test "$GCC" = yes; then
  10997.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10998. fi
  10999.  
  11000. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11001.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11002. fi
  11003. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11004.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11005. fi
  11006.  
  11007.  
  11008.  
  11009.  
  11010.  
  11011.  
  11012.  
  11013.  
  11014.  
  11015.  
  11016.  
  11017.  
  11018.  
  11019.  
  11020.  
  11021.  
  11022.  
  11023.  
  11024.  
  11025.  
  11026.  
  11027.  
  11028.  
  11029.  
  11030.  
  11031.  
  11032.  
  11033.  
  11034.  
  11035.  
  11036.  
  11037.  
  11038.  
  11039.  
  11040.  
  11041.  
  11042.  
  11043.  
  11044.  
  11045.  
  11046.  
  11047.  
  11048.  
  11049.  
  11050.  
  11051.  
  11052.  
  11053.  
  11054.  
  11055.  
  11056.  
  11057.  
  11058.  
  11059.  
  11060.  
  11061.  
  11062.  
  11063.  
  11064.  
  11065.  
  11066.  
  11067.  
  11068.  
  11069.  
  11070.  
  11071.  
  11072.  
  11073.  
  11074.  
  11075.  
  11076.  
  11077.  
  11078.  
  11079.  
  11080.  
  11081.  
  11082.  
  11083.  
  11084.  
  11085.  
  11086.  
  11087.  
  11088.  
  11089.  
  11090.  
  11091.  
  11092.  
  11093.  
  11094.  
  11095.  
  11096.  
  11097.  
  11098.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11099. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11100. hardcode_action=
  11101. if test -n "$hardcode_libdir_flag_spec" ||
  11102.    test -n "$runpath_var" ||
  11103.    test "X$hardcode_automatic" = "Xyes" ; then
  11104.  
  11105.   # We can hardcode non-existent directories.
  11106.   if test "$hardcode_direct" != no &&
  11107.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11108.      # have to relink, otherwise we might link with an installed library
  11109.      # when we should be linking with a yet-to-be-installed one
  11110.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11111.      test "$hardcode_minus_L" != no; then
  11112.     # Linking always hardcodes the temporary library directory.
  11113.     hardcode_action=relink
  11114.   else
  11115.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11116.     hardcode_action=immediate
  11117.   fi
  11118. else
  11119.   # We cannot hardcode anything, or else we can only hardcode existing
  11120.   # directories.
  11121.   hardcode_action=unsupported
  11122. fi
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11124. $as_echo "$hardcode_action" >&6; }
  11125.  
  11126. if test "$hardcode_action" = relink ||
  11127.    test "$inherit_rpath" = yes; then
  11128.   # Fast installation is not supported
  11129.   enable_fast_install=no
  11130. elif test "$shlibpath_overrides_runpath" = yes ||
  11131.      test "$enable_shared" = no; then
  11132.   # Fast installation is not necessary
  11133.   enable_fast_install=needless
  11134. fi
  11135.  
  11136.  
  11137.  
  11138.  
  11139.  
  11140.  
  11141.   if test "x$enable_dlopen" != xyes; then
  11142.   enable_dlopen=unknown
  11143.   enable_dlopen_self=unknown
  11144.   enable_dlopen_self_static=unknown
  11145. else
  11146.   lt_cv_dlopen=no
  11147.   lt_cv_dlopen_libs=
  11148.  
  11149.   case $host_os in
  11150.   beos*)
  11151.     lt_cv_dlopen="load_add_on"
  11152.     lt_cv_dlopen_libs=
  11153.     lt_cv_dlopen_self=yes
  11154.     ;;
  11155.  
  11156.   mingw* | pw32* | cegcc*)
  11157.     lt_cv_dlopen="LoadLibrary"
  11158.     lt_cv_dlopen_libs=
  11159.     ;;
  11160.  
  11161.   cygwin*)
  11162.     lt_cv_dlopen="dlopen"
  11163.     lt_cv_dlopen_libs=
  11164.     ;;
  11165.  
  11166.   darwin*)
  11167.   # if libdl is installed we need to link against it
  11168.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11169. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11170. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11171.   $as_echo_n "(cached) " >&6
  11172. else
  11173.   ac_check_lib_save_LIBS=$LIBS
  11174. LIBS="-ldl  $LIBS"
  11175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11176. /* end confdefs.h.  */
  11177.  
  11178. /* Override any GCC internal prototype to avoid an error.
  11179.    Use char because int might match the return type of a GCC
  11180.    builtin and then its argument prototype would still apply.  */
  11181. #ifdef __cplusplus
  11182. extern "C"
  11183. #endif
  11184. char dlopen ();
  11185. int
  11186. main ()
  11187. {
  11188. return dlopen ();
  11189.   ;
  11190.   return 0;
  11191. }
  11192. _ACEOF
  11193. if ac_fn_c_try_link "$LINENO"; then :
  11194.   ac_cv_lib_dl_dlopen=yes
  11195. else
  11196.   ac_cv_lib_dl_dlopen=no
  11197. fi
  11198. rm -f core conftest.err conftest.$ac_objext \
  11199.     conftest$ac_exeext conftest.$ac_ext
  11200. LIBS=$ac_check_lib_save_LIBS
  11201. fi
  11202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11203. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11204. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11205.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11206. else
  11207.  
  11208.     lt_cv_dlopen="dyld"
  11209.     lt_cv_dlopen_libs=
  11210.     lt_cv_dlopen_self=yes
  11211.  
  11212. fi
  11213.  
  11214.     ;;
  11215.  
  11216.   *)
  11217.     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11218. if test "x$ac_cv_func_shl_load" = xyes; then :
  11219.   lt_cv_dlopen="shl_load"
  11220. else
  11221.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11222. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11223. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11224.   $as_echo_n "(cached) " >&6
  11225. else
  11226.   ac_check_lib_save_LIBS=$LIBS
  11227. LIBS="-ldld  $LIBS"
  11228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11229. /* end confdefs.h.  */
  11230.  
  11231. /* Override any GCC internal prototype to avoid an error.
  11232.    Use char because int might match the return type of a GCC
  11233.    builtin and then its argument prototype would still apply.  */
  11234. #ifdef __cplusplus
  11235. extern "C"
  11236. #endif
  11237. char shl_load ();
  11238. int
  11239. main ()
  11240. {
  11241. return shl_load ();
  11242.   ;
  11243.   return 0;
  11244. }
  11245. _ACEOF
  11246. if ac_fn_c_try_link "$LINENO"; then :
  11247.   ac_cv_lib_dld_shl_load=yes
  11248. else
  11249.   ac_cv_lib_dld_shl_load=no
  11250. fi
  11251. rm -f core conftest.err conftest.$ac_objext \
  11252.     conftest$ac_exeext conftest.$ac_ext
  11253. LIBS=$ac_check_lib_save_LIBS
  11254. fi
  11255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11256. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11257. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11258.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11259. else
  11260.   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11261. if test "x$ac_cv_func_dlopen" = xyes; then :
  11262.   lt_cv_dlopen="dlopen"
  11263. else
  11264.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11265. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11266. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11267.   $as_echo_n "(cached) " >&6
  11268. else
  11269.   ac_check_lib_save_LIBS=$LIBS
  11270. LIBS="-ldl  $LIBS"
  11271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11272. /* end confdefs.h.  */
  11273.  
  11274. /* Override any GCC internal prototype to avoid an error.
  11275.    Use char because int might match the return type of a GCC
  11276.    builtin and then its argument prototype would still apply.  */
  11277. #ifdef __cplusplus
  11278. extern "C"
  11279. #endif
  11280. char dlopen ();
  11281. int
  11282. main ()
  11283. {
  11284. return dlopen ();
  11285.   ;
  11286.   return 0;
  11287. }
  11288. _ACEOF
  11289. if ac_fn_c_try_link "$LINENO"; then :
  11290.   ac_cv_lib_dl_dlopen=yes
  11291. else
  11292.   ac_cv_lib_dl_dlopen=no
  11293. fi
  11294. rm -f core conftest.err conftest.$ac_objext \
  11295.     conftest$ac_exeext conftest.$ac_ext
  11296. LIBS=$ac_check_lib_save_LIBS
  11297. fi
  11298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11299. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11300. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11301.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11302. else
  11303.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11304. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11305. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11306.   $as_echo_n "(cached) " >&6
  11307. else
  11308.   ac_check_lib_save_LIBS=$LIBS
  11309. LIBS="-lsvld  $LIBS"
  11310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11311. /* end confdefs.h.  */
  11312.  
  11313. /* Override any GCC internal prototype to avoid an error.
  11314.    Use char because int might match the return type of a GCC
  11315.    builtin and then its argument prototype would still apply.  */
  11316. #ifdef __cplusplus
  11317. extern "C"
  11318. #endif
  11319. char dlopen ();
  11320. int
  11321. main ()
  11322. {
  11323. return dlopen ();
  11324.   ;
  11325.   return 0;
  11326. }
  11327. _ACEOF
  11328. if ac_fn_c_try_link "$LINENO"; then :
  11329.   ac_cv_lib_svld_dlopen=yes
  11330. else
  11331.   ac_cv_lib_svld_dlopen=no
  11332. fi
  11333. rm -f core conftest.err conftest.$ac_objext \
  11334.     conftest$ac_exeext conftest.$ac_ext
  11335. LIBS=$ac_check_lib_save_LIBS
  11336. fi
  11337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11338. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11339. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11340.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11341. else
  11342.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11343. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11344. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11345.   $as_echo_n "(cached) " >&6
  11346. else
  11347.   ac_check_lib_save_LIBS=$LIBS
  11348. LIBS="-ldld  $LIBS"
  11349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11350. /* end confdefs.h.  */
  11351.  
  11352. /* Override any GCC internal prototype to avoid an error.
  11353.    Use char because int might match the return type of a GCC
  11354.    builtin and then its argument prototype would still apply.  */
  11355. #ifdef __cplusplus
  11356. extern "C"
  11357. #endif
  11358. char dld_link ();
  11359. int
  11360. main ()
  11361. {
  11362. return dld_link ();
  11363.   ;
  11364.   return 0;
  11365. }
  11366. _ACEOF
  11367. if ac_fn_c_try_link "$LINENO"; then :
  11368.   ac_cv_lib_dld_dld_link=yes
  11369. else
  11370.   ac_cv_lib_dld_dld_link=no
  11371. fi
  11372. rm -f core conftest.err conftest.$ac_objext \
  11373.     conftest$ac_exeext conftest.$ac_ext
  11374. LIBS=$ac_check_lib_save_LIBS
  11375. fi
  11376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11377. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11378. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11379.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11380. fi
  11381.  
  11382.  
  11383. fi
  11384.  
  11385.  
  11386. fi
  11387.  
  11388.  
  11389. fi
  11390.  
  11391.  
  11392. fi
  11393.  
  11394.  
  11395. fi
  11396.  
  11397.     ;;
  11398.   esac
  11399.  
  11400.   if test "x$lt_cv_dlopen" != xno; then
  11401.     enable_dlopen=yes
  11402.   else
  11403.     enable_dlopen=no
  11404.   fi
  11405.  
  11406.   case $lt_cv_dlopen in
  11407.   dlopen)
  11408.     save_CPPFLAGS="$CPPFLAGS"
  11409.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11410.  
  11411.     save_LDFLAGS="$LDFLAGS"
  11412.     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11413.  
  11414.     save_LIBS="$LIBS"
  11415.     LIBS="$lt_cv_dlopen_libs $LIBS"
  11416.  
  11417.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11418. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11419. if ${lt_cv_dlopen_self+:} false; then :
  11420.   $as_echo_n "(cached) " >&6
  11421. else
  11422.           if test "$cross_compiling" = yes; then :
  11423.   lt_cv_dlopen_self=cross
  11424. else
  11425.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11426.   lt_status=$lt_dlunknown
  11427.   cat > conftest.$ac_ext <<_LT_EOF
  11428. #line $LINENO "configure"
  11429. #include "confdefs.h"
  11430.  
  11431. #if HAVE_DLFCN_H
  11432. #include <dlfcn.h>
  11433. #endif
  11434.  
  11435. #include <stdio.h>
  11436.  
  11437. #ifdef RTLD_GLOBAL
  11438. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11439. #else
  11440. #  ifdef DL_GLOBAL
  11441. #    define LT_DLGLOBAL         DL_GLOBAL
  11442. #  else
  11443. #    define LT_DLGLOBAL         0
  11444. #  endif
  11445. #endif
  11446.  
  11447. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11448.    find out it does not work in some platform. */
  11449. #ifndef LT_DLLAZY_OR_NOW
  11450. #  ifdef RTLD_LAZY
  11451. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11452. #  else
  11453. #    ifdef DL_LAZY
  11454. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11455. #    else
  11456. #      ifdef RTLD_NOW
  11457. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11458. #      else
  11459. #        ifdef DL_NOW
  11460. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11461. #        else
  11462. #          define LT_DLLAZY_OR_NOW      0
  11463. #        endif
  11464. #      endif
  11465. #    endif
  11466. #  endif
  11467. #endif
  11468.  
  11469. /* When -fvisbility=hidden is used, assume the code has been annotated
  11470.    correspondingly for the symbols needed.  */
  11471. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11472. int fnord () __attribute__((visibility("default")));
  11473. #endif
  11474.  
  11475. int fnord () { return 42; }
  11476. int main ()
  11477. {
  11478.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11479.   int status = $lt_dlunknown;
  11480.  
  11481.   if (self)
  11482.     {
  11483.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11484.       else
  11485.         {
  11486.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11487.           else puts (dlerror ());
  11488.         }
  11489.       /* dlclose (self); */
  11490.     }
  11491.   else
  11492.     puts (dlerror ());
  11493.  
  11494.   return status;
  11495. }
  11496. _LT_EOF
  11497.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11498.   (eval $ac_link) 2>&5
  11499.   ac_status=$?
  11500.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11501.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11502.     (./conftest; exit; ) >&5 2>/dev/null
  11503.     lt_status=$?
  11504.     case x$lt_status in
  11505.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11506.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11507.       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11508.     esac
  11509.   else :
  11510.     # compilation failed
  11511.     lt_cv_dlopen_self=no
  11512.   fi
  11513. fi
  11514. rm -fr conftest*
  11515.  
  11516.  
  11517. fi
  11518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11519. $as_echo "$lt_cv_dlopen_self" >&6; }
  11520.  
  11521.     if test "x$lt_cv_dlopen_self" = xyes; then
  11522.       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11523.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11524. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11525. if ${lt_cv_dlopen_self_static+:} false; then :
  11526.   $as_echo_n "(cached) " >&6
  11527. else
  11528.           if test "$cross_compiling" = yes; then :
  11529.   lt_cv_dlopen_self_static=cross
  11530. else
  11531.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11532.   lt_status=$lt_dlunknown
  11533.   cat > conftest.$ac_ext <<_LT_EOF
  11534. #line $LINENO "configure"
  11535. #include "confdefs.h"
  11536.  
  11537. #if HAVE_DLFCN_H
  11538. #include <dlfcn.h>
  11539. #endif
  11540.  
  11541. #include <stdio.h>
  11542.  
  11543. #ifdef RTLD_GLOBAL
  11544. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11545. #else
  11546. #  ifdef DL_GLOBAL
  11547. #    define LT_DLGLOBAL         DL_GLOBAL
  11548. #  else
  11549. #    define LT_DLGLOBAL         0
  11550. #  endif
  11551. #endif
  11552.  
  11553. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11554.    find out it does not work in some platform. */
  11555. #ifndef LT_DLLAZY_OR_NOW
  11556. #  ifdef RTLD_LAZY
  11557. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11558. #  else
  11559. #    ifdef DL_LAZY
  11560. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11561. #    else
  11562. #      ifdef RTLD_NOW
  11563. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11564. #      else
  11565. #        ifdef DL_NOW
  11566. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11567. #        else
  11568. #          define LT_DLLAZY_OR_NOW      0
  11569. #        endif
  11570. #      endif
  11571. #    endif
  11572. #  endif
  11573. #endif
  11574.  
  11575. /* When -fvisbility=hidden is used, assume the code has been annotated
  11576.    correspondingly for the symbols needed.  */
  11577. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11578. int fnord () __attribute__((visibility("default")));
  11579. #endif
  11580.  
  11581. int fnord () { return 42; }
  11582. int main ()
  11583. {
  11584.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11585.   int status = $lt_dlunknown;
  11586.  
  11587.   if (self)
  11588.     {
  11589.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11590.       else
  11591.         {
  11592.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11593.           else puts (dlerror ());
  11594.         }
  11595.       /* dlclose (self); */
  11596.     }
  11597.   else
  11598.     puts (dlerror ());
  11599.  
  11600.   return status;
  11601. }
  11602. _LT_EOF
  11603.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11604.   (eval $ac_link) 2>&5
  11605.   ac_status=$?
  11606.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11607.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11608.     (./conftest; exit; ) >&5 2>/dev/null
  11609.     lt_status=$?
  11610.     case x$lt_status in
  11611.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11612.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11613.       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11614.     esac
  11615.   else :
  11616.     # compilation failed
  11617.     lt_cv_dlopen_self_static=no
  11618.   fi
  11619. fi
  11620. rm -fr conftest*
  11621.  
  11622.  
  11623. fi
  11624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11625. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11626.     fi
  11627.  
  11628.     CPPFLAGS="$save_CPPFLAGS"
  11629.     LDFLAGS="$save_LDFLAGS"
  11630.     LIBS="$save_LIBS"
  11631.     ;;
  11632.   esac
  11633.  
  11634.   case $lt_cv_dlopen_self in
  11635.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11636.   *) enable_dlopen_self=unknown ;;
  11637.   esac
  11638.  
  11639.   case $lt_cv_dlopen_self_static in
  11640.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11641.   *) enable_dlopen_self_static=unknown ;;
  11642.   esac
  11643. fi
  11644.  
  11645.  
  11646.  
  11647.  
  11648.  
  11649.  
  11650.  
  11651.  
  11652.  
  11653.  
  11654.  
  11655.  
  11656.  
  11657.  
  11658.  
  11659.  
  11660.  
  11661. striplib=
  11662. old_striplib=
  11663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11664. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11665. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11666.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11667.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11668.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11669. $as_echo "yes" >&6; }
  11670. else
  11671. # FIXME - insert some real tests, host_os isn't really good enough
  11672.   case $host_os in
  11673.   darwin*)
  11674.     if test -n "$STRIP" ; then
  11675.       striplib="$STRIP -x"
  11676.       old_striplib="$STRIP -S"
  11677.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11678. $as_echo "yes" >&6; }
  11679.     else
  11680.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11681. $as_echo "no" >&6; }
  11682.     fi
  11683.     ;;
  11684.   *)
  11685.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11686. $as_echo "no" >&6; }
  11687.     ;;
  11688.   esac
  11689. fi
  11690.  
  11691.  
  11692.  
  11693.  
  11694.  
  11695.  
  11696.  
  11697.  
  11698.  
  11699.  
  11700.  
  11701.  
  11702.   # Report which library types will actually be built
  11703.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11704. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11705.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11706. $as_echo "$can_build_shared" >&6; }
  11707.  
  11708.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11709. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11710.   test "$can_build_shared" = "no" && enable_shared=no
  11711.  
  11712.   # On AIX, shared libraries and static libraries use the same namespace, and
  11713.   # are all built from PIC.
  11714.   case $host_os in
  11715.   aix3*)
  11716.     test "$enable_shared" = yes && enable_static=no
  11717.     if test -n "$RANLIB"; then
  11718.       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11719.       postinstall_cmds='$RANLIB $lib'
  11720.     fi
  11721.     ;;
  11722.  
  11723.   aix[4-9]*)
  11724.     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11725.       test "$enable_shared" = yes && enable_static=no
  11726.     fi
  11727.     ;;
  11728.   esac
  11729.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11730. $as_echo "$enable_shared" >&6; }
  11731.  
  11732.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11733. $as_echo_n "checking whether to build static libraries... " >&6; }
  11734.   # Make sure either enable_shared or enable_static is yes.
  11735.   test "$enable_shared" = yes || enable_static=yes
  11736.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11737. $as_echo "$enable_static" >&6; }
  11738.  
  11739.  
  11740.  
  11741.  
  11742. fi
  11743. ac_ext=c
  11744. ac_cpp='$CPP $CPPFLAGS'
  11745. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11746. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11747. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11748.  
  11749. CC="$lt_save_CC"
  11750.  
  11751.  
  11752.  
  11753.  
  11754.  
  11755.  
  11756.  
  11757.  
  11758.  
  11759.  
  11760.  
  11761.  
  11762.  
  11763.  
  11764.  
  11765.         ac_config_commands="$ac_config_commands libtool"
  11766.  
  11767.  
  11768.  
  11769.  
  11770. # Only expand once:
  11771.  
  11772.  
  11773. ac_ext=c
  11774. ac_cpp='$CPP $CPPFLAGS'
  11775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11778. if test -n "$ac_tool_prefix"; then
  11779.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11780. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11782. $as_echo_n "checking for $ac_word... " >&6; }
  11783. if ${ac_cv_prog_CC+:} false; then :
  11784.   $as_echo_n "(cached) " >&6
  11785. else
  11786.   if test -n "$CC"; then
  11787.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11788. else
  11789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11790. for as_dir in $PATH
  11791. do
  11792.   IFS=$as_save_IFS
  11793.   test -z "$as_dir" && as_dir=.
  11794.     for ac_exec_ext in '' $ac_executable_extensions; do
  11795.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11796.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11797.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11798.     break 2
  11799.   fi
  11800. done
  11801.   done
  11802. IFS=$as_save_IFS
  11803.  
  11804. fi
  11805. fi
  11806. CC=$ac_cv_prog_CC
  11807. if test -n "$CC"; then
  11808.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11809. $as_echo "$CC" >&6; }
  11810. else
  11811.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11812. $as_echo "no" >&6; }
  11813. fi
  11814.  
  11815.  
  11816. fi
  11817. if test -z "$ac_cv_prog_CC"; then
  11818.   ac_ct_CC=$CC
  11819.   # Extract the first word of "gcc", so it can be a program name with args.
  11820. set dummy gcc; ac_word=$2
  11821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11822. $as_echo_n "checking for $ac_word... " >&6; }
  11823. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11824.   $as_echo_n "(cached) " >&6
  11825. else
  11826.   if test -n "$ac_ct_CC"; then
  11827.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11828. else
  11829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11830. for as_dir in $PATH
  11831. do
  11832.   IFS=$as_save_IFS
  11833.   test -z "$as_dir" && as_dir=.
  11834.     for ac_exec_ext in '' $ac_executable_extensions; do
  11835.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11836.     ac_cv_prog_ac_ct_CC="gcc"
  11837.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11838.     break 2
  11839.   fi
  11840. done
  11841.   done
  11842. IFS=$as_save_IFS
  11843.  
  11844. fi
  11845. fi
  11846. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11847. if test -n "$ac_ct_CC"; then
  11848.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11849. $as_echo "$ac_ct_CC" >&6; }
  11850. else
  11851.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11852. $as_echo "no" >&6; }
  11853. fi
  11854.  
  11855.   if test "x$ac_ct_CC" = x; then
  11856.     CC=""
  11857.   else
  11858.     case $cross_compiling:$ac_tool_warned in
  11859. yes:)
  11860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11862. ac_tool_warned=yes ;;
  11863. esac
  11864.     CC=$ac_ct_CC
  11865.   fi
  11866. else
  11867.   CC="$ac_cv_prog_CC"
  11868. fi
  11869.  
  11870. if test -z "$CC"; then
  11871.           if test -n "$ac_tool_prefix"; then
  11872.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11873. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11875. $as_echo_n "checking for $ac_word... " >&6; }
  11876. if ${ac_cv_prog_CC+:} false; then :
  11877.   $as_echo_n "(cached) " >&6
  11878. else
  11879.   if test -n "$CC"; then
  11880.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11881. else
  11882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11883. for as_dir in $PATH
  11884. do
  11885.   IFS=$as_save_IFS
  11886.   test -z "$as_dir" && as_dir=.
  11887.     for ac_exec_ext in '' $ac_executable_extensions; do
  11888.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11889.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  11890.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11891.     break 2
  11892.   fi
  11893. done
  11894.   done
  11895. IFS=$as_save_IFS
  11896.  
  11897. fi
  11898. fi
  11899. CC=$ac_cv_prog_CC
  11900. if test -n "$CC"; then
  11901.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11902. $as_echo "$CC" >&6; }
  11903. else
  11904.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11905. $as_echo "no" >&6; }
  11906. fi
  11907.  
  11908.  
  11909.   fi
  11910. fi
  11911. if test -z "$CC"; then
  11912.   # Extract the first word of "cc", so it can be a program name with args.
  11913. set dummy cc; ac_word=$2
  11914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11915. $as_echo_n "checking for $ac_word... " >&6; }
  11916. if ${ac_cv_prog_CC+:} false; then :
  11917.   $as_echo_n "(cached) " >&6
  11918. else
  11919.   if test -n "$CC"; then
  11920.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11921. else
  11922.   ac_prog_rejected=no
  11923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11924. for as_dir in $PATH
  11925. do
  11926.   IFS=$as_save_IFS
  11927.   test -z "$as_dir" && as_dir=.
  11928.     for ac_exec_ext in '' $ac_executable_extensions; do
  11929.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11930.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11931.        ac_prog_rejected=yes
  11932.        continue
  11933.      fi
  11934.     ac_cv_prog_CC="cc"
  11935.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11936.     break 2
  11937.   fi
  11938. done
  11939.   done
  11940. IFS=$as_save_IFS
  11941.  
  11942. if test $ac_prog_rejected = yes; then
  11943.   # We found a bogon in the path, so make sure we never use it.
  11944.   set dummy $ac_cv_prog_CC
  11945.   shift
  11946.   if test $# != 0; then
  11947.     # We chose a different compiler from the bogus one.
  11948.     # However, it has the same basename, so the bogon will be chosen
  11949.     # first if we set CC to just the basename; use the full file name.
  11950.     shift
  11951.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11952.   fi
  11953. fi
  11954. fi
  11955. fi
  11956. CC=$ac_cv_prog_CC
  11957. if test -n "$CC"; then
  11958.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11959. $as_echo "$CC" >&6; }
  11960. else
  11961.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11962. $as_echo "no" >&6; }
  11963. fi
  11964.  
  11965.  
  11966. fi
  11967. if test -z "$CC"; then
  11968.   if test -n "$ac_tool_prefix"; then
  11969.   for ac_prog in cl.exe
  11970.   do
  11971.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11972. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11974. $as_echo_n "checking for $ac_word... " >&6; }
  11975. if ${ac_cv_prog_CC+:} false; then :
  11976.   $as_echo_n "(cached) " >&6
  11977. else
  11978.   if test -n "$CC"; then
  11979.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11980. else
  11981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11982. for as_dir in $PATH
  11983. do
  11984.   IFS=$as_save_IFS
  11985.   test -z "$as_dir" && as_dir=.
  11986.     for ac_exec_ext in '' $ac_executable_extensions; do
  11987.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11988.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11989.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11990.     break 2
  11991.   fi
  11992. done
  11993.   done
  11994. IFS=$as_save_IFS
  11995.  
  11996. fi
  11997. fi
  11998. CC=$ac_cv_prog_CC
  11999. if test -n "$CC"; then
  12000.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12001. $as_echo "$CC" >&6; }
  12002. else
  12003.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12004. $as_echo "no" >&6; }
  12005. fi
  12006.  
  12007.  
  12008.     test -n "$CC" && break
  12009.   done
  12010. fi
  12011. if test -z "$CC"; then
  12012.   ac_ct_CC=$CC
  12013.   for ac_prog in cl.exe
  12014. do
  12015.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  12016. set dummy $ac_prog; ac_word=$2
  12017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12018. $as_echo_n "checking for $ac_word... " >&6; }
  12019. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  12020.   $as_echo_n "(cached) " >&6
  12021. else
  12022.   if test -n "$ac_ct_CC"; then
  12023.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  12024. else
  12025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12026. for as_dir in $PATH
  12027. do
  12028.   IFS=$as_save_IFS
  12029.   test -z "$as_dir" && as_dir=.
  12030.     for ac_exec_ext in '' $ac_executable_extensions; do
  12031.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12032.     ac_cv_prog_ac_ct_CC="$ac_prog"
  12033.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12034.     break 2
  12035.   fi
  12036. done
  12037.   done
  12038. IFS=$as_save_IFS
  12039.  
  12040. fi
  12041. fi
  12042. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  12043. if test -n "$ac_ct_CC"; then
  12044.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  12045. $as_echo "$ac_ct_CC" >&6; }
  12046. else
  12047.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12048. $as_echo "no" >&6; }
  12049. fi
  12050.  
  12051.  
  12052.   test -n "$ac_ct_CC" && break
  12053. done
  12054.  
  12055.   if test "x$ac_ct_CC" = x; then
  12056.     CC=""
  12057.   else
  12058.     case $cross_compiling:$ac_tool_warned in
  12059. yes:)
  12060. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12061. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12062. ac_tool_warned=yes ;;
  12063. esac
  12064.     CC=$ac_ct_CC
  12065.   fi
  12066. fi
  12067.  
  12068. fi
  12069.  
  12070.  
  12071. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12072. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12073. as_fn_error $? "no acceptable C compiler found in \$PATH
  12074. See \`config.log' for more details" "$LINENO" 5; }
  12075.  
  12076. # Provide some information about the compiler.
  12077. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  12078. set X $ac_compile
  12079. ac_compiler=$2
  12080. for ac_option in --version -v -V -qversion; do
  12081.   { { ac_try="$ac_compiler $ac_option >&5"
  12082. case "(($ac_try" in
  12083.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12084.   *) ac_try_echo=$ac_try;;
  12085. esac
  12086. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12087. $as_echo "$ac_try_echo"; } >&5
  12088.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12089.   ac_status=$?
  12090.   if test -s conftest.err; then
  12091.     sed '10a\
  12092. ... rest of stderr output deleted ...
  12093.          10q' conftest.err >conftest.er1
  12094.     cat conftest.er1 >&5
  12095.   fi
  12096.   rm -f conftest.er1 conftest.err
  12097.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12098.   test $ac_status = 0; }
  12099. done
  12100.  
  12101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  12102. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  12103. if ${ac_cv_c_compiler_gnu+:} false; then :
  12104.   $as_echo_n "(cached) " >&6
  12105. else
  12106.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12107. /* end confdefs.h.  */
  12108.  
  12109. int
  12110. main ()
  12111. {
  12112. #ifndef __GNUC__
  12113.        choke me
  12114. #endif
  12115.  
  12116.   ;
  12117.   return 0;
  12118. }
  12119. _ACEOF
  12120. if ac_fn_c_try_compile "$LINENO"; then :
  12121.   ac_compiler_gnu=yes
  12122. else
  12123.   ac_compiler_gnu=no
  12124. fi
  12125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12126. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  12127.  
  12128. fi
  12129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  12130. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  12131. if test $ac_compiler_gnu = yes; then
  12132.   GCC=yes
  12133. else
  12134.   GCC=
  12135. fi
  12136. ac_test_CFLAGS=${CFLAGS+set}
  12137. ac_save_CFLAGS=$CFLAGS
  12138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  12139. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  12140. if ${ac_cv_prog_cc_g+:} false; then :
  12141.   $as_echo_n "(cached) " >&6
  12142. else
  12143.   ac_save_c_werror_flag=$ac_c_werror_flag
  12144.    ac_c_werror_flag=yes
  12145.    ac_cv_prog_cc_g=no
  12146.    CFLAGS="-g"
  12147.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12148. /* end confdefs.h.  */
  12149.  
  12150. int
  12151. main ()
  12152. {
  12153.  
  12154.   ;
  12155.   return 0;
  12156. }
  12157. _ACEOF
  12158. if ac_fn_c_try_compile "$LINENO"; then :
  12159.   ac_cv_prog_cc_g=yes
  12160. else
  12161.   CFLAGS=""
  12162.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12163. /* end confdefs.h.  */
  12164.  
  12165. int
  12166. main ()
  12167. {
  12168.  
  12169.   ;
  12170.   return 0;
  12171. }
  12172. _ACEOF
  12173. if ac_fn_c_try_compile "$LINENO"; then :
  12174.  
  12175. else
  12176.   ac_c_werror_flag=$ac_save_c_werror_flag
  12177.          CFLAGS="-g"
  12178.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12179. /* end confdefs.h.  */
  12180.  
  12181. int
  12182. main ()
  12183. {
  12184.  
  12185.   ;
  12186.   return 0;
  12187. }
  12188. _ACEOF
  12189. if ac_fn_c_try_compile "$LINENO"; then :
  12190.   ac_cv_prog_cc_g=yes
  12191. fi
  12192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12193. fi
  12194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12195. fi
  12196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12197.    ac_c_werror_flag=$ac_save_c_werror_flag
  12198. fi
  12199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  12200. $as_echo "$ac_cv_prog_cc_g" >&6; }
  12201. if test "$ac_test_CFLAGS" = set; then
  12202.   CFLAGS=$ac_save_CFLAGS
  12203. elif test $ac_cv_prog_cc_g = yes; then
  12204.   if test "$GCC" = yes; then
  12205.     CFLAGS="-g -O2"
  12206.   else
  12207.     CFLAGS="-g"
  12208.   fi
  12209. else
  12210.   if test "$GCC" = yes; then
  12211.     CFLAGS="-O2"
  12212.   else
  12213.     CFLAGS=
  12214.   fi
  12215. fi
  12216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  12217. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  12218. if ${ac_cv_prog_cc_c89+:} false; then :
  12219.   $as_echo_n "(cached) " >&6
  12220. else
  12221.   ac_cv_prog_cc_c89=no
  12222. ac_save_CC=$CC
  12223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12224. /* end confdefs.h.  */
  12225. #include <stdarg.h>
  12226. #include <stdio.h>
  12227. struct stat;
  12228. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  12229. struct buf { int x; };
  12230. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  12231. static char *e (p, i)
  12232.      char **p;
  12233.      int i;
  12234. {
  12235.   return p[i];
  12236. }
  12237. static char *f (char * (*g) (char **, int), char **p, ...)
  12238. {
  12239.   char *s;
  12240.   va_list v;
  12241.   va_start (v,p);
  12242.   s = g (p, va_arg (v,int));
  12243.   va_end (v);
  12244.   return s;
  12245. }
  12246.  
  12247. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  12248.    function prototypes and stuff, but not '\xHH' hex character constants.
  12249.    These don't provoke an error unfortunately, instead are silently treated
  12250.    as 'x'.  The following induces an error, until -std is added to get
  12251.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  12252.    array size at least.  It's necessary to write '\x00'==0 to get something
  12253.    that's true only with -std.  */
  12254. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  12255.  
  12256. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  12257.    inside strings and character constants.  */
  12258. #define FOO(x) 'x'
  12259. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  12260.  
  12261. int test (int i, double x);
  12262. struct s1 {int (*f) (int a);};
  12263. struct s2 {int (*f) (double a);};
  12264. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  12265. int argc;
  12266. char **argv;
  12267. int
  12268. main ()
  12269. {
  12270. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  12271.   ;
  12272.   return 0;
  12273. }
  12274. _ACEOF
  12275. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  12276.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12277. do
  12278.   CC="$ac_save_CC $ac_arg"
  12279.   if ac_fn_c_try_compile "$LINENO"; then :
  12280.   ac_cv_prog_cc_c89=$ac_arg
  12281. fi
  12282. rm -f core conftest.err conftest.$ac_objext
  12283.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  12284. done
  12285. rm -f conftest.$ac_ext
  12286. CC=$ac_save_CC
  12287.  
  12288. fi
  12289. # AC_CACHE_VAL
  12290. case "x$ac_cv_prog_cc_c89" in
  12291.   x)
  12292.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12293. $as_echo "none needed" >&6; } ;;
  12294.   xno)
  12295.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12296. $as_echo "unsupported" >&6; } ;;
  12297.   *)
  12298.     CC="$CC $ac_cv_prog_cc_c89"
  12299.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12300. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  12301. esac
  12302. if test "x$ac_cv_prog_cc_c89" != xno; then :
  12303.  
  12304. fi
  12305.  
  12306. ac_ext=c
  12307. ac_cpp='$CPP $CPPFLAGS'
  12308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12311.  
  12312. ac_ext=c
  12313. ac_cpp='$CPP $CPPFLAGS'
  12314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  12318. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  12319. if ${am_cv_prog_cc_c_o+:} false; then :
  12320.   $as_echo_n "(cached) " >&6
  12321. else
  12322.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12323. /* end confdefs.h.  */
  12324.  
  12325. int
  12326. main ()
  12327. {
  12328.  
  12329.   ;
  12330.   return 0;
  12331. }
  12332. _ACEOF
  12333.   # Make sure it works both with $CC and with simple cc.
  12334.   # Following AC_PROG_CC_C_O, we do the test twice because some
  12335.   # compilers refuse to overwrite an existing .o file with -o,
  12336.   # though they will create one.
  12337.   am_cv_prog_cc_c_o=yes
  12338.   for am_i in 1 2; do
  12339.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  12340.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  12341.    ac_status=$?
  12342.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12343.    (exit $ac_status); } \
  12344.          && test -f conftest2.$ac_objext; then
  12345.       : OK
  12346.     else
  12347.       am_cv_prog_cc_c_o=no
  12348.       break
  12349.     fi
  12350.   done
  12351.   rm -f core conftest*
  12352.   unset am_i
  12353. fi
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  12355. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  12356. if test "$am_cv_prog_cc_c_o" != yes; then
  12357.    # Losing compiler, so override with the script.
  12358.    # FIXME: It is wrong to rewrite CC.
  12359.    # But if we don't then we get into trouble of one sort or another.
  12360.    # A longer-term fix would be to have automake use am__CC in this case,
  12361.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  12362.    CC="$am_aux_dir/compile $CC"
  12363. fi
  12364. ac_ext=c
  12365. ac_cpp='$CPP $CPPFLAGS'
  12366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12369.  
  12370.  
  12371. depcc="$CC"   am_compiler_list=
  12372.  
  12373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12374. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12375. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  12376.   $as_echo_n "(cached) " >&6
  12377. else
  12378.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12379.   # We make a subdir and do the tests there.  Otherwise we can end up
  12380.   # making bogus files that we don't know about and never remove.  For
  12381.   # instance it was reported that on HP-UX the gcc test will end up
  12382.   # making a dummy file named 'D' -- because '-MD' means "put the output
  12383.   # in D".
  12384.   rm -rf conftest.dir
  12385.   mkdir conftest.dir
  12386.   # Copy depcomp to subdir because otherwise we won't find it if we're
  12387.   # using a relative directory.
  12388.   cp "$am_depcomp" conftest.dir
  12389.   cd conftest.dir
  12390.   # We will build objects and dependencies in a subdirectory because
  12391.   # it helps to detect inapplicable dependency modes.  For instance
  12392.   # both Tru64's cc and ICC support -MD to output dependencies as a
  12393.   # side effect of compilation, but ICC will put the dependencies in
  12394.   # the current directory while Tru64 will put them in the object
  12395.   # directory.
  12396.   mkdir sub
  12397.  
  12398.   am_cv_CC_dependencies_compiler_type=none
  12399.   if test "$am_compiler_list" = ""; then
  12400.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12401.   fi
  12402.   am__universal=false
  12403.   case " $depcc " in #(
  12404.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12405.      esac
  12406.  
  12407.   for depmode in $am_compiler_list; do
  12408.     # Setup a source with many dependencies, because some compilers
  12409.     # like to wrap large dependency lists on column 80 (with \), and
  12410.     # we should not choose a depcomp mode which is confused by this.
  12411.     #
  12412.     # We need to recreate these files for each test, as the compiler may
  12413.     # overwrite some of them when testing with obscure command lines.
  12414.     # This happens at least with the AIX C compiler.
  12415.     : > sub/conftest.c
  12416.     for i in 1 2 3 4 5 6; do
  12417.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12418.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12419.       # Solaris 10 /bin/sh.
  12420.       echo '/* dummy */' > sub/conftst$i.h
  12421.     done
  12422.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12423.  
  12424.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12425.     # mode.  It turns out that the SunPro C++ compiler does not properly
  12426.     # handle '-M -o', and we need to detect this.  Also, some Intel
  12427.     # versions had trouble with output in subdirs.
  12428.     am__obj=sub/conftest.${OBJEXT-o}
  12429.     am__minus_obj="-o $am__obj"
  12430.     case $depmode in
  12431.     gcc)
  12432.       # This depmode causes a compiler race in universal mode.
  12433.       test "$am__universal" = false || continue
  12434.       ;;
  12435.     nosideeffect)
  12436.       # After this tag, mechanisms are not by side-effect, so they'll
  12437.       # only be used when explicitly requested.
  12438.       if test "x$enable_dependency_tracking" = xyes; then
  12439.         continue
  12440.       else
  12441.         break
  12442.       fi
  12443.       ;;
  12444.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12445.       # This compiler won't grok '-c -o', but also, the minuso test has
  12446.       # not run yet.  These depmodes are late enough in the game, and
  12447.       # so weak that their functioning should not be impacted.
  12448.       am__obj=conftest.${OBJEXT-o}
  12449.       am__minus_obj=
  12450.       ;;
  12451.     none) break ;;
  12452.     esac
  12453.     if depmode=$depmode \
  12454.        source=sub/conftest.c object=$am__obj \
  12455.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12456.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12457.          >/dev/null 2>conftest.err &&
  12458.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12459.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12460.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12461.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12462.       # icc doesn't choke on unknown options, it will just issue warnings
  12463.       # or remarks (even with -Werror).  So we grep stderr for any message
  12464.       # that says an option was ignored or not supported.
  12465.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  12466.       #   icc: Command line warning: ignoring option '-M'; no argument required
  12467.       # The diagnosis changed in icc 8.0:
  12468.       #   icc: Command line remark: option '-MP' not supported
  12469.       if (grep 'ignoring option' conftest.err ||
  12470.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12471.         am_cv_CC_dependencies_compiler_type=$depmode
  12472.         break
  12473.       fi
  12474.     fi
  12475.   done
  12476.  
  12477.   cd ..
  12478.   rm -rf conftest.dir
  12479. else
  12480.   am_cv_CC_dependencies_compiler_type=none
  12481. fi
  12482.  
  12483. fi
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12485. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12486. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12487.  
  12488.  if
  12489.   test "x$enable_dependency_tracking" != xno \
  12490.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12491.   am__fastdepCC_TRUE=
  12492.   am__fastdepCC_FALSE='#'
  12493. else
  12494.   am__fastdepCC_TRUE='#'
  12495.   am__fastdepCC_FALSE=
  12496. fi
  12497.  
  12498.  
  12499.  
  12500.  
  12501.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  12502. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  12503. if ${ac_cv_c_bigendian+:} false; then :
  12504.   $as_echo_n "(cached) " >&6
  12505. else
  12506.   ac_cv_c_bigendian=unknown
  12507.     # See if we're dealing with a universal compiler.
  12508.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12509. /* end confdefs.h.  */
  12510. #ifndef __APPLE_CC__
  12511.                not a universal capable compiler
  12512.              #endif
  12513.              typedef int dummy;
  12514.  
  12515. _ACEOF
  12516. if ac_fn_c_try_compile "$LINENO"; then :
  12517.  
  12518.         # Check for potential -arch flags.  It is not universal unless
  12519.         # there are at least two -arch flags with different values.
  12520.         ac_arch=
  12521.         ac_prev=
  12522.         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  12523.          if test -n "$ac_prev"; then
  12524.            case $ac_word in
  12525.              i?86 | x86_64 | ppc | ppc64)
  12526.                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  12527.                  ac_arch=$ac_word
  12528.                else
  12529.                  ac_cv_c_bigendian=universal
  12530.                  break
  12531.                fi
  12532.                ;;
  12533.            esac
  12534.            ac_prev=
  12535.          elif test "x$ac_word" = "x-arch"; then
  12536.            ac_prev=arch
  12537.          fi
  12538.        done
  12539. fi
  12540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12541.     if test $ac_cv_c_bigendian = unknown; then
  12542.       # See if sys/param.h defines the BYTE_ORDER macro.
  12543.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12544. /* end confdefs.h.  */
  12545. #include <sys/types.h>
  12546.              #include <sys/param.h>
  12547.  
  12548. int
  12549. main ()
  12550. {
  12551. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  12552.                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  12553.                      && LITTLE_ENDIAN)
  12554.               bogus endian macros
  12555.              #endif
  12556.  
  12557.   ;
  12558.   return 0;
  12559. }
  12560. _ACEOF
  12561. if ac_fn_c_try_compile "$LINENO"; then :
  12562.   # It does; now see whether it defined to BIG_ENDIAN or not.
  12563.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12564. /* end confdefs.h.  */
  12565. #include <sys/types.h>
  12566.                 #include <sys/param.h>
  12567.  
  12568. int
  12569. main ()
  12570. {
  12571. #if BYTE_ORDER != BIG_ENDIAN
  12572.                  not big endian
  12573.                 #endif
  12574.  
  12575.   ;
  12576.   return 0;
  12577. }
  12578. _ACEOF
  12579. if ac_fn_c_try_compile "$LINENO"; then :
  12580.   ac_cv_c_bigendian=yes
  12581. else
  12582.   ac_cv_c_bigendian=no
  12583. fi
  12584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12585. fi
  12586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12587.     fi
  12588.     if test $ac_cv_c_bigendian = unknown; then
  12589.       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  12590.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12591. /* end confdefs.h.  */
  12592. #include <limits.h>
  12593.  
  12594. int
  12595. main ()
  12596. {
  12597. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  12598.               bogus endian macros
  12599.              #endif
  12600.  
  12601.   ;
  12602.   return 0;
  12603. }
  12604. _ACEOF
  12605. if ac_fn_c_try_compile "$LINENO"; then :
  12606.   # It does; now see whether it defined to _BIG_ENDIAN or not.
  12607.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12608. /* end confdefs.h.  */
  12609. #include <limits.h>
  12610.  
  12611. int
  12612. main ()
  12613. {
  12614. #ifndef _BIG_ENDIAN
  12615.                  not big endian
  12616.                 #endif
  12617.  
  12618.   ;
  12619.   return 0;
  12620. }
  12621. _ACEOF
  12622. if ac_fn_c_try_compile "$LINENO"; then :
  12623.   ac_cv_c_bigendian=yes
  12624. else
  12625.   ac_cv_c_bigendian=no
  12626. fi
  12627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12628. fi
  12629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12630.     fi
  12631.     if test $ac_cv_c_bigendian = unknown; then
  12632.       # Compile a test program.
  12633.       if test "$cross_compiling" = yes; then :
  12634.   # Try to guess by grepping values from an object file.
  12635.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12636. /* end confdefs.h.  */
  12637. short int ascii_mm[] =
  12638.                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  12639.                 short int ascii_ii[] =
  12640.                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  12641.                 int use_ascii (int i) {
  12642.                   return ascii_mm[i] + ascii_ii[i];
  12643.                 }
  12644.                 short int ebcdic_ii[] =
  12645.                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  12646.                 short int ebcdic_mm[] =
  12647.                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  12648.                 int use_ebcdic (int i) {
  12649.                   return ebcdic_mm[i] + ebcdic_ii[i];
  12650.                 }
  12651.                 extern int foo;
  12652.  
  12653. int
  12654. main ()
  12655. {
  12656. return use_ascii (foo) == use_ebcdic (foo);
  12657.   ;
  12658.   return 0;
  12659. }
  12660. _ACEOF
  12661. if ac_fn_c_try_compile "$LINENO"; then :
  12662.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  12663.               ac_cv_c_bigendian=yes
  12664.             fi
  12665.             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  12666.               if test "$ac_cv_c_bigendian" = unknown; then
  12667.                 ac_cv_c_bigendian=no
  12668.               else
  12669.                 # finding both strings is unlikely to happen, but who knows?
  12670.                 ac_cv_c_bigendian=unknown
  12671.               fi
  12672.             fi
  12673. fi
  12674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12675. else
  12676.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12677. /* end confdefs.h.  */
  12678. $ac_includes_default
  12679. int
  12680. main ()
  12681. {
  12682.  
  12683.              /* Are we little or big endian?  From Harbison&Steele.  */
  12684.              union
  12685.              {
  12686.                long int l;
  12687.                char c[sizeof (long int)];
  12688.              } u;
  12689.              u.l = 1;
  12690.              return u.c[sizeof (long int) - 1] == 1;
  12691.  
  12692.   ;
  12693.   return 0;
  12694. }
  12695. _ACEOF
  12696. if ac_fn_c_try_run "$LINENO"; then :
  12697.   ac_cv_c_bigendian=no
  12698. else
  12699.   ac_cv_c_bigendian=yes
  12700. fi
  12701. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12702.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  12703. fi
  12704.  
  12705.     fi
  12706. fi
  12707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  12708. $as_echo "$ac_cv_c_bigendian" >&6; }
  12709.  case $ac_cv_c_bigendian in #(
  12710.    yes)
  12711.      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  12712. ;; #(
  12713.    no)
  12714.       ;; #(
  12715.    universal)
  12716.  
  12717. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  12718.  
  12719.      ;; #(
  12720.    *)
  12721.      as_fn_error $? "unknown endianness
  12722.  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  12723.  esac
  12724.  
  12725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12726. $as_echo_n "checking for ANSI C header files... " >&6; }
  12727. if ${ac_cv_header_stdc+:} false; then :
  12728.   $as_echo_n "(cached) " >&6
  12729. else
  12730.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12731. /* end confdefs.h.  */
  12732. #include <stdlib.h>
  12733. #include <stdarg.h>
  12734. #include <string.h>
  12735. #include <float.h>
  12736.  
  12737. int
  12738. main ()
  12739. {
  12740.  
  12741.   ;
  12742.   return 0;
  12743. }
  12744. _ACEOF
  12745. if ac_fn_c_try_compile "$LINENO"; then :
  12746.   ac_cv_header_stdc=yes
  12747. else
  12748.   ac_cv_header_stdc=no
  12749. fi
  12750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12751.  
  12752. if test $ac_cv_header_stdc = yes; then
  12753.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12754.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12755. /* end confdefs.h.  */
  12756. #include <string.h>
  12757.  
  12758. _ACEOF
  12759. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12760.   $EGREP "memchr" >/dev/null 2>&1; then :
  12761.  
  12762. else
  12763.   ac_cv_header_stdc=no
  12764. fi
  12765. rm -f conftest*
  12766.  
  12767. fi
  12768.  
  12769. if test $ac_cv_header_stdc = yes; then
  12770.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12771.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12772. /* end confdefs.h.  */
  12773. #include <stdlib.h>
  12774.  
  12775. _ACEOF
  12776. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12777.   $EGREP "free" >/dev/null 2>&1; then :
  12778.  
  12779. else
  12780.   ac_cv_header_stdc=no
  12781. fi
  12782. rm -f conftest*
  12783.  
  12784. fi
  12785.  
  12786. if test $ac_cv_header_stdc = yes; then
  12787.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12788.   if test "$cross_compiling" = yes; then :
  12789.   :
  12790. else
  12791.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12792. /* end confdefs.h.  */
  12793. #include <ctype.h>
  12794. #include <stdlib.h>
  12795. #if ((' ' & 0x0FF) == 0x020)
  12796. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12797. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12798. #else
  12799. # define ISLOWER(c) \
  12800.                    (('a' <= (c) && (c) <= 'i') \
  12801.                      || ('j' <= (c) && (c) <= 'r') \
  12802.                      || ('s' <= (c) && (c) <= 'z'))
  12803. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12804. #endif
  12805.  
  12806. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12807. int
  12808. main ()
  12809. {
  12810.   int i;
  12811.   for (i = 0; i < 256; i++)
  12812.     if (XOR (islower (i), ISLOWER (i))
  12813.         || toupper (i) != TOUPPER (i))
  12814.       return 2;
  12815.   return 0;
  12816. }
  12817. _ACEOF
  12818. if ac_fn_c_try_run "$LINENO"; then :
  12819.  
  12820. else
  12821.   ac_cv_header_stdc=no
  12822. fi
  12823. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12824.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  12825. fi
  12826.  
  12827. fi
  12828. fi
  12829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12830. $as_echo "$ac_cv_header_stdc" >&6; }
  12831. if test $ac_cv_header_stdc = yes; then
  12832.  
  12833. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12834.  
  12835. fi
  12836.  
  12837. # Check whether --enable-largefile was given.
  12838. if test "${enable_largefile+set}" = set; then :
  12839.   enableval=$enable_largefile;
  12840. fi
  12841.  
  12842. if test "$enable_largefile" != no; then
  12843.  
  12844.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12845. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12846. if ${ac_cv_sys_largefile_CC+:} false; then :
  12847.   $as_echo_n "(cached) " >&6
  12848. else
  12849.   ac_cv_sys_largefile_CC=no
  12850.      if test "$GCC" != yes; then
  12851.        ac_save_CC=$CC
  12852.        while :; do
  12853.          # IRIX 6.2 and later do not support large files by default,
  12854.          # so use the C compiler's -n32 option if that helps.
  12855.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12856. /* end confdefs.h.  */
  12857. #include <sys/types.h>
  12858.  /* Check that off_t can represent 2**63 - 1 correctly.
  12859.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12860.     since some C++ compilers masquerading as C compilers
  12861.     incorrectly reject 9223372036854775807.  */
  12862. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12863.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12864.                        && LARGE_OFF_T % 2147483647 == 1)
  12865.                       ? 1 : -1];
  12866. int
  12867. main ()
  12868. {
  12869.  
  12870.   ;
  12871.   return 0;
  12872. }
  12873. _ACEOF
  12874.          if ac_fn_c_try_compile "$LINENO"; then :
  12875.   break
  12876. fi
  12877. rm -f core conftest.err conftest.$ac_objext
  12878.          CC="$CC -n32"
  12879.          if ac_fn_c_try_compile "$LINENO"; then :
  12880.   ac_cv_sys_largefile_CC=' -n32'; break
  12881. fi
  12882. rm -f core conftest.err conftest.$ac_objext
  12883.          break
  12884.        done
  12885.        CC=$ac_save_CC
  12886.        rm -f conftest.$ac_ext
  12887.     fi
  12888. fi
  12889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12890. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12891.   if test "$ac_cv_sys_largefile_CC" != no; then
  12892.     CC=$CC$ac_cv_sys_largefile_CC
  12893.   fi
  12894.  
  12895.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12896. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12897. if ${ac_cv_sys_file_offset_bits+:} false; then :
  12898.   $as_echo_n "(cached) " >&6
  12899. else
  12900.   while :; do
  12901.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12902. /* end confdefs.h.  */
  12903. #include <sys/types.h>
  12904.  /* Check that off_t can represent 2**63 - 1 correctly.
  12905.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12906.     since some C++ compilers masquerading as C compilers
  12907.     incorrectly reject 9223372036854775807.  */
  12908. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12909.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12910.                        && LARGE_OFF_T % 2147483647 == 1)
  12911.                       ? 1 : -1];
  12912. int
  12913. main ()
  12914. {
  12915.  
  12916.   ;
  12917.   return 0;
  12918. }
  12919. _ACEOF
  12920. if ac_fn_c_try_compile "$LINENO"; then :
  12921.   ac_cv_sys_file_offset_bits=no; break
  12922. fi
  12923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12924.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12925. /* end confdefs.h.  */
  12926. #define _FILE_OFFSET_BITS 64
  12927. #include <sys/types.h>
  12928.  /* Check that off_t can represent 2**63 - 1 correctly.
  12929.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12930.     since some C++ compilers masquerading as C compilers
  12931.     incorrectly reject 9223372036854775807.  */
  12932. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12933.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12934.                        && LARGE_OFF_T % 2147483647 == 1)
  12935.                       ? 1 : -1];
  12936. int
  12937. main ()
  12938. {
  12939.  
  12940.   ;
  12941.   return 0;
  12942. }
  12943. _ACEOF
  12944. if ac_fn_c_try_compile "$LINENO"; then :
  12945.   ac_cv_sys_file_offset_bits=64; break
  12946. fi
  12947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12948.   ac_cv_sys_file_offset_bits=unknown
  12949.   break
  12950. done
  12951. fi
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12953. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12954. case $ac_cv_sys_file_offset_bits in #(
  12955.   no | unknown) ;;
  12956.   *)
  12957. cat >>confdefs.h <<_ACEOF
  12958. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12959. _ACEOF
  12960. ;;
  12961. esac
  12962. rm -rf conftest*
  12963.   if test $ac_cv_sys_file_offset_bits = unknown; then
  12964.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12965. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12966. if ${ac_cv_sys_large_files+:} false; then :
  12967.   $as_echo_n "(cached) " >&6
  12968. else
  12969.   while :; do
  12970.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12971. /* end confdefs.h.  */
  12972. #include <sys/types.h>
  12973.  /* Check that off_t can represent 2**63 - 1 correctly.
  12974.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12975.     since some C++ compilers masquerading as C compilers
  12976.     incorrectly reject 9223372036854775807.  */
  12977. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12978.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12979.                        && LARGE_OFF_T % 2147483647 == 1)
  12980.                       ? 1 : -1];
  12981. int
  12982. main ()
  12983. {
  12984.  
  12985.   ;
  12986.   return 0;
  12987. }
  12988. _ACEOF
  12989. if ac_fn_c_try_compile "$LINENO"; then :
  12990.   ac_cv_sys_large_files=no; break
  12991. fi
  12992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12993.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12994. /* end confdefs.h.  */
  12995. #define _LARGE_FILES 1
  12996. #include <sys/types.h>
  12997.  /* Check that off_t can represent 2**63 - 1 correctly.
  12998.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12999.     since some C++ compilers masquerading as C compilers
  13000.     incorrectly reject 9223372036854775807.  */
  13001. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  13002.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13003.                        && LARGE_OFF_T % 2147483647 == 1)
  13004.                       ? 1 : -1];
  13005. int
  13006. main ()
  13007. {
  13008.  
  13009.   ;
  13010.   return 0;
  13011. }
  13012. _ACEOF
  13013. if ac_fn_c_try_compile "$LINENO"; then :
  13014.   ac_cv_sys_large_files=1; break
  13015. fi
  13016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13017.   ac_cv_sys_large_files=unknown
  13018.   break
  13019. done
  13020. fi
  13021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  13022. $as_echo "$ac_cv_sys_large_files" >&6; }
  13023. case $ac_cv_sys_large_files in #(
  13024.   no | unknown) ;;
  13025.   *)
  13026. cat >>confdefs.h <<_ACEOF
  13027. #define _LARGE_FILES $ac_cv_sys_large_files
  13028. _ACEOF
  13029. ;;
  13030. esac
  13031. rm -rf conftest*
  13032.   fi
  13033.  
  13034.  
  13035. fi
  13036.  
  13037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  13038. $as_echo_n "checking for sin in -lm... " >&6; }
  13039. if ${ac_cv_lib_m_sin+:} false; then :
  13040.   $as_echo_n "(cached) " >&6
  13041. else
  13042.   ac_check_lib_save_LIBS=$LIBS
  13043. LIBS="-lm  $LIBS"
  13044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13045. /* end confdefs.h.  */
  13046.  
  13047. /* Override any GCC internal prototype to avoid an error.
  13048.    Use char because int might match the return type of a GCC
  13049.    builtin and then its argument prototype would still apply.  */
  13050. #ifdef __cplusplus
  13051. extern "C"
  13052. #endif
  13053. char sin ();
  13054. int
  13055. main ()
  13056. {
  13057. return sin ();
  13058.   ;
  13059.   return 0;
  13060. }
  13061. _ACEOF
  13062. if ac_fn_c_try_link "$LINENO"; then :
  13063.   ac_cv_lib_m_sin=yes
  13064. else
  13065.   ac_cv_lib_m_sin=no
  13066. fi
  13067. rm -f core conftest.err conftest.$ac_objext \
  13068.     conftest$ac_exeext conftest.$ac_ext
  13069. LIBS=$ac_check_lib_save_LIBS
  13070. fi
  13071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  13072. $as_echo "$ac_cv_lib_m_sin" >&6; }
  13073. if test "x$ac_cv_lib_m_sin" = xyes; then :
  13074.   cat >>confdefs.h <<_ACEOF
  13075. #define HAVE_LIBM 1
  13076. _ACEOF
  13077.  
  13078.   LIBS="-lm $LIBS"
  13079.  
  13080. fi
  13081.  
  13082. for ac_func in log2f
  13083. do :
  13084.   ac_fn_c_check_func "$LINENO" "log2f" "ac_cv_func_log2f"
  13085. if test "x$ac_cv_func_log2f" = xyes; then :
  13086.   cat >>confdefs.h <<_ACEOF
  13087. #define HAVE_LOG2F 1
  13088. _ACEOF
  13089.  
  13090. fi
  13091. done
  13092.  
  13093. for ac_prog in python2 python
  13094. do
  13095.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  13096. set dummy $ac_prog; ac_word=$2
  13097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13098. $as_echo_n "checking for $ac_word... " >&6; }
  13099. if ${ac_cv_prog_PYTHON2+:} false; then :
  13100.   $as_echo_n "(cached) " >&6
  13101. else
  13102.   if test -n "$PYTHON2"; then
  13103.   ac_cv_prog_PYTHON2="$PYTHON2" # Let the user override the test.
  13104. else
  13105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13106. for as_dir in $PATH
  13107. do
  13108.   IFS=$as_save_IFS
  13109.   test -z "$as_dir" && as_dir=.
  13110.     for ac_exec_ext in '' $ac_executable_extensions; do
  13111.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13112.     ac_cv_prog_PYTHON2="$ac_prog"
  13113.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13114.     break 2
  13115.   fi
  13116. done
  13117.   done
  13118. IFS=$as_save_IFS
  13119.  
  13120. fi
  13121. fi
  13122. PYTHON2=$ac_cv_prog_PYTHON2
  13123. if test -n "$PYTHON2"; then
  13124.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5
  13125. $as_echo "$PYTHON2" >&6; }
  13126. else
  13127.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13128. $as_echo "no" >&6; }
  13129. fi
  13130.  
  13131.  
  13132.   test -n "$PYTHON2" && break
  13133. done
  13134.  
  13135.  
  13136. LIBVA_PACKAGE_VERSION=1.6.0
  13137.  
  13138.  
  13139. LIBDRM_VERSION=2.4.45
  13140.  
  13141.  
  13142.  
  13143.  
  13144.  
  13145.  
  13146.  
  13147. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13148.         if test -n "$ac_tool_prefix"; then
  13149.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13150. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13152. $as_echo_n "checking for $ac_word... " >&6; }
  13153. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13154.   $as_echo_n "(cached) " >&6
  13155. else
  13156.   case $PKG_CONFIG in
  13157.   [\\/]* | ?:[\\/]*)
  13158.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13159.   ;;
  13160.   *)
  13161.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13162. for as_dir in $PATH
  13163. do
  13164.   IFS=$as_save_IFS
  13165.   test -z "$as_dir" && as_dir=.
  13166.     for ac_exec_ext in '' $ac_executable_extensions; do
  13167.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13168.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13169.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13170.     break 2
  13171.   fi
  13172. done
  13173.   done
  13174. IFS=$as_save_IFS
  13175.  
  13176.   ;;
  13177. esac
  13178. fi
  13179. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13180. if test -n "$PKG_CONFIG"; then
  13181.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13182. $as_echo "$PKG_CONFIG" >&6; }
  13183. else
  13184.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13185. $as_echo "no" >&6; }
  13186. fi
  13187.  
  13188.  
  13189. fi
  13190. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13191.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  13192.   # Extract the first word of "pkg-config", so it can be a program name with args.
  13193. set dummy pkg-config; ac_word=$2
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13195. $as_echo_n "checking for $ac_word... " >&6; }
  13196. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13197.   $as_echo_n "(cached) " >&6
  13198. else
  13199.   case $ac_pt_PKG_CONFIG in
  13200.   [\\/]* | ?:[\\/]*)
  13201.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13202.   ;;
  13203.   *)
  13204.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13205. for as_dir in $PATH
  13206. do
  13207.   IFS=$as_save_IFS
  13208.   test -z "$as_dir" && as_dir=.
  13209.     for ac_exec_ext in '' $ac_executable_extensions; do
  13210.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13211.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13212.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13213.     break 2
  13214.   fi
  13215. done
  13216.   done
  13217. IFS=$as_save_IFS
  13218.  
  13219.   ;;
  13220. esac
  13221. fi
  13222. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13223. if test -n "$ac_pt_PKG_CONFIG"; then
  13224.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13225. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13226. else
  13227.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13228. $as_echo "no" >&6; }
  13229. fi
  13230.  
  13231.   if test "x$ac_pt_PKG_CONFIG" = x; then
  13232.     PKG_CONFIG=""
  13233.   else
  13234.     case $cross_compiling:$ac_tool_warned in
  13235. yes:)
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13237. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13238. ac_tool_warned=yes ;;
  13239. esac
  13240.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  13241.   fi
  13242. else
  13243.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13244. fi
  13245.  
  13246. fi
  13247. if test -n "$PKG_CONFIG"; then
  13248.         _pkg_min_version=0.9.0
  13249.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13250. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13251.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13252.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13253. $as_echo "yes" >&6; }
  13254.         else
  13255.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13256. $as_echo "no" >&6; }
  13257.                 PKG_CONFIG=""
  13258.         fi
  13259. fi
  13260.  
  13261. pkg_failed=no
  13262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
  13263. $as_echo_n "checking for DRM... " >&6; }
  13264.  
  13265. if test -n "$DRM_CFLAGS"; then
  13266.     pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
  13267.  elif test -n "$PKG_CONFIG"; then
  13268.     if test -n "$PKG_CONFIG" && \
  13269.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_VERSION\""; } >&5
  13270.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_VERSION") 2>&5
  13271.   ac_status=$?
  13272.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13273.   test $ac_status = 0; }; then
  13274.   pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= $LIBDRM_VERSION" 2>/dev/null`
  13275.                       test "x$?" != "x0" && pkg_failed=yes
  13276. else
  13277.   pkg_failed=yes
  13278. fi
  13279.  else
  13280.     pkg_failed=untried
  13281. fi
  13282. if test -n "$DRM_LIBS"; then
  13283.     pkg_cv_DRM_LIBS="$DRM_LIBS"
  13284.  elif test -n "$PKG_CONFIG"; then
  13285.     if test -n "$PKG_CONFIG" && \
  13286.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_VERSION\""; } >&5
  13287.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_VERSION") 2>&5
  13288.   ac_status=$?
  13289.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13290.   test $ac_status = 0; }; then
  13291.   pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= $LIBDRM_VERSION" 2>/dev/null`
  13292.                       test "x$?" != "x0" && pkg_failed=yes
  13293. else
  13294.   pkg_failed=yes
  13295. fi
  13296.  else
  13297.     pkg_failed=untried
  13298. fi
  13299.  
  13300.  
  13301.  
  13302. if test $pkg_failed = yes; then
  13303.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13304. $as_echo "no" >&6; }
  13305.  
  13306. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13307.         _pkg_short_errors_supported=yes
  13308. else
  13309.         _pkg_short_errors_supported=no
  13310. fi
  13311.         if test $_pkg_short_errors_supported = yes; then
  13312.                 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= $LIBDRM_VERSION" 2>&1`
  13313.         else
  13314.                 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= $LIBDRM_VERSION" 2>&1`
  13315.         fi
  13316.         # Put the nasty error message in config.log where it belongs
  13317.         echo "$DRM_PKG_ERRORS" >&5
  13318.  
  13319.         as_fn_error $? "Package requirements (libdrm >= $LIBDRM_VERSION) were not met:
  13320.  
  13321. $DRM_PKG_ERRORS
  13322.  
  13323. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13324. installed software in a non-standard prefix.
  13325.  
  13326. Alternatively, you may set the environment variables DRM_CFLAGS
  13327. and DRM_LIBS to avoid the need to call pkg-config.
  13328. See the pkg-config man page for more details." "$LINENO" 5
  13329. elif test $pkg_failed = untried; then
  13330.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13331. $as_echo "no" >&6; }
  13332.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13333. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13334. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  13335. is in your PATH or set the PKG_CONFIG environment variable to the full
  13336. path to pkg-config.
  13337.  
  13338. Alternatively, you may set the environment variables DRM_CFLAGS
  13339. and DRM_LIBS to avoid the need to call pkg-config.
  13340. See the pkg-config man page for more details.
  13341.  
  13342. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13343. See \`config.log' for more details" "$LINENO" 5; }
  13344. else
  13345.         DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
  13346.         DRM_LIBS=$pkg_cv_DRM_LIBS
  13347.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13348. $as_echo "yes" >&6; }
  13349.  
  13350. fi
  13351.  
  13352.  
  13353.  
  13354. pkg_failed=no
  13355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
  13356. $as_echo_n "checking for GEN4ASM... " >&6; }
  13357.  
  13358. if test -n "$GEN4ASM_CFLAGS"; then
  13359.     pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
  13360.  elif test -n "$PKG_CONFIG"; then
  13361.     if test -n "$PKG_CONFIG" && \
  13362.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.9\""; } >&5
  13363.   ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.9") 2>&5
  13364.   ac_status=$?
  13365.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13366.   test $ac_status = 0; }; then
  13367.   pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.9" 2>/dev/null`
  13368.                       test "x$?" != "x0" && pkg_failed=yes
  13369. else
  13370.   pkg_failed=yes
  13371. fi
  13372.  else
  13373.     pkg_failed=untried
  13374. fi
  13375. if test -n "$GEN4ASM_LIBS"; then
  13376.     pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
  13377.  elif test -n "$PKG_CONFIG"; then
  13378.     if test -n "$PKG_CONFIG" && \
  13379.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.9\""; } >&5
  13380.   ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.9") 2>&5
  13381.   ac_status=$?
  13382.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13383.   test $ac_status = 0; }; then
  13384.   pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.9" 2>/dev/null`
  13385.                       test "x$?" != "x0" && pkg_failed=yes
  13386. else
  13387.   pkg_failed=yes
  13388. fi
  13389.  else
  13390.     pkg_failed=untried
  13391. fi
  13392.  
  13393.  
  13394.  
  13395. if test $pkg_failed = yes; then
  13396.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13397. $as_echo "no" >&6; }
  13398.  
  13399. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13400.         _pkg_short_errors_supported=yes
  13401. else
  13402.         _pkg_short_errors_supported=no
  13403. fi
  13404.         if test $_pkg_short_errors_supported = yes; then
  13405.                 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.9" 2>&1`
  13406.         else
  13407.                 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.9" 2>&1`
  13408.         fi
  13409.         # Put the nasty error message in config.log where it belongs
  13410.         echo "$GEN4ASM_PKG_ERRORS" >&5
  13411.  
  13412.         gen4asm=no
  13413. elif test $pkg_failed = untried; then
  13414.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13415. $as_echo "no" >&6; }
  13416.         gen4asm=no
  13417. else
  13418.         GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
  13419.         GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
  13420.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13421. $as_echo "yes" >&6; }
  13422.         gen4asm=yes
  13423. fi
  13424. # Extract the first word of "intel-gen4asm", so it can be a program name with args.
  13425. set dummy intel-gen4asm; ac_word=$2
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13427. $as_echo_n "checking for $ac_word... " >&6; }
  13428. if ${ac_cv_path_GEN4ASM+:} false; then :
  13429.   $as_echo_n "(cached) " >&6
  13430. else
  13431.   case $GEN4ASM in
  13432.   [\\/]* | ?:[\\/]*)
  13433.   ac_cv_path_GEN4ASM="$GEN4ASM" # Let the user override the test with a path.
  13434.   ;;
  13435.   *)
  13436.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13437. for as_dir in $PATH
  13438. do
  13439.   IFS=$as_save_IFS
  13440.   test -z "$as_dir" && as_dir=.
  13441.     for ac_exec_ext in '' $ac_executable_extensions; do
  13442.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13443.     ac_cv_path_GEN4ASM="$as_dir/$ac_word$ac_exec_ext"
  13444.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13445.     break 2
  13446.   fi
  13447. done
  13448.   done
  13449. IFS=$as_save_IFS
  13450.  
  13451.   ;;
  13452. esac
  13453. fi
  13454. GEN4ASM=$ac_cv_path_GEN4ASM
  13455. if test -n "$GEN4ASM"; then
  13456.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEN4ASM" >&5
  13457. $as_echo "$GEN4ASM" >&6; }
  13458. else
  13459.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13460. $as_echo "no" >&6; }
  13461. fi
  13462.  
  13463.  
  13464. if test "x$GEN4ASM" = "x" ; then :
  13465.    if false; then
  13466.   HAVE_GEN4ASM_TRUE=
  13467.   HAVE_GEN4ASM_FALSE='#'
  13468. else
  13469.   HAVE_GEN4ASM_TRUE='#'
  13470.   HAVE_GEN4ASM_FALSE=
  13471. fi
  13472.  
  13473. else
  13474.    if test x$gen4asm = xyes; then
  13475.   HAVE_GEN4ASM_TRUE=
  13476.   HAVE_GEN4ASM_FALSE='#'
  13477. else
  13478.   HAVE_GEN4ASM_TRUE='#'
  13479.   HAVE_GEN4ASM_FALSE=
  13480. fi
  13481.  
  13482. fi
  13483.  
  13484.  
  13485. # Extract the first word of "git", so it can be a program name with args.
  13486. set dummy git; ac_word=$2
  13487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13488. $as_echo_n "checking for $ac_word... " >&6; }
  13489. if ${ac_cv_path_GIT+:} false; then :
  13490.   $as_echo_n "(cached) " >&6
  13491. else
  13492.   case $GIT in
  13493.   [\\/]* | ?:[\\/]*)
  13494.   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  13495.   ;;
  13496.   *)
  13497.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13498. for as_dir in $PATH
  13499. do
  13500.   IFS=$as_save_IFS
  13501.   test -z "$as_dir" && as_dir=.
  13502.     for ac_exec_ext in '' $ac_executable_extensions; do
  13503.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13504.     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
  13505.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13506.     break 2
  13507.   fi
  13508. done
  13509.   done
  13510. IFS=$as_save_IFS
  13511.  
  13512.   ;;
  13513. esac
  13514. fi
  13515. GIT=$ac_cv_path_GIT
  13516. if test -n "$GIT"; then
  13517.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  13518. $as_echo "$GIT" >&6; }
  13519. else
  13520.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13521. $as_echo "no" >&6; }
  13522. fi
  13523.  
  13524.  
  13525.  if test -n "$GIT"; then
  13526.   HAVE_GIT_TRUE=
  13527.   HAVE_GIT_FALSE='#'
  13528. else
  13529.   HAVE_GIT_TRUE='#'
  13530.   HAVE_GIT_FALSE=
  13531. fi
  13532.  
  13533.  
  13534.  
  13535. pkg_failed=no
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_DEPS" >&5
  13537. $as_echo_n "checking for LIBVA_DEPS... " >&6; }
  13538.  
  13539. if test -n "$LIBVA_DEPS_CFLAGS"; then
  13540.     pkg_cv_LIBVA_DEPS_CFLAGS="$LIBVA_DEPS_CFLAGS"
  13541.  elif test -n "$PKG_CONFIG"; then
  13542.     if test -n "$PKG_CONFIG" && \
  13543.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva >= 0.38\""; } >&5
  13544.   ($PKG_CONFIG --exists --print-errors "libva >= 0.38") 2>&5
  13545.   ac_status=$?
  13546.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13547.   test $ac_status = 0; }; then
  13548.   pkg_cv_LIBVA_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva >= 0.38" 2>/dev/null`
  13549.                       test "x$?" != "x0" && pkg_failed=yes
  13550. else
  13551.   pkg_failed=yes
  13552. fi
  13553.  else
  13554.     pkg_failed=untried
  13555. fi
  13556. if test -n "$LIBVA_DEPS_LIBS"; then
  13557.     pkg_cv_LIBVA_DEPS_LIBS="$LIBVA_DEPS_LIBS"
  13558.  elif test -n "$PKG_CONFIG"; then
  13559.     if test -n "$PKG_CONFIG" && \
  13560.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva >= 0.38\""; } >&5
  13561.   ($PKG_CONFIG --exists --print-errors "libva >= 0.38") 2>&5
  13562.   ac_status=$?
  13563.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13564.   test $ac_status = 0; }; then
  13565.   pkg_cv_LIBVA_DEPS_LIBS=`$PKG_CONFIG --libs "libva >= 0.38" 2>/dev/null`
  13566.                       test "x$?" != "x0" && pkg_failed=yes
  13567. else
  13568.   pkg_failed=yes
  13569. fi
  13570.  else
  13571.     pkg_failed=untried
  13572. fi
  13573.  
  13574.  
  13575.  
  13576. if test $pkg_failed = yes; then
  13577.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13578. $as_echo "no" >&6; }
  13579.  
  13580. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13581.         _pkg_short_errors_supported=yes
  13582. else
  13583.         _pkg_short_errors_supported=no
  13584. fi
  13585.         if test $_pkg_short_errors_supported = yes; then
  13586.                 LIBVA_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva >= 0.38" 2>&1`
  13587.         else
  13588.                 LIBVA_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva >= 0.38" 2>&1`
  13589.         fi
  13590.         # Put the nasty error message in config.log where it belongs
  13591.         echo "$LIBVA_DEPS_PKG_ERRORS" >&5
  13592.  
  13593.         as_fn_error $? "Package requirements (libva >= 0.38) were not met:
  13594.  
  13595. $LIBVA_DEPS_PKG_ERRORS
  13596.  
  13597. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13598. installed software in a non-standard prefix.
  13599.  
  13600. Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
  13601. and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
  13602. See the pkg-config man page for more details." "$LINENO" 5
  13603. elif test $pkg_failed = untried; then
  13604.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13605. $as_echo "no" >&6; }
  13606.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13607. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13608. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  13609. is in your PATH or set the PKG_CONFIG environment variable to the full
  13610. path to pkg-config.
  13611.  
  13612. Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
  13613. and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
  13614. See the pkg-config man page for more details.
  13615.  
  13616. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13617. See \`config.log' for more details" "$LINENO" 5; }
  13618. else
  13619.         LIBVA_DEPS_CFLAGS=$pkg_cv_LIBVA_DEPS_CFLAGS
  13620.         LIBVA_DEPS_LIBS=$pkg_cv_LIBVA_DEPS_LIBS
  13621.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13622. $as_echo "yes" >&6; }
  13623.  
  13624. fi
  13625.  
  13626. USE_DRM="$enable_drm"
  13627. if test "$USE_DRM" = "yes"; then
  13628.  
  13629. pkg_failed=no
  13630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_DRM_DEPS" >&5
  13631. $as_echo_n "checking for LIBVA_DRM_DEPS... " >&6; }
  13632.  
  13633. if test -n "$LIBVA_DRM_DEPS_CFLAGS"; then
  13634.     pkg_cv_LIBVA_DRM_DEPS_CFLAGS="$LIBVA_DRM_DEPS_CFLAGS"
  13635.  elif test -n "$PKG_CONFIG"; then
  13636.     if test -n "$PKG_CONFIG" && \
  13637.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-drm\""; } >&5
  13638.   ($PKG_CONFIG --exists --print-errors "libva-drm") 2>&5
  13639.   ac_status=$?
  13640.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13641.   test $ac_status = 0; }; then
  13642.   pkg_cv_LIBVA_DRM_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva-drm" 2>/dev/null`
  13643.                       test "x$?" != "x0" && pkg_failed=yes
  13644. else
  13645.   pkg_failed=yes
  13646. fi
  13647.  else
  13648.     pkg_failed=untried
  13649. fi
  13650. if test -n "$LIBVA_DRM_DEPS_LIBS"; then
  13651.     pkg_cv_LIBVA_DRM_DEPS_LIBS="$LIBVA_DRM_DEPS_LIBS"
  13652.  elif test -n "$PKG_CONFIG"; then
  13653.     if test -n "$PKG_CONFIG" && \
  13654.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-drm\""; } >&5
  13655.   ($PKG_CONFIG --exists --print-errors "libva-drm") 2>&5
  13656.   ac_status=$?
  13657.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13658.   test $ac_status = 0; }; then
  13659.   pkg_cv_LIBVA_DRM_DEPS_LIBS=`$PKG_CONFIG --libs "libva-drm" 2>/dev/null`
  13660.                       test "x$?" != "x0" && pkg_failed=yes
  13661. else
  13662.   pkg_failed=yes
  13663. fi
  13664.  else
  13665.     pkg_failed=untried
  13666. fi
  13667.  
  13668.  
  13669.  
  13670. if test $pkg_failed = yes; then
  13671.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13672. $as_echo "no" >&6; }
  13673.  
  13674. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13675.         _pkg_short_errors_supported=yes
  13676. else
  13677.         _pkg_short_errors_supported=no
  13678. fi
  13679.         if test $_pkg_short_errors_supported = yes; then
  13680.                 LIBVA_DRM_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva-drm" 2>&1`
  13681.         else
  13682.                 LIBVA_DRM_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva-drm" 2>&1`
  13683.         fi
  13684.         # Put the nasty error message in config.log where it belongs
  13685.         echo "$LIBVA_DRM_DEPS_PKG_ERRORS" >&5
  13686.  
  13687.         USE_DRM="no"
  13688. elif test $pkg_failed = untried; then
  13689.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13690. $as_echo "no" >&6; }
  13691.         USE_DRM="no"
  13692. else
  13693.         LIBVA_DRM_DEPS_CFLAGS=$pkg_cv_LIBVA_DRM_DEPS_CFLAGS
  13694.         LIBVA_DRM_DEPS_LIBS=$pkg_cv_LIBVA_DRM_DEPS_LIBS
  13695.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13696. $as_echo "yes" >&6; }
  13697.  
  13698. $as_echo "#define HAVE_VA_DRM 1" >>confdefs.h
  13699.  
  13700. fi
  13701.  
  13702.     # Check for <drm_fourcc.h>
  13703.     if test "$USE_DRM" = "yes"; then
  13704.         saved_CPPFLAGS="$CPPFLAGS"
  13705.         CPPFLAGS="$CPPFLAGS $DRM_CFLAGS"
  13706.         for ac_header in drm_fourcc.h
  13707. do :
  13708.   ac_fn_c_check_header_mongrel "$LINENO" "drm_fourcc.h" "ac_cv_header_drm_fourcc_h" "$ac_includes_default"
  13709. if test "x$ac_cv_header_drm_fourcc_h" = xyes; then :
  13710.   cat >>confdefs.h <<_ACEOF
  13711. #define HAVE_DRM_FOURCC_H 1
  13712. _ACEOF
  13713.  :
  13714. else
  13715.   USE_DRM="no"
  13716. fi
  13717.  
  13718. done
  13719.  
  13720.         CPPFLAGS="$saved_CPPFLAGS"
  13721.     fi
  13722. fi
  13723.  if test "$USE_DRM" = "yes"; then
  13724.   USE_DRM_TRUE=
  13725.   USE_DRM_FALSE='#'
  13726. else
  13727.   USE_DRM_TRUE='#'
  13728.   USE_DRM_FALSE=
  13729. fi
  13730.  
  13731.  
  13732. if test "$enable_hybrid_codec" = "yes"; then
  13733.  
  13734. $as_echo "#define HAVE_HYBRID_CODEC 1" >>confdefs.h
  13735.  
  13736. fi
  13737.  
  13738. VA_VERSION=`$PKG_CONFIG --modversion libva`
  13739. VA_MAJOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f1`
  13740. VA_MINOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f2`
  13741. VA_MICRO_VERSION=`echo "$VA_VERSION" | cut -d'.' -f3`
  13742. VA_VERSION_STR="$VA_VERSION"
  13743.  
  13744. va_full_version_int=`expr ${VA_MAJOR_VERSION:-0} "*" 1000000 + \
  13745.                           ${VA_MINOR_VERSION:-0} "*" 10000   + \
  13746.                           ${VA_MICRO_VERSION:-0} "*" 100     + \
  13747.                           0`
  13748. VA_DRIVER_INIT_FUNC="__vaDriverInit_${VA_MAJOR_VERSION}_${VA_MINOR_VERSION}"
  13749.  
  13750. cat >>confdefs.h <<_ACEOF
  13751. #define VA_DRIVER_INIT_FUNC $VA_DRIVER_INIT_FUNC
  13752. _ACEOF
  13753.  
  13754.  
  13755. USE_X11="$enable_x11"
  13756. if test "$USE_X11" = "yes"; then
  13757.  
  13758. pkg_failed=no
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_X11_DEPS" >&5
  13760. $as_echo_n "checking for LIBVA_X11_DEPS... " >&6; }
  13761.  
  13762. if test -n "$LIBVA_X11_DEPS_CFLAGS"; then
  13763.     pkg_cv_LIBVA_X11_DEPS_CFLAGS="$LIBVA_X11_DEPS_CFLAGS"
  13764.  elif test -n "$PKG_CONFIG"; then
  13765.     if test -n "$PKG_CONFIG" && \
  13766.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-x11\""; } >&5
  13767.   ($PKG_CONFIG --exists --print-errors "libva-x11") 2>&5
  13768.   ac_status=$?
  13769.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13770.   test $ac_status = 0; }; then
  13771.   pkg_cv_LIBVA_X11_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva-x11" 2>/dev/null`
  13772.                       test "x$?" != "x0" && pkg_failed=yes
  13773. else
  13774.   pkg_failed=yes
  13775. fi
  13776.  else
  13777.     pkg_failed=untried
  13778. fi
  13779. if test -n "$LIBVA_X11_DEPS_LIBS"; then
  13780.     pkg_cv_LIBVA_X11_DEPS_LIBS="$LIBVA_X11_DEPS_LIBS"
  13781.  elif test -n "$PKG_CONFIG"; then
  13782.     if test -n "$PKG_CONFIG" && \
  13783.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-x11\""; } >&5
  13784.   ($PKG_CONFIG --exists --print-errors "libva-x11") 2>&5
  13785.   ac_status=$?
  13786.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13787.   test $ac_status = 0; }; then
  13788.   pkg_cv_LIBVA_X11_DEPS_LIBS=`$PKG_CONFIG --libs "libva-x11" 2>/dev/null`
  13789.                       test "x$?" != "x0" && pkg_failed=yes
  13790. else
  13791.   pkg_failed=yes
  13792. fi
  13793.  else
  13794.     pkg_failed=untried
  13795. fi
  13796.  
  13797.  
  13798.  
  13799. if test $pkg_failed = yes; then
  13800.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13801. $as_echo "no" >&6; }
  13802.  
  13803. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13804.         _pkg_short_errors_supported=yes
  13805. else
  13806.         _pkg_short_errors_supported=no
  13807. fi
  13808.         if test $_pkg_short_errors_supported = yes; then
  13809.                 LIBVA_X11_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva-x11" 2>&1`
  13810.         else
  13811.                 LIBVA_X11_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva-x11" 2>&1`
  13812.         fi
  13813.         # Put the nasty error message in config.log where it belongs
  13814.         echo "$LIBVA_X11_DEPS_PKG_ERRORS" >&5
  13815.  
  13816.         USE_X11="no"
  13817. elif test $pkg_failed = untried; then
  13818.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13819. $as_echo "no" >&6; }
  13820.         USE_X11="no"
  13821. else
  13822.         LIBVA_X11_DEPS_CFLAGS=$pkg_cv_LIBVA_X11_DEPS_CFLAGS
  13823.         LIBVA_X11_DEPS_LIBS=$pkg_cv_LIBVA_X11_DEPS_LIBS
  13824.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13825. $as_echo "yes" >&6; }
  13826.  
  13827. $as_echo "#define HAVE_VA_X11 1" >>confdefs.h
  13828.  
  13829. fi
  13830. fi
  13831.  if test "$USE_X11" = "yes"; then
  13832.   USE_X11_TRUE=
  13833.   USE_X11_FALSE='#'
  13834. else
  13835.   USE_X11_TRUE='#'
  13836.   USE_X11_FALSE=
  13837. fi
  13838.  
  13839.  
  13840.  
  13841. if test -z "$LIBVA_DRIVERS_PATH"; then
  13842.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VA drivers path" >&5
  13843. $as_echo_n "checking for VA drivers path... " >&6; }
  13844.     LIBVA_DRIVERS_PATH=`$PKG_CONFIG libva --variable driverdir`
  13845. fi
  13846. if test -z "$LIBVA_DRIVERS_PATH"; then
  13847.     LIBVA_DRIVERS_PATH="${libdir}/xorg/modules/drivers"
  13848. fi
  13849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBVA_DRIVERS_PATH" >&5
  13850. $as_echo "$LIBVA_DRIVERS_PATH" >&6; }
  13851.  
  13852.  
  13853. # Check for EGL
  13854. if test "$enable_wayland" = "yes"; then
  13855.     enable_egl="yes"
  13856. fi
  13857.  
  13858. USE_EGL="no"
  13859. if test "$enable_egl" = "yes"; then
  13860.  
  13861. pkg_failed=no
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL" >&5
  13863. $as_echo_n "checking for EGL... " >&6; }
  13864.  
  13865. if test -n "$EGL_CFLAGS"; then
  13866.     pkg_cv_EGL_CFLAGS="$EGL_CFLAGS"
  13867.  elif test -n "$PKG_CONFIG"; then
  13868.     if test -n "$PKG_CONFIG" && \
  13869.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
  13870.   ($PKG_CONFIG --exists --print-errors "egl") 2>&5
  13871.   ac_status=$?
  13872.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13873.   test $ac_status = 0; }; then
  13874.   pkg_cv_EGL_CFLAGS=`$PKG_CONFIG --cflags "egl" 2>/dev/null`
  13875.                       test "x$?" != "x0" && pkg_failed=yes
  13876. else
  13877.   pkg_failed=yes
  13878. fi
  13879.  else
  13880.     pkg_failed=untried
  13881. fi
  13882. if test -n "$EGL_LIBS"; then
  13883.     pkg_cv_EGL_LIBS="$EGL_LIBS"
  13884.  elif test -n "$PKG_CONFIG"; then
  13885.     if test -n "$PKG_CONFIG" && \
  13886.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
  13887.   ($PKG_CONFIG --exists --print-errors "egl") 2>&5
  13888.   ac_status=$?
  13889.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13890.   test $ac_status = 0; }; then
  13891.   pkg_cv_EGL_LIBS=`$PKG_CONFIG --libs "egl" 2>/dev/null`
  13892.                       test "x$?" != "x0" && pkg_failed=yes
  13893. else
  13894.   pkg_failed=yes
  13895. fi
  13896.  else
  13897.     pkg_failed=untried
  13898. fi
  13899.  
  13900.  
  13901.  
  13902. if test $pkg_failed = yes; then
  13903.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13904. $as_echo "no" >&6; }
  13905.  
  13906. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13907.         _pkg_short_errors_supported=yes
  13908. else
  13909.         _pkg_short_errors_supported=no
  13910. fi
  13911.         if test $_pkg_short_errors_supported = yes; then
  13912.                 EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "egl" 2>&1`
  13913.         else
  13914.                 EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "egl" 2>&1`
  13915.         fi
  13916.         # Put the nasty error message in config.log where it belongs
  13917.         echo "$EGL_PKG_ERRORS" >&5
  13918.  
  13919.         USE_EGL="no"
  13920. elif test $pkg_failed = untried; then
  13921.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13922. $as_echo "no" >&6; }
  13923.         USE_EGL="no"
  13924. else
  13925.         EGL_CFLAGS=$pkg_cv_EGL_CFLAGS
  13926.         EGL_LIBS=$pkg_cv_EGL_LIBS
  13927.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13928. $as_echo "yes" >&6; }
  13929.         USE_EGL="yes"
  13930. fi
  13931.     saved_CPPFLAGS="$CPPFLAGS"
  13932.     saved_LIBS="$LIBS"
  13933.     CPPFLAGS="$CPPFLAGS $EGL_CFLAGS"
  13934.     LIBS="$LIBS $EGL_LIBS"
  13935.     for ac_header in EGL/egl.h
  13936. do :
  13937.   ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
  13938. if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
  13939.   cat >>confdefs.h <<_ACEOF
  13940. #define HAVE_EGL_EGL_H 1
  13941. _ACEOF
  13942.  :
  13943. else
  13944.   USE_EGL="no"
  13945. fi
  13946.  
  13947. done
  13948.  
  13949.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetDisplay in -lEGL" >&5
  13950. $as_echo_n "checking for eglGetDisplay in -lEGL... " >&6; }
  13951. if ${ac_cv_lib_EGL_eglGetDisplay+:} false; then :
  13952.   $as_echo_n "(cached) " >&6
  13953. else
  13954.   ac_check_lib_save_LIBS=$LIBS
  13955. LIBS="-lEGL  $LIBS"
  13956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13957. /* end confdefs.h.  */
  13958.  
  13959. /* Override any GCC internal prototype to avoid an error.
  13960.    Use char because int might match the return type of a GCC
  13961.    builtin and then its argument prototype would still apply.  */
  13962. #ifdef __cplusplus
  13963. extern "C"
  13964. #endif
  13965. char eglGetDisplay ();
  13966. int
  13967. main ()
  13968. {
  13969. return eglGetDisplay ();
  13970.   ;
  13971.   return 0;
  13972. }
  13973. _ACEOF
  13974. if ac_fn_c_try_link "$LINENO"; then :
  13975.   ac_cv_lib_EGL_eglGetDisplay=yes
  13976. else
  13977.   ac_cv_lib_EGL_eglGetDisplay=no
  13978. fi
  13979. rm -f core conftest.err conftest.$ac_objext \
  13980.     conftest$ac_exeext conftest.$ac_ext
  13981. LIBS=$ac_check_lib_save_LIBS
  13982. fi
  13983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglGetDisplay" >&5
  13984. $as_echo "$ac_cv_lib_EGL_eglGetDisplay" >&6; }
  13985. if test "x$ac_cv_lib_EGL_eglGetDisplay" = xyes; then :
  13986.   :
  13987. else
  13988.   USE_EGL="no"
  13989. fi
  13990.  
  13991.     CPPFLAGS="$saved_CPPFLAGS"
  13992.     LIBS="$saved_LIBS"
  13993. fi
  13994.  if test "$USE_EGL" = "yes"; then
  13995.   USE_EGL_TRUE=
  13996.   USE_EGL_FALSE='#'
  13997. else
  13998.   USE_EGL_TRUE='#'
  13999.   USE_EGL_FALSE=
  14000. fi
  14001.  
  14002.  
  14003. # Check for Wayland
  14004. USE_WAYLAND="no"
  14005. if test "$enable_wayland" = "yes"; then
  14006.  
  14007. pkg_failed=no
  14008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5
  14009. $as_echo_n "checking for WAYLAND... " >&6; }
  14010.  
  14011. if test -n "$WAYLAND_CFLAGS"; then
  14012.     pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS"
  14013.  elif test -n "$PKG_CONFIG"; then
  14014.     if test -n "$PKG_CONFIG" && \
  14015.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client\""; } >&5
  14016.   ($PKG_CONFIG --exists --print-errors "wayland-client") 2>&5
  14017.   ac_status=$?
  14018.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14019.   test $ac_status = 0; }; then
  14020.   pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client" 2>/dev/null`
  14021.                       test "x$?" != "x0" && pkg_failed=yes
  14022. else
  14023.   pkg_failed=yes
  14024. fi
  14025.  else
  14026.     pkg_failed=untried
  14027. fi
  14028. if test -n "$WAYLAND_LIBS"; then
  14029.     pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS"
  14030.  elif test -n "$PKG_CONFIG"; then
  14031.     if test -n "$PKG_CONFIG" && \
  14032.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client\""; } >&5
  14033.   ($PKG_CONFIG --exists --print-errors "wayland-client") 2>&5
  14034.   ac_status=$?
  14035.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14036.   test $ac_status = 0; }; then
  14037.   pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client" 2>/dev/null`
  14038.                       test "x$?" != "x0" && pkg_failed=yes
  14039. else
  14040.   pkg_failed=yes
  14041. fi
  14042.  else
  14043.     pkg_failed=untried
  14044. fi
  14045.  
  14046.  
  14047.  
  14048. if test $pkg_failed = yes; then
  14049.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14050. $as_echo "no" >&6; }
  14051.  
  14052. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14053.         _pkg_short_errors_supported=yes
  14054. else
  14055.         _pkg_short_errors_supported=no
  14056. fi
  14057.         if test $_pkg_short_errors_supported = yes; then
  14058.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client" 2>&1`
  14059.         else
  14060.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client" 2>&1`
  14061.         fi
  14062.         # Put the nasty error message in config.log where it belongs
  14063.         echo "$WAYLAND_PKG_ERRORS" >&5
  14064.  
  14065.         :
  14066. elif test $pkg_failed = untried; then
  14067.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14068. $as_echo "no" >&6; }
  14069.         :
  14070. else
  14071.         WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS
  14072.         WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS
  14073.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14074. $as_echo "yes" >&6; }
  14075.         USE_WAYLAND="yes"
  14076. fi
  14077.  
  14078. pkg_failed=no
  14079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_WAYLAND_DEPS" >&5
  14080. $as_echo_n "checking for LIBVA_WAYLAND_DEPS... " >&6; }
  14081.  
  14082. if test -n "$LIBVA_WAYLAND_DEPS_CFLAGS"; then
  14083.     pkg_cv_LIBVA_WAYLAND_DEPS_CFLAGS="$LIBVA_WAYLAND_DEPS_CFLAGS"
  14084.  elif test -n "$PKG_CONFIG"; then
  14085.     if test -n "$PKG_CONFIG" && \
  14086.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-wayland\""; } >&5
  14087.   ($PKG_CONFIG --exists --print-errors "libva-wayland") 2>&5
  14088.   ac_status=$?
  14089.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14090.   test $ac_status = 0; }; then
  14091.   pkg_cv_LIBVA_WAYLAND_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva-wayland" 2>/dev/null`
  14092.                       test "x$?" != "x0" && pkg_failed=yes
  14093. else
  14094.   pkg_failed=yes
  14095. fi
  14096.  else
  14097.     pkg_failed=untried
  14098. fi
  14099. if test -n "$LIBVA_WAYLAND_DEPS_LIBS"; then
  14100.     pkg_cv_LIBVA_WAYLAND_DEPS_LIBS="$LIBVA_WAYLAND_DEPS_LIBS"
  14101.  elif test -n "$PKG_CONFIG"; then
  14102.     if test -n "$PKG_CONFIG" && \
  14103.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-wayland\""; } >&5
  14104.   ($PKG_CONFIG --exists --print-errors "libva-wayland") 2>&5
  14105.   ac_status=$?
  14106.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14107.   test $ac_status = 0; }; then
  14108.   pkg_cv_LIBVA_WAYLAND_DEPS_LIBS=`$PKG_CONFIG --libs "libva-wayland" 2>/dev/null`
  14109.                       test "x$?" != "x0" && pkg_failed=yes
  14110. else
  14111.   pkg_failed=yes
  14112. fi
  14113.  else
  14114.     pkg_failed=untried
  14115. fi
  14116.  
  14117.  
  14118.  
  14119. if test $pkg_failed = yes; then
  14120.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14121. $as_echo "no" >&6; }
  14122.  
  14123. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14124.         _pkg_short_errors_supported=yes
  14125. else
  14126.         _pkg_short_errors_supported=no
  14127. fi
  14128.         if test $_pkg_short_errors_supported = yes; then
  14129.                 LIBVA_WAYLAND_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva-wayland" 2>&1`
  14130.         else
  14131.                 LIBVA_WAYLAND_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva-wayland" 2>&1`
  14132.         fi
  14133.         # Put the nasty error message in config.log where it belongs
  14134.         echo "$LIBVA_WAYLAND_DEPS_PKG_ERRORS" >&5
  14135.  
  14136.         USE_WAYLAND="no"
  14137. elif test $pkg_failed = untried; then
  14138.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14139. $as_echo "no" >&6; }
  14140.         USE_WAYLAND="no"
  14141. else
  14142.         LIBVA_WAYLAND_DEPS_CFLAGS=$pkg_cv_LIBVA_WAYLAND_DEPS_CFLAGS
  14143.         LIBVA_WAYLAND_DEPS_LIBS=$pkg_cv_LIBVA_WAYLAND_DEPS_LIBS
  14144.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14145. $as_echo "yes" >&6; }
  14146.  
  14147. $as_echo "#define HAVE_VA_WAYLAND 1" >>confdefs.h
  14148.  
  14149. fi
  14150. fi
  14151.  if test "$USE_WAYLAND" = "yes"; then
  14152.   USE_WAYLAND_TRUE=
  14153.   USE_WAYLAND_FALSE='#'
  14154. else
  14155.   USE_WAYLAND_TRUE='#'
  14156.   USE_WAYLAND_FALSE=
  14157. fi
  14158.  
  14159.  
  14160.  
  14161.  
  14162.  
  14163.  
  14164.  
  14165.  
  14166.  
  14167.  
  14168. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14169.         if test -n "$ac_tool_prefix"; then
  14170.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14171. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14173. $as_echo_n "checking for $ac_word... " >&6; }
  14174. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14175.   $as_echo_n "(cached) " >&6
  14176. else
  14177.   case $PKG_CONFIG in
  14178.   [\\/]* | ?:[\\/]*)
  14179.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14180.   ;;
  14181.   *)
  14182.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14183. for as_dir in $PATH
  14184. do
  14185.   IFS=$as_save_IFS
  14186.   test -z "$as_dir" && as_dir=.
  14187.     for ac_exec_ext in '' $ac_executable_extensions; do
  14188.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14189.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14190.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14191.     break 2
  14192.   fi
  14193. done
  14194.   done
  14195. IFS=$as_save_IFS
  14196.  
  14197.   ;;
  14198. esac
  14199. fi
  14200. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14201. if test -n "$PKG_CONFIG"; then
  14202.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14203. $as_echo "$PKG_CONFIG" >&6; }
  14204. else
  14205.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14206. $as_echo "no" >&6; }
  14207. fi
  14208.  
  14209.  
  14210. fi
  14211. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14212.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  14213.   # Extract the first word of "pkg-config", so it can be a program name with args.
  14214. set dummy pkg-config; ac_word=$2
  14215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14216. $as_echo_n "checking for $ac_word... " >&6; }
  14217. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14218.   $as_echo_n "(cached) " >&6
  14219. else
  14220.   case $ac_pt_PKG_CONFIG in
  14221.   [\\/]* | ?:[\\/]*)
  14222.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14223.   ;;
  14224.   *)
  14225.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14226. for as_dir in $PATH
  14227. do
  14228.   IFS=$as_save_IFS
  14229.   test -z "$as_dir" && as_dir=.
  14230.     for ac_exec_ext in '' $ac_executable_extensions; do
  14231.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14232.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14233.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14234.     break 2
  14235.   fi
  14236. done
  14237.   done
  14238. IFS=$as_save_IFS
  14239.  
  14240.   ;;
  14241. esac
  14242. fi
  14243. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14244. if test -n "$ac_pt_PKG_CONFIG"; then
  14245.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14246. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14247. else
  14248.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14249. $as_echo "no" >&6; }
  14250. fi
  14251.  
  14252.   if test "x$ac_pt_PKG_CONFIG" = x; then
  14253.     PKG_CONFIG=""
  14254.   else
  14255.     case $cross_compiling:$ac_tool_warned in
  14256. yes:)
  14257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14258. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14259. ac_tool_warned=yes ;;
  14260. esac
  14261.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  14262.   fi
  14263. else
  14264.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14265. fi
  14266.  
  14267. fi
  14268. if test -n "$PKG_CONFIG"; then
  14269.         _pkg_min_version=0.9.0
  14270.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14271. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14272.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14273.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14274. $as_echo "yes" >&6; }
  14275.         else
  14276.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14277. $as_echo "no" >&6; }
  14278.                 PKG_CONFIG=""
  14279.         fi
  14280. fi
  14281.  
  14282.  
  14283. pkg_failed=no
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5
  14285. $as_echo_n "checking for WAYLAND_SCANNER... " >&6; }
  14286.  
  14287. if test -n "$WAYLAND_SCANNER_CFLAGS"; then
  14288.     pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS"
  14289.  elif test -n "$PKG_CONFIG"; then
  14290.     if test -n "$PKG_CONFIG" && \
  14291.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
  14292.   ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
  14293.   ac_status=$?
  14294.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14295.   test $ac_status = 0; }; then
  14296.   pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null`
  14297.                       test "x$?" != "x0" && pkg_failed=yes
  14298. else
  14299.   pkg_failed=yes
  14300. fi
  14301.  else
  14302.     pkg_failed=untried
  14303. fi
  14304. if test -n "$WAYLAND_SCANNER_LIBS"; then
  14305.     pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS"
  14306.  elif test -n "$PKG_CONFIG"; then
  14307.     if test -n "$PKG_CONFIG" && \
  14308.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
  14309.   ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
  14310.   ac_status=$?
  14311.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14312.   test $ac_status = 0; }; then
  14313.   pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null`
  14314.                       test "x$?" != "x0" && pkg_failed=yes
  14315. else
  14316.   pkg_failed=yes
  14317. fi
  14318.  else
  14319.     pkg_failed=untried
  14320. fi
  14321.  
  14322.  
  14323.  
  14324. if test $pkg_failed = yes; then
  14325.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14326. $as_echo "no" >&6; }
  14327.  
  14328. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14329.         _pkg_short_errors_supported=yes
  14330. else
  14331.         _pkg_short_errors_supported=no
  14332. fi
  14333.         if test $_pkg_short_errors_supported = yes; then
  14334.                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1`
  14335.         else
  14336.                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1`
  14337.         fi
  14338.         # Put the nasty error message in config.log where it belongs
  14339.         echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5
  14340.  
  14341.         as_fn_error $? "Package requirements (wayland-scanner) were not met:
  14342.  
  14343. $WAYLAND_SCANNER_PKG_ERRORS
  14344.  
  14345. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14346. installed software in a non-standard prefix.
  14347.  
  14348. Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
  14349. and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
  14350. See the pkg-config man page for more details." "$LINENO" 5
  14351. elif test $pkg_failed = untried; then
  14352.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14353. $as_echo "no" >&6; }
  14354.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14355. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14356. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  14357. is in your PATH or set the PKG_CONFIG environment variable to the full
  14358. path to pkg-config.
  14359.  
  14360. Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
  14361. and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
  14362. See the pkg-config man page for more details.
  14363.  
  14364. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14365. See \`config.log' for more details" "$LINENO" 5; }
  14366. else
  14367.         WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS
  14368.         WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS
  14369.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14370. $as_echo "yes" >&6; }
  14371.  
  14372. fi
  14373.  
  14374.     wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  14375.  
  14376.  
  14377.     wayland_scanner_rules=`$PKG_CONFIG --variable=pkgdatadir wayland-scanner`/wayland-scanner.mk
  14378.  
  14379.  
  14380.     wayland_protocoldir='$(top_builddir)/src/wayland'
  14381.  
  14382.  
  14383.  
  14384. ac_config_files="$ac_config_files Makefile debian.upstream/Makefile src/Makefile src/shaders/Makefile src/shaders/h264/Makefile src/shaders/h264/ildb/Makefile src/shaders/h264/mc/Makefile src/shaders/mpeg2/Makefile src/shaders/mpeg2/vld/Makefile src/shaders/post_processing/Makefile src/shaders/post_processing/gen5_6/Makefile src/shaders/post_processing/gen7/Makefile src/shaders/post_processing/gen75/Makefile src/shaders/post_processing/gen8/Makefile src/shaders/post_processing/gen9/Makefile src/shaders/render/Makefile src/shaders/utils/Makefile src/shaders/vme/Makefile src/wayland/Makefile"
  14385.  
  14386. cat >confcache <<\_ACEOF
  14387. # This file is a shell script that caches the results of configure
  14388. # tests run on this system so they can be shared between configure
  14389. # scripts and configure runs, see configure's option --config-cache.
  14390. # It is not useful on other systems.  If it contains results you don't
  14391. # want to keep, you may remove or edit it.
  14392. #
  14393. # config.status only pays attention to the cache file if you give it
  14394. # the --recheck option to rerun configure.
  14395. #
  14396. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14397. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14398. # following values.
  14399.  
  14400. _ACEOF
  14401.  
  14402. # The following way of writing the cache mishandles newlines in values,
  14403. # but we know of no workaround that is simple, portable, and efficient.
  14404. # So, we kill variables containing newlines.
  14405. # Ultrix sh set writes to stderr and can't be redirected directly,
  14406. # and sets the high bit in the cache file unless we assign to the vars.
  14407. (
  14408.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14409.     eval ac_val=\$$ac_var
  14410.     case $ac_val in #(
  14411.     *${as_nl}*)
  14412.       case $ac_var in #(
  14413.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14414. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14415.       esac
  14416.       case $ac_var in #(
  14417.       _ | IFS | as_nl) ;; #(
  14418.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14419.       *) { eval $ac_var=; unset $ac_var;} ;;
  14420.       esac ;;
  14421.     esac
  14422.   done
  14423.  
  14424.   (set) 2>&1 |
  14425.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14426.     *${as_nl}ac_space=\ *)
  14427.       # `set' does not quote correctly, so add quotes: double-quote
  14428.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  14429.       sed -n \
  14430.         "s/'/'\\\\''/g;
  14431.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14432.       ;; #(
  14433.     *)
  14434.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  14435.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14436.       ;;
  14437.     esac |
  14438.     sort
  14439. ) |
  14440.   sed '
  14441.      /^ac_cv_env_/b end
  14442.      t clear
  14443.      :clear
  14444.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14445.      t end
  14446.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14447.      :end' >>confcache
  14448. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14449.   if test -w "$cache_file"; then
  14450.     if test "x$cache_file" != "x/dev/null"; then
  14451.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14452. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14453.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  14454.         cat confcache >"$cache_file"
  14455.       else
  14456.         case $cache_file in #(
  14457.         */* | ?:*)
  14458.           mv -f confcache "$cache_file"$$ &&
  14459.           mv -f "$cache_file"$$ "$cache_file" ;; #(
  14460.         *)
  14461.           mv -f confcache "$cache_file" ;;
  14462.         esac
  14463.       fi
  14464.     fi
  14465.   else
  14466.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14467. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14468.   fi
  14469. fi
  14470. rm -f confcache
  14471.  
  14472. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14473. # Let make expand exec_prefix.
  14474. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14475.  
  14476. DEFS=-DHAVE_CONFIG_H
  14477.  
  14478. ac_libobjs=
  14479. ac_ltlibobjs=
  14480. U=
  14481. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14482.   # 1. Remove the extension, and $U if already installed.
  14483.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14484.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14485.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  14486.   #    will be set to the directory where LIBOBJS objects are built.
  14487.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14488.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14489. done
  14490. LIBOBJS=$ac_libobjs
  14491.  
  14492. LTLIBOBJS=$ac_ltlibobjs
  14493.  
  14494.  
  14495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14496. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14497.    if test -n "$am_sleep_pid"; then
  14498.      # Hide warnings about reused PIDs.
  14499.      wait $am_sleep_pid 2>/dev/null
  14500.    fi
  14501.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14502. $as_echo "done" >&6; }
  14503.  if test -n "$EXEEXT"; then
  14504.   am__EXEEXT_TRUE=
  14505.   am__EXEEXT_FALSE='#'
  14506. else
  14507.   am__EXEEXT_TRUE='#'
  14508.   am__EXEEXT_FALSE=
  14509. fi
  14510.  
  14511. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14512.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  14513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14514. fi
  14515. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14516.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14518. fi
  14519. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14520.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14522. fi
  14523.  
  14524. if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
  14525.   as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
  14526. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14527. fi
  14528. if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
  14529.   as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
  14530. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14531. fi
  14532. if test -z "${HAVE_GIT_TRUE}" && test -z "${HAVE_GIT_FALSE}"; then
  14533.   as_fn_error $? "conditional \"HAVE_GIT\" was never defined.
  14534. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14535. fi
  14536. if test -z "${USE_DRM_TRUE}" && test -z "${USE_DRM_FALSE}"; then
  14537.   as_fn_error $? "conditional \"USE_DRM\" was never defined.
  14538. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14539. fi
  14540. if test -z "${USE_X11_TRUE}" && test -z "${USE_X11_FALSE}"; then
  14541.   as_fn_error $? "conditional \"USE_X11\" was never defined.
  14542. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14543. fi
  14544. if test -z "${USE_EGL_TRUE}" && test -z "${USE_EGL_FALSE}"; then
  14545.   as_fn_error $? "conditional \"USE_EGL\" was never defined.
  14546. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14547. fi
  14548. if test -z "${USE_WAYLAND_TRUE}" && test -z "${USE_WAYLAND_FALSE}"; then
  14549.   as_fn_error $? "conditional \"USE_WAYLAND\" was never defined.
  14550. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14551. fi
  14552.  
  14553. : "${CONFIG_STATUS=./config.status}"
  14554. ac_write_fail=0
  14555. ac_clean_files_save=$ac_clean_files
  14556. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14557. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14558. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14559. as_write_fail=0
  14560. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14561. #! $SHELL
  14562. # Generated by $as_me.
  14563. # Run this file to recreate the current configuration.
  14564. # Compiler output produced by configure, useful for debugging
  14565. # configure, is in config.log if it exists.
  14566.  
  14567. debug=false
  14568. ac_cs_recheck=false
  14569. ac_cs_silent=false
  14570.  
  14571. SHELL=\${CONFIG_SHELL-$SHELL}
  14572. export SHELL
  14573. _ASEOF
  14574. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14575. ## -------------------- ##
  14576. ## M4sh Initialization. ##
  14577. ## -------------------- ##
  14578.  
  14579. # Be more Bourne compatible
  14580. DUALCASE=1; export DUALCASE # for MKS sh
  14581. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14582.   emulate sh
  14583.   NULLCMD=:
  14584.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14585.   # is contrary to our usage.  Disable this feature.
  14586.   alias -g '${1+"$@"}'='"$@"'
  14587.   setopt NO_GLOB_SUBST
  14588. else
  14589.   case `(set -o) 2>/dev/null` in #(
  14590.   *posix*) :
  14591.     set -o posix ;; #(
  14592.   *) :
  14593.      ;;
  14594. esac
  14595. fi
  14596.  
  14597.  
  14598. as_nl='
  14599. '
  14600. export as_nl
  14601. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14602. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14603. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14604. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14605. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14606. # but without wasting forks for bash or zsh.
  14607. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14608.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14609.   as_echo='print -r --'
  14610.   as_echo_n='print -rn --'
  14611. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14612.   as_echo='printf %s\n'
  14613.   as_echo_n='printf %s'
  14614. else
  14615.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14616.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14617.     as_echo_n='/usr/ucb/echo -n'
  14618.   else
  14619.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14620.     as_echo_n_body='eval
  14621.       arg=$1;
  14622.       case $arg in #(
  14623.       *"$as_nl"*)
  14624.         expr "X$arg" : "X\\(.*\\)$as_nl";
  14625.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14626.       esac;
  14627.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14628.     '
  14629.     export as_echo_n_body
  14630.     as_echo_n='sh -c $as_echo_n_body as_echo'
  14631.   fi
  14632.   export as_echo_body
  14633.   as_echo='sh -c $as_echo_body as_echo'
  14634. fi
  14635.  
  14636. # The user is always right.
  14637. if test "${PATH_SEPARATOR+set}" != set; then
  14638.   PATH_SEPARATOR=:
  14639.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14640.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14641.       PATH_SEPARATOR=';'
  14642.   }
  14643. fi
  14644.  
  14645.  
  14646. # IFS
  14647. # We need space, tab and new line, in precisely that order.  Quoting is
  14648. # there to prevent editors from complaining about space-tab.
  14649. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14650. # splitting by setting IFS to empty value.)
  14651. IFS=" ""        $as_nl"
  14652.  
  14653. # Find who we are.  Look in the path if we contain no directory separator.
  14654. as_myself=
  14655. case $0 in #((
  14656.   *[\\/]* ) as_myself=$0 ;;
  14657.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14658. for as_dir in $PATH
  14659. do
  14660.   IFS=$as_save_IFS
  14661.   test -z "$as_dir" && as_dir=.
  14662.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14663.   done
  14664. IFS=$as_save_IFS
  14665.  
  14666.      ;;
  14667. esac
  14668. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14669. # in which case we are not to be found in the path.
  14670. if test "x$as_myself" = x; then
  14671.   as_myself=$0
  14672. fi
  14673. if test ! -f "$as_myself"; then
  14674.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14675.   exit 1
  14676. fi
  14677.  
  14678. # Unset variables that we do not need and which cause bugs (e.g. in
  14679. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  14680. # suppresses any "Segmentation fault" message there.  '((' could
  14681. # trigger a bug in pdksh 5.2.14.
  14682. for as_var in BASH_ENV ENV MAIL MAILPATH
  14683. do eval test x\${$as_var+set} = xset \
  14684.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14685. done
  14686. PS1='$ '
  14687. PS2='> '
  14688. PS4='+ '
  14689.  
  14690. # NLS nuisances.
  14691. LC_ALL=C
  14692. export LC_ALL
  14693. LANGUAGE=C
  14694. export LANGUAGE
  14695.  
  14696. # CDPATH.
  14697. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14698.  
  14699.  
  14700. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14701. # ----------------------------------------
  14702. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14703. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14704. # script with STATUS, using 1 if that was 0.
  14705. as_fn_error ()
  14706. {
  14707.   as_status=$1; test $as_status -eq 0 && as_status=1
  14708.   if test "$4"; then
  14709.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14710.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14711.   fi
  14712.   $as_echo "$as_me: error: $2" >&2
  14713.   as_fn_exit $as_status
  14714. } # as_fn_error
  14715.  
  14716.  
  14717. # as_fn_set_status STATUS
  14718. # -----------------------
  14719. # Set $? to STATUS, without forking.
  14720. as_fn_set_status ()
  14721. {
  14722.   return $1
  14723. } # as_fn_set_status
  14724.  
  14725. # as_fn_exit STATUS
  14726. # -----------------
  14727. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14728. as_fn_exit ()
  14729. {
  14730.   set +e
  14731.   as_fn_set_status $1
  14732.   exit $1
  14733. } # as_fn_exit
  14734.  
  14735. # as_fn_unset VAR
  14736. # ---------------
  14737. # Portably unset VAR.
  14738. as_fn_unset ()
  14739. {
  14740.   { eval $1=; unset $1;}
  14741. }
  14742. as_unset=as_fn_unset
  14743. # as_fn_append VAR VALUE
  14744. # ----------------------
  14745. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14746. # advantage of any shell optimizations that allow amortized linear growth over
  14747. # repeated appends, instead of the typical quadratic growth present in naive
  14748. # implementations.
  14749. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14750.   eval 'as_fn_append ()
  14751.   {
  14752.     eval $1+=\$2
  14753.   }'
  14754. else
  14755.   as_fn_append ()
  14756.   {
  14757.     eval $1=\$$1\$2
  14758.   }
  14759. fi # as_fn_append
  14760.  
  14761. # as_fn_arith ARG...
  14762. # ------------------
  14763. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14764. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14765. # must be portable across $(()) and expr.
  14766. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14767.   eval 'as_fn_arith ()
  14768.   {
  14769.     as_val=$(( $* ))
  14770.   }'
  14771. else
  14772.   as_fn_arith ()
  14773.   {
  14774.     as_val=`expr "$@" || test $? -eq 1`
  14775.   }
  14776. fi # as_fn_arith
  14777.  
  14778.  
  14779. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14780.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14781.   as_expr=expr
  14782. else
  14783.   as_expr=false
  14784. fi
  14785.  
  14786. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14787.   as_basename=basename
  14788. else
  14789.   as_basename=false
  14790. fi
  14791.  
  14792. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14793.   as_dirname=dirname
  14794. else
  14795.   as_dirname=false
  14796. fi
  14797.  
  14798. as_me=`$as_basename -- "$0" ||
  14799. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14800.          X"$0" : 'X\(//\)$' \| \
  14801.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14802. $as_echo X/"$0" |
  14803.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  14804.             s//\1/
  14805.             q
  14806.           }
  14807.           /^X\/\(\/\/\)$/{
  14808.             s//\1/
  14809.             q
  14810.           }
  14811.           /^X\/\(\/\).*/{
  14812.             s//\1/
  14813.             q
  14814.           }
  14815.           s/.*/./; q'`
  14816.  
  14817. # Avoid depending upon Character Ranges.
  14818. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14819. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14820. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14821. as_cr_digits='0123456789'
  14822. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14823.  
  14824. ECHO_C= ECHO_N= ECHO_T=
  14825. case `echo -n x` in #(((((
  14826. -n*)
  14827.   case `echo 'xy\c'` in
  14828.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  14829.   xy)  ECHO_C='\c';;
  14830.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14831.        ECHO_T=' ';;
  14832.   esac;;
  14833. *)
  14834.   ECHO_N='-n';;
  14835. esac
  14836.  
  14837. rm -f conf$$ conf$$.exe conf$$.file
  14838. if test -d conf$$.dir; then
  14839.   rm -f conf$$.dir/conf$$.file
  14840. else
  14841.   rm -f conf$$.dir
  14842.   mkdir conf$$.dir 2>/dev/null
  14843. fi
  14844. if (echo >conf$$.file) 2>/dev/null; then
  14845.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  14846.     as_ln_s='ln -s'
  14847.     # ... but there are two gotchas:
  14848.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14849.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14850.     # In both cases, we have to default to `cp -pR'.
  14851.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14852.       as_ln_s='cp -pR'
  14853.   elif ln conf$$.file conf$$ 2>/dev/null; then
  14854.     as_ln_s=ln
  14855.   else
  14856.     as_ln_s='cp -pR'
  14857.   fi
  14858. else
  14859.   as_ln_s='cp -pR'
  14860. fi
  14861. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14862. rmdir conf$$.dir 2>/dev/null
  14863.  
  14864.  
  14865. # as_fn_mkdir_p
  14866. # -------------
  14867. # Create "$as_dir" as a directory, including parents if necessary.
  14868. as_fn_mkdir_p ()
  14869. {
  14870.  
  14871.   case $as_dir in #(
  14872.   -*) as_dir=./$as_dir;;
  14873.   esac
  14874.   test -d "$as_dir" || eval $as_mkdir_p || {
  14875.     as_dirs=
  14876.     while :; do
  14877.       case $as_dir in #(
  14878.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14879.       *) as_qdir=$as_dir;;
  14880.       esac
  14881.       as_dirs="'$as_qdir' $as_dirs"
  14882.       as_dir=`$as_dirname -- "$as_dir" ||
  14883. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14884.          X"$as_dir" : 'X\(//\)[^/]' \| \
  14885.          X"$as_dir" : 'X\(//\)$' \| \
  14886.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14887. $as_echo X"$as_dir" |
  14888.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14889.             s//\1/
  14890.             q
  14891.           }
  14892.           /^X\(\/\/\)[^/].*/{
  14893.             s//\1/
  14894.             q
  14895.           }
  14896.           /^X\(\/\/\)$/{
  14897.             s//\1/
  14898.             q
  14899.           }
  14900.           /^X\(\/\).*/{
  14901.             s//\1/
  14902.             q
  14903.           }
  14904.           s/.*/./; q'`
  14905.       test -d "$as_dir" && break
  14906.     done
  14907.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  14908.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14909.  
  14910.  
  14911. } # as_fn_mkdir_p
  14912. if mkdir -p . 2>/dev/null; then
  14913.   as_mkdir_p='mkdir -p "$as_dir"'
  14914. else
  14915.   test -d ./-p && rmdir ./-p
  14916.   as_mkdir_p=false
  14917. fi
  14918.  
  14919.  
  14920. # as_fn_executable_p FILE
  14921. # -----------------------
  14922. # Test if FILE is an executable regular file.
  14923. as_fn_executable_p ()
  14924. {
  14925.   test -f "$1" && test -x "$1"
  14926. } # as_fn_executable_p
  14927. as_test_x='test -x'
  14928. as_executable_p=as_fn_executable_p
  14929.  
  14930. # Sed expression to map a string onto a valid CPP name.
  14931. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14932.  
  14933. # Sed expression to map a string onto a valid variable name.
  14934. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14935.  
  14936.  
  14937. exec 6>&1
  14938. ## ----------------------------------- ##
  14939. ## Main body of $CONFIG_STATUS script. ##
  14940. ## ----------------------------------- ##
  14941. _ASEOF
  14942. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14943.  
  14944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14945. # Save the log message, to keep $0 and so on meaningful, and to
  14946. # report actual input values of CONFIG_FILES etc. instead of their
  14947. # values after options handling.
  14948. ac_log="
  14949. This file was extended by intel_driver $as_me 1.6.2, which was
  14950. generated by GNU Autoconf 2.69.  Invocation command line was
  14951.  
  14952.   CONFIG_FILES    = $CONFIG_FILES
  14953.   CONFIG_HEADERS  = $CONFIG_HEADERS
  14954.   CONFIG_LINKS    = $CONFIG_LINKS
  14955.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  14956.   $ $0 $@
  14957.  
  14958. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14959. "
  14960.  
  14961. _ACEOF
  14962.  
  14963. case $ac_config_files in *"
  14964. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14965. esac
  14966.  
  14967. case $ac_config_headers in *"
  14968. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14969. esac
  14970.  
  14971.  
  14972. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14973. # Files that config.status was made for.
  14974. config_files="$ac_config_files"
  14975. config_headers="$ac_config_headers"
  14976. config_commands="$ac_config_commands"
  14977.  
  14978. _ACEOF
  14979.  
  14980. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14981. ac_cs_usage="\
  14982. \`$as_me' instantiates files and other configuration actions
  14983. from templates according to the current configuration.  Unless the files
  14984. and actions are specified as TAGs, all are instantiated by default.
  14985.  
  14986. Usage: $0 [OPTION]... [TAG]...
  14987.  
  14988.   -h, --help       print this help, then exit
  14989.   -V, --version    print version number and configuration settings, then exit
  14990.       --config     print configuration, then exit
  14991.   -q, --quiet, --silent
  14992.                    do not print progress messages
  14993.   -d, --debug      don't remove temporary files
  14994.       --recheck    update $as_me by reconfiguring in the same conditions
  14995.       --file=FILE[:TEMPLATE]
  14996.                    instantiate the configuration file FILE
  14997.       --header=FILE[:TEMPLATE]
  14998.                    instantiate the configuration header FILE
  14999.  
  15000. Configuration files:
  15001. $config_files
  15002.  
  15003. Configuration headers:
  15004. $config_headers
  15005.  
  15006. Configuration commands:
  15007. $config_commands
  15008.  
  15009. Report bugs to <haihao.xiang@intel.com>."
  15010.  
  15011. _ACEOF
  15012. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15013. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15014. ac_cs_version="\\
  15015. intel_driver config.status 1.6.2
  15016. configured by $0, generated by GNU Autoconf 2.69,
  15017.   with options \\"\$ac_cs_config\\"
  15018.  
  15019. Copyright (C) 2012 Free Software Foundation, Inc.
  15020. This config.status script is free software; the Free Software Foundation
  15021. gives unlimited permission to copy, distribute and modify it."
  15022.  
  15023. ac_pwd='$ac_pwd'
  15024. srcdir='$srcdir'
  15025. INSTALL='$INSTALL'
  15026. MKDIR_P='$MKDIR_P'
  15027. AWK='$AWK'
  15028. test -n "\$AWK" || AWK=awk
  15029. _ACEOF
  15030.  
  15031. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15032. # The default lists apply if the user does not specify any file.
  15033. ac_need_defaults=:
  15034. while test $# != 0
  15035. do
  15036.   case $1 in
  15037.   --*=?*)
  15038.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15039.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15040.     ac_shift=:
  15041.     ;;
  15042.   --*=)
  15043.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15044.     ac_optarg=
  15045.     ac_shift=:
  15046.     ;;
  15047.   *)
  15048.     ac_option=$1
  15049.     ac_optarg=$2
  15050.     ac_shift=shift
  15051.     ;;
  15052.   esac
  15053.  
  15054.   case $ac_option in
  15055.   # Handling of the options.
  15056.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15057.     ac_cs_recheck=: ;;
  15058.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15059.     $as_echo "$ac_cs_version"; exit ;;
  15060.   --config | --confi | --conf | --con | --co | --c )
  15061.     $as_echo "$ac_cs_config"; exit ;;
  15062.   --debug | --debu | --deb | --de | --d | -d )
  15063.     debug=: ;;
  15064.   --file | --fil | --fi | --f )
  15065.     $ac_shift
  15066.     case $ac_optarg in
  15067.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15068.     '') as_fn_error $? "missing file argument" ;;
  15069.     esac
  15070.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  15071.     ac_need_defaults=false;;
  15072.   --header | --heade | --head | --hea )
  15073.     $ac_shift
  15074.     case $ac_optarg in
  15075.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15076.     esac
  15077.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15078.     ac_need_defaults=false;;
  15079.   --he | --h)
  15080.     # Conflict between --help and --header
  15081.     as_fn_error $? "ambiguous option: \`$1'
  15082. Try \`$0 --help' for more information.";;
  15083.   --help | --hel | -h )
  15084.     $as_echo "$ac_cs_usage"; exit ;;
  15085.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15086.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15087.     ac_cs_silent=: ;;
  15088.  
  15089.   # This is an error.
  15090.   -*) as_fn_error $? "unrecognized option: \`$1'
  15091. Try \`$0 --help' for more information." ;;
  15092.  
  15093.   *) as_fn_append ac_config_targets " $1"
  15094.      ac_need_defaults=false ;;
  15095.  
  15096.   esac
  15097.   shift
  15098. done
  15099.  
  15100. ac_configure_extra_args=
  15101.  
  15102. if $ac_cs_silent; then
  15103.   exec 6>/dev/null
  15104.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  15105. fi
  15106.  
  15107. _ACEOF
  15108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15109. if \$ac_cs_recheck; then
  15110.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15111.   shift
  15112.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15113.   CONFIG_SHELL='$SHELL'
  15114.   export CONFIG_SHELL
  15115.   exec "\$@"
  15116. fi
  15117.  
  15118. _ACEOF
  15119. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15120. exec 5>>config.log
  15121. {
  15122.   echo
  15123.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15124. ## Running $as_me. ##
  15125. _ASBOX
  15126.   $as_echo "$ac_log"
  15127. } >&5
  15128.  
  15129. _ACEOF
  15130. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15131. #
  15132. # INIT-COMMANDS
  15133. #
  15134. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15135.  
  15136.  
  15137. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15138. # if CDPATH is set.
  15139. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15140.  
  15141. sed_quote_subst='$sed_quote_subst'
  15142. double_quote_subst='$double_quote_subst'
  15143. delay_variable_subst='$delay_variable_subst'
  15144. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15145. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15146. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15147. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15148. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15149. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15150. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15151. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15152. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15153. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15154. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15155. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15156. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15157. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15158. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15159. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15160. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15161. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15162. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15163. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15164. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15165. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15166. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15167. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15168. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15169. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15170. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15171. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15172. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15173. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15174. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15175. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15176. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15177. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15178. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15179. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15180. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15181. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15182. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15183. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15184. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15185. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15186. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15187. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15188. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15189. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15190. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15191. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15192. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15193. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15194. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15195. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15196. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15197. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15198. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15199. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15200. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15201. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15202. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15203. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15204. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15205. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15206. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15207. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15208. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15209. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15210. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15211. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15212. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15213. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15214. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15215. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15216. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15217. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15218. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15219. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15220. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15221. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15222. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15223. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15224. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15225. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15226. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15227. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15228. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15229. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15230. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15231. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15232. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15233. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15234. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15235. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15236. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15237. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15238. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15239. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15240. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15241. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15242. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15243. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15244. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15245. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15246. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15247. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15248. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15249. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15250. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15251. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15252. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15253. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15254. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15255. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15256. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15257. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15258. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15259. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15260. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15261. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15262. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15263. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15264. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15265. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15266. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15267. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15268. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15269. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15270. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15271. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15272. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15273. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15274.  
  15275. LTCC='$LTCC'
  15276. LTCFLAGS='$LTCFLAGS'
  15277. compiler='$compiler_DEFAULT'
  15278.  
  15279. # A function that is used when there is no print builtin or printf.
  15280. func_fallback_echo ()
  15281. {
  15282.   eval 'cat <<_LTECHO_EOF
  15283. \$1
  15284. _LTECHO_EOF'
  15285. }
  15286.  
  15287. # Quote evaled strings.
  15288. for var in SHELL \
  15289. ECHO \
  15290. PATH_SEPARATOR \
  15291. SED \
  15292. GREP \
  15293. EGREP \
  15294. FGREP \
  15295. LD \
  15296. NM \
  15297. LN_S \
  15298. lt_SP2NL \
  15299. lt_NL2SP \
  15300. reload_flag \
  15301. OBJDUMP \
  15302. deplibs_check_method \
  15303. file_magic_cmd \
  15304. file_magic_glob \
  15305. want_nocaseglob \
  15306. DLLTOOL \
  15307. sharedlib_from_linklib_cmd \
  15308. AR \
  15309. AR_FLAGS \
  15310. archiver_list_spec \
  15311. STRIP \
  15312. RANLIB \
  15313. CC \
  15314. CFLAGS \
  15315. compiler \
  15316. lt_cv_sys_global_symbol_pipe \
  15317. lt_cv_sys_global_symbol_to_cdecl \
  15318. lt_cv_sys_global_symbol_to_c_name_address \
  15319. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15320. nm_file_list_spec \
  15321. lt_prog_compiler_no_builtin_flag \
  15322. lt_prog_compiler_pic \
  15323. lt_prog_compiler_wl \
  15324. lt_prog_compiler_static \
  15325. lt_cv_prog_compiler_c_o \
  15326. need_locks \
  15327. MANIFEST_TOOL \
  15328. DSYMUTIL \
  15329. NMEDIT \
  15330. LIPO \
  15331. OTOOL \
  15332. OTOOL64 \
  15333. shrext_cmds \
  15334. export_dynamic_flag_spec \
  15335. whole_archive_flag_spec \
  15336. compiler_needs_object \
  15337. with_gnu_ld \
  15338. allow_undefined_flag \
  15339. no_undefined_flag \
  15340. hardcode_libdir_flag_spec \
  15341. hardcode_libdir_separator \
  15342. exclude_expsyms \
  15343. include_expsyms \
  15344. file_list_spec \
  15345. variables_saved_for_relink \
  15346. libname_spec \
  15347. library_names_spec \
  15348. soname_spec \
  15349. install_override_mode \
  15350. finish_eval \
  15351. old_striplib \
  15352. striplib; do
  15353.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15354.     *[\\\\\\\`\\"\\\$]*)
  15355.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15356.       ;;
  15357.     *)
  15358.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15359.       ;;
  15360.     esac
  15361. done
  15362.  
  15363. # Double-quote double-evaled strings.
  15364. for var in reload_cmds \
  15365. old_postinstall_cmds \
  15366. old_postuninstall_cmds \
  15367. old_archive_cmds \
  15368. extract_expsyms_cmds \
  15369. old_archive_from_new_cmds \
  15370. old_archive_from_expsyms_cmds \
  15371. archive_cmds \
  15372. archive_expsym_cmds \
  15373. module_cmds \
  15374. module_expsym_cmds \
  15375. export_symbols_cmds \
  15376. prelink_cmds \
  15377. postlink_cmds \
  15378. postinstall_cmds \
  15379. postuninstall_cmds \
  15380. finish_cmds \
  15381. sys_lib_search_path_spec \
  15382. sys_lib_dlsearch_path_spec; do
  15383.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15384.     *[\\\\\\\`\\"\\\$]*)
  15385.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15386.       ;;
  15387.     *)
  15388.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15389.       ;;
  15390.     esac
  15391. done
  15392.  
  15393. ac_aux_dir='$ac_aux_dir'
  15394. xsi_shell='$xsi_shell'
  15395. lt_shell_append='$lt_shell_append'
  15396.  
  15397. # See if we are running on zsh, and set the options which allow our
  15398. # commands through without removal of \ escapes INIT.
  15399. if test -n "\${ZSH_VERSION+set}" ; then
  15400.    setopt NO_GLOB_SUBST
  15401. fi
  15402.  
  15403.  
  15404.     PACKAGE='$PACKAGE'
  15405.     VERSION='$VERSION'
  15406.     TIMESTAMP='$TIMESTAMP'
  15407.     RM='$RM'
  15408.     ofile='$ofile'
  15409.  
  15410.  
  15411.  
  15412.  
  15413. _ACEOF
  15414.  
  15415. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15416.  
  15417. # Handling of arguments.
  15418. for ac_config_target in $ac_config_targets
  15419. do
  15420.   case $ac_config_target in
  15421.     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  15422.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15423.     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15424.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15425.     "debian.upstream/Makefile") CONFIG_FILES="$CONFIG_FILES debian.upstream/Makefile" ;;
  15426.     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15427.     "src/shaders/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/Makefile" ;;
  15428.     "src/shaders/h264/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/h264/Makefile" ;;
  15429.     "src/shaders/h264/ildb/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/h264/ildb/Makefile" ;;
  15430.     "src/shaders/h264/mc/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/h264/mc/Makefile" ;;
  15431.     "src/shaders/mpeg2/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/mpeg2/Makefile" ;;
  15432.     "src/shaders/mpeg2/vld/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/mpeg2/vld/Makefile" ;;
  15433.     "src/shaders/post_processing/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/Makefile" ;;
  15434.     "src/shaders/post_processing/gen5_6/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/gen5_6/Makefile" ;;
  15435.     "src/shaders/post_processing/gen7/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/gen7/Makefile" ;;
  15436.     "src/shaders/post_processing/gen75/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/gen75/Makefile" ;;
  15437.     "src/shaders/post_processing/gen8/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/gen8/Makefile" ;;
  15438.     "src/shaders/post_processing/gen9/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/gen9/Makefile" ;;
  15439.     "src/shaders/render/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/render/Makefile" ;;
  15440.     "src/shaders/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/utils/Makefile" ;;
  15441.     "src/shaders/vme/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/vme/Makefile" ;;
  15442.     "src/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES src/wayland/Makefile" ;;
  15443.  
  15444.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15445.   esac
  15446. done
  15447.  
  15448.  
  15449. # If the user did not use the arguments to specify the items to instantiate,
  15450. # then the envvar interface is used.  Set only those that are not.
  15451. # We use the long form for the default assignment because of an extremely
  15452. # bizarre bug on SunOS 4.1.3.
  15453. if $ac_need_defaults; then
  15454.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15455.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15456.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15457. fi
  15458.  
  15459. # Have a temporary directory for convenience.  Make it in the build tree
  15460. # simply because there is no reason against having it here, and in addition,
  15461. # creating and moving files from /tmp can sometimes cause problems.
  15462. # Hook for its removal unless debugging.
  15463. # Note that there is a small window in which the directory will not be cleaned:
  15464. # after its creation but before its name has been assigned to `$tmp'.
  15465. $debug ||
  15466. {
  15467.   tmp= ac_tmp=
  15468.   trap 'exit_status=$?
  15469.   : "${ac_tmp:=$tmp}"
  15470.   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15471. ' 0
  15472.   trap 'as_fn_exit 1' 1 2 13 15
  15473. }
  15474. # Create a (secure) tmp directory for tmp files.
  15475.  
  15476. {
  15477.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15478.   test -d "$tmp"
  15479. }  ||
  15480. {
  15481.   tmp=./conf$$-$RANDOM
  15482.   (umask 077 && mkdir "$tmp")
  15483. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15484. ac_tmp=$tmp
  15485.  
  15486. # Set up the scripts for CONFIG_FILES section.
  15487. # No need to generate them if there are no CONFIG_FILES.
  15488. # This happens for instance with `./config.status config.h'.
  15489. if test -n "$CONFIG_FILES"; then
  15490.  
  15491. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  15492.   ac_cs_awk_getline=:
  15493.   ac_cs_awk_pipe_init=
  15494.   ac_cs_awk_read_file='
  15495.       while ((getline aline < (F[key])) > 0)
  15496.         print(aline)
  15497.       close(F[key])'
  15498.   ac_cs_awk_pipe_fini=
  15499. else
  15500.   ac_cs_awk_getline=false
  15501.   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  15502.   ac_cs_awk_read_file='
  15503.       print "|#_!!_#|"
  15504.       print "cat " F[key] " &&"
  15505.       '$ac_cs_awk_pipe_init
  15506.   # The final `:' finishes the AND list.
  15507.   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  15508. fi
  15509. ac_cr=`echo X | tr X '\015'`
  15510. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15511. # But we know of no other shell where ac_cr would be empty at this
  15512. # point, so we can use a bashism as a fallback.
  15513. if test "x$ac_cr" = x; then
  15514.   eval ac_cr=\$\'\\r\'
  15515. fi
  15516. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15517. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15518.   ac_cs_awk_cr='\\r'
  15519. else
  15520.   ac_cs_awk_cr=$ac_cr
  15521. fi
  15522.  
  15523. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15524. _ACEOF
  15525.  
  15526. # Create commands to substitute file output variables.
  15527. {
  15528.   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  15529.   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  15530.   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  15531.   echo "_ACAWK" &&
  15532.   echo "_ACEOF"
  15533. } >conf$$files.sh &&
  15534. . ./conf$$files.sh ||
  15535.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15536. rm -f conf$$files.sh
  15537.  
  15538. {
  15539.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  15540.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15541.   echo "_ACEOF"
  15542. } >conf$$subs.sh ||
  15543.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15544. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15545. ac_delim='%!_!# '
  15546. for ac_last_try in false false false false false :; do
  15547.   . ./conf$$subs.sh ||
  15548.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15549.  
  15550.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15551.   if test $ac_delim_n = $ac_delim_num; then
  15552.     break
  15553.   elif $ac_last_try; then
  15554.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15555.   else
  15556.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15557.   fi
  15558. done
  15559. rm -f conf$$subs.sh
  15560.  
  15561. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15562. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15563. _ACEOF
  15564. sed -n '
  15565. h
  15566. s/^/S["/; s/!.*/"]=/
  15567. p
  15568. g
  15569. s/^[^!]*!//
  15570. :repl
  15571. t repl
  15572. s/'"$ac_delim"'$//
  15573. t delim
  15574. :nl
  15575. h
  15576. s/\(.\{148\}\)..*/\1/
  15577. t more1
  15578. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15579. p
  15580. n
  15581. b repl
  15582. :more1
  15583. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15584. p
  15585. g
  15586. s/.\{148\}//
  15587. t nl
  15588. :delim
  15589. h
  15590. s/\(.\{148\}\)..*/\1/
  15591. t more2
  15592. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15593. p
  15594. b
  15595. :more2
  15596. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15597. p
  15598. g
  15599. s/.\{148\}//
  15600. t delim
  15601. ' <conf$$subs.awk | sed '
  15602. /^[^""]/{
  15603.   N
  15604.   s/\n//
  15605. }
  15606. ' >>$CONFIG_STATUS || ac_write_fail=1
  15607. rm -f conf$$subs.awk
  15608. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15609. _ACAWK
  15610. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15611.   for (key in S) S_is_set[key] = 1
  15612.   FS = ""
  15613.   \$ac_cs_awk_pipe_init
  15614. }
  15615. {
  15616.   line = $ 0
  15617.   nfields = split(line, field, "@")
  15618.   substed = 0
  15619.   len = length(field[1])
  15620.   for (i = 2; i < nfields; i++) {
  15621.     key = field[i]
  15622.     keylen = length(key)
  15623.     if (S_is_set[key]) {
  15624.       value = S[key]
  15625.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15626.       len += length(value) + length(field[++i])
  15627.       substed = 1
  15628.     } else
  15629.       len += 1 + keylen
  15630.   }
  15631.   if (nfields == 3 && !substed) {
  15632.     key = field[2]
  15633.     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
  15634.       \$ac_cs_awk_read_file
  15635.       next
  15636.     }
  15637.   }
  15638.   print line
  15639. }
  15640. \$ac_cs_awk_pipe_fini
  15641. _ACAWK
  15642. _ACEOF
  15643. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15644. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15645.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15646. else
  15647.   cat
  15648. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15649.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15650. _ACEOF
  15651.  
  15652. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15653. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15654. # trailing colons and then remove the whole line if VPATH becomes empty
  15655. # (actually we leave an empty line to preserve line numbers).
  15656. if test "x$srcdir" = x.; then
  15657.   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
  15658. h
  15659. s///
  15660. s/^/:/
  15661. s/[      ]*$/:/
  15662. s/:\$(srcdir):/:/g
  15663. s/:\${srcdir}:/:/g
  15664. s/:@srcdir@:/:/g
  15665. s/^:*//
  15666. s/:*$//
  15667. x
  15668. s/\(=[   ]*\).*/\1/
  15669. G
  15670. s/\n//
  15671. s/^[^=]*=[       ]*$//
  15672. }'
  15673. fi
  15674.  
  15675. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15676. fi # test -n "$CONFIG_FILES"
  15677.  
  15678. # Set up the scripts for CONFIG_HEADERS section.
  15679. # No need to generate them if there are no CONFIG_HEADERS.
  15680. # This happens for instance with `./config.status Makefile'.
  15681. if test -n "$CONFIG_HEADERS"; then
  15682. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15683. BEGIN {
  15684. _ACEOF
  15685.  
  15686. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15687. # here-document in config.status, that substitutes the proper values into
  15688. # config.h.in to produce config.h.
  15689.  
  15690. # Create a delimiter string that does not exist in confdefs.h, to ease
  15691. # handling of long lines.
  15692. ac_delim='%!_!# '
  15693. for ac_last_try in false false :; do
  15694.   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15695.   if test -z "$ac_tt"; then
  15696.     break
  15697.   elif $ac_last_try; then
  15698.     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15699.   else
  15700.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15701.   fi
  15702. done
  15703.  
  15704. # For the awk script, D is an array of macro values keyed by name,
  15705. # likewise P contains macro parameters if any.  Preserve backslash
  15706. # newline sequences.
  15707.  
  15708. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15709. sed -n '
  15710. s/.\{148\}/&'"$ac_delim"'/g
  15711. t rset
  15712. :rset
  15713. s/^[     ]*#[    ]*define[       ][      ]*/ /
  15714. t def
  15715. d
  15716. :def
  15717. s/\\$//
  15718. t bsnl
  15719. s/["\\]/\\&/g
  15720. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  15721. D["\1"]=" \3"/p
  15722. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
  15723. d
  15724. :bsnl
  15725. s/["\\]/\\&/g
  15726. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  15727. D["\1"]=" \3\\\\\\n"\\/p
  15728. t cont
  15729. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15730. t cont
  15731. d
  15732. :cont
  15733. n
  15734. s/.\{148\}/&'"$ac_delim"'/g
  15735. t clear
  15736. :clear
  15737. s/\\$//
  15738. t bsnlc
  15739. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15740. d
  15741. :bsnlc
  15742. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15743. b cont
  15744. ' <confdefs.h | sed '
  15745. s/'"$ac_delim"'/"\\\
  15746. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15747.  
  15748. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15749.   for (key in D) D_is_set[key] = 1
  15750.   FS = ""
  15751. }
  15752. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15753.   line = \$ 0
  15754.   split(line, arg, " ")
  15755.   if (arg[1] == "#") {
  15756.     defundef = arg[2]
  15757.     mac1 = arg[3]
  15758.   } else {
  15759.     defundef = substr(arg[1], 2)
  15760.     mac1 = arg[2]
  15761.   }
  15762.   split(mac1, mac2, "(") #)
  15763.   macro = mac2[1]
  15764.   prefix = substr(line, 1, index(line, defundef) - 1)
  15765.   if (D_is_set[macro]) {
  15766.     # Preserve the white space surrounding the "#".
  15767.     print prefix "define", macro P[macro] D[macro]
  15768.     next
  15769.   } else {
  15770.     # Replace #undef with comments.  This is necessary, for example,
  15771.     # in the case of _POSIX_SOURCE, which is predefined and required
  15772.     # on some systems where configure will not decide to define it.
  15773.     if (defundef == "undef") {
  15774.       print "/*", prefix defundef, macro, "*/"
  15775.       next
  15776.     }
  15777.   }
  15778. }
  15779. { print }
  15780. _ACAWK
  15781. _ACEOF
  15782. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15783.   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15784. fi # test -n "$CONFIG_HEADERS"
  15785.  
  15786.  
  15787. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  15788. shift
  15789. for ac_tag
  15790. do
  15791.   case $ac_tag in
  15792.   :[FHLC]) ac_mode=$ac_tag; continue;;
  15793.   esac
  15794.   case $ac_mode$ac_tag in
  15795.   :[FHL]*:*);;
  15796.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15797.   :[FH]-) ac_tag=-:-;;
  15798.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15799.   esac
  15800.   ac_save_IFS=$IFS
  15801.   IFS=:
  15802.   set x $ac_tag
  15803.   IFS=$ac_save_IFS
  15804.   shift
  15805.   ac_file=$1
  15806.   shift
  15807.  
  15808.   case $ac_mode in
  15809.   :L) ac_source=$1;;
  15810.   :[FH])
  15811.     ac_file_inputs=
  15812.     for ac_f
  15813.     do
  15814.       case $ac_f in
  15815.       -) ac_f="$ac_tmp/stdin";;
  15816.       *) # Look for the file first in the build tree, then in the source tree
  15817.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  15818.          # because $ac_f cannot contain `:'.
  15819.          test -f "$ac_f" ||
  15820.            case $ac_f in
  15821.            [\\/$]*) false;;
  15822.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15823.            esac ||
  15824.            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15825.       esac
  15826.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15827.       as_fn_append ac_file_inputs " '$ac_f'"
  15828.     done
  15829.  
  15830.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  15831.     # use $as_me), people would be surprised to read:
  15832.     #    /* config.h.  Generated by config.status.  */
  15833.     configure_input='Generated from '`
  15834.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15835.         `' by configure.'
  15836.     if test x"$ac_file" != x-; then
  15837.       configure_input="$ac_file.  $configure_input"
  15838.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15839. $as_echo "$as_me: creating $ac_file" >&6;}
  15840.     fi
  15841.     # Neutralize special characters interpreted by sed in replacement strings.
  15842.     case $configure_input in #(
  15843.     *\&* | *\|* | *\\* )
  15844.        ac_sed_conf_input=`$as_echo "$configure_input" |
  15845.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15846.     *) ac_sed_conf_input=$configure_input;;
  15847.     esac
  15848.  
  15849.     case $ac_tag in
  15850.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15851.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15852.     esac
  15853.     ;;
  15854.   esac
  15855.  
  15856.   ac_dir=`$as_dirname -- "$ac_file" ||
  15857. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15858.          X"$ac_file" : 'X\(//\)[^/]' \| \
  15859.          X"$ac_file" : 'X\(//\)$' \| \
  15860.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15861. $as_echo X"$ac_file" |
  15862.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15863.             s//\1/
  15864.             q
  15865.           }
  15866.           /^X\(\/\/\)[^/].*/{
  15867.             s//\1/
  15868.             q
  15869.           }
  15870.           /^X\(\/\/\)$/{
  15871.             s//\1/
  15872.             q
  15873.           }
  15874.           /^X\(\/\).*/{
  15875.             s//\1/
  15876.             q
  15877.           }
  15878.           s/.*/./; q'`
  15879.   as_dir="$ac_dir"; as_fn_mkdir_p
  15880.   ac_builddir=.
  15881.  
  15882. case "$ac_dir" in
  15883. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15884. *)
  15885.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15886.   # A ".." for each directory in $ac_dir_suffix.
  15887.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15888.   case $ac_top_builddir_sub in
  15889.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15890.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15891.   esac ;;
  15892. esac
  15893. ac_abs_top_builddir=$ac_pwd
  15894. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15895. # for backward compatibility:
  15896. ac_top_builddir=$ac_top_build_prefix
  15897.  
  15898. case $srcdir in
  15899.   .)  # We are building in place.
  15900.     ac_srcdir=.
  15901.     ac_top_srcdir=$ac_top_builddir_sub
  15902.     ac_abs_top_srcdir=$ac_pwd ;;
  15903.   [\\/]* | ?:[\\/]* )  # Absolute name.
  15904.     ac_srcdir=$srcdir$ac_dir_suffix;
  15905.     ac_top_srcdir=$srcdir
  15906.     ac_abs_top_srcdir=$srcdir ;;
  15907.   *) # Relative name.
  15908.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15909.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  15910.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15911. esac
  15912. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15913.  
  15914.  
  15915.   case $ac_mode in
  15916.   :F)
  15917.   #
  15918.   # CONFIG_FILE
  15919.   #
  15920.  
  15921.   case $INSTALL in
  15922.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15923.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15924.   esac
  15925.   ac_MKDIR_P=$MKDIR_P
  15926.   case $MKDIR_P in
  15927.   [\\/$]* | ?:[\\/]* ) ;;
  15928.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15929.   esac
  15930. _ACEOF
  15931.  
  15932. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15933. # If the template does not know about datarootdir, expand it.
  15934. # FIXME: This hack should be removed a few years after 2.60.
  15935. ac_datarootdir_hack=; ac_datarootdir_seen=
  15936. ac_sed_dataroot='
  15937. /datarootdir/ {
  15938.   p
  15939.   q
  15940. }
  15941. /@datadir@/p
  15942. /@docdir@/p
  15943. /@infodir@/p
  15944. /@localedir@/p
  15945. /@mandir@/p'
  15946. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15947. *datarootdir*) ac_datarootdir_seen=yes;;
  15948. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15949.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15950. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15951. _ACEOF
  15952. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15953.   ac_datarootdir_hack='
  15954.   s&@datadir@&$datadir&g
  15955.   s&@docdir@&$docdir&g
  15956.   s&@infodir@&$infodir&g
  15957.   s&@localedir@&$localedir&g
  15958.   s&@mandir@&$mandir&g
  15959.   s&\\\${datarootdir}&$datarootdir&g' ;;
  15960. esac
  15961. _ACEOF
  15962.  
  15963. # Neutralize VPATH when `$srcdir' = `.'.
  15964. # Shell code in configure.ac might set extrasub.
  15965. # FIXME: do we really want to maintain this feature?
  15966. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15967. ac_sed_extra="$ac_vpsub
  15968. $extrasub
  15969. _ACEOF
  15970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15971. :t
  15972. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15973. s|@configure_input@|$ac_sed_conf_input|;t t
  15974. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15975. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15976. s&@srcdir@&$ac_srcdir&;t t
  15977. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15978. s&@top_srcdir@&$ac_top_srcdir&;t t
  15979. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15980. s&@builddir@&$ac_builddir&;t t
  15981. s&@abs_builddir@&$ac_abs_builddir&;t t
  15982. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15983. s&@INSTALL@&$ac_INSTALL&;t t
  15984. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15985. $ac_datarootdir_hack
  15986. "
  15987. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  15988. if $ac_cs_awk_getline; then
  15989.   $AWK -f "$ac_tmp/subs.awk"
  15990. else
  15991.   $AWK -f "$ac_tmp/subs.awk" | $SHELL
  15992. fi \
  15993.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15994.  
  15995. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15996.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15997.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  15998.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15999.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16000. which seems to be undefined.  Please make sure it is defined" >&5
  16001. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16002. which seems to be undefined.  Please make sure it is defined" >&2;}
  16003.  
  16004.   rm -f "$ac_tmp/stdin"
  16005.   case $ac_file in
  16006.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16007.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16008.   esac \
  16009.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16010.  ;;
  16011.   :H)
  16012.   #
  16013.   # CONFIG_HEADER
  16014.   #
  16015.   if test x"$ac_file" != x-; then
  16016.     {
  16017.       $as_echo "/* $configure_input  */" \
  16018.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16019.     } >"$ac_tmp/config.h" \
  16020.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16021.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16022.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16023. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16024.     else
  16025.       rm -f "$ac_file"
  16026.       mv "$ac_tmp/config.h" "$ac_file" \
  16027.         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16028.     fi
  16029.   else
  16030.     $as_echo "/* $configure_input  */" \
  16031.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16032.       || as_fn_error $? "could not create -" "$LINENO" 5
  16033.   fi
  16034. # Compute "$ac_file"'s index in $config_headers.
  16035. _am_arg="$ac_file"
  16036. _am_stamp_count=1
  16037. for _am_header in $config_headers :; do
  16038.   case $_am_header in
  16039.     $_am_arg | $_am_arg:* )
  16040.       break ;;
  16041.     * )
  16042.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16043.   esac
  16044. done
  16045. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16046. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16047.          X"$_am_arg" : 'X\(//\)[^/]' \| \
  16048.          X"$_am_arg" : 'X\(//\)$' \| \
  16049.          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16050. $as_echo X"$_am_arg" |
  16051.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16052.             s//\1/
  16053.             q
  16054.           }
  16055.           /^X\(\/\/\)[^/].*/{
  16056.             s//\1/
  16057.             q
  16058.           }
  16059.           /^X\(\/\/\)$/{
  16060.             s//\1/
  16061.             q
  16062.           }
  16063.           /^X\(\/\).*/{
  16064.             s//\1/
  16065.             q
  16066.           }
  16067.           s/.*/./; q'`/stamp-h$_am_stamp_count
  16068.  ;;
  16069.  
  16070.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16071. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16072.  ;;
  16073.   esac
  16074.  
  16075.  
  16076.   case $ac_file$ac_mode in
  16077.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16078.   # Older Autoconf quotes --file arguments for eval, but not when files
  16079.   # are listed without --file.  Let's play safe and only enable the eval
  16080.   # if we detect the quoting.
  16081.   case $CONFIG_FILES in
  16082.   *\'*) eval set x "$CONFIG_FILES" ;;
  16083.   *)   set x $CONFIG_FILES ;;
  16084.   esac
  16085.   shift
  16086.   for mf
  16087.   do
  16088.     # Strip MF so we end up with the name of the file.
  16089.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  16090.     # Check whether this is an Automake generated Makefile or not.
  16091.     # We used to match only the files named 'Makefile.in', but
  16092.     # some people rename them; so instead we look at the file content.
  16093.     # Grep'ing the first line is not enough: some people post-process
  16094.     # each Makefile.in and add a new line on top of each file to say so.
  16095.     # Grep'ing the whole file is not good either: AIX grep has a line
  16096.     # limit of 2048, but all sed's we know have understand at least 4000.
  16097.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16098.       dirpart=`$as_dirname -- "$mf" ||
  16099. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16100.          X"$mf" : 'X\(//\)[^/]' \| \
  16101.          X"$mf" : 'X\(//\)$' \| \
  16102.          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16103. $as_echo X"$mf" |
  16104.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16105.             s//\1/
  16106.             q
  16107.           }
  16108.           /^X\(\/\/\)[^/].*/{
  16109.             s//\1/
  16110.             q
  16111.           }
  16112.           /^X\(\/\/\)$/{
  16113.             s//\1/
  16114.             q
  16115.           }
  16116.           /^X\(\/\).*/{
  16117.             s//\1/
  16118.             q
  16119.           }
  16120.           s/.*/./; q'`
  16121.     else
  16122.       continue
  16123.     fi
  16124.     # Extract the definition of DEPDIR, am__include, and am__quote
  16125.     # from the Makefile without running 'make'.
  16126.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16127.     test -z "$DEPDIR" && continue
  16128.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16129.     test -z "$am__include" && continue
  16130.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16131.     # Find all dependency output files, they are included files with
  16132.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  16133.     # simplest approach to changing $(DEPDIR) to its actual value in the
  16134.     # expansion.
  16135.     for file in `sed -n "
  16136.       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16137.          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16138.       # Make sure the directory exists.
  16139.       test -f "$dirpart/$file" && continue
  16140.       fdir=`$as_dirname -- "$file" ||
  16141. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16142.          X"$file" : 'X\(//\)[^/]' \| \
  16143.          X"$file" : 'X\(//\)$' \| \
  16144.          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16145. $as_echo X"$file" |
  16146.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16147.             s//\1/
  16148.             q
  16149.           }
  16150.           /^X\(\/\/\)[^/].*/{
  16151.             s//\1/
  16152.             q
  16153.           }
  16154.           /^X\(\/\/\)$/{
  16155.             s//\1/
  16156.             q
  16157.           }
  16158.           /^X\(\/\).*/{
  16159.             s//\1/
  16160.             q
  16161.           }
  16162.           s/.*/./; q'`
  16163.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16164.       # echo "creating $dirpart/$file"
  16165.       echo '# dummy' > "$dirpart/$file"
  16166.     done
  16167.   done
  16168. }
  16169.  ;;
  16170.     "libtool":C)
  16171.  
  16172.     # See if we are running on zsh, and set the options which allow our
  16173.     # commands through without removal of \ escapes.
  16174.     if test -n "${ZSH_VERSION+set}" ; then
  16175.       setopt NO_GLOB_SUBST
  16176.     fi
  16177.  
  16178.     cfgfile="${ofile}T"
  16179.     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16180.     $RM "$cfgfile"
  16181.  
  16182.     cat <<_LT_EOF >> "$cfgfile"
  16183. #! $SHELL
  16184.  
  16185. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16186. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16187. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16188. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16189. #
  16190. #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16191. #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16192. #                 Foundation, Inc.
  16193. #   Written by Gordon Matzigkeit, 1996
  16194. #
  16195. #   This file is part of GNU Libtool.
  16196. #
  16197. # GNU Libtool is free software; you can redistribute it and/or
  16198. # modify it under the terms of the GNU General Public License as
  16199. # published by the Free Software Foundation; either version 2 of
  16200. # the License, or (at your option) any later version.
  16201. #
  16202. # As a special exception to the GNU General Public License,
  16203. # if you distribute this file as part of a program or library that
  16204. # is built using GNU Libtool, you may include this file under the
  16205. # same distribution terms that you use for the rest of that program.
  16206. #
  16207. # GNU Libtool is distributed in the hope that it will be useful,
  16208. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16209. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16210. # GNU General Public License for more details.
  16211. #
  16212. # You should have received a copy of the GNU General Public License
  16213. # along with GNU Libtool; see the file COPYING.  If not, a copy
  16214. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16215. # obtained by writing to the Free Software Foundation, Inc.,
  16216. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16217.  
  16218.  
  16219. # The names of the tagged configurations supported by this script.
  16220. available_tags=""
  16221.  
  16222. # ### BEGIN LIBTOOL CONFIG
  16223.  
  16224. # Whether or not to build static libraries.
  16225. build_old_libs=$enable_static
  16226.  
  16227. # Which release of libtool.m4 was used?
  16228. macro_version=$macro_version
  16229. macro_revision=$macro_revision
  16230.  
  16231. # Whether or not to build shared libraries.
  16232. build_libtool_libs=$enable_shared
  16233.  
  16234. # What type of objects to build.
  16235. pic_mode=$pic_mode
  16236.  
  16237. # Whether or not to optimize for fast installation.
  16238. fast_install=$enable_fast_install
  16239.  
  16240. # Shell to use when invoking shell scripts.
  16241. SHELL=$lt_SHELL
  16242.  
  16243. # An echo program that protects backslashes.
  16244. ECHO=$lt_ECHO
  16245.  
  16246. # The PATH separator for the build system.
  16247. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16248.  
  16249. # The host system.
  16250. host_alias=$host_alias
  16251. host=$host
  16252. host_os=$host_os
  16253.  
  16254. # The build system.
  16255. build_alias=$build_alias
  16256. build=$build
  16257. build_os=$build_os
  16258.  
  16259. # A sed program that does not truncate output.
  16260. SED=$lt_SED
  16261.  
  16262. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16263. Xsed="\$SED -e 1s/^X//"
  16264.  
  16265. # A grep program that handles long lines.
  16266. GREP=$lt_GREP
  16267.  
  16268. # An ERE matcher.
  16269. EGREP=$lt_EGREP
  16270.  
  16271. # A literal string matcher.
  16272. FGREP=$lt_FGREP
  16273.  
  16274. # A BSD- or MS-compatible name lister.
  16275. NM=$lt_NM
  16276.  
  16277. # Whether we need soft or hard links.
  16278. LN_S=$lt_LN_S
  16279.  
  16280. # What is the maximum length of a command?
  16281. max_cmd_len=$max_cmd_len
  16282.  
  16283. # Object file suffix (normally "o").
  16284. objext=$ac_objext
  16285.  
  16286. # Executable file suffix (normally "").
  16287. exeext=$exeext
  16288.  
  16289. # whether the shell understands "unset".
  16290. lt_unset=$lt_unset
  16291.  
  16292. # turn spaces into newlines.
  16293. SP2NL=$lt_lt_SP2NL
  16294.  
  16295. # turn newlines into spaces.
  16296. NL2SP=$lt_lt_NL2SP
  16297.  
  16298. # convert \$build file names to \$host format.
  16299. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16300.  
  16301. # convert \$build files to toolchain format.
  16302. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16303.  
  16304. # An object symbol dumper.
  16305. OBJDUMP=$lt_OBJDUMP
  16306.  
  16307. # Method to check whether dependent libraries are shared objects.
  16308. deplibs_check_method=$lt_deplibs_check_method
  16309.  
  16310. # Command to use when deplibs_check_method = "file_magic".
  16311. file_magic_cmd=$lt_file_magic_cmd
  16312.  
  16313. # How to find potential files when deplibs_check_method = "file_magic".
  16314. file_magic_glob=$lt_file_magic_glob
  16315.  
  16316. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16317. want_nocaseglob=$lt_want_nocaseglob
  16318.  
  16319. # DLL creation program.
  16320. DLLTOOL=$lt_DLLTOOL
  16321.  
  16322. # Command to associate shared and link libraries.
  16323. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16324.  
  16325. # The archiver.
  16326. AR=$lt_AR
  16327.  
  16328. # Flags to create an archive.
  16329. AR_FLAGS=$lt_AR_FLAGS
  16330.  
  16331. # How to feed a file listing to the archiver.
  16332. archiver_list_spec=$lt_archiver_list_spec
  16333.  
  16334. # A symbol stripping program.
  16335. STRIP=$lt_STRIP
  16336.  
  16337. # Commands used to install an old-style archive.
  16338. RANLIB=$lt_RANLIB
  16339. old_postinstall_cmds=$lt_old_postinstall_cmds
  16340. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16341.  
  16342. # Whether to use a lock for old archive extraction.
  16343. lock_old_archive_extraction=$lock_old_archive_extraction
  16344.  
  16345. # A C compiler.
  16346. LTCC=$lt_CC
  16347.  
  16348. # LTCC compiler flags.
  16349. LTCFLAGS=$lt_CFLAGS
  16350.  
  16351. # Take the output of nm and produce a listing of raw symbols and C names.
  16352. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16353.  
  16354. # Transform the output of nm in a proper C declaration.
  16355. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16356.  
  16357. # Transform the output of nm in a C name address pair.
  16358. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16359.  
  16360. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16361. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16362.  
  16363. # Specify filename containing input files for \$NM.
  16364. nm_file_list_spec=$lt_nm_file_list_spec
  16365.  
  16366. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16367. lt_sysroot=$lt_sysroot
  16368.  
  16369. # The name of the directory that contains temporary libtool files.
  16370. objdir=$objdir
  16371.  
  16372. # Used to examine libraries when file_magic_cmd begins with "file".
  16373. MAGIC_CMD=$MAGIC_CMD
  16374.  
  16375. # Must we lock files when doing compilation?
  16376. need_locks=$lt_need_locks
  16377.  
  16378. # Manifest tool.
  16379. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16380.  
  16381. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16382. DSYMUTIL=$lt_DSYMUTIL
  16383.  
  16384. # Tool to change global to local symbols on Mac OS X.
  16385. NMEDIT=$lt_NMEDIT
  16386.  
  16387. # Tool to manipulate fat objects and archives on Mac OS X.
  16388. LIPO=$lt_LIPO
  16389.  
  16390. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16391. OTOOL=$lt_OTOOL
  16392.  
  16393. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16394. OTOOL64=$lt_OTOOL64
  16395.  
  16396. # Old archive suffix (normally "a").
  16397. libext=$libext
  16398.  
  16399. # Shared library suffix (normally ".so").
  16400. shrext_cmds=$lt_shrext_cmds
  16401.  
  16402. # The commands to extract the exported symbol list from a shared archive.
  16403. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16404.  
  16405. # Variables whose values should be saved in libtool wrapper scripts and
  16406. # restored at link time.
  16407. variables_saved_for_relink=$lt_variables_saved_for_relink
  16408.  
  16409. # Do we need the "lib" prefix for modules?
  16410. need_lib_prefix=$need_lib_prefix
  16411.  
  16412. # Do we need a version for libraries?
  16413. need_version=$need_version
  16414.  
  16415. # Library versioning type.
  16416. version_type=$version_type
  16417.  
  16418. # Shared library runtime path variable.
  16419. runpath_var=$runpath_var
  16420.  
  16421. # Shared library path variable.
  16422. shlibpath_var=$shlibpath_var
  16423.  
  16424. # Is shlibpath searched before the hard-coded library search path?
  16425. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16426.  
  16427. # Format of library name prefix.
  16428. libname_spec=$lt_libname_spec
  16429.  
  16430. # List of archive names.  First name is the real one, the rest are links.
  16431. # The last name is the one that the linker finds with -lNAME
  16432. library_names_spec=$lt_library_names_spec
  16433.  
  16434. # The coded name of the library, if different from the real name.
  16435. soname_spec=$lt_soname_spec
  16436.  
  16437. # Permission mode override for installation of shared libraries.
  16438. install_override_mode=$lt_install_override_mode
  16439.  
  16440. # Command to use after installation of a shared archive.
  16441. postinstall_cmds=$lt_postinstall_cmds
  16442.  
  16443. # Command to use after uninstallation of a shared archive.
  16444. postuninstall_cmds=$lt_postuninstall_cmds
  16445.  
  16446. # Commands used to finish a libtool library installation in a directory.
  16447. finish_cmds=$lt_finish_cmds
  16448.  
  16449. # As "finish_cmds", except a single script fragment to be evaled but
  16450. # not shown.
  16451. finish_eval=$lt_finish_eval
  16452.  
  16453. # Whether we should hardcode library paths into libraries.
  16454. hardcode_into_libs=$hardcode_into_libs
  16455.  
  16456. # Compile-time system search path for libraries.
  16457. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16458.  
  16459. # Run-time system search path for libraries.
  16460. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16461.  
  16462. # Whether dlopen is supported.
  16463. dlopen_support=$enable_dlopen
  16464.  
  16465. # Whether dlopen of programs is supported.
  16466. dlopen_self=$enable_dlopen_self
  16467.  
  16468. # Whether dlopen of statically linked programs is supported.
  16469. dlopen_self_static=$enable_dlopen_self_static
  16470.  
  16471. # Commands to strip libraries.
  16472. old_striplib=$lt_old_striplib
  16473. striplib=$lt_striplib
  16474.  
  16475.  
  16476. # The linker used to build libraries.
  16477. LD=$lt_LD
  16478.  
  16479. # How to create reloadable object files.
  16480. reload_flag=$lt_reload_flag
  16481. reload_cmds=$lt_reload_cmds
  16482.  
  16483. # Commands used to build an old-style archive.
  16484. old_archive_cmds=$lt_old_archive_cmds
  16485.  
  16486. # A language specific compiler.
  16487. CC=$lt_compiler
  16488.  
  16489. # Is the compiler the GNU compiler?
  16490. with_gcc=$GCC
  16491.  
  16492. # Compiler flag to turn off builtin functions.
  16493. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16494.  
  16495. # Additional compiler flags for building library objects.
  16496. pic_flag=$lt_lt_prog_compiler_pic
  16497.  
  16498. # How to pass a linker flag through the compiler.
  16499. wl=$lt_lt_prog_compiler_wl
  16500.  
  16501. # Compiler flag to prevent dynamic linking.
  16502. link_static_flag=$lt_lt_prog_compiler_static
  16503.  
  16504. # Does compiler simultaneously support -c and -o options?
  16505. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16506.  
  16507. # Whether or not to add -lc for building shared libraries.
  16508. build_libtool_need_lc=$archive_cmds_need_lc
  16509.  
  16510. # Whether or not to disallow shared libs when runtime libs are static.
  16511. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16512.  
  16513. # Compiler flag to allow reflexive dlopens.
  16514. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16515.  
  16516. # Compiler flag to generate shared objects directly from archives.
  16517. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16518.  
  16519. # Whether the compiler copes with passing no objects directly.
  16520. compiler_needs_object=$lt_compiler_needs_object
  16521.  
  16522. # Create an old-style archive from a shared archive.
  16523. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16524.  
  16525. # Create a temporary old-style archive to link instead of a shared archive.
  16526. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16527.  
  16528. # Commands used to build a shared archive.
  16529. archive_cmds=$lt_archive_cmds
  16530. archive_expsym_cmds=$lt_archive_expsym_cmds
  16531.  
  16532. # Commands used to build a loadable module if different from building
  16533. # a shared archive.
  16534. module_cmds=$lt_module_cmds
  16535. module_expsym_cmds=$lt_module_expsym_cmds
  16536.  
  16537. # Whether we are building with GNU ld or not.
  16538. with_gnu_ld=$lt_with_gnu_ld
  16539.  
  16540. # Flag that allows shared libraries with undefined symbols to be built.
  16541. allow_undefined_flag=$lt_allow_undefined_flag
  16542.  
  16543. # Flag that enforces no undefined symbols.
  16544. no_undefined_flag=$lt_no_undefined_flag
  16545.  
  16546. # Flag to hardcode \$libdir into a binary during linking.
  16547. # This must work even if \$libdir does not exist
  16548. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16549.  
  16550. # Whether we need a single "-rpath" flag with a separated argument.
  16551. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16552.  
  16553. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16554. # DIR into the resulting binary.
  16555. hardcode_direct=$hardcode_direct
  16556.  
  16557. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16558. # DIR into the resulting binary and the resulting library dependency is
  16559. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16560. # library is relocated.
  16561. hardcode_direct_absolute=$hardcode_direct_absolute
  16562.  
  16563. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16564. # into the resulting binary.
  16565. hardcode_minus_L=$hardcode_minus_L
  16566.  
  16567. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16568. # into the resulting binary.
  16569. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16570.  
  16571. # Set to "yes" if building a shared library automatically hardcodes DIR
  16572. # into the library and all subsequent libraries and executables linked
  16573. # against it.
  16574. hardcode_automatic=$hardcode_automatic
  16575.  
  16576. # Set to yes if linker adds runtime paths of dependent libraries
  16577. # to runtime path list.
  16578. inherit_rpath=$inherit_rpath
  16579.  
  16580. # Whether libtool must link a program against all its dependency libraries.
  16581. link_all_deplibs=$link_all_deplibs
  16582.  
  16583. # Set to "yes" if exported symbols are required.
  16584. always_export_symbols=$always_export_symbols
  16585.  
  16586. # The commands to list exported symbols.
  16587. export_symbols_cmds=$lt_export_symbols_cmds
  16588.  
  16589. # Symbols that should not be listed in the preloaded symbols.
  16590. exclude_expsyms=$lt_exclude_expsyms
  16591.  
  16592. # Symbols that must always be exported.
  16593. include_expsyms=$lt_include_expsyms
  16594.  
  16595. # Commands necessary for linking programs (against libraries) with templates.
  16596. prelink_cmds=$lt_prelink_cmds
  16597.  
  16598. # Commands necessary for finishing linking programs.
  16599. postlink_cmds=$lt_postlink_cmds
  16600.  
  16601. # Specify filename containing input files.
  16602. file_list_spec=$lt_file_list_spec
  16603.  
  16604. # How to hardcode a shared library path into an executable.
  16605. hardcode_action=$hardcode_action
  16606.  
  16607. # ### END LIBTOOL CONFIG
  16608.  
  16609. _LT_EOF
  16610.  
  16611.   case $host_os in
  16612.   aix3*)
  16613.     cat <<\_LT_EOF >> "$cfgfile"
  16614. # AIX sometimes has problems with the GCC collect2 program.  For some
  16615. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16616. # vanish in a puff of smoke.
  16617. if test "X${COLLECT_NAMES+set}" != Xset; then
  16618.   COLLECT_NAMES=
  16619.   export COLLECT_NAMES
  16620. fi
  16621. _LT_EOF
  16622.     ;;
  16623.   esac
  16624.  
  16625.  
  16626. ltmain="$ac_aux_dir/ltmain.sh"
  16627.  
  16628.  
  16629.   # We use sed instead of cat because bash on DJGPP gets confused if
  16630.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  16631.   # text mode, it properly converts lines to CR/LF.  This bash problem
  16632.   # is reportedly fixed, but why not run on old versions too?
  16633.   sed '$q' "$ltmain" >> "$cfgfile" \
  16634.      || (rm -f "$cfgfile"; exit 1)
  16635.  
  16636.   if test x"$xsi_shell" = xyes; then
  16637.   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16638. func_dirname ()\
  16639. {\
  16640. \    case ${1} in\
  16641. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  16642. \      *  ) func_dirname_result="${3}" ;;\
  16643. \    esac\
  16644. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16645.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16646.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16647. test 0 -eq $? || _lt_function_replace_fail=:
  16648.  
  16649.  
  16650.   sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16651. func_basename ()\
  16652. {\
  16653. \    func_basename_result="${1##*/}"\
  16654. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16655.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16656.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16657. test 0 -eq $? || _lt_function_replace_fail=:
  16658.  
  16659.  
  16660.   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16661. func_dirname_and_basename ()\
  16662. {\
  16663. \    case ${1} in\
  16664. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  16665. \      *  ) func_dirname_result="${3}" ;;\
  16666. \    esac\
  16667. \    func_basename_result="${1##*/}"\
  16668. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16669.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16670.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16671. test 0 -eq $? || _lt_function_replace_fail=:
  16672.  
  16673.  
  16674.   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16675. func_stripname ()\
  16676. {\
  16677. \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16678. \    # positional parameters, so assign one to ordinary parameter first.\
  16679. \    func_stripname_result=${3}\
  16680. \    func_stripname_result=${func_stripname_result#"${1}"}\
  16681. \    func_stripname_result=${func_stripname_result%"${2}"}\
  16682. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16683.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16684.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16685. test 0 -eq $? || _lt_function_replace_fail=:
  16686.  
  16687.  
  16688.   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16689. func_split_long_opt ()\
  16690. {\
  16691. \    func_split_long_opt_name=${1%%=*}\
  16692. \    func_split_long_opt_arg=${1#*=}\
  16693. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16694.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16695.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16696. test 0 -eq $? || _lt_function_replace_fail=:
  16697.  
  16698.  
  16699.   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16700. func_split_short_opt ()\
  16701. {\
  16702. \    func_split_short_opt_arg=${1#??}\
  16703. \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16704. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16705.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16706.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16707. test 0 -eq $? || _lt_function_replace_fail=:
  16708.  
  16709.  
  16710.   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16711. func_lo2o ()\
  16712. {\
  16713. \    case ${1} in\
  16714. \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16715. \      *)    func_lo2o_result=${1} ;;\
  16716. \    esac\
  16717. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16718.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16719.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16720. test 0 -eq $? || _lt_function_replace_fail=:
  16721.  
  16722.  
  16723.   sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16724. func_xform ()\
  16725. {\
  16726.     func_xform_result=${1%.*}.lo\
  16727. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16728.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16729.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16730. test 0 -eq $? || _lt_function_replace_fail=:
  16731.  
  16732.  
  16733.   sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16734. func_arith ()\
  16735. {\
  16736.     func_arith_result=$(( $* ))\
  16737. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16738.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16739.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16740. test 0 -eq $? || _lt_function_replace_fail=:
  16741.  
  16742.  
  16743.   sed -e '/^func_len ()$/,/^} # func_len /c\
  16744. func_len ()\
  16745. {\
  16746.     func_len_result=${#1}\
  16747. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16748.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16749.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16750. test 0 -eq $? || _lt_function_replace_fail=:
  16751.  
  16752. fi
  16753.  
  16754. if test x"$lt_shell_append" = xyes; then
  16755.   sed -e '/^func_append ()$/,/^} # func_append /c\
  16756. func_append ()\
  16757. {\
  16758.     eval "${1}+=\\${2}"\
  16759. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16760.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16761.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16762. test 0 -eq $? || _lt_function_replace_fail=:
  16763.  
  16764.  
  16765.   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16766. func_append_quoted ()\
  16767. {\
  16768. \    func_quote_for_eval "${2}"\
  16769. \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16770. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16771.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16772.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16773. test 0 -eq $? || _lt_function_replace_fail=:
  16774.  
  16775.  
  16776.   # Save a `func_append' function call where possible by direct use of '+='
  16777.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16778.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  16779.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16780.   test 0 -eq $? || _lt_function_replace_fail=:
  16781. else
  16782.   # Save a `func_append' function call even when '+=' is not available
  16783.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16784.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  16785.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16786.   test 0 -eq $? || _lt_function_replace_fail=:
  16787. fi
  16788.  
  16789. if test x"$_lt_function_replace_fail" = x":"; then
  16790.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16791. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16792. fi
  16793.  
  16794.  
  16795.    mv -f "$cfgfile" "$ofile" ||
  16796.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16797.   chmod +x "$ofile"
  16798.  
  16799.  ;;
  16800.  
  16801.   esac
  16802. done # for ac_tag
  16803.  
  16804.  
  16805. as_fn_exit 0
  16806. _ACEOF
  16807. ac_clean_files=$ac_clean_files_save
  16808.  
  16809. test $ac_write_fail = 0 ||
  16810.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16811.  
  16812.  
  16813. # configure is writing to config.log, and then calls config.status.
  16814. # config.status does its own redirection, appending to config.log.
  16815. # Unfortunately, on DOS this fails, as config.log is still kept open
  16816. # by configure, so config.status won't be able to write to it; its
  16817. # output is simply discarded.  So we exec the FD to /dev/null,
  16818. # effectively closing config.log, so it can be properly (re)opened and
  16819. # appended to by config.status.  When coming back to configure, we
  16820. # need to make the FD available again.
  16821. if test "$no_create" != yes; then
  16822.   ac_cs_success=:
  16823.   ac_config_status_args=
  16824.   test "$silent" = yes &&
  16825.     ac_config_status_args="$ac_config_status_args --quiet"
  16826.   exec 5>/dev/null
  16827.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16828.   exec 5>>config.log
  16829.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16830.   # would make configure fail if this is the last instruction.
  16831.   $ac_cs_success || as_fn_exit 1
  16832. fi
  16833. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16834.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16835. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16836. fi
  16837.  
  16838.  
  16839. BACKENDS=""
  16840. if test "$USE_DRM" = "yes"; then :
  16841.   BACKENDS="$BACKENDS drm"
  16842. fi
  16843. if test "$USE_X11" = "yes"; then :
  16844.   BACKENDS="$BACKENDS x11"
  16845. fi
  16846. if test "$USE_WAYLAND" = "yes"; then :
  16847.   BACKENDS="$BACKENDS wayland"
  16848. fi
  16849.  
  16850. echo
  16851. echo $PACKAGE configuration summary:
  16852. echo
  16853. echo VA-API version ................... : $VA_VERSION_STR
  16854. echo VA-API drivers path .............. : $LIBVA_DRIVERS_PATH
  16855. echo Windowing systems ................ : $BACKENDS
  16856. echo
  16857.