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 libva 1.4.1.
  4. #
  5. # Report bugs to <waldo.bastian@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: waldo.bastian@intel.com about your system, including
  279. $0: any error possibly output before this message. Then
  280. $0: install a modern shell, or manually run the script
  281. $0: under such a 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='libva'
  592. PACKAGE_TARNAME='libva'
  593. PACKAGE_VERSION='1.4.1'
  594. PACKAGE_STRING='libva 1.4.1'
  595. PACKAGE_BUGREPORT='waldo.bastian@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. pkgconfigdir
  640. wayland_protocoldir
  641. wayland_scanner
  642. WAYLAND_SCANNER_LIBS
  643. WAYLAND_SCANNER_CFLAGS
  644. USE_WAYLAND_FALSE
  645. USE_WAYLAND_TRUE
  646. WAYLAND_LIBS
  647. WAYLAND_CFLAGS
  648. WAYLAND_API_VERSION
  649. USE_EGL_FALSE
  650. USE_EGL_TRUE
  651. EGL_LIBS
  652. EGL_CFLAGS
  653. USE_GLX_FALSE
  654. USE_GLX_TRUE
  655. GLX_LIBS
  656. GLX_CFLAGS
  657. USE_X11_FALSE
  658. USE_X11_TRUE
  659. XFIXES_LIBS
  660. XFIXES_CFLAGS
  661. XEXT_LIBS
  662. XEXT_CFLAGS
  663. X11_LIBS
  664. X11_CFLAGS
  665. USE_DRM_FALSE
  666. USE_DRM_TRUE
  667. LIBDRM_VERSION
  668. DRM_LIBS
  669. DRM_CFLAGS
  670. ENABLE_DOCS_FALSE
  671. ENABLE_DOCS_TRUE
  672. DOXYGEN
  673. PKG_CONFIG_LIBDIR
  674. PKG_CONFIG_PATH
  675. PKG_CONFIG
  676. CXXCPP
  677. am__fastdepCXX_FALSE
  678. am__fastdepCXX_TRUE
  679. CXXDEPMODE
  680. ac_ct_CXX
  681. CXXFLAGS
  682. CXX
  683. CPP
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. MANIFEST_TOOL
  690. RANLIB
  691. ac_ct_AR
  692. AR
  693. DLLTOOL
  694. OBJDUMP
  695. LN_S
  696. NM
  697. ac_ct_DUMPBIN
  698. DUMPBIN
  699. LD
  700. FGREP
  701. EGREP
  702. GREP
  703. SED
  704. am__fastdepCC_FALSE
  705. am__fastdepCC_TRUE
  706. CCDEPMODE
  707. am__nodep
  708. AMDEPBACKSLASH
  709. AMDEP_FALSE
  710. AMDEP_TRUE
  711. am__quote
  712. am__include
  713. DEPDIR
  714. OBJEXT
  715. EXEEXT
  716. ac_ct_CC
  717. CPPFLAGS
  718. LDFLAGS
  719. CFLAGS
  720. CC
  721. host_os
  722. host_vendor
  723. host_cpu
  724. host
  725. build_os
  726. build_vendor
  727. build_cpu
  728. build
  729. LIBTOOL
  730. LIBVA_DRIVERS_PATH
  731. BUILD_DUMMY_DRIVER_FALSE
  732. BUILD_DUMMY_DRIVER_TRUE
  733. LIBVA_LT_LDFLAGS
  734. LIBVA_LT_VERSION
  735. LIBVA_VERSION
  736. LIBVA_MICRO_VERSION
  737. LIBVA_MINOR_VERSION
  738. LIBVA_MAJOR_VERSION
  739. VA_API_VERSION
  740. VA_API_MICRO_VERSION
  741. VA_API_MINOR_VERSION
  742. VA_API_MAJOR_VERSION
  743. TODAY
  744. AM_BACKSLASH
  745. AM_DEFAULT_VERBOSITY
  746. AM_DEFAULT_V
  747. AM_V
  748. am__untar
  749. am__tar
  750. AMTAR
  751. am__leading_dot
  752. SET_MAKE
  753. AWK
  754. mkdir_p
  755. MKDIR_P
  756. INSTALL_STRIP_PROGRAM
  757. STRIP
  758. install_sh
  759. MAKEINFO
  760. AUTOHEADER
  761. AUTOMAKE
  762. AUTOCONF
  763. ACLOCAL
  764. VERSION
  765. PACKAGE
  766. CYGPATH_W
  767. am__isrc
  768. INSTALL_DATA
  769. INSTALL_SCRIPT
  770. INSTALL_PROGRAM
  771. target_alias
  772. host_alias
  773. build_alias
  774. LIBS
  775. ECHO_T
  776. ECHO_N
  777. ECHO_C
  778. DEFS
  779. mandir
  780. localedir
  781. libdir
  782. psdir
  783. pdfdir
  784. dvidir
  785. htmldir
  786. infodir
  787. docdir
  788. oldincludedir
  789. includedir
  790. localstatedir
  791. sharedstatedir
  792. sysconfdir
  793. datadir
  794. datarootdir
  795. libexecdir
  796. sbindir
  797. bindir
  798. program_transform_name
  799. prefix
  800. exec_prefix
  801. PACKAGE_URL
  802. PACKAGE_BUGREPORT
  803. PACKAGE_STRING
  804. PACKAGE_VERSION
  805. PACKAGE_TARNAME
  806. PACKAGE_NAME
  807. PATH_SEPARATOR
  808. SHELL'
  809. ac_subst_files='wayland_scanner_rules'
  810. ac_user_opts='
  811. enable_option_checking
  812. enable_silent_rules
  813. enable_docs
  814. enable_drm
  815. enable_x11
  816. enable_glx
  817. enable_egl
  818. enable_wayland
  819. enable_dummy_driver
  820. with_drivers_path
  821. enable_static
  822. enable_shared
  823. with_pic
  824. enable_fast_install
  825. enable_dependency_tracking
  826. with_gnu_ld
  827. with_sysroot
  828. enable_libtool_lock
  829. enable_largefile
  830. '
  831.       ac_precious_vars='build_alias
  832. host_alias
  833. target_alias
  834. CC
  835. CFLAGS
  836. LDFLAGS
  837. LIBS
  838. CPPFLAGS
  839. CPP
  840. CXX
  841. CXXFLAGS
  842. CCC
  843. CXXCPP
  844. PKG_CONFIG
  845. PKG_CONFIG_PATH
  846. PKG_CONFIG_LIBDIR
  847. DRM_CFLAGS
  848. DRM_LIBS
  849. X11_CFLAGS
  850. X11_LIBS
  851. XEXT_CFLAGS
  852. XEXT_LIBS
  853. XFIXES_CFLAGS
  854. XFIXES_LIBS
  855. GLX_CFLAGS
  856. GLX_LIBS
  857. EGL_CFLAGS
  858. EGL_LIBS
  859. WAYLAND_CFLAGS
  860. WAYLAND_LIBS
  861. WAYLAND_SCANNER_CFLAGS
  862. WAYLAND_SCANNER_LIBS'
  863.  
  864.  
  865. # Initialize some variables set by options.
  866. ac_init_help=
  867. ac_init_version=false
  868. ac_unrecognized_opts=
  869. ac_unrecognized_sep=
  870. # The variables have the same names as the options, with
  871. # dashes changed to underlines.
  872. cache_file=/dev/null
  873. exec_prefix=NONE
  874. no_create=
  875. no_recursion=
  876. prefix=NONE
  877. program_prefix=NONE
  878. program_suffix=NONE
  879. program_transform_name=s,x,x,
  880. silent=
  881. site=
  882. srcdir=
  883. verbose=
  884. x_includes=NONE
  885. x_libraries=NONE
  886.  
  887. # Installation directory options.
  888. # These are left unexpanded so users can "make install exec_prefix=/foo"
  889. # and all the variables that are supposed to be based on exec_prefix
  890. # by default will actually change.
  891. # Use braces instead of parens because sh, perl, etc. also accept them.
  892. # (The list follows the same order as the GNU Coding Standards.)
  893. bindir='${exec_prefix}/bin'
  894. sbindir='${exec_prefix}/sbin'
  895. libexecdir='${exec_prefix}/libexec'
  896. datarootdir='${prefix}/share'
  897. datadir='${datarootdir}'
  898. sysconfdir='${prefix}/etc'
  899. sharedstatedir='${prefix}/com'
  900. localstatedir='${prefix}/var'
  901. includedir='${prefix}/include'
  902. oldincludedir='/usr/include'
  903. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  904. infodir='${datarootdir}/info'
  905. htmldir='${docdir}'
  906. dvidir='${docdir}'
  907. pdfdir='${docdir}'
  908. psdir='${docdir}'
  909. libdir='${exec_prefix}/lib'
  910. localedir='${datarootdir}/locale'
  911. mandir='${datarootdir}/man'
  912.  
  913. ac_prev=
  914. ac_dashdash=
  915. for ac_option
  916. do
  917.   # If the previous option needs an argument, assign it.
  918.   if test -n "$ac_prev"; then
  919.     eval $ac_prev=\$ac_option
  920.     ac_prev=
  921.     continue
  922.   fi
  923.  
  924.   case $ac_option in
  925.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  926.   *=)   ac_optarg= ;;
  927.   *)    ac_optarg=yes ;;
  928.   esac
  929.  
  930.   # Accept the important Cygnus configure options, so we can diagnose typos.
  931.  
  932.   case $ac_dashdash$ac_option in
  933.   --)
  934.     ac_dashdash=yes ;;
  935.  
  936.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  937.     ac_prev=bindir ;;
  938.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  939.     bindir=$ac_optarg ;;
  940.  
  941.   -build | --build | --buil | --bui | --bu)
  942.     ac_prev=build_alias ;;
  943.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  944.     build_alias=$ac_optarg ;;
  945.  
  946.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  947.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  948.     ac_prev=cache_file ;;
  949.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  950.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  951.     cache_file=$ac_optarg ;;
  952.  
  953.   --config-cache | -C)
  954.     cache_file=config.cache ;;
  955.  
  956.   -datadir | --datadir | --datadi | --datad)
  957.     ac_prev=datadir ;;
  958.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  959.     datadir=$ac_optarg ;;
  960.  
  961.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  962.   | --dataroo | --dataro | --datar)
  963.     ac_prev=datarootdir ;;
  964.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  965.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  966.     datarootdir=$ac_optarg ;;
  967.  
  968.   -disable-* | --disable-*)
  969.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  970.     # Reject names that are not valid shell variable names.
  971.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  972.       as_fn_error $? "invalid feature name: $ac_useropt"
  973.     ac_useropt_orig=$ac_useropt
  974.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  975.     case $ac_user_opts in
  976.       *"
  977. "enable_$ac_useropt"
  978. "*) ;;
  979.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  980.          ac_unrecognized_sep=', ';;
  981.     esac
  982.     eval enable_$ac_useropt=no ;;
  983.  
  984.   -docdir | --docdir | --docdi | --doc | --do)
  985.     ac_prev=docdir ;;
  986.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  987.     docdir=$ac_optarg ;;
  988.  
  989.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  990.     ac_prev=dvidir ;;
  991.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  992.     dvidir=$ac_optarg ;;
  993.  
  994.   -enable-* | --enable-*)
  995.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  996.     # Reject names that are not valid shell variable names.
  997.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  998.       as_fn_error $? "invalid feature name: $ac_useropt"
  999.     ac_useropt_orig=$ac_useropt
  1000.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1001.     case $ac_user_opts in
  1002.       *"
  1003. "enable_$ac_useropt"
  1004. "*) ;;
  1005.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1006.          ac_unrecognized_sep=', ';;
  1007.     esac
  1008.     eval enable_$ac_useropt=\$ac_optarg ;;
  1009.  
  1010.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1011.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1012.   | --exec | --exe | --ex)
  1013.     ac_prev=exec_prefix ;;
  1014.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1015.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1016.   | --exec=* | --exe=* | --ex=*)
  1017.     exec_prefix=$ac_optarg ;;
  1018.  
  1019.   -gas | --gas | --ga | --g)
  1020.     # Obsolete; use --with-gas.
  1021.     with_gas=yes ;;
  1022.  
  1023.   -help | --help | --hel | --he | -h)
  1024.     ac_init_help=long ;;
  1025.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1026.     ac_init_help=recursive ;;
  1027.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1028.     ac_init_help=short ;;
  1029.  
  1030.   -host | --host | --hos | --ho)
  1031.     ac_prev=host_alias ;;
  1032.   -host=* | --host=* | --hos=* | --ho=*)
  1033.     host_alias=$ac_optarg ;;
  1034.  
  1035.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1036.     ac_prev=htmldir ;;
  1037.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1038.   | --ht=*)
  1039.     htmldir=$ac_optarg ;;
  1040.  
  1041.   -includedir | --includedir | --includedi | --included | --include \
  1042.   | --includ | --inclu | --incl | --inc)
  1043.     ac_prev=includedir ;;
  1044.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1045.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1046.     includedir=$ac_optarg ;;
  1047.  
  1048.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1049.     ac_prev=infodir ;;
  1050.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1051.     infodir=$ac_optarg ;;
  1052.  
  1053.   -libdir | --libdir | --libdi | --libd)
  1054.     ac_prev=libdir ;;
  1055.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1056.     libdir=$ac_optarg ;;
  1057.  
  1058.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1059.   | --libexe | --libex | --libe)
  1060.     ac_prev=libexecdir ;;
  1061.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1062.   | --libexe=* | --libex=* | --libe=*)
  1063.     libexecdir=$ac_optarg ;;
  1064.  
  1065.   -localedir | --localedir | --localedi | --localed | --locale)
  1066.     ac_prev=localedir ;;
  1067.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1068.     localedir=$ac_optarg ;;
  1069.  
  1070.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1071.   | --localstate | --localstat | --localsta | --localst | --locals)
  1072.     ac_prev=localstatedir ;;
  1073.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1074.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1075.     localstatedir=$ac_optarg ;;
  1076.  
  1077.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1078.     ac_prev=mandir ;;
  1079.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1080.     mandir=$ac_optarg ;;
  1081.  
  1082.   -nfp | --nfp | --nf)
  1083.     # Obsolete; use --without-fp.
  1084.     with_fp=no ;;
  1085.  
  1086.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1087.   | --no-cr | --no-c | -n)
  1088.     no_create=yes ;;
  1089.  
  1090.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1091.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1092.     no_recursion=yes ;;
  1093.  
  1094.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1095.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1096.   | --oldin | --oldi | --old | --ol | --o)
  1097.     ac_prev=oldincludedir ;;
  1098.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1099.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1100.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1101.     oldincludedir=$ac_optarg ;;
  1102.  
  1103.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1104.     ac_prev=prefix ;;
  1105.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1106.     prefix=$ac_optarg ;;
  1107.  
  1108.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1109.   | --program-pre | --program-pr | --program-p)
  1110.     ac_prev=program_prefix ;;
  1111.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1112.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1113.     program_prefix=$ac_optarg ;;
  1114.  
  1115.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1116.   | --program-suf | --program-su | --program-s)
  1117.     ac_prev=program_suffix ;;
  1118.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1119.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1120.     program_suffix=$ac_optarg ;;
  1121.  
  1122.   -program-transform-name | --program-transform-name \
  1123.   | --program-transform-nam | --program-transform-na \
  1124.   | --program-transform-n | --program-transform- \
  1125.   | --program-transform | --program-transfor \
  1126.   | --program-transfo | --program-transf \
  1127.   | --program-trans | --program-tran \
  1128.   | --progr-tra | --program-tr | --program-t)
  1129.     ac_prev=program_transform_name ;;
  1130.   -program-transform-name=* | --program-transform-name=* \
  1131.   | --program-transform-nam=* | --program-transform-na=* \
  1132.   | --program-transform-n=* | --program-transform-=* \
  1133.   | --program-transform=* | --program-transfor=* \
  1134.   | --program-transfo=* | --program-transf=* \
  1135.   | --program-trans=* | --program-tran=* \
  1136.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1137.     program_transform_name=$ac_optarg ;;
  1138.  
  1139.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1140.     ac_prev=pdfdir ;;
  1141.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1142.     pdfdir=$ac_optarg ;;
  1143.  
  1144.   -psdir | --psdir | --psdi | --psd | --ps)
  1145.     ac_prev=psdir ;;
  1146.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1147.     psdir=$ac_optarg ;;
  1148.  
  1149.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1150.   | -silent | --silent | --silen | --sile | --sil)
  1151.     silent=yes ;;
  1152.  
  1153.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1154.     ac_prev=sbindir ;;
  1155.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1156.   | --sbi=* | --sb=*)
  1157.     sbindir=$ac_optarg ;;
  1158.  
  1159.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1160.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1161.   | --sharedst | --shareds | --shared | --share | --shar \
  1162.   | --sha | --sh)
  1163.     ac_prev=sharedstatedir ;;
  1164.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1165.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1166.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1167.   | --sha=* | --sh=*)
  1168.     sharedstatedir=$ac_optarg ;;
  1169.  
  1170.   -site | --site | --sit)
  1171.     ac_prev=site ;;
  1172.   -site=* | --site=* | --sit=*)
  1173.     site=$ac_optarg ;;
  1174.  
  1175.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1176.     ac_prev=srcdir ;;
  1177.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1178.     srcdir=$ac_optarg ;;
  1179.  
  1180.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1181.   | --syscon | --sysco | --sysc | --sys | --sy)
  1182.     ac_prev=sysconfdir ;;
  1183.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1184.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1185.     sysconfdir=$ac_optarg ;;
  1186.  
  1187.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1188.     ac_prev=target_alias ;;
  1189.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1190.     target_alias=$ac_optarg ;;
  1191.  
  1192.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1193.     verbose=yes ;;
  1194.  
  1195.   -version | --version | --versio | --versi | --vers | -V)
  1196.     ac_init_version=: ;;
  1197.  
  1198.   -with-* | --with-*)
  1199.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1200.     # Reject names that are not valid shell variable names.
  1201.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1202.       as_fn_error $? "invalid package name: $ac_useropt"
  1203.     ac_useropt_orig=$ac_useropt
  1204.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1205.     case $ac_user_opts in
  1206.       *"
  1207. "with_$ac_useropt"
  1208. "*) ;;
  1209.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1210.          ac_unrecognized_sep=', ';;
  1211.     esac
  1212.     eval with_$ac_useropt=\$ac_optarg ;;
  1213.  
  1214.   -without-* | --without-*)
  1215.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1216.     # Reject names that are not valid shell variable names.
  1217.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1218.       as_fn_error $? "invalid package name: $ac_useropt"
  1219.     ac_useropt_orig=$ac_useropt
  1220.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1221.     case $ac_user_opts in
  1222.       *"
  1223. "with_$ac_useropt"
  1224. "*) ;;
  1225.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1226.          ac_unrecognized_sep=', ';;
  1227.     esac
  1228.     eval with_$ac_useropt=no ;;
  1229.  
  1230.   --x)
  1231.     # Obsolete; use --with-x.
  1232.     with_x=yes ;;
  1233.  
  1234.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1235.   | --x-incl | --x-inc | --x-in | --x-i)
  1236.     ac_prev=x_includes ;;
  1237.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1238.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1239.     x_includes=$ac_optarg ;;
  1240.  
  1241.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1242.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1243.     ac_prev=x_libraries ;;
  1244.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1245.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1246.     x_libraries=$ac_optarg ;;
  1247.  
  1248.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1249. Try \`$0 --help' for more information"
  1250.     ;;
  1251.  
  1252.   *=*)
  1253.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1254.     # Reject names that are not valid shell variable names.
  1255.     case $ac_envvar in #(
  1256.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1257.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1258.     esac
  1259.     eval $ac_envvar=\$ac_optarg
  1260.     export $ac_envvar ;;
  1261.  
  1262.   *)
  1263.     # FIXME: should be removed in autoconf 3.0.
  1264.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1265.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1266.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1267.     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1268.     ;;
  1269.  
  1270.   esac
  1271. done
  1272.  
  1273. if test -n "$ac_prev"; then
  1274.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1275.   as_fn_error $? "missing argument to $ac_option"
  1276. fi
  1277.  
  1278. if test -n "$ac_unrecognized_opts"; then
  1279.   case $enable_option_checking in
  1280.     no) ;;
  1281.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1282.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1283.   esac
  1284. fi
  1285.  
  1286. # Check all directory arguments for consistency.
  1287. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1288.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1289.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1290.                 libdir localedir mandir
  1291. do
  1292.   eval ac_val=\$$ac_var
  1293.   # Remove trailing slashes.
  1294.   case $ac_val in
  1295.     */ )
  1296.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1297.       eval $ac_var=\$ac_val;;
  1298.   esac
  1299.   # Be sure to have absolute directory names.
  1300.   case $ac_val in
  1301.     [\\/$]* | ?:[\\/]* )  continue;;
  1302.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1303.   esac
  1304.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1305. done
  1306.  
  1307. # There might be people who depend on the old broken behavior: `$host'
  1308. # used to hold the argument of --host etc.
  1309. # FIXME: To remove some day.
  1310. build=$build_alias
  1311. host=$host_alias
  1312. target=$target_alias
  1313.  
  1314. # FIXME: To remove some day.
  1315. if test "x$host_alias" != x; then
  1316.   if test "x$build_alias" = x; then
  1317.     cross_compiling=maybe
  1318.   elif test "x$build_alias" != "x$host_alias"; then
  1319.     cross_compiling=yes
  1320.   fi
  1321. fi
  1322.  
  1323. ac_tool_prefix=
  1324. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1325.  
  1326. test "$silent" = yes && exec 6>/dev/null
  1327.  
  1328.  
  1329. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1330. ac_ls_di=`ls -di .` &&
  1331. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1332.   as_fn_error $? "working directory cannot be determined"
  1333. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1334.   as_fn_error $? "pwd does not report name of working directory"
  1335.  
  1336.  
  1337. # Find the source files, if location was not specified.
  1338. if test -z "$srcdir"; then
  1339.   ac_srcdir_defaulted=yes
  1340.   # Try the directory containing this script, then the parent directory.
  1341.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1342. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1343.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1344.          X"$as_myself" : 'X\(//\)$' \| \
  1345.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1346. $as_echo X"$as_myself" |
  1347.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1348.             s//\1/
  1349.             q
  1350.           }
  1351.           /^X\(\/\/\)[^/].*/{
  1352.             s//\1/
  1353.             q
  1354.           }
  1355.           /^X\(\/\/\)$/{
  1356.             s//\1/
  1357.             q
  1358.           }
  1359.           /^X\(\/\).*/{
  1360.             s//\1/
  1361.             q
  1362.           }
  1363.           s/.*/./; q'`
  1364.   srcdir=$ac_confdir
  1365.   if test ! -r "$srcdir/$ac_unique_file"; then
  1366.     srcdir=..
  1367.   fi
  1368. else
  1369.   ac_srcdir_defaulted=no
  1370. fi
  1371. if test ! -r "$srcdir/$ac_unique_file"; then
  1372.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1373.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1374. fi
  1375. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1376. ac_abs_confdir=`(
  1377.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1378.         pwd)`
  1379. # When building in place, set srcdir=.
  1380. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1381.   srcdir=.
  1382. fi
  1383. # Remove unnecessary trailing slashes from srcdir.
  1384. # Double slashes in file names in object file debugging info
  1385. # mess up M-x gdb in Emacs.
  1386. case $srcdir in
  1387. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1388. esac
  1389. for ac_var in $ac_precious_vars; do
  1390.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1391.   eval ac_env_${ac_var}_value=\$${ac_var}
  1392.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1393.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1394. done
  1395.  
  1396. #
  1397. # Report the --help message.
  1398. #
  1399. if test "$ac_init_help" = "long"; then
  1400.   # Omit some internal or obsolete options to make the list less imposing.
  1401.   # This message is too long to be a string in the A/UX 3.1 sh.
  1402.   cat <<_ACEOF
  1403. \`configure' configures libva 1.4.1 to adapt to many kinds of systems.
  1404.  
  1405. Usage: $0 [OPTION]... [VAR=VALUE]...
  1406.  
  1407. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1408. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1409.  
  1410. Defaults for the options are specified in brackets.
  1411.  
  1412. Configuration:
  1413.   -h, --help              display this help and exit
  1414.       --help=short        display options specific to this package
  1415.       --help=recursive    display the short help of all the included packages
  1416.   -V, --version           display version information and exit
  1417.   -q, --quiet, --silent   do not print \`checking ...' messages
  1418.       --cache-file=FILE   cache test results in FILE [disabled]
  1419.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1420.   -n, --no-create         do not create output files
  1421.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1422.  
  1423. Installation directories:
  1424.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1425.                           [$ac_default_prefix]
  1426.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1427.                           [PREFIX]
  1428.  
  1429. By default, \`make install' will install all the files in
  1430. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1431. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1432. for instance \`--prefix=\$HOME'.
  1433.  
  1434. For better control, use the options below.
  1435.  
  1436. Fine tuning of the installation directories:
  1437.   --bindir=DIR            user executables [EPREFIX/bin]
  1438.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1439.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1440.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1441.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1442.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1443.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1444.   --includedir=DIR        C header files [PREFIX/include]
  1445.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1446.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1447.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1448.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1449.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1450.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1451.   --docdir=DIR            documentation root [DATAROOTDIR/doc/libva]
  1452.   --htmldir=DIR           html documentation [DOCDIR]
  1453.   --dvidir=DIR            dvi documentation [DOCDIR]
  1454.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1455.   --psdir=DIR             ps documentation [DOCDIR]
  1456. _ACEOF
  1457.  
  1458.   cat <<\_ACEOF
  1459.  
  1460. Program names:
  1461.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1462.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1463.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1464.  
  1465. System types:
  1466.   --build=BUILD     configure for building on BUILD [guessed]
  1467.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1468. _ACEOF
  1469. fi
  1470.  
  1471. if test -n "$ac_init_help"; then
  1472.   case $ac_init_help in
  1473.      short | recursive ) echo "Configuration of libva 1.4.1:";;
  1474.    esac
  1475.   cat <<\_ACEOF
  1476.  
  1477. Optional Features:
  1478.   --disable-option-checking  ignore unrecognized --enable/--with options
  1479.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1480.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1481.   --enable-silent-rules   less verbose build output (undo: "make V=1")
  1482.   --disable-silent-rules  verbose build output (undo: "make V=0")
  1483.   --enable-docs           build Doxygen documentation [default=no]
  1484.   --enable-drm            build with VA/DRM API support [default=yes]
  1485.   --enable-x11            build with VA/X11 API support [default=yes]
  1486.   --enable-glx            build with VA/GLX API support [default=yes]
  1487.   --enable-egl            build with VA/EGL API support [default=yes]
  1488.   --enable-wayland        build with VA/Wayland API support [default=yes]
  1489.   --enable-dummy-driver   build dummy video driver [default=yes]
  1490.   --enable-static[=PKGS]  build static libraries [default=no]
  1491.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  1492.   --enable-fast-install[=PKGS]
  1493.                           optimize for fast installation [default=yes]
  1494.   --enable-dependency-tracking
  1495.                           do not reject slow dependency extractors
  1496.   --disable-dependency-tracking
  1497.                           speeds up one-time build
  1498.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1499.   --disable-largefile     omit support for large files
  1500.  
  1501. Optional Packages:
  1502.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1503.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1504.   --with-drivers-path=[path]
  1505.                           drivers path
  1506.   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  1507.                           both]
  1508.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1509.   --with-sysroot=DIR Search for dependent libraries within DIR
  1510.                         (or the compiler's sysroot if not specified).
  1511.  
  1512. Some influential environment variables:
  1513.   CC          C compiler command
  1514.   CFLAGS      C compiler flags
  1515.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1516.               nonstandard directory <lib dir>
  1517.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1518.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1519.               you have headers in a nonstandard directory <include dir>
  1520.   CPP         C preprocessor
  1521.   CXX         C++ compiler command
  1522.   CXXFLAGS    C++ compiler flags
  1523.   CXXCPP      C++ preprocessor
  1524.   PKG_CONFIG  path to pkg-config utility
  1525.   PKG_CONFIG_PATH
  1526.               directories to add to pkg-config's search path
  1527.   PKG_CONFIG_LIBDIR
  1528.               path overriding pkg-config's built-in search path
  1529.   DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
  1530.   DRM_LIBS    linker flags for DRM, overriding pkg-config
  1531.   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
  1532.   X11_LIBS    linker flags for X11, overriding pkg-config
  1533.   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
  1534.   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
  1535.   XFIXES_CFLAGS
  1536.               C compiler flags for XFIXES, overriding pkg-config
  1537.   XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
  1538.   GLX_CFLAGS  C compiler flags for GLX, overriding pkg-config
  1539.   GLX_LIBS    linker flags for GLX, overriding pkg-config
  1540.   EGL_CFLAGS  C compiler flags for EGL, overriding pkg-config
  1541.   EGL_LIBS    linker flags for EGL, overriding pkg-config
  1542.   WAYLAND_CFLAGS
  1543.               C compiler flags for WAYLAND, overriding pkg-config
  1544.   WAYLAND_LIBS
  1545.               linker flags for WAYLAND, overriding pkg-config
  1546.   WAYLAND_SCANNER_CFLAGS
  1547.               C compiler flags for WAYLAND_SCANNER, overriding pkg-config
  1548.   WAYLAND_SCANNER_LIBS
  1549.               linker flags for WAYLAND_SCANNER, overriding pkg-config
  1550.  
  1551. Use these variables to override the choices made by `configure' or to help
  1552. it to find libraries and programs with nonstandard names/locations.
  1553.  
  1554. Report bugs to <waldo.bastian@intel.com>.
  1555. _ACEOF
  1556. ac_status=$?
  1557. fi
  1558.  
  1559. if test "$ac_init_help" = "recursive"; then
  1560.   # If there are subdirs, report their specific --help.
  1561.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1562.     test -d "$ac_dir" ||
  1563.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1564.       continue
  1565.     ac_builddir=.
  1566.  
  1567. case "$ac_dir" in
  1568. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1569. *)
  1570.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1571.   # A ".." for each directory in $ac_dir_suffix.
  1572.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1573.   case $ac_top_builddir_sub in
  1574.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1575.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1576.   esac ;;
  1577. esac
  1578. ac_abs_top_builddir=$ac_pwd
  1579. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1580. # for backward compatibility:
  1581. ac_top_builddir=$ac_top_build_prefix
  1582.  
  1583. case $srcdir in
  1584.   .)  # We are building in place.
  1585.     ac_srcdir=.
  1586.     ac_top_srcdir=$ac_top_builddir_sub
  1587.     ac_abs_top_srcdir=$ac_pwd ;;
  1588.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1589.     ac_srcdir=$srcdir$ac_dir_suffix;
  1590.     ac_top_srcdir=$srcdir
  1591.     ac_abs_top_srcdir=$srcdir ;;
  1592.   *) # Relative name.
  1593.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1594.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1595.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1596. esac
  1597. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1598.  
  1599.     cd "$ac_dir" || { ac_status=$?; continue; }
  1600.     # Check for guested configure.
  1601.     if test -f "$ac_srcdir/configure.gnu"; then
  1602.       echo &&
  1603.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1604.     elif test -f "$ac_srcdir/configure"; then
  1605.       echo &&
  1606.       $SHELL "$ac_srcdir/configure" --help=recursive
  1607.     else
  1608.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1609.     fi || ac_status=$?
  1610.     cd "$ac_pwd" || { ac_status=$?; break; }
  1611.   done
  1612. fi
  1613.  
  1614. test -n "$ac_init_help" && exit $ac_status
  1615. if $ac_init_version; then
  1616.   cat <<\_ACEOF
  1617. libva configure 1.4.1
  1618. generated by GNU Autoconf 2.69
  1619.  
  1620. Copyright (C) 2012 Free Software Foundation, Inc.
  1621. This configure script is free software; the Free Software Foundation
  1622. gives unlimited permission to copy, distribute and modify it.
  1623. _ACEOF
  1624.   exit
  1625. fi
  1626.  
  1627. ## ------------------------ ##
  1628. ## Autoconf initialization. ##
  1629. ## ------------------------ ##
  1630.  
  1631. # ac_fn_c_try_compile LINENO
  1632. # --------------------------
  1633. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1634. ac_fn_c_try_compile ()
  1635. {
  1636.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1637.   rm -f conftest.$ac_objext
  1638.   if { { ac_try="$ac_compile"
  1639. case "(($ac_try" in
  1640.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1641.   *) ac_try_echo=$ac_try;;
  1642. esac
  1643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1644. $as_echo "$ac_try_echo"; } >&5
  1645.   (eval "$ac_compile") 2>conftest.err
  1646.   ac_status=$?
  1647.   if test -s conftest.err; then
  1648.     grep -v '^ *+' conftest.err >conftest.er1
  1649.     cat conftest.er1 >&5
  1650.     mv -f conftest.er1 conftest.err
  1651.   fi
  1652.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1653.   test $ac_status = 0; } && {
  1654.          test -z "$ac_c_werror_flag" ||
  1655.          test ! -s conftest.err
  1656.        } && test -s conftest.$ac_objext; then :
  1657.   ac_retval=0
  1658. else
  1659.   $as_echo "$as_me: failed program was:" >&5
  1660. sed 's/^/| /' conftest.$ac_ext >&5
  1661.  
  1662.         ac_retval=1
  1663. fi
  1664.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665.   as_fn_set_status $ac_retval
  1666.  
  1667. } # ac_fn_c_try_compile
  1668.  
  1669. # ac_fn_c_try_link LINENO
  1670. # -----------------------
  1671. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1672. ac_fn_c_try_link ()
  1673. {
  1674.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1675.   rm -f conftest.$ac_objext conftest$ac_exeext
  1676.   if { { ac_try="$ac_link"
  1677. case "(($ac_try" in
  1678.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679.   *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1682. $as_echo "$ac_try_echo"; } >&5
  1683.   (eval "$ac_link") 2>conftest.err
  1684.   ac_status=$?
  1685.   if test -s conftest.err; then
  1686.     grep -v '^ *+' conftest.err >conftest.er1
  1687.     cat conftest.er1 >&5
  1688.     mv -f conftest.er1 conftest.err
  1689.   fi
  1690.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1691.   test $ac_status = 0; } && {
  1692.          test -z "$ac_c_werror_flag" ||
  1693.          test ! -s conftest.err
  1694.        } && test -s conftest$ac_exeext && {
  1695.          test "$cross_compiling" = yes ||
  1696.          test -x conftest$ac_exeext
  1697.        }; then :
  1698.   ac_retval=0
  1699. else
  1700.   $as_echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702.  
  1703.         ac_retval=1
  1704. fi
  1705.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1706.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1707.   # interfere with the next link command; also delete a directory that is
  1708.   # left behind by Apple's compiler.  We do this before executing the actions.
  1709.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1710.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1711.   as_fn_set_status $ac_retval
  1712.  
  1713. } # ac_fn_c_try_link
  1714.  
  1715. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1716. # -------------------------------------------------------
  1717. # Tests whether HEADER exists and can be compiled using the include files in
  1718. # INCLUDES, setting the cache variable VAR accordingly.
  1719. ac_fn_c_check_header_compile ()
  1720. {
  1721.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1723. $as_echo_n "checking for $2... " >&6; }
  1724. if eval \${$3+:} false; then :
  1725.   $as_echo_n "(cached) " >&6
  1726. else
  1727.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1728. /* end confdefs.h.  */
  1729. $4
  1730. #include <$2>
  1731. _ACEOF
  1732. if ac_fn_c_try_compile "$LINENO"; then :
  1733.   eval "$3=yes"
  1734. else
  1735.   eval "$3=no"
  1736. fi
  1737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1738. fi
  1739. eval ac_res=\$$3
  1740.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1741. $as_echo "$ac_res" >&6; }
  1742.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1743.  
  1744. } # ac_fn_c_check_header_compile
  1745.  
  1746. # ac_fn_c_try_cpp LINENO
  1747. # ----------------------
  1748. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1749. ac_fn_c_try_cpp ()
  1750. {
  1751.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1752.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1753. case "(($ac_try" in
  1754.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1755.   *) ac_try_echo=$ac_try;;
  1756. esac
  1757. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1758. $as_echo "$ac_try_echo"; } >&5
  1759.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1760.   ac_status=$?
  1761.   if test -s conftest.err; then
  1762.     grep -v '^ *+' conftest.err >conftest.er1
  1763.     cat conftest.er1 >&5
  1764.     mv -f conftest.er1 conftest.err
  1765.   fi
  1766.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1767.   test $ac_status = 0; } > conftest.i && {
  1768.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1769.          test ! -s conftest.err
  1770.        }; then :
  1771.   ac_retval=0
  1772. else
  1773.   $as_echo "$as_me: failed program was:" >&5
  1774. sed 's/^/| /' conftest.$ac_ext >&5
  1775.  
  1776.     ac_retval=1
  1777. fi
  1778.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1779.   as_fn_set_status $ac_retval
  1780.  
  1781. } # ac_fn_c_try_cpp
  1782.  
  1783. # ac_fn_c_try_run LINENO
  1784. # ----------------------
  1785. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1786. # that executables *can* be run.
  1787. ac_fn_c_try_run ()
  1788. {
  1789.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1790.   if { { ac_try="$ac_link"
  1791. case "(($ac_try" in
  1792.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1793.   *) ac_try_echo=$ac_try;;
  1794. esac
  1795. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1796. $as_echo "$ac_try_echo"; } >&5
  1797.   (eval "$ac_link") 2>&5
  1798.   ac_status=$?
  1799.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1800.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1801.   { { case "(($ac_try" in
  1802.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1803.   *) ac_try_echo=$ac_try;;
  1804. esac
  1805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1806. $as_echo "$ac_try_echo"; } >&5
  1807.   (eval "$ac_try") 2>&5
  1808.   ac_status=$?
  1809.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1810.   test $ac_status = 0; }; }; then :
  1811.   ac_retval=0
  1812. else
  1813.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1814.        $as_echo "$as_me: failed program was:" >&5
  1815. sed 's/^/| /' conftest.$ac_ext >&5
  1816.  
  1817.        ac_retval=$ac_status
  1818. fi
  1819.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1820.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1821.   as_fn_set_status $ac_retval
  1822.  
  1823. } # ac_fn_c_try_run
  1824.  
  1825. # ac_fn_c_check_func LINENO FUNC VAR
  1826. # ----------------------------------
  1827. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1828. ac_fn_c_check_func ()
  1829. {
  1830.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1831.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1832. $as_echo_n "checking for $2... " >&6; }
  1833. if eval \${$3+:} false; then :
  1834.   $as_echo_n "(cached) " >&6
  1835. else
  1836.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1837. /* end confdefs.h.  */
  1838. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1839.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1840. #define $2 innocuous_$2
  1841.  
  1842. /* System header to define __stub macros and hopefully few prototypes,
  1843.     which can conflict with char $2 (); below.
  1844.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1845.     <limits.h> exists even on freestanding compilers.  */
  1846.  
  1847. #ifdef __STDC__
  1848. # include <limits.h>
  1849. #else
  1850. # include <assert.h>
  1851. #endif
  1852.  
  1853. #undef $2
  1854.  
  1855. /* Override any GCC internal prototype to avoid an error.
  1856.    Use char because int might match the return type of a GCC
  1857.    builtin and then its argument prototype would still apply.  */
  1858. #ifdef __cplusplus
  1859. extern "C"
  1860. #endif
  1861. char $2 ();
  1862. /* The GNU C library defines this for functions which it implements
  1863.     to always fail with ENOSYS.  Some functions are actually named
  1864.     something starting with __ and the normal name is an alias.  */
  1865. #if defined __stub_$2 || defined __stub___$2
  1866. choke me
  1867. #endif
  1868.  
  1869. int
  1870. main ()
  1871. {
  1872. return $2 ();
  1873.   ;
  1874.   return 0;
  1875. }
  1876. _ACEOF
  1877. if ac_fn_c_try_link "$LINENO"; then :
  1878.   eval "$3=yes"
  1879. else
  1880.   eval "$3=no"
  1881. fi
  1882. rm -f core conftest.err conftest.$ac_objext \
  1883.     conftest$ac_exeext conftest.$ac_ext
  1884. fi
  1885. eval ac_res=\$$3
  1886.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1887. $as_echo "$ac_res" >&6; }
  1888.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1889.  
  1890. } # ac_fn_c_check_func
  1891.  
  1892. # ac_fn_cxx_try_compile LINENO
  1893. # ----------------------------
  1894. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1895. ac_fn_cxx_try_compile ()
  1896. {
  1897.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1898.   rm -f conftest.$ac_objext
  1899.   if { { ac_try="$ac_compile"
  1900. case "(($ac_try" in
  1901.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1902.   *) ac_try_echo=$ac_try;;
  1903. esac
  1904. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1905. $as_echo "$ac_try_echo"; } >&5
  1906.   (eval "$ac_compile") 2>conftest.err
  1907.   ac_status=$?
  1908.   if test -s conftest.err; then
  1909.     grep -v '^ *+' conftest.err >conftest.er1
  1910.     cat conftest.er1 >&5
  1911.     mv -f conftest.er1 conftest.err
  1912.   fi
  1913.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1914.   test $ac_status = 0; } && {
  1915.          test -z "$ac_cxx_werror_flag" ||
  1916.          test ! -s conftest.err
  1917.        } && test -s conftest.$ac_objext; then :
  1918.   ac_retval=0
  1919. else
  1920.   $as_echo "$as_me: failed program was:" >&5
  1921. sed 's/^/| /' conftest.$ac_ext >&5
  1922.  
  1923.         ac_retval=1
  1924. fi
  1925.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1926.   as_fn_set_status $ac_retval
  1927.  
  1928. } # ac_fn_cxx_try_compile
  1929.  
  1930. # ac_fn_cxx_try_cpp LINENO
  1931. # ------------------------
  1932. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1933. ac_fn_cxx_try_cpp ()
  1934. {
  1935.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1936.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1937. case "(($ac_try" in
  1938.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1939.   *) ac_try_echo=$ac_try;;
  1940. esac
  1941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1942. $as_echo "$ac_try_echo"; } >&5
  1943.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1944.   ac_status=$?
  1945.   if test -s conftest.err; then
  1946.     grep -v '^ *+' conftest.err >conftest.er1
  1947.     cat conftest.er1 >&5
  1948.     mv -f conftest.er1 conftest.err
  1949.   fi
  1950.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1951.   test $ac_status = 0; } > conftest.i && {
  1952.          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1953.          test ! -s conftest.err
  1954.        }; then :
  1955.   ac_retval=0
  1956. else
  1957.   $as_echo "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959.  
  1960.     ac_retval=1
  1961. fi
  1962.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1963.   as_fn_set_status $ac_retval
  1964.  
  1965. } # ac_fn_cxx_try_cpp
  1966.  
  1967. # ac_fn_cxx_try_link LINENO
  1968. # -------------------------
  1969. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1970. ac_fn_cxx_try_link ()
  1971. {
  1972.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1973.   rm -f conftest.$ac_objext conftest$ac_exeext
  1974.   if { { ac_try="$ac_link"
  1975. case "(($ac_try" in
  1976.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1977.   *) ac_try_echo=$ac_try;;
  1978. esac
  1979. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1980. $as_echo "$ac_try_echo"; } >&5
  1981.   (eval "$ac_link") 2>conftest.err
  1982.   ac_status=$?
  1983.   if test -s conftest.err; then
  1984.     grep -v '^ *+' conftest.err >conftest.er1
  1985.     cat conftest.er1 >&5
  1986.     mv -f conftest.er1 conftest.err
  1987.   fi
  1988.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1989.   test $ac_status = 0; } && {
  1990.          test -z "$ac_cxx_werror_flag" ||
  1991.          test ! -s conftest.err
  1992.        } && test -s conftest$ac_exeext && {
  1993.          test "$cross_compiling" = yes ||
  1994.          test -x conftest$ac_exeext
  1995.        }; then :
  1996.   ac_retval=0
  1997. else
  1998.   $as_echo "$as_me: failed program was:" >&5
  1999. sed 's/^/| /' conftest.$ac_ext >&5
  2000.  
  2001.         ac_retval=1
  2002. fi
  2003.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2004.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2005.   # interfere with the next link command; also delete a directory that is
  2006.   # left behind by Apple's compiler.  We do this before executing the actions.
  2007.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2008.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2009.   as_fn_set_status $ac_retval
  2010.  
  2011. } # ac_fn_cxx_try_link
  2012.  
  2013. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2014. # -------------------------------------------------------
  2015. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2016. # the include files in INCLUDES and setting the cache variable VAR
  2017. # accordingly.
  2018. ac_fn_c_check_header_mongrel ()
  2019. {
  2020.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2021.   if eval \${$3+:} false; then :
  2022.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2023. $as_echo_n "checking for $2... " >&6; }
  2024. if eval \${$3+:} false; then :
  2025.   $as_echo_n "(cached) " >&6
  2026. fi
  2027. eval ac_res=\$$3
  2028.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2029. $as_echo "$ac_res" >&6; }
  2030. else
  2031.   # Is the header compilable?
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2033. $as_echo_n "checking $2 usability... " >&6; }
  2034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2035. /* end confdefs.h.  */
  2036. $4
  2037. #include <$2>
  2038. _ACEOF
  2039. if ac_fn_c_try_compile "$LINENO"; then :
  2040.   ac_header_compiler=yes
  2041. else
  2042.   ac_header_compiler=no
  2043. fi
  2044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2046. $as_echo "$ac_header_compiler" >&6; }
  2047.  
  2048. # Is the header present?
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2050. $as_echo_n "checking $2 presence... " >&6; }
  2051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2052. /* end confdefs.h.  */
  2053. #include <$2>
  2054. _ACEOF
  2055. if ac_fn_c_try_cpp "$LINENO"; then :
  2056.   ac_header_preproc=yes
  2057. else
  2058.   ac_header_preproc=no
  2059. fi
  2060. rm -f conftest.err conftest.i conftest.$ac_ext
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2062. $as_echo "$ac_header_preproc" >&6; }
  2063.  
  2064. # So?  What about this header?
  2065. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2066.   yes:no: )
  2067.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2068. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2069.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2070. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2071.     ;;
  2072.   no:yes:* )
  2073.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2074. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2075.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  2076. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  2077.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2078. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2079.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  2080. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  2081.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2082. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2083. ( $as_echo "## -------------------------------------- ##
  2084. ## Report this to waldo.bastian@intel.com ##
  2085. ## -------------------------------------- ##"
  2086.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  2087.     ;;
  2088. esac
  2089.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2090. $as_echo_n "checking for $2... " >&6; }
  2091. if eval \${$3+:} false; then :
  2092.   $as_echo_n "(cached) " >&6
  2093. else
  2094.   eval "$3=\$ac_header_compiler"
  2095. fi
  2096. eval ac_res=\$$3
  2097.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2098. $as_echo "$ac_res" >&6; }
  2099. fi
  2100.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2101.  
  2102. } # ac_fn_c_check_header_mongrel
  2103. cat >config.log <<_ACEOF
  2104. This file contains any messages produced by compilers while
  2105. running configure, to aid debugging if configure makes a mistake.
  2106.  
  2107. It was created by libva $as_me 1.4.1, which was
  2108. generated by GNU Autoconf 2.69.  Invocation command line was
  2109.  
  2110.   $ $0 $@
  2111.  
  2112. _ACEOF
  2113. exec 5>>config.log
  2114. {
  2115. cat <<_ASUNAME
  2116. ## --------- ##
  2117. ## Platform. ##
  2118. ## --------- ##
  2119.  
  2120. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2121. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2122. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2123. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2124. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2125.  
  2126. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2127. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2128.  
  2129. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2130. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2131. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2132. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2133. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2134. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2135. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2136.  
  2137. _ASUNAME
  2138.  
  2139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140. for as_dir in $PATH
  2141. do
  2142.   IFS=$as_save_IFS
  2143.   test -z "$as_dir" && as_dir=.
  2144.     $as_echo "PATH: $as_dir"
  2145.   done
  2146. IFS=$as_save_IFS
  2147.  
  2148. } >&5
  2149.  
  2150. cat >&5 <<_ACEOF
  2151.  
  2152.  
  2153. ## ----------- ##
  2154. ## Core tests. ##
  2155. ## ----------- ##
  2156.  
  2157. _ACEOF
  2158.  
  2159.  
  2160. # Keep a trace of the command line.
  2161. # Strip out --no-create and --no-recursion so they do not pile up.
  2162. # Strip out --silent because we don't want to record it for future runs.
  2163. # Also quote any args containing shell meta-characters.
  2164. # Make two passes to allow for proper duplicate-argument suppression.
  2165. ac_configure_args=
  2166. ac_configure_args0=
  2167. ac_configure_args1=
  2168. ac_must_keep_next=false
  2169. for ac_pass in 1 2
  2170. do
  2171.   for ac_arg
  2172.   do
  2173.     case $ac_arg in
  2174.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2175.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2176.     | -silent | --silent | --silen | --sile | --sil)
  2177.       continue ;;
  2178.     *\'*)
  2179.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2180.     esac
  2181.     case $ac_pass in
  2182.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2183.     2)
  2184.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2185.       if test $ac_must_keep_next = true; then
  2186.         ac_must_keep_next=false # Got value, back to normal.
  2187.       else
  2188.         case $ac_arg in
  2189.           *=* | --config-cache | -C | -disable-* | --disable-* \
  2190.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2191.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2192.           | -with-* | --with-* | -without-* | --without-* | --x)
  2193.             case "$ac_configure_args0 " in
  2194.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2195.             esac
  2196.             ;;
  2197.           -* ) ac_must_keep_next=true ;;
  2198.         esac
  2199.       fi
  2200.       as_fn_append ac_configure_args " '$ac_arg'"
  2201.       ;;
  2202.     esac
  2203.   done
  2204. done
  2205. { ac_configure_args0=; unset ac_configure_args0;}
  2206. { ac_configure_args1=; unset ac_configure_args1;}
  2207.  
  2208. # When interrupted or exit'd, cleanup temporary files, and complete
  2209. # config.log.  We remove comments because anyway the quotes in there
  2210. # would cause problems or look ugly.
  2211. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2212. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2213. trap 'exit_status=$?
  2214.   # Save into config.log some information that might help in debugging.
  2215.   {
  2216.     echo
  2217.  
  2218.     $as_echo "## ---------------- ##
  2219. ## Cache variables. ##
  2220. ## ---------------- ##"
  2221.     echo
  2222.     # The following way of writing the cache mishandles newlines in values,
  2223. (
  2224.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2225.     eval ac_val=\$$ac_var
  2226.     case $ac_val in #(
  2227.     *${as_nl}*)
  2228.       case $ac_var in #(
  2229.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2230. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2231.       esac
  2232.       case $ac_var in #(
  2233.       _ | IFS | as_nl) ;; #(
  2234.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2235.       *) { eval $ac_var=; unset $ac_var;} ;;
  2236.       esac ;;
  2237.     esac
  2238.   done
  2239.   (set) 2>&1 |
  2240.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2241.     *${as_nl}ac_space=\ *)
  2242.       sed -n \
  2243.         "s/'\''/'\''\\\\'\'''\''/g;
  2244.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2245.       ;; #(
  2246.     *)
  2247.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2248.       ;;
  2249.     esac |
  2250.     sort
  2251. )
  2252.     echo
  2253.  
  2254.     $as_echo "## ----------------- ##
  2255. ## Output variables. ##
  2256. ## ----------------- ##"
  2257.     echo
  2258.     for ac_var in $ac_subst_vars
  2259.     do
  2260.       eval ac_val=\$$ac_var
  2261.       case $ac_val in
  2262.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2263.       esac
  2264.       $as_echo "$ac_var='\''$ac_val'\''"
  2265.     done | sort
  2266.     echo
  2267.  
  2268.     if test -n "$ac_subst_files"; then
  2269.       $as_echo "## ------------------- ##
  2270. ## File substitutions. ##
  2271. ## ------------------- ##"
  2272.       echo
  2273.       for ac_var in $ac_subst_files
  2274.       do
  2275.         eval ac_val=\$$ac_var
  2276.         case $ac_val in
  2277.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2278.         esac
  2279.         $as_echo "$ac_var='\''$ac_val'\''"
  2280.       done | sort
  2281.       echo
  2282.     fi
  2283.  
  2284.     if test -s confdefs.h; then
  2285.       $as_echo "## ----------- ##
  2286. ## confdefs.h. ##
  2287. ## ----------- ##"
  2288.       echo
  2289.       cat confdefs.h
  2290.       echo
  2291.     fi
  2292.     test "$ac_signal" != 0 &&
  2293.       $as_echo "$as_me: caught signal $ac_signal"
  2294.     $as_echo "$as_me: exit $exit_status"
  2295.   } >&5
  2296.   rm -f core *.core core.conftest.* &&
  2297.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2298.     exit $exit_status
  2299. ' 0
  2300. for ac_signal in 1 2 13 15; do
  2301.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2302. done
  2303. ac_signal=0
  2304.  
  2305. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2306. rm -f -r conftest* confdefs.h
  2307.  
  2308. $as_echo "/* confdefs.h */" > confdefs.h
  2309.  
  2310. # Predefined preprocessor variables.
  2311.  
  2312. cat >>confdefs.h <<_ACEOF
  2313. #define PACKAGE_NAME "$PACKAGE_NAME"
  2314. _ACEOF
  2315.  
  2316. cat >>confdefs.h <<_ACEOF
  2317. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2318. _ACEOF
  2319.  
  2320. cat >>confdefs.h <<_ACEOF
  2321. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2322. _ACEOF
  2323.  
  2324. cat >>confdefs.h <<_ACEOF
  2325. #define PACKAGE_STRING "$PACKAGE_STRING"
  2326. _ACEOF
  2327.  
  2328. cat >>confdefs.h <<_ACEOF
  2329. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2330. _ACEOF
  2331.  
  2332. cat >>confdefs.h <<_ACEOF
  2333. #define PACKAGE_URL "$PACKAGE_URL"
  2334. _ACEOF
  2335.  
  2336.  
  2337. # Let the site file select an alternate cache file if it wants to.
  2338. # Prefer an explicitly selected file to automatically selected ones.
  2339. ac_site_file1=NONE
  2340. ac_site_file2=NONE
  2341. if test -n "$CONFIG_SITE"; then
  2342.   # We do not want a PATH search for config.site.
  2343.   case $CONFIG_SITE in #((
  2344.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2345.     */*) ac_site_file1=$CONFIG_SITE;;
  2346.     *)   ac_site_file1=./$CONFIG_SITE;;
  2347.   esac
  2348. elif test "x$prefix" != xNONE; then
  2349.   ac_site_file1=$prefix/share/config.site
  2350.   ac_site_file2=$prefix/etc/config.site
  2351. else
  2352.   ac_site_file1=$ac_default_prefix/share/config.site
  2353.   ac_site_file2=$ac_default_prefix/etc/config.site
  2354. fi
  2355. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2356. do
  2357.   test "x$ac_site_file" = xNONE && continue
  2358.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2359.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2360. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2361.     sed 's/^/| /' "$ac_site_file" >&5
  2362.     . "$ac_site_file" \
  2363.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2365. as_fn_error $? "failed to load site script $ac_site_file
  2366. See \`config.log' for more details" "$LINENO" 5; }
  2367.   fi
  2368. done
  2369.  
  2370. if test -r "$cache_file"; then
  2371.   # Some versions of bash will fail to source /dev/null (special files
  2372.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2373.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2374.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2375. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2376.     case $cache_file in
  2377.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2378.       *)                      . "./$cache_file";;
  2379.     esac
  2380.   fi
  2381. else
  2382.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2383. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2384.   >$cache_file
  2385. fi
  2386.  
  2387. # Check that the precious variables saved in the cache have kept the same
  2388. # value.
  2389. ac_cache_corrupted=false
  2390. for ac_var in $ac_precious_vars; do
  2391.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2392.   eval ac_new_set=\$ac_env_${ac_var}_set
  2393.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2394.   eval ac_new_val=\$ac_env_${ac_var}_value
  2395.   case $ac_old_set,$ac_new_set in
  2396.     set,)
  2397.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2398. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2399.       ac_cache_corrupted=: ;;
  2400.     ,set)
  2401.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2402. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2403.       ac_cache_corrupted=: ;;
  2404.     ,);;
  2405.     *)
  2406.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2407.         # differences in whitespace do not lead to failure.
  2408.         ac_old_val_w=`echo x $ac_old_val`
  2409.         ac_new_val_w=`echo x $ac_new_val`
  2410.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2411.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2412. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2413.           ac_cache_corrupted=:
  2414.         else
  2415.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2416. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2417.           eval $ac_var=\$ac_old_val
  2418.         fi
  2419.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2420. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2421.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2422. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2423.       fi;;
  2424.   esac
  2425.   # Pass precious variables to config.status.
  2426.   if test "$ac_new_set" = set; then
  2427.     case $ac_new_val in
  2428.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2429.     *) ac_arg=$ac_var=$ac_new_val ;;
  2430.     esac
  2431.     case " $ac_configure_args " in
  2432.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2433.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2434.     esac
  2435.   fi
  2436. done
  2437. if $ac_cache_corrupted; then
  2438.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2439. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2440.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2441. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2442.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2443. fi
  2444. ## -------------------- ##
  2445. ## Main body of script. ##
  2446. ## -------------------- ##
  2447.  
  2448. ac_ext=c
  2449. ac_cpp='$CPP $CPPFLAGS'
  2450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2453.  
  2454.  
  2455.  
  2456.  
  2457. am__api_version='1.14'
  2458.  
  2459. ac_aux_dir=
  2460. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2461.   if test -f "$ac_dir/install-sh"; then
  2462.     ac_aux_dir=$ac_dir
  2463.     ac_install_sh="$ac_aux_dir/install-sh -c"
  2464.     break
  2465.   elif test -f "$ac_dir/install.sh"; then
  2466.     ac_aux_dir=$ac_dir
  2467.     ac_install_sh="$ac_aux_dir/install.sh -c"
  2468.     break
  2469.   elif test -f "$ac_dir/shtool"; then
  2470.     ac_aux_dir=$ac_dir
  2471.     ac_install_sh="$ac_aux_dir/shtool install -c"
  2472.     break
  2473.   fi
  2474. done
  2475. if test -z "$ac_aux_dir"; then
  2476.   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2477. fi
  2478.  
  2479. # These three variables are undocumented and unsupported,
  2480. # and are intended to be withdrawn in a future Autoconf release.
  2481. # They can cause serious problems if a builder's source tree is in a directory
  2482. # whose full name contains unusual characters.
  2483. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2484. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2485. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2486.  
  2487.  
  2488. # Find a good install program.  We prefer a C program (faster),
  2489. # so one script is as good as another.  But avoid the broken or
  2490. # incompatible versions:
  2491. # SysV /etc/install, /usr/sbin/install
  2492. # SunOS /usr/etc/install
  2493. # IRIX /sbin/install
  2494. # AIX /bin/install
  2495. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2496. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2497. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2498. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2499. # OS/2's system install, which has a completely different semantic
  2500. # ./install, which can be erroneously created by make from ./install.sh.
  2501. # Reject install programs that cannot install multiple files.
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2503. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2504. if test -z "$INSTALL"; then
  2505. if ${ac_cv_path_install+:} false; then :
  2506.   $as_echo_n "(cached) " >&6
  2507. else
  2508.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2509. for as_dir in $PATH
  2510. do
  2511.   IFS=$as_save_IFS
  2512.   test -z "$as_dir" && as_dir=.
  2513.     # Account for people who put trailing slashes in PATH elements.
  2514. case $as_dir/ in #((
  2515.   ./ | .// | /[cC]/* | \
  2516.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2517.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2518.   /usr/ucb/* ) ;;
  2519.   *)
  2520.     # OSF1 and SCO ODT 3.0 have their own names for install.
  2521.     # Don't use installbsd from OSF since it installs stuff as root
  2522.     # by default.
  2523.     for ac_prog in ginstall scoinst install; do
  2524.       for ac_exec_ext in '' $ac_executable_extensions; do
  2525.         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2526.           if test $ac_prog = install &&
  2527.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2528.             # AIX install.  It has an incompatible calling convention.
  2529.             :
  2530.           elif test $ac_prog = install &&
  2531.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2532.             # program-specific install script used by HP pwplus--don't use.
  2533.             :
  2534.           else
  2535.             rm -rf conftest.one conftest.two conftest.dir
  2536.             echo one > conftest.one
  2537.             echo two > conftest.two
  2538.             mkdir conftest.dir
  2539.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2540.               test -s conftest.one && test -s conftest.two &&
  2541.               test -s conftest.dir/conftest.one &&
  2542.               test -s conftest.dir/conftest.two
  2543.             then
  2544.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2545.               break 3
  2546.             fi
  2547.           fi
  2548.         fi
  2549.       done
  2550.     done
  2551.     ;;
  2552. esac
  2553.  
  2554.   done
  2555. IFS=$as_save_IFS
  2556.  
  2557. rm -rf conftest.one conftest.two conftest.dir
  2558.  
  2559. fi
  2560.   if test "${ac_cv_path_install+set}" = set; then
  2561.     INSTALL=$ac_cv_path_install
  2562.   else
  2563.     # As a last resort, use the slow shell script.  Don't cache a
  2564.     # value for INSTALL within a source directory, because that will
  2565.     # break other packages using the cache if that directory is
  2566.     # removed, or if the value is a relative name.
  2567.     INSTALL=$ac_install_sh
  2568.   fi
  2569. fi
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2571. $as_echo "$INSTALL" >&6; }
  2572.  
  2573. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2574. # It thinks the first close brace ends the variable substitution.
  2575. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2576.  
  2577. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2578.  
  2579. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2580.  
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2582. $as_echo_n "checking whether build environment is sane... " >&6; }
  2583. # Reject unsafe characters in $srcdir or the absolute working directory
  2584. # name.  Accept space and tab only in the latter.
  2585. am_lf='
  2586. '
  2587. case `pwd` in
  2588.   *[\\\"\#\$\&\'\`$am_lf]*)
  2589.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2590. esac
  2591. case $srcdir in
  2592.   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
  2593.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2594. esac
  2595.  
  2596. # Do 'set' in a subshell so we don't clobber the current shell's
  2597. # arguments.  Must try -L first in case configure is actually a
  2598. # symlink; some systems play weird games with the mod time of symlinks
  2599. # (eg FreeBSD returns the mod time of the symlink's containing
  2600. # directory).
  2601. if (
  2602.    am_has_slept=no
  2603.    for am_try in 1 2; do
  2604.      echo "timestamp, slept: $am_has_slept" > conftest.file
  2605.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2606.      if test "$*" = "X"; then
  2607.         # -L didn't work.
  2608.         set X `ls -t "$srcdir/configure" conftest.file`
  2609.      fi
  2610.      if test "$*" != "X $srcdir/configure conftest.file" \
  2611.         && test "$*" != "X conftest.file $srcdir/configure"; then
  2612.  
  2613.         # If neither matched, then we have a broken ls.  This can happen
  2614.         # if, for instance, CONFIG_SHELL is bash and it inherits a
  2615.         # broken ls alias from the environment.  This has actually
  2616.         # happened.  Such a system could not be considered "sane".
  2617.         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  2618.   alias in your environment" "$LINENO" 5
  2619.      fi
  2620.      if test "$2" = conftest.file || test $am_try -eq 2; then
  2621.        break
  2622.      fi
  2623.      # Just in case.
  2624.      sleep 1
  2625.      am_has_slept=yes
  2626.    done
  2627.    test "$2" = conftest.file
  2628.    )
  2629. then
  2630.    # Ok.
  2631.    :
  2632. else
  2633.    as_fn_error $? "newly created file is older than distributed files!
  2634. Check your system clock" "$LINENO" 5
  2635. fi
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2637. $as_echo "yes" >&6; }
  2638. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2639. # generated files are strictly newer.
  2640. am_sleep_pid=
  2641. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2642.   ( sleep 1 ) &
  2643.   am_sleep_pid=$!
  2644. fi
  2645.  
  2646. rm -f conftest.file
  2647.  
  2648. test "$program_prefix" != NONE &&
  2649.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2650. # Use a double $ so make ignores it.
  2651. test "$program_suffix" != NONE &&
  2652.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2653. # Double any \ or $.
  2654. # By default was `s,x,x', remove it if useless.
  2655. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2656. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2657.  
  2658. # expand $ac_aux_dir to an absolute path
  2659. am_aux_dir=`cd $ac_aux_dir && pwd`
  2660.  
  2661. if test x"${MISSING+set}" != xset; then
  2662.   case $am_aux_dir in
  2663.   *\ * | *\     *)
  2664.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2665.   *)
  2666.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2667.   esac
  2668. fi
  2669. # Use eval to expand $SHELL
  2670. if eval "$MISSING --is-lightweight"; then
  2671.   am_missing_run="$MISSING "
  2672. else
  2673.   am_missing_run=
  2674.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2675. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2676. fi
  2677.  
  2678. if test x"${install_sh}" != xset; then
  2679.   case $am_aux_dir in
  2680.   *\ * | *\     *)
  2681.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2682.   *)
  2683.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  2684.   esac
  2685. fi
  2686.  
  2687. # Installed binaries are usually stripped using 'strip' when the user
  2688. # run "make install-strip".  However 'strip' might not be the right
  2689. # tool to use in cross-compilation environments, therefore Automake
  2690. # will honor the 'STRIP' environment variable to overrule this program.
  2691. if test "$cross_compiling" != no; then
  2692.   if test -n "$ac_tool_prefix"; then
  2693.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2694. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2696. $as_echo_n "checking for $ac_word... " >&6; }
  2697. if ${ac_cv_prog_STRIP+:} false; then :
  2698.   $as_echo_n "(cached) " >&6
  2699. else
  2700.   if test -n "$STRIP"; then
  2701.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2702. else
  2703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2704. for as_dir in $PATH
  2705. do
  2706.   IFS=$as_save_IFS
  2707.   test -z "$as_dir" && as_dir=.
  2708.     for ac_exec_ext in '' $ac_executable_extensions; do
  2709.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2710.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2711.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2712.     break 2
  2713.   fi
  2714. done
  2715.   done
  2716. IFS=$as_save_IFS
  2717.  
  2718. fi
  2719. fi
  2720. STRIP=$ac_cv_prog_STRIP
  2721. if test -n "$STRIP"; then
  2722.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2723. $as_echo "$STRIP" >&6; }
  2724. else
  2725.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2726. $as_echo "no" >&6; }
  2727. fi
  2728.  
  2729.  
  2730. fi
  2731. if test -z "$ac_cv_prog_STRIP"; then
  2732.   ac_ct_STRIP=$STRIP
  2733.   # Extract the first word of "strip", so it can be a program name with args.
  2734. set dummy strip; ac_word=$2
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2736. $as_echo_n "checking for $ac_word... " >&6; }
  2737. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2738.   $as_echo_n "(cached) " >&6
  2739. else
  2740.   if test -n "$ac_ct_STRIP"; then
  2741.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2742. else
  2743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2744. for as_dir in $PATH
  2745. do
  2746.   IFS=$as_save_IFS
  2747.   test -z "$as_dir" && as_dir=.
  2748.     for ac_exec_ext in '' $ac_executable_extensions; do
  2749.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2750.     ac_cv_prog_ac_ct_STRIP="strip"
  2751.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2752.     break 2
  2753.   fi
  2754. done
  2755.   done
  2756. IFS=$as_save_IFS
  2757.  
  2758. fi
  2759. fi
  2760. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2761. if test -n "$ac_ct_STRIP"; then
  2762.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2763. $as_echo "$ac_ct_STRIP" >&6; }
  2764. else
  2765.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2766. $as_echo "no" >&6; }
  2767. fi
  2768.  
  2769.   if test "x$ac_ct_STRIP" = x; then
  2770.     STRIP=":"
  2771.   else
  2772.     case $cross_compiling:$ac_tool_warned in
  2773. yes:)
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2775. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2776. ac_tool_warned=yes ;;
  2777. esac
  2778.     STRIP=$ac_ct_STRIP
  2779.   fi
  2780. else
  2781.   STRIP="$ac_cv_prog_STRIP"
  2782. fi
  2783.  
  2784. fi
  2785. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2786.  
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2788. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2789. if test -z "$MKDIR_P"; then
  2790.   if ${ac_cv_path_mkdir+:} false; then :
  2791.   $as_echo_n "(cached) " >&6
  2792. else
  2793.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2794. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2795. do
  2796.   IFS=$as_save_IFS
  2797.   test -z "$as_dir" && as_dir=.
  2798.     for ac_prog in mkdir gmkdir; do
  2799.          for ac_exec_ext in '' $ac_executable_extensions; do
  2800.            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2801.            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2802.              'mkdir (GNU coreutils) '* | \
  2803.              'mkdir (coreutils) '* | \
  2804.              'mkdir (fileutils) '4.1*)
  2805.                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2806.                break 3;;
  2807.            esac
  2808.          done
  2809.        done
  2810.   done
  2811. IFS=$as_save_IFS
  2812.  
  2813. fi
  2814.  
  2815.   test -d ./--version && rmdir ./--version
  2816.   if test "${ac_cv_path_mkdir+set}" = set; then
  2817.     MKDIR_P="$ac_cv_path_mkdir -p"
  2818.   else
  2819.     # As a last resort, use the slow shell script.  Don't cache a
  2820.     # value for MKDIR_P within a source directory, because that will
  2821.     # break other packages using the cache if that directory is
  2822.     # removed, or if the value is a relative name.
  2823.     MKDIR_P="$ac_install_sh -d"
  2824.   fi
  2825. fi
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2827. $as_echo "$MKDIR_P" >&6; }
  2828.  
  2829. for ac_prog in gawk mawk nawk awk
  2830. do
  2831.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2832. set dummy $ac_prog; ac_word=$2
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2834. $as_echo_n "checking for $ac_word... " >&6; }
  2835. if ${ac_cv_prog_AWK+:} false; then :
  2836.   $as_echo_n "(cached) " >&6
  2837. else
  2838.   if test -n "$AWK"; then
  2839.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2840. else
  2841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2842. for as_dir in $PATH
  2843. do
  2844.   IFS=$as_save_IFS
  2845.   test -z "$as_dir" && as_dir=.
  2846.     for ac_exec_ext in '' $ac_executable_extensions; do
  2847.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2848.     ac_cv_prog_AWK="$ac_prog"
  2849.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2850.     break 2
  2851.   fi
  2852. done
  2853.   done
  2854. IFS=$as_save_IFS
  2855.  
  2856. fi
  2857. fi
  2858. AWK=$ac_cv_prog_AWK
  2859. if test -n "$AWK"; then
  2860.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2861. $as_echo "$AWK" >&6; }
  2862. else
  2863.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2864. $as_echo "no" >&6; }
  2865. fi
  2866.  
  2867.  
  2868.   test -n "$AWK" && break
  2869. done
  2870.  
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2872. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2873. set x ${MAKE-make}
  2874. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2875. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2876.   $as_echo_n "(cached) " >&6
  2877. else
  2878.   cat >conftest.make <<\_ACEOF
  2879. SHELL = /bin/sh
  2880. all:
  2881.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  2882. _ACEOF
  2883. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2884. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2885.   *@@@%%%=?*=@@@%%%*)
  2886.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2887.   *)
  2888.     eval ac_cv_prog_make_${ac_make}_set=no;;
  2889. esac
  2890. rm -f conftest.make
  2891. fi
  2892. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2893.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2894. $as_echo "yes" >&6; }
  2895.   SET_MAKE=
  2896. else
  2897.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2898. $as_echo "no" >&6; }
  2899.   SET_MAKE="MAKE=${MAKE-make}"
  2900. fi
  2901.  
  2902. rm -rf .tst 2>/dev/null
  2903. mkdir .tst 2>/dev/null
  2904. if test -d .tst; then
  2905.   am__leading_dot=.
  2906. else
  2907.   am__leading_dot=_
  2908. fi
  2909. rmdir .tst 2>/dev/null
  2910.  
  2911. # Check whether --enable-silent-rules was given.
  2912. if test "${enable_silent_rules+set}" = set; then :
  2913.   enableval=$enable_silent_rules;
  2914. fi
  2915.  
  2916. case $enable_silent_rules in # (((
  2917.   yes) AM_DEFAULT_VERBOSITY=0;;
  2918.    no) AM_DEFAULT_VERBOSITY=1;;
  2919.     *) AM_DEFAULT_VERBOSITY=1;;
  2920. esac
  2921. am_make=${MAKE-make}
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2923. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2924. if ${am_cv_make_support_nested_variables+:} false; then :
  2925.   $as_echo_n "(cached) " >&6
  2926. else
  2927.   if $as_echo 'TRUE=$(BAR$(V))
  2928. BAR0=false
  2929. BAR1=true
  2930. V=1
  2931. am__doit:
  2932.         @$(TRUE)
  2933. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2934.   am_cv_make_support_nested_variables=yes
  2935. else
  2936.   am_cv_make_support_nested_variables=no
  2937. fi
  2938. fi
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2940. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2941. if test $am_cv_make_support_nested_variables = yes; then
  2942.     AM_V='$(V)'
  2943.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2944. else
  2945.   AM_V=$AM_DEFAULT_VERBOSITY
  2946.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2947. fi
  2948. AM_BACKSLASH='\'
  2949.  
  2950. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2951.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2952.   # is not polluted with repeated "-I."
  2953.   am__isrc=' -I$(srcdir)'
  2954.   # test to see if srcdir already configured
  2955.   if test -f $srcdir/config.status; then
  2956.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2957.   fi
  2958. fi
  2959.  
  2960. # test whether we have cygpath
  2961. if test -z "$CYGPATH_W"; then
  2962.   if (cygpath --version) >/dev/null 2>/dev/null; then
  2963.     CYGPATH_W='cygpath -w'
  2964.   else
  2965.     CYGPATH_W=echo
  2966.   fi
  2967. fi
  2968.  
  2969.  
  2970. # Define the identity of the package.
  2971.  PACKAGE='libva'
  2972.  VERSION='1.4.1'
  2973.  
  2974.  
  2975. cat >>confdefs.h <<_ACEOF
  2976. #define PACKAGE "$PACKAGE"
  2977. _ACEOF
  2978.  
  2979.  
  2980. cat >>confdefs.h <<_ACEOF
  2981. #define VERSION "$VERSION"
  2982. _ACEOF
  2983.  
  2984. # Some tools Automake needs.
  2985.  
  2986. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2987.  
  2988.  
  2989. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2990.  
  2991.  
  2992. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2993.  
  2994.  
  2995. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2996.  
  2997.  
  2998. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2999.  
  3000. # For better backward compatibility.  To be removed once Automake 1.9.x
  3001. # dies out for good.  For more background, see:
  3002. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3003. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3004. mkdir_p='$(MKDIR_P)'
  3005.  
  3006. # We need awk for the "check" target.  The system "awk" is bad on
  3007. # some platforms.
  3008. # Always define AMTAR for backward compatibility.  Yes, it's still used
  3009. # in the wild :-(  We should find a proper way to deprecate it ...
  3010. AMTAR='$${TAR-tar}'
  3011.  
  3012.  
  3013. # We'll loop over all known methods to create a tar archive until one works.
  3014. _am_tools='gnutar  pax cpio none'
  3015.  
  3016. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023. # POSIX will say in a future version that running "rm -f" with no argument
  3024. # is OK; and we want to be able to make that assumption in our Makefile
  3025. # recipes.  So use an aggressive probe to check that the usage we want is
  3026. # actually supported "in the wild" to an acceptable degree.
  3027. # See automake bug#10828.
  3028. # To make any issue more visible, cause the running configure to be aborted
  3029. # by default if the 'rm' program in use doesn't match our expectations; the
  3030. # user can still override this though.
  3031. if rm -f && rm -fr && rm -rf; then : OK; else
  3032.   cat >&2 <<'END'
  3033. Oops!
  3034.  
  3035. Your 'rm' program seems unable to run without file operands specified
  3036. on the command line, even when the '-f' option is present.  This is contrary
  3037. to the behaviour of most rm programs out there, and not conforming with
  3038. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3039.  
  3040. Please tell bug-automake@gnu.org about your system, including the value
  3041. of your $PATH and any error possibly output before this message.  This
  3042. can help us improve future automake versions.
  3043.  
  3044. END
  3045.   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3046.     echo 'Configuration will proceed anyway, since you have set the' >&2
  3047.     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3048.     echo >&2
  3049.   else
  3050.     cat >&2 <<'END'
  3051. Aborting the configuration process, to ensure you take notice of the issue.
  3052.  
  3053. You can download and install GNU coreutils to get an 'rm' implementation
  3054. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3055.  
  3056. If you want to complete the configuration process using your problematic
  3057. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3058. to "yes", and re-run configure.
  3059.  
  3060. END
  3061.     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3062.   fi
  3063. fi
  3064.  
  3065. ac_config_headers="$ac_config_headers config.h"
  3066.  
  3067. # Check whether --enable-silent-rules was given.
  3068. if test "${enable_silent_rules+set}" = set; then :
  3069.   enableval=$enable_silent_rules;
  3070. fi
  3071.  
  3072. case $enable_silent_rules in # (((
  3073.   yes) AM_DEFAULT_VERBOSITY=0;;
  3074.    no) AM_DEFAULT_VERBOSITY=1;;
  3075.     *) AM_DEFAULT_VERBOSITY=0;;
  3076. esac
  3077. am_make=${MAKE-make}
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3079. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3080. if ${am_cv_make_support_nested_variables+:} false; then :
  3081.   $as_echo_n "(cached) " >&6
  3082. else
  3083.   if $as_echo 'TRUE=$(BAR$(V))
  3084. BAR0=false
  3085. BAR1=true
  3086. V=1
  3087. am__doit:
  3088.         @$(TRUE)
  3089. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3090.   am_cv_make_support_nested_variables=yes
  3091. else
  3092.   am_cv_make_support_nested_variables=no
  3093. fi
  3094. fi
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3096. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3097. if test $am_cv_make_support_nested_variables = yes; then
  3098.     AM_V='$(V)'
  3099.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3100. else
  3101.   AM_V=$AM_DEFAULT_VERBOSITY
  3102.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3103. fi
  3104. AM_BACKSLASH='\'
  3105.  
  3106.  
  3107. TODAY="`LC_ALL=C date +'%a, %d %b %Y %X %z'`"
  3108.  
  3109.  
  3110. VA_API_MAJOR_VERSION=0
  3111. VA_API_MINOR_VERSION=36
  3112. VA_API_MICRO_VERSION=0
  3113. VA_API_VERSION=0.36.0
  3114.  
  3115.  
  3116.  
  3117.  
  3118.  
  3119. LIBVA_MAJOR_VERSION=1
  3120. LIBVA_MINOR_VERSION=4
  3121. LIBVA_MICRO_VERSION=1
  3122. LIBVA_VERSION=1.4.1
  3123.  
  3124.  
  3125.  
  3126.  
  3127.  
  3128. LIBVA_LT_CURRENT=3601
  3129. LIBVA_LT_REV=0
  3130. LIBVA_LT_AGE=3600
  3131. LIBVA_LT_VERSION="$LIBVA_LT_CURRENT:$LIBVA_LT_REV:$LIBVA_LT_AGE"
  3132. LIBVA_LT_LDFLAGS="-version-info $LIBVA_LT_VERSION"
  3133.  
  3134.  
  3135.  
  3136. # Check whether --enable-docs was given.
  3137. if test "${enable_docs+set}" = set; then :
  3138.   enableval=$enable_docs;
  3139. else
  3140.   enable_docs="no"
  3141. fi
  3142.  
  3143.  
  3144. # Check whether --enable-drm was given.
  3145. if test "${enable_drm+set}" = set; then :
  3146.   enableval=$enable_drm;
  3147. else
  3148.   enable_drm="yes"
  3149. fi
  3150.  
  3151.  
  3152. # Check whether --enable-x11 was given.
  3153. if test "${enable_x11+set}" = set; then :
  3154.   enableval=$enable_x11;
  3155. else
  3156.   enable_x11="yes"
  3157. fi
  3158.  
  3159.  
  3160. # Check whether --enable-glx was given.
  3161. if test "${enable_glx+set}" = set; then :
  3162.   enableval=$enable_glx;
  3163. else
  3164.   enable_glx="yes"
  3165. fi
  3166.  
  3167.  
  3168. # Check whether --enable-egl was given.
  3169. if test "${enable_egl+set}" = set; then :
  3170.   enableval=$enable_egl;
  3171. else
  3172.   enable_egl="yes"
  3173. fi
  3174.  
  3175.  
  3176. # Check whether --enable-wayland was given.
  3177. if test "${enable_wayland+set}" = set; then :
  3178.   enableval=$enable_wayland;
  3179. else
  3180.   enable_wayland="yes"
  3181. fi
  3182.  
  3183.  
  3184. # Check whether --enable-dummy-driver was given.
  3185. if test "${enable_dummy_driver+set}" = set; then :
  3186.   enableval=$enable_dummy_driver;
  3187. else
  3188.   enable_dummy_driver="yes"
  3189. fi
  3190.  
  3191.  if test x$enable_dummy_driver = xyes; then
  3192.   BUILD_DUMMY_DRIVER_TRUE=
  3193.   BUILD_DUMMY_DRIVER_FALSE='#'
  3194. else
  3195.   BUILD_DUMMY_DRIVER_TRUE='#'
  3196.   BUILD_DUMMY_DRIVER_FALSE=
  3197. fi
  3198.  
  3199.  
  3200.  
  3201. # Check whether --with-drivers-path was given.
  3202. if test "${with_drivers_path+set}" = set; then :
  3203.   withval=$with_drivers_path;
  3204. else
  3205.   with_drivers_path="$libdir/dri"
  3206. fi
  3207.  
  3208.  
  3209. LIBVA_DRIVERS_PATH="$with_drivers_path"
  3210.  
  3211.  
  3212. # Check whether --enable-static was given.
  3213. if test "${enable_static+set}" = set; then :
  3214.   enableval=$enable_static; p=${PACKAGE-default}
  3215.     case $enableval in
  3216.     yes) enable_static=yes ;;
  3217.     no) enable_static=no ;;
  3218.     *)
  3219.      enable_static=no
  3220.       # Look at the argument we got.  We use all the common list separators.
  3221.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3222.       for pkg in $enableval; do
  3223.         IFS="$lt_save_ifs"
  3224.         if test "X$pkg" = "X$p"; then
  3225.           enable_static=yes
  3226.         fi
  3227.       done
  3228.       IFS="$lt_save_ifs"
  3229.       ;;
  3230.     esac
  3231. else
  3232.   enable_static=no
  3233. fi
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243. case `pwd` in
  3244.   *\ * | *\     *)
  3245.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3246. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3247. esac
  3248.  
  3249.  
  3250.  
  3251. macro_version='2.4.2'
  3252. macro_revision='1.3337'
  3253.  
  3254.  
  3255.  
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266. ltmain="$ac_aux_dir/ltmain.sh"
  3267.  
  3268. # Make sure we can run config.sub.
  3269. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3270.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3271.  
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3273. $as_echo_n "checking build system type... " >&6; }
  3274. if ${ac_cv_build+:} false; then :
  3275.   $as_echo_n "(cached) " >&6
  3276. else
  3277.   ac_build_alias=$build_alias
  3278. test "x$ac_build_alias" = x &&
  3279.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3280. test "x$ac_build_alias" = x &&
  3281.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3282. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3283.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3284.  
  3285. fi
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3287. $as_echo "$ac_cv_build" >&6; }
  3288. case $ac_cv_build in
  3289. *-*-*) ;;
  3290. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3291. esac
  3292. build=$ac_cv_build
  3293. ac_save_IFS=$IFS; IFS='-'
  3294. set x $ac_cv_build
  3295. shift
  3296. build_cpu=$1
  3297. build_vendor=$2
  3298. shift; shift
  3299. # Remember, the first character of IFS is used to create $*,
  3300. # except with old shells:
  3301. build_os=$*
  3302. IFS=$ac_save_IFS
  3303. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3304.  
  3305.  
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3307. $as_echo_n "checking host system type... " >&6; }
  3308. if ${ac_cv_host+:} false; then :
  3309.   $as_echo_n "(cached) " >&6
  3310. else
  3311.   if test "x$host_alias" = x; then
  3312.   ac_cv_host=$ac_cv_build
  3313. else
  3314.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3315.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3316. fi
  3317.  
  3318. fi
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3320. $as_echo "$ac_cv_host" >&6; }
  3321. case $ac_cv_host in
  3322. *-*-*) ;;
  3323. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3324. esac
  3325. host=$ac_cv_host
  3326. ac_save_IFS=$IFS; IFS='-'
  3327. set x $ac_cv_host
  3328. shift
  3329. host_cpu=$1
  3330. host_vendor=$2
  3331. shift; shift
  3332. # Remember, the first character of IFS is used to create $*,
  3333. # except with old shells:
  3334. host_os=$*
  3335. IFS=$ac_save_IFS
  3336. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3337.  
  3338.  
  3339. # Backslashify metacharacters that are still active within
  3340. # double-quoted strings.
  3341. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3342.  
  3343. # Same as above, but do not quote variable references.
  3344. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3345.  
  3346. # Sed substitution to delay expansion of an escaped shell variable in a
  3347. # double_quote_subst'ed string.
  3348. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3349.  
  3350. # Sed substitution to delay expansion of an escaped single quote.
  3351. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3352.  
  3353. # Sed substitution to avoid accidental globbing in evaled expressions
  3354. no_glob_subst='s/\*/\\\*/g'
  3355.  
  3356. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3357. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3358. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3359.  
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3361. $as_echo_n "checking how to print strings... " >&6; }
  3362. # Test print first, because it will be a builtin if present.
  3363. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3364.    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3365.   ECHO='print -r --'
  3366. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3367.   ECHO='printf %s\n'
  3368. else
  3369.   # Use this function as a fallback that always works.
  3370.   func_fallback_echo ()
  3371.   {
  3372.     eval 'cat <<_LTECHO_EOF
  3373. $1
  3374. _LTECHO_EOF'
  3375.   }
  3376.   ECHO='func_fallback_echo'
  3377. fi
  3378.  
  3379. # func_echo_all arg...
  3380. # Invoke $ECHO with all args, space-separated.
  3381. func_echo_all ()
  3382. {
  3383.     $ECHO ""
  3384. }
  3385.  
  3386. case "$ECHO" in
  3387.   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3388. $as_echo "printf" >&6; } ;;
  3389.   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3390. $as_echo "print -r" >&6; } ;;
  3391.   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3392. $as_echo "cat" >&6; } ;;
  3393. esac
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408. DEPDIR="${am__leading_dot}deps"
  3409.  
  3410. ac_config_commands="$ac_config_commands depfiles"
  3411.  
  3412.  
  3413. am_make=${MAKE-make}
  3414. cat > confinc << 'END'
  3415. am__doit:
  3416.         @echo this is the am__doit target
  3417. .PHONY: am__doit
  3418. END
  3419. # If we don't find an include directive, just comment out the code.
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3421. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3422. am__include="#"
  3423. am__quote=
  3424. _am_result=none
  3425. # First try GNU make style include.
  3426. echo "include confinc" > confmf
  3427. # Ignore all kinds of additional output from 'make'.
  3428. case `$am_make -s -f confmf 2> /dev/null` in #(
  3429. *the\ am__doit\ target*)
  3430.   am__include=include
  3431.   am__quote=
  3432.   _am_result=GNU
  3433.   ;;
  3434. esac
  3435. # Now try BSD make style include.
  3436. if test "$am__include" = "#"; then
  3437.    echo '.include "confinc"' > confmf
  3438.    case `$am_make -s -f confmf 2> /dev/null` in #(
  3439.    *the\ am__doit\ target*)
  3440.      am__include=.include
  3441.      am__quote="\""
  3442.      _am_result=BSD
  3443.      ;;
  3444.    esac
  3445. fi
  3446.  
  3447.  
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3449. $as_echo "$_am_result" >&6; }
  3450. rm -f confinc confmf
  3451.  
  3452. # Check whether --enable-dependency-tracking was given.
  3453. if test "${enable_dependency_tracking+set}" = set; then :
  3454.   enableval=$enable_dependency_tracking;
  3455. fi
  3456.  
  3457. if test "x$enable_dependency_tracking" != xno; then
  3458.   am_depcomp="$ac_aux_dir/depcomp"
  3459.   AMDEPBACKSLASH='\'
  3460.   am__nodep='_no'
  3461. fi
  3462.  if test "x$enable_dependency_tracking" != xno; then
  3463.   AMDEP_TRUE=
  3464.   AMDEP_FALSE='#'
  3465. else
  3466.   AMDEP_TRUE='#'
  3467.   AMDEP_FALSE=
  3468. fi
  3469.  
  3470.  
  3471. ac_ext=c
  3472. ac_cpp='$CPP $CPPFLAGS'
  3473. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3474. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3475. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3476. if test -n "$ac_tool_prefix"; then
  3477.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3478. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3480. $as_echo_n "checking for $ac_word... " >&6; }
  3481. if ${ac_cv_prog_CC+:} false; then :
  3482.   $as_echo_n "(cached) " >&6
  3483. else
  3484.   if test -n "$CC"; then
  3485.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3486. else
  3487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3488. for as_dir in $PATH
  3489. do
  3490.   IFS=$as_save_IFS
  3491.   test -z "$as_dir" && as_dir=.
  3492.     for ac_exec_ext in '' $ac_executable_extensions; do
  3493.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3494.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3495.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3496.     break 2
  3497.   fi
  3498. done
  3499.   done
  3500. IFS=$as_save_IFS
  3501.  
  3502. fi
  3503. fi
  3504. CC=$ac_cv_prog_CC
  3505. if test -n "$CC"; then
  3506.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3507. $as_echo "$CC" >&6; }
  3508. else
  3509.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3510. $as_echo "no" >&6; }
  3511. fi
  3512.  
  3513.  
  3514. fi
  3515. if test -z "$ac_cv_prog_CC"; then
  3516.   ac_ct_CC=$CC
  3517.   # Extract the first word of "gcc", so it can be a program name with args.
  3518. set dummy gcc; ac_word=$2
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3520. $as_echo_n "checking for $ac_word... " >&6; }
  3521. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3522.   $as_echo_n "(cached) " >&6
  3523. else
  3524.   if test -n "$ac_ct_CC"; then
  3525.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3526. else
  3527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3528. for as_dir in $PATH
  3529. do
  3530.   IFS=$as_save_IFS
  3531.   test -z "$as_dir" && as_dir=.
  3532.     for ac_exec_ext in '' $ac_executable_extensions; do
  3533.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3534.     ac_cv_prog_ac_ct_CC="gcc"
  3535.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3536.     break 2
  3537.   fi
  3538. done
  3539.   done
  3540. IFS=$as_save_IFS
  3541.  
  3542. fi
  3543. fi
  3544. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3545. if test -n "$ac_ct_CC"; then
  3546.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3547. $as_echo "$ac_ct_CC" >&6; }
  3548. else
  3549.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3550. $as_echo "no" >&6; }
  3551. fi
  3552.  
  3553.   if test "x$ac_ct_CC" = x; then
  3554.     CC=""
  3555.   else
  3556.     case $cross_compiling:$ac_tool_warned in
  3557. yes:)
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3559. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3560. ac_tool_warned=yes ;;
  3561. esac
  3562.     CC=$ac_ct_CC
  3563.   fi
  3564. else
  3565.   CC="$ac_cv_prog_CC"
  3566. fi
  3567.  
  3568. if test -z "$CC"; then
  3569.           if test -n "$ac_tool_prefix"; then
  3570.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3571. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3573. $as_echo_n "checking for $ac_word... " >&6; }
  3574. if ${ac_cv_prog_CC+:} false; then :
  3575.   $as_echo_n "(cached) " >&6
  3576. else
  3577.   if test -n "$CC"; then
  3578.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3579. else
  3580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3581. for as_dir in $PATH
  3582. do
  3583.   IFS=$as_save_IFS
  3584.   test -z "$as_dir" && as_dir=.
  3585.     for ac_exec_ext in '' $ac_executable_extensions; do
  3586.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3587.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3588.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3589.     break 2
  3590.   fi
  3591. done
  3592.   done
  3593. IFS=$as_save_IFS
  3594.  
  3595. fi
  3596. fi
  3597. CC=$ac_cv_prog_CC
  3598. if test -n "$CC"; then
  3599.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3600. $as_echo "$CC" >&6; }
  3601. else
  3602.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3603. $as_echo "no" >&6; }
  3604. fi
  3605.  
  3606.  
  3607.   fi
  3608. fi
  3609. if test -z "$CC"; then
  3610.   # Extract the first word of "cc", so it can be a program name with args.
  3611. set dummy cc; ac_word=$2
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3613. $as_echo_n "checking for $ac_word... " >&6; }
  3614. if ${ac_cv_prog_CC+:} false; then :
  3615.   $as_echo_n "(cached) " >&6
  3616. else
  3617.   if test -n "$CC"; then
  3618.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3619. else
  3620.   ac_prog_rejected=no
  3621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3622. for as_dir in $PATH
  3623. do
  3624.   IFS=$as_save_IFS
  3625.   test -z "$as_dir" && as_dir=.
  3626.     for ac_exec_ext in '' $ac_executable_extensions; do
  3627.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3628.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3629.        ac_prog_rejected=yes
  3630.        continue
  3631.      fi
  3632.     ac_cv_prog_CC="cc"
  3633.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3634.     break 2
  3635.   fi
  3636. done
  3637.   done
  3638. IFS=$as_save_IFS
  3639.  
  3640. if test $ac_prog_rejected = yes; then
  3641.   # We found a bogon in the path, so make sure we never use it.
  3642.   set dummy $ac_cv_prog_CC
  3643.   shift
  3644.   if test $# != 0; then
  3645.     # We chose a different compiler from the bogus one.
  3646.     # However, it has the same basename, so the bogon will be chosen
  3647.     # first if we set CC to just the basename; use the full file name.
  3648.     shift
  3649.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3650.   fi
  3651. fi
  3652. fi
  3653. fi
  3654. CC=$ac_cv_prog_CC
  3655. if test -n "$CC"; then
  3656.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3657. $as_echo "$CC" >&6; }
  3658. else
  3659.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3660. $as_echo "no" >&6; }
  3661. fi
  3662.  
  3663.  
  3664. fi
  3665. if test -z "$CC"; then
  3666.   if test -n "$ac_tool_prefix"; then
  3667.   for ac_prog in cl.exe
  3668.   do
  3669.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3670. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3672. $as_echo_n "checking for $ac_word... " >&6; }
  3673. if ${ac_cv_prog_CC+:} false; then :
  3674.   $as_echo_n "(cached) " >&6
  3675. else
  3676.   if test -n "$CC"; then
  3677.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3678. else
  3679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3680. for as_dir in $PATH
  3681. do
  3682.   IFS=$as_save_IFS
  3683.   test -z "$as_dir" && as_dir=.
  3684.     for ac_exec_ext in '' $ac_executable_extensions; do
  3685.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3686.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3687.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3688.     break 2
  3689.   fi
  3690. done
  3691.   done
  3692. IFS=$as_save_IFS
  3693.  
  3694. fi
  3695. fi
  3696. CC=$ac_cv_prog_CC
  3697. if test -n "$CC"; then
  3698.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3699. $as_echo "$CC" >&6; }
  3700. else
  3701.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3702. $as_echo "no" >&6; }
  3703. fi
  3704.  
  3705.  
  3706.     test -n "$CC" && break
  3707.   done
  3708. fi
  3709. if test -z "$CC"; then
  3710.   ac_ct_CC=$CC
  3711.   for ac_prog in cl.exe
  3712. do
  3713.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3714. set dummy $ac_prog; ac_word=$2
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3716. $as_echo_n "checking for $ac_word... " >&6; }
  3717. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3718.   $as_echo_n "(cached) " >&6
  3719. else
  3720.   if test -n "$ac_ct_CC"; then
  3721.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3722. else
  3723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3724. for as_dir in $PATH
  3725. do
  3726.   IFS=$as_save_IFS
  3727.   test -z "$as_dir" && as_dir=.
  3728.     for ac_exec_ext in '' $ac_executable_extensions; do
  3729.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3730.     ac_cv_prog_ac_ct_CC="$ac_prog"
  3731.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3732.     break 2
  3733.   fi
  3734. done
  3735.   done
  3736. IFS=$as_save_IFS
  3737.  
  3738. fi
  3739. fi
  3740. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3741. if test -n "$ac_ct_CC"; then
  3742.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3743. $as_echo "$ac_ct_CC" >&6; }
  3744. else
  3745.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3746. $as_echo "no" >&6; }
  3747. fi
  3748.  
  3749.  
  3750.   test -n "$ac_ct_CC" && break
  3751. done
  3752.  
  3753.   if test "x$ac_ct_CC" = x; then
  3754.     CC=""
  3755.   else
  3756.     case $cross_compiling:$ac_tool_warned in
  3757. yes:)
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3759. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3760. ac_tool_warned=yes ;;
  3761. esac
  3762.     CC=$ac_ct_CC
  3763.   fi
  3764. fi
  3765.  
  3766. fi
  3767.  
  3768.  
  3769. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3770. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3771. as_fn_error $? "no acceptable C compiler found in \$PATH
  3772. See \`config.log' for more details" "$LINENO" 5; }
  3773.  
  3774. # Provide some information about the compiler.
  3775. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3776. set X $ac_compile
  3777. ac_compiler=$2
  3778. for ac_option in --version -v -V -qversion; do
  3779.   { { ac_try="$ac_compiler $ac_option >&5"
  3780. case "(($ac_try" in
  3781.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3782.   *) ac_try_echo=$ac_try;;
  3783. esac
  3784. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3785. $as_echo "$ac_try_echo"; } >&5
  3786.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3787.   ac_status=$?
  3788.   if test -s conftest.err; then
  3789.     sed '10a\
  3790. ... rest of stderr output deleted ...
  3791.          10q' conftest.err >conftest.er1
  3792.     cat conftest.er1 >&5
  3793.   fi
  3794.   rm -f conftest.er1 conftest.err
  3795.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3796.   test $ac_status = 0; }
  3797. done
  3798.  
  3799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3800. /* end confdefs.h.  */
  3801.  
  3802. int
  3803. main ()
  3804. {
  3805.  
  3806.   ;
  3807.   return 0;
  3808. }
  3809. _ACEOF
  3810. ac_clean_files_save=$ac_clean_files
  3811. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3812. # Try to create an executable without -o first, disregard a.out.
  3813. # It will help us diagnose broken compilers, and finding out an intuition
  3814. # of exeext.
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3816. $as_echo_n "checking whether the C compiler works... " >&6; }
  3817. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3818.  
  3819. # The possible output files:
  3820. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3821.  
  3822. ac_rmfiles=
  3823. for ac_file in $ac_files
  3824. do
  3825.   case $ac_file in
  3826.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3827.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3828.   esac
  3829. done
  3830. rm -f $ac_rmfiles
  3831.  
  3832. if { { ac_try="$ac_link_default"
  3833. case "(($ac_try" in
  3834.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3835.   *) ac_try_echo=$ac_try;;
  3836. esac
  3837. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3838. $as_echo "$ac_try_echo"; } >&5
  3839.   (eval "$ac_link_default") 2>&5
  3840.   ac_status=$?
  3841.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3842.   test $ac_status = 0; }; then :
  3843.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3844. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3845. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3846. # so that the user can short-circuit this test for compilers unknown to
  3847. # Autoconf.
  3848. for ac_file in $ac_files ''
  3849. do
  3850.   test -f "$ac_file" || continue
  3851.   case $ac_file in
  3852.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3853.         ;;
  3854.     [ab].out )
  3855.         # We found the default executable, but exeext='' is most
  3856.         # certainly right.
  3857.         break;;
  3858.     *.* )
  3859.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3860.         then :; else
  3861.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3862.         fi
  3863.         # We set ac_cv_exeext here because the later test for it is not
  3864.         # safe: cross compilers may not add the suffix if given an `-o'
  3865.         # argument, so we may need to know it at that point already.
  3866.         # Even if this section looks crufty: it has the advantage of
  3867.         # actually working.
  3868.         break;;
  3869.     * )
  3870.         break;;
  3871.   esac
  3872. done
  3873. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3874.  
  3875. else
  3876.   ac_file=''
  3877. fi
  3878. if test -z "$ac_file"; then :
  3879.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3880. $as_echo "no" >&6; }
  3881. $as_echo "$as_me: failed program was:" >&5
  3882. sed 's/^/| /' conftest.$ac_ext >&5
  3883.  
  3884. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3885. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3886. as_fn_error 77 "C compiler cannot create executables
  3887. See \`config.log' for more details" "$LINENO" 5; }
  3888. else
  3889.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3890. $as_echo "yes" >&6; }
  3891. fi
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3893. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3895. $as_echo "$ac_file" >&6; }
  3896. ac_exeext=$ac_cv_exeext
  3897.  
  3898. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3899. ac_clean_files=$ac_clean_files_save
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3901. $as_echo_n "checking for suffix of executables... " >&6; }
  3902. if { { ac_try="$ac_link"
  3903. case "(($ac_try" in
  3904.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3905.   *) ac_try_echo=$ac_try;;
  3906. esac
  3907. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3908. $as_echo "$ac_try_echo"; } >&5
  3909.   (eval "$ac_link") 2>&5
  3910.   ac_status=$?
  3911.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3912.   test $ac_status = 0; }; then :
  3913.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3914. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3915. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3916. # `rm'.
  3917. for ac_file in conftest.exe conftest conftest.*; do
  3918.   test -f "$ac_file" || continue
  3919.   case $ac_file in
  3920.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3921.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3922.           break;;
  3923.     * ) break;;
  3924.   esac
  3925. done
  3926. else
  3927.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3928. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3929. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3930. See \`config.log' for more details" "$LINENO" 5; }
  3931. fi
  3932. rm -f conftest conftest$ac_cv_exeext
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3934. $as_echo "$ac_cv_exeext" >&6; }
  3935.  
  3936. rm -f conftest.$ac_ext
  3937. EXEEXT=$ac_cv_exeext
  3938. ac_exeext=$EXEEXT
  3939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3940. /* end confdefs.h.  */
  3941. #include <stdio.h>
  3942. int
  3943. main ()
  3944. {
  3945. FILE *f = fopen ("conftest.out", "w");
  3946.  return ferror (f) || fclose (f) != 0;
  3947.  
  3948.   ;
  3949.   return 0;
  3950. }
  3951. _ACEOF
  3952. ac_clean_files="$ac_clean_files conftest.out"
  3953. # Check that the compiler produces executables we can run.  If not, either
  3954. # the compiler is broken, or we cross compile.
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3956. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3957. if test "$cross_compiling" != yes; then
  3958.   { { ac_try="$ac_link"
  3959. case "(($ac_try" in
  3960.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3961.   *) ac_try_echo=$ac_try;;
  3962. esac
  3963. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3964. $as_echo "$ac_try_echo"; } >&5
  3965.   (eval "$ac_link") 2>&5
  3966.   ac_status=$?
  3967.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3968.   test $ac_status = 0; }
  3969.   if { ac_try='./conftest$ac_cv_exeext'
  3970.   { { case "(($ac_try" in
  3971.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3972.   *) ac_try_echo=$ac_try;;
  3973. esac
  3974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3975. $as_echo "$ac_try_echo"; } >&5
  3976.   (eval "$ac_try") 2>&5
  3977.   ac_status=$?
  3978.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3979.   test $ac_status = 0; }; }; then
  3980.     cross_compiling=no
  3981.   else
  3982.     if test "$cross_compiling" = maybe; then
  3983.         cross_compiling=yes
  3984.     else
  3985.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3986. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3987. as_fn_error $? "cannot run C compiled programs.
  3988. If you meant to cross compile, use \`--host'.
  3989. See \`config.log' for more details" "$LINENO" 5; }
  3990.     fi
  3991.   fi
  3992. fi
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3994. $as_echo "$cross_compiling" >&6; }
  3995.  
  3996. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3997. ac_clean_files=$ac_clean_files_save
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3999. $as_echo_n "checking for suffix of object files... " >&6; }
  4000. if ${ac_cv_objext+:} false; then :
  4001.   $as_echo_n "(cached) " >&6
  4002. else
  4003.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4004. /* end confdefs.h.  */
  4005.  
  4006. int
  4007. main ()
  4008. {
  4009.  
  4010.   ;
  4011.   return 0;
  4012. }
  4013. _ACEOF
  4014. rm -f conftest.o conftest.obj
  4015. if { { ac_try="$ac_compile"
  4016. case "(($ac_try" in
  4017.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4018.   *) ac_try_echo=$ac_try;;
  4019. esac
  4020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4021. $as_echo "$ac_try_echo"; } >&5
  4022.   (eval "$ac_compile") 2>&5
  4023.   ac_status=$?
  4024.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4025.   test $ac_status = 0; }; then :
  4026.   for ac_file in conftest.o conftest.obj conftest.*; do
  4027.   test -f "$ac_file" || continue;
  4028.   case $ac_file in
  4029.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4030.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4031.        break;;
  4032.   esac
  4033. done
  4034. else
  4035.   $as_echo "$as_me: failed program was:" >&5
  4036. sed 's/^/| /' conftest.$ac_ext >&5
  4037.  
  4038. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4039. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4040. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4041. See \`config.log' for more details" "$LINENO" 5; }
  4042. fi
  4043. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4046. $as_echo "$ac_cv_objext" >&6; }
  4047. OBJEXT=$ac_cv_objext
  4048. ac_objext=$OBJEXT
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4050. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4051. if ${ac_cv_c_compiler_gnu+:} false; then :
  4052.   $as_echo_n "(cached) " >&6
  4053. else
  4054.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4055. /* end confdefs.h.  */
  4056.  
  4057. int
  4058. main ()
  4059. {
  4060. #ifndef __GNUC__
  4061.        choke me
  4062. #endif
  4063.  
  4064.   ;
  4065.   return 0;
  4066. }
  4067. _ACEOF
  4068. if ac_fn_c_try_compile "$LINENO"; then :
  4069.   ac_compiler_gnu=yes
  4070. else
  4071.   ac_compiler_gnu=no
  4072. fi
  4073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4074. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4075.  
  4076. fi
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4078. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4079. if test $ac_compiler_gnu = yes; then
  4080.   GCC=yes
  4081. else
  4082.   GCC=
  4083. fi
  4084. ac_test_CFLAGS=${CFLAGS+set}
  4085. ac_save_CFLAGS=$CFLAGS
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4087. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4088. if ${ac_cv_prog_cc_g+:} false; then :
  4089.   $as_echo_n "(cached) " >&6
  4090. else
  4091.   ac_save_c_werror_flag=$ac_c_werror_flag
  4092.    ac_c_werror_flag=yes
  4093.    ac_cv_prog_cc_g=no
  4094.    CFLAGS="-g"
  4095.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4096. /* end confdefs.h.  */
  4097.  
  4098. int
  4099. main ()
  4100. {
  4101.  
  4102.   ;
  4103.   return 0;
  4104. }
  4105. _ACEOF
  4106. if ac_fn_c_try_compile "$LINENO"; then :
  4107.   ac_cv_prog_cc_g=yes
  4108. else
  4109.   CFLAGS=""
  4110.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4111. /* end confdefs.h.  */
  4112.  
  4113. int
  4114. main ()
  4115. {
  4116.  
  4117.   ;
  4118.   return 0;
  4119. }
  4120. _ACEOF
  4121. if ac_fn_c_try_compile "$LINENO"; then :
  4122.  
  4123. else
  4124.   ac_c_werror_flag=$ac_save_c_werror_flag
  4125.          CFLAGS="-g"
  4126.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4127. /* end confdefs.h.  */
  4128.  
  4129. int
  4130. main ()
  4131. {
  4132.  
  4133.   ;
  4134.   return 0;
  4135. }
  4136. _ACEOF
  4137. if ac_fn_c_try_compile "$LINENO"; then :
  4138.   ac_cv_prog_cc_g=yes
  4139. fi
  4140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4141. fi
  4142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4143. fi
  4144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4145.    ac_c_werror_flag=$ac_save_c_werror_flag
  4146. fi
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4148. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4149. if test "$ac_test_CFLAGS" = set; then
  4150.   CFLAGS=$ac_save_CFLAGS
  4151. elif test $ac_cv_prog_cc_g = yes; then
  4152.   if test "$GCC" = yes; then
  4153.     CFLAGS="-g -O2"
  4154.   else
  4155.     CFLAGS="-g"
  4156.   fi
  4157. else
  4158.   if test "$GCC" = yes; then
  4159.     CFLAGS="-O2"
  4160.   else
  4161.     CFLAGS=
  4162.   fi
  4163. fi
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4165. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4166. if ${ac_cv_prog_cc_c89+:} false; then :
  4167.   $as_echo_n "(cached) " >&6
  4168. else
  4169.   ac_cv_prog_cc_c89=no
  4170. ac_save_CC=$CC
  4171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4172. /* end confdefs.h.  */
  4173. #include <stdarg.h>
  4174. #include <stdio.h>
  4175. struct stat;
  4176. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4177. struct buf { int x; };
  4178. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4179. static char *e (p, i)
  4180.      char **p;
  4181.      int i;
  4182. {
  4183.   return p[i];
  4184. }
  4185. static char *f (char * (*g) (char **, int), char **p, ...)
  4186. {
  4187.   char *s;
  4188.   va_list v;
  4189.   va_start (v,p);
  4190.   s = g (p, va_arg (v,int));
  4191.   va_end (v);
  4192.   return s;
  4193. }
  4194.  
  4195. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4196.    function prototypes and stuff, but not '\xHH' hex character constants.
  4197.    These don't provoke an error unfortunately, instead are silently treated
  4198.    as 'x'.  The following induces an error, until -std is added to get
  4199.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4200.    array size at least.  It's necessary to write '\x00'==0 to get something
  4201.    that's true only with -std.  */
  4202. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4203.  
  4204. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4205.    inside strings and character constants.  */
  4206. #define FOO(x) 'x'
  4207. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4208.  
  4209. int test (int i, double x);
  4210. struct s1 {int (*f) (int a);};
  4211. struct s2 {int (*f) (double a);};
  4212. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4213. int argc;
  4214. char **argv;
  4215. int
  4216. main ()
  4217. {
  4218. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4219.   ;
  4220.   return 0;
  4221. }
  4222. _ACEOF
  4223. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4224.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4225. do
  4226.   CC="$ac_save_CC $ac_arg"
  4227.   if ac_fn_c_try_compile "$LINENO"; then :
  4228.   ac_cv_prog_cc_c89=$ac_arg
  4229. fi
  4230. rm -f core conftest.err conftest.$ac_objext
  4231.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4232. done
  4233. rm -f conftest.$ac_ext
  4234. CC=$ac_save_CC
  4235.  
  4236. fi
  4237. # AC_CACHE_VAL
  4238. case "x$ac_cv_prog_cc_c89" in
  4239.   x)
  4240.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4241. $as_echo "none needed" >&6; } ;;
  4242.   xno)
  4243.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4244. $as_echo "unsupported" >&6; } ;;
  4245.   *)
  4246.     CC="$CC $ac_cv_prog_cc_c89"
  4247.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4248. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4249. esac
  4250. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4251.  
  4252. fi
  4253.  
  4254. ac_ext=c
  4255. ac_cpp='$CPP $CPPFLAGS'
  4256. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4257. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4258. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4259.  
  4260. ac_ext=c
  4261. ac_cpp='$CPP $CPPFLAGS'
  4262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4266. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4267. if ${am_cv_prog_cc_c_o+:} false; then :
  4268.   $as_echo_n "(cached) " >&6
  4269. else
  4270.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4271. /* end confdefs.h.  */
  4272.  
  4273. int
  4274. main ()
  4275. {
  4276.  
  4277.   ;
  4278.   return 0;
  4279. }
  4280. _ACEOF
  4281.   # Make sure it works both with $CC and with simple cc.
  4282.   # Following AC_PROG_CC_C_O, we do the test twice because some
  4283.   # compilers refuse to overwrite an existing .o file with -o,
  4284.   # though they will create one.
  4285.   am_cv_prog_cc_c_o=yes
  4286.   for am_i in 1 2; do
  4287.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4288.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4289.    ac_status=$?
  4290.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4291.    (exit $ac_status); } \
  4292.          && test -f conftest2.$ac_objext; then
  4293.       : OK
  4294.     else
  4295.       am_cv_prog_cc_c_o=no
  4296.       break
  4297.     fi
  4298.   done
  4299.   rm -f core conftest*
  4300.   unset am_i
  4301. fi
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4303. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4304. if test "$am_cv_prog_cc_c_o" != yes; then
  4305.    # Losing compiler, so override with the script.
  4306.    # FIXME: It is wrong to rewrite CC.
  4307.    # But if we don't then we get into trouble of one sort or another.
  4308.    # A longer-term fix would be to have automake use am__CC in this case,
  4309.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4310.    CC="$am_aux_dir/compile $CC"
  4311. fi
  4312. ac_ext=c
  4313. ac_cpp='$CPP $CPPFLAGS'
  4314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4317.  
  4318.  
  4319. depcc="$CC"   am_compiler_list=
  4320.  
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4322. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4323. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4324.   $as_echo_n "(cached) " >&6
  4325. else
  4326.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4327.   # We make a subdir and do the tests there.  Otherwise we can end up
  4328.   # making bogus files that we don't know about and never remove.  For
  4329.   # instance it was reported that on HP-UX the gcc test will end up
  4330.   # making a dummy file named 'D' -- because '-MD' means "put the output
  4331.   # in D".
  4332.   rm -rf conftest.dir
  4333.   mkdir conftest.dir
  4334.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4335.   # using a relative directory.
  4336.   cp "$am_depcomp" conftest.dir
  4337.   cd conftest.dir
  4338.   # We will build objects and dependencies in a subdirectory because
  4339.   # it helps to detect inapplicable dependency modes.  For instance
  4340.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4341.   # side effect of compilation, but ICC will put the dependencies in
  4342.   # the current directory while Tru64 will put them in the object
  4343.   # directory.
  4344.   mkdir sub
  4345.  
  4346.   am_cv_CC_dependencies_compiler_type=none
  4347.   if test "$am_compiler_list" = ""; then
  4348.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4349.   fi
  4350.   am__universal=false
  4351.   case " $depcc " in #(
  4352.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4353.      esac
  4354.  
  4355.   for depmode in $am_compiler_list; do
  4356.     # Setup a source with many dependencies, because some compilers
  4357.     # like to wrap large dependency lists on column 80 (with \), and
  4358.     # we should not choose a depcomp mode which is confused by this.
  4359.     #
  4360.     # We need to recreate these files for each test, as the compiler may
  4361.     # overwrite some of them when testing with obscure command lines.
  4362.     # This happens at least with the AIX C compiler.
  4363.     : > sub/conftest.c
  4364.     for i in 1 2 3 4 5 6; do
  4365.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4366.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4367.       # Solaris 10 /bin/sh.
  4368.       echo '/* dummy */' > sub/conftst$i.h
  4369.     done
  4370.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4371.  
  4372.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4373.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4374.     # handle '-M -o', and we need to detect this.  Also, some Intel
  4375.     # versions had trouble with output in subdirs.
  4376.     am__obj=sub/conftest.${OBJEXT-o}
  4377.     am__minus_obj="-o $am__obj"
  4378.     case $depmode in
  4379.     gcc)
  4380.       # This depmode causes a compiler race in universal mode.
  4381.       test "$am__universal" = false || continue
  4382.       ;;
  4383.     nosideeffect)
  4384.       # After this tag, mechanisms are not by side-effect, so they'll
  4385.       # only be used when explicitly requested.
  4386.       if test "x$enable_dependency_tracking" = xyes; then
  4387.         continue
  4388.       else
  4389.         break
  4390.       fi
  4391.       ;;
  4392.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4393.       # This compiler won't grok '-c -o', but also, the minuso test has
  4394.       # not run yet.  These depmodes are late enough in the game, and
  4395.       # so weak that their functioning should not be impacted.
  4396.       am__obj=conftest.${OBJEXT-o}
  4397.       am__minus_obj=
  4398.       ;;
  4399.     none) break ;;
  4400.     esac
  4401.     if depmode=$depmode \
  4402.        source=sub/conftest.c object=$am__obj \
  4403.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4404.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4405.          >/dev/null 2>conftest.err &&
  4406.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4407.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4408.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4409.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4410.       # icc doesn't choke on unknown options, it will just issue warnings
  4411.       # or remarks (even with -Werror).  So we grep stderr for any message
  4412.       # that says an option was ignored or not supported.
  4413.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4414.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4415.       # The diagnosis changed in icc 8.0:
  4416.       #   icc: Command line remark: option '-MP' not supported
  4417.       if (grep 'ignoring option' conftest.err ||
  4418.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4419.         am_cv_CC_dependencies_compiler_type=$depmode
  4420.         break
  4421.       fi
  4422.     fi
  4423.   done
  4424.  
  4425.   cd ..
  4426.   rm -rf conftest.dir
  4427. else
  4428.   am_cv_CC_dependencies_compiler_type=none
  4429. fi
  4430.  
  4431. fi
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4433. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4434. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4435.  
  4436.  if
  4437.   test "x$enable_dependency_tracking" != xno \
  4438.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4439.   am__fastdepCC_TRUE=
  4440.   am__fastdepCC_FALSE='#'
  4441. else
  4442.   am__fastdepCC_TRUE='#'
  4443.   am__fastdepCC_FALSE=
  4444. fi
  4445.  
  4446.  
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4448. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4449. if ${ac_cv_path_SED+:} false; then :
  4450.   $as_echo_n "(cached) " >&6
  4451. else
  4452.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4453.      for ac_i in 1 2 3 4 5 6 7; do
  4454.        ac_script="$ac_script$as_nl$ac_script"
  4455.      done
  4456.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4457.      { ac_script=; unset ac_script;}
  4458.      if test -z "$SED"; then
  4459.   ac_path_SED_found=false
  4460.   # Loop through the user's path and test for each of PROGNAME-LIST
  4461.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4462. for as_dir in $PATH
  4463. do
  4464.   IFS=$as_save_IFS
  4465.   test -z "$as_dir" && as_dir=.
  4466.     for ac_prog in sed gsed; do
  4467.     for ac_exec_ext in '' $ac_executable_extensions; do
  4468.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4469.       as_fn_executable_p "$ac_path_SED" || continue
  4470. # Check for GNU ac_path_SED and select it if it is found.
  4471.   # Check for GNU $ac_path_SED
  4472. case `"$ac_path_SED" --version 2>&1` in
  4473. *GNU*)
  4474.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4475. *)
  4476.   ac_count=0
  4477.   $as_echo_n 0123456789 >"conftest.in"
  4478.   while :
  4479.   do
  4480.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4481.     mv "conftest.tmp" "conftest.in"
  4482.     cp "conftest.in" "conftest.nl"
  4483.     $as_echo '' >> "conftest.nl"
  4484.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4485.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4486.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4487.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  4488.       # Best one so far, save it but keep looking for a better one
  4489.       ac_cv_path_SED="$ac_path_SED"
  4490.       ac_path_SED_max=$ac_count
  4491.     fi
  4492.     # 10*(2^10) chars as input seems more than enough
  4493.     test $ac_count -gt 10 && break
  4494.   done
  4495.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4496. esac
  4497.  
  4498.       $ac_path_SED_found && break 3
  4499.     done
  4500.   done
  4501.   done
  4502. IFS=$as_save_IFS
  4503.   if test -z "$ac_cv_path_SED"; then
  4504.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4505.   fi
  4506. else
  4507.   ac_cv_path_SED=$SED
  4508. fi
  4509.  
  4510. fi
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4512. $as_echo "$ac_cv_path_SED" >&6; }
  4513.  SED="$ac_cv_path_SED"
  4514.   rm -f conftest.sed
  4515.  
  4516. test -z "$SED" && SED=sed
  4517. Xsed="$SED -e 1s/^X//"
  4518.  
  4519.  
  4520.  
  4521.  
  4522.  
  4523.  
  4524.  
  4525.  
  4526.  
  4527.  
  4528.  
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4530. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4531. if ${ac_cv_path_GREP+:} false; then :
  4532.   $as_echo_n "(cached) " >&6
  4533. else
  4534.   if test -z "$GREP"; then
  4535.   ac_path_GREP_found=false
  4536.   # Loop through the user's path and test for each of PROGNAME-LIST
  4537.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4538. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4539. do
  4540.   IFS=$as_save_IFS
  4541.   test -z "$as_dir" && as_dir=.
  4542.     for ac_prog in grep ggrep; do
  4543.     for ac_exec_ext in '' $ac_executable_extensions; do
  4544.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4545.       as_fn_executable_p "$ac_path_GREP" || continue
  4546. # Check for GNU ac_path_GREP and select it if it is found.
  4547.   # Check for GNU $ac_path_GREP
  4548. case `"$ac_path_GREP" --version 2>&1` in
  4549. *GNU*)
  4550.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4551. *)
  4552.   ac_count=0
  4553.   $as_echo_n 0123456789 >"conftest.in"
  4554.   while :
  4555.   do
  4556.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4557.     mv "conftest.tmp" "conftest.in"
  4558.     cp "conftest.in" "conftest.nl"
  4559.     $as_echo 'GREP' >> "conftest.nl"
  4560.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4561.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4562.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4563.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4564.       # Best one so far, save it but keep looking for a better one
  4565.       ac_cv_path_GREP="$ac_path_GREP"
  4566.       ac_path_GREP_max=$ac_count
  4567.     fi
  4568.     # 10*(2^10) chars as input seems more than enough
  4569.     test $ac_count -gt 10 && break
  4570.   done
  4571.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4572. esac
  4573.  
  4574.       $ac_path_GREP_found && break 3
  4575.     done
  4576.   done
  4577.   done
  4578. IFS=$as_save_IFS
  4579.   if test -z "$ac_cv_path_GREP"; then
  4580.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4581.   fi
  4582. else
  4583.   ac_cv_path_GREP=$GREP
  4584. fi
  4585.  
  4586. fi
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4588. $as_echo "$ac_cv_path_GREP" >&6; }
  4589.  GREP="$ac_cv_path_GREP"
  4590.  
  4591.  
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4593. $as_echo_n "checking for egrep... " >&6; }
  4594. if ${ac_cv_path_EGREP+:} false; then :
  4595.   $as_echo_n "(cached) " >&6
  4596. else
  4597.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4598.    then ac_cv_path_EGREP="$GREP -E"
  4599.    else
  4600.      if test -z "$EGREP"; then
  4601.   ac_path_EGREP_found=false
  4602.   # Loop through the user's path and test for each of PROGNAME-LIST
  4603.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4604. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4605. do
  4606.   IFS=$as_save_IFS
  4607.   test -z "$as_dir" && as_dir=.
  4608.     for ac_prog in egrep; do
  4609.     for ac_exec_ext in '' $ac_executable_extensions; do
  4610.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4611.       as_fn_executable_p "$ac_path_EGREP" || continue
  4612. # Check for GNU ac_path_EGREP and select it if it is found.
  4613.   # Check for GNU $ac_path_EGREP
  4614. case `"$ac_path_EGREP" --version 2>&1` in
  4615. *GNU*)
  4616.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4617. *)
  4618.   ac_count=0
  4619.   $as_echo_n 0123456789 >"conftest.in"
  4620.   while :
  4621.   do
  4622.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4623.     mv "conftest.tmp" "conftest.in"
  4624.     cp "conftest.in" "conftest.nl"
  4625.     $as_echo 'EGREP' >> "conftest.nl"
  4626.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4627.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4628.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4629.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4630.       # Best one so far, save it but keep looking for a better one
  4631.       ac_cv_path_EGREP="$ac_path_EGREP"
  4632.       ac_path_EGREP_max=$ac_count
  4633.     fi
  4634.     # 10*(2^10) chars as input seems more than enough
  4635.     test $ac_count -gt 10 && break
  4636.   done
  4637.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4638. esac
  4639.  
  4640.       $ac_path_EGREP_found && break 3
  4641.     done
  4642.   done
  4643.   done
  4644. IFS=$as_save_IFS
  4645.   if test -z "$ac_cv_path_EGREP"; then
  4646.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4647.   fi
  4648. else
  4649.   ac_cv_path_EGREP=$EGREP
  4650. fi
  4651.  
  4652.    fi
  4653. fi
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4655. $as_echo "$ac_cv_path_EGREP" >&6; }
  4656.  EGREP="$ac_cv_path_EGREP"
  4657.  
  4658.  
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4660. $as_echo_n "checking for fgrep... " >&6; }
  4661. if ${ac_cv_path_FGREP+:} false; then :
  4662.   $as_echo_n "(cached) " >&6
  4663. else
  4664.   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4665.    then ac_cv_path_FGREP="$GREP -F"
  4666.    else
  4667.      if test -z "$FGREP"; then
  4668.   ac_path_FGREP_found=false
  4669.   # Loop through the user's path and test for each of PROGNAME-LIST
  4670.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4671. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4672. do
  4673.   IFS=$as_save_IFS
  4674.   test -z "$as_dir" && as_dir=.
  4675.     for ac_prog in fgrep; do
  4676.     for ac_exec_ext in '' $ac_executable_extensions; do
  4677.       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4678.       as_fn_executable_p "$ac_path_FGREP" || continue
  4679. # Check for GNU ac_path_FGREP and select it if it is found.
  4680.   # Check for GNU $ac_path_FGREP
  4681. case `"$ac_path_FGREP" --version 2>&1` in
  4682. *GNU*)
  4683.   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4684. *)
  4685.   ac_count=0
  4686.   $as_echo_n 0123456789 >"conftest.in"
  4687.   while :
  4688.   do
  4689.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4690.     mv "conftest.tmp" "conftest.in"
  4691.     cp "conftest.in" "conftest.nl"
  4692.     $as_echo 'FGREP' >> "conftest.nl"
  4693.     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4694.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4695.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4696.     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4697.       # Best one so far, save it but keep looking for a better one
  4698.       ac_cv_path_FGREP="$ac_path_FGREP"
  4699.       ac_path_FGREP_max=$ac_count
  4700.     fi
  4701.     # 10*(2^10) chars as input seems more than enough
  4702.     test $ac_count -gt 10 && break
  4703.   done
  4704.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4705. esac
  4706.  
  4707.       $ac_path_FGREP_found && break 3
  4708.     done
  4709.   done
  4710.   done
  4711. IFS=$as_save_IFS
  4712.   if test -z "$ac_cv_path_FGREP"; then
  4713.     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4714.   fi
  4715. else
  4716.   ac_cv_path_FGREP=$FGREP
  4717. fi
  4718.  
  4719.    fi
  4720. fi
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4722. $as_echo "$ac_cv_path_FGREP" >&6; }
  4723.  FGREP="$ac_cv_path_FGREP"
  4724.  
  4725.  
  4726. test -z "$GREP" && GREP=grep
  4727.  
  4728.  
  4729.  
  4730.  
  4731.  
  4732.  
  4733.  
  4734.  
  4735.  
  4736.  
  4737.  
  4738.  
  4739.  
  4740.  
  4741.  
  4742.  
  4743.  
  4744.  
  4745.  
  4746. # Check whether --with-gnu-ld was given.
  4747. if test "${with_gnu_ld+set}" = set; then :
  4748.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4749. else
  4750.   with_gnu_ld=no
  4751. fi
  4752.  
  4753. ac_prog=ld
  4754. if test "$GCC" = yes; then
  4755.   # Check if gcc -print-prog-name=ld gives a path.
  4756.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4757. $as_echo_n "checking for ld used by $CC... " >&6; }
  4758.   case $host in
  4759.   *-*-mingw*)
  4760.     # gcc leaves a trailing carriage return which upsets mingw
  4761.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4762.   *)
  4763.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4764.   esac
  4765.   case $ac_prog in
  4766.     # Accept absolute paths.
  4767.     [\\/]* | ?:[\\/]*)
  4768.       re_direlt='/[^/][^/]*/\.\./'
  4769.       # Canonicalize the pathname of ld
  4770.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4771.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4772.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4773.       done
  4774.       test -z "$LD" && LD="$ac_prog"
  4775.       ;;
  4776.   "")
  4777.     # If it fails, then pretend we aren't using GCC.
  4778.     ac_prog=ld
  4779.     ;;
  4780.   *)
  4781.     # If it is relative, then search for the first ld in PATH.
  4782.     with_gnu_ld=unknown
  4783.     ;;
  4784.   esac
  4785. elif test "$with_gnu_ld" = yes; then
  4786.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4787. $as_echo_n "checking for GNU ld... " >&6; }
  4788. else
  4789.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4790. $as_echo_n "checking for non-GNU ld... " >&6; }
  4791. fi
  4792. if ${lt_cv_path_LD+:} false; then :
  4793.   $as_echo_n "(cached) " >&6
  4794. else
  4795.   if test -z "$LD"; then
  4796.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4797.   for ac_dir in $PATH; do
  4798.     IFS="$lt_save_ifs"
  4799.     test -z "$ac_dir" && ac_dir=.
  4800.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4801.       lt_cv_path_LD="$ac_dir/$ac_prog"
  4802.       # Check to see if the program is GNU ld.  I'd rather use --version,
  4803.       # but apparently some variants of GNU ld only accept -v.
  4804.       # Break only if it was the GNU/non-GNU ld that we prefer.
  4805.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4806.       *GNU* | *'with BFD'*)
  4807.         test "$with_gnu_ld" != no && break
  4808.         ;;
  4809.       *)
  4810.         test "$with_gnu_ld" != yes && break
  4811.         ;;
  4812.       esac
  4813.     fi
  4814.   done
  4815.   IFS="$lt_save_ifs"
  4816. else
  4817.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4818. fi
  4819. fi
  4820.  
  4821. LD="$lt_cv_path_LD"
  4822. if test -n "$LD"; then
  4823.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4824. $as_echo "$LD" >&6; }
  4825. else
  4826.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4827. $as_echo "no" >&6; }
  4828. fi
  4829. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4831. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4832. if ${lt_cv_prog_gnu_ld+:} false; then :
  4833.   $as_echo_n "(cached) " >&6
  4834. else
  4835.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4836. case `$LD -v 2>&1 </dev/null` in
  4837. *GNU* | *'with BFD'*)
  4838.   lt_cv_prog_gnu_ld=yes
  4839.   ;;
  4840. *)
  4841.   lt_cv_prog_gnu_ld=no
  4842.   ;;
  4843. esac
  4844. fi
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4846. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4847. with_gnu_ld=$lt_cv_prog_gnu_ld
  4848.  
  4849.  
  4850.  
  4851.  
  4852.  
  4853.  
  4854.  
  4855.  
  4856.  
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4858. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4859. if ${lt_cv_path_NM+:} false; then :
  4860.   $as_echo_n "(cached) " >&6
  4861. else
  4862.   if test -n "$NM"; then
  4863.   # Let the user override the test.
  4864.   lt_cv_path_NM="$NM"
  4865. else
  4866.   lt_nm_to_check="${ac_tool_prefix}nm"
  4867.   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4868.     lt_nm_to_check="$lt_nm_to_check nm"
  4869.   fi
  4870.   for lt_tmp_nm in $lt_nm_to_check; do
  4871.     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4872.     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4873.       IFS="$lt_save_ifs"
  4874.       test -z "$ac_dir" && ac_dir=.
  4875.       tmp_nm="$ac_dir/$lt_tmp_nm"
  4876.       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4877.         # Check to see if the nm accepts a BSD-compat flag.
  4878.         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4879.         #   nm: unknown option "B" ignored
  4880.         # Tru64's nm complains that /dev/null is an invalid object file
  4881.         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4882.         */dev/null* | *'Invalid file or object type'*)
  4883.           lt_cv_path_NM="$tmp_nm -B"
  4884.           break
  4885.           ;;
  4886.         *)
  4887.           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4888.           */dev/null*)
  4889.             lt_cv_path_NM="$tmp_nm -p"
  4890.             break
  4891.             ;;
  4892.           *)
  4893.             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4894.             continue # so that we can try to find one that supports BSD flags
  4895.             ;;
  4896.           esac
  4897.           ;;
  4898.         esac
  4899.       fi
  4900.     done
  4901.     IFS="$lt_save_ifs"
  4902.   done
  4903.   : ${lt_cv_path_NM=no}
  4904. fi
  4905. fi
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4907. $as_echo "$lt_cv_path_NM" >&6; }
  4908. if test "$lt_cv_path_NM" != "no"; then
  4909.   NM="$lt_cv_path_NM"
  4910. else
  4911.   # Didn't find any BSD compatible name lister, look for dumpbin.
  4912.   if test -n "$DUMPBIN"; then :
  4913.     # Let the user override the test.
  4914.   else
  4915.     if test -n "$ac_tool_prefix"; then
  4916.   for ac_prog in dumpbin "link -dump"
  4917.   do
  4918.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4919. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4921. $as_echo_n "checking for $ac_word... " >&6; }
  4922. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4923.   $as_echo_n "(cached) " >&6
  4924. else
  4925.   if test -n "$DUMPBIN"; then
  4926.   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4927. else
  4928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4929. for as_dir in $PATH
  4930. do
  4931.   IFS=$as_save_IFS
  4932.   test -z "$as_dir" && as_dir=.
  4933.     for ac_exec_ext in '' $ac_executable_extensions; do
  4934.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4935.     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4936.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4937.     break 2
  4938.   fi
  4939. done
  4940.   done
  4941. IFS=$as_save_IFS
  4942.  
  4943. fi
  4944. fi
  4945. DUMPBIN=$ac_cv_prog_DUMPBIN
  4946. if test -n "$DUMPBIN"; then
  4947.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4948. $as_echo "$DUMPBIN" >&6; }
  4949. else
  4950.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4951. $as_echo "no" >&6; }
  4952. fi
  4953.  
  4954.  
  4955.     test -n "$DUMPBIN" && break
  4956.   done
  4957. fi
  4958. if test -z "$DUMPBIN"; then
  4959.   ac_ct_DUMPBIN=$DUMPBIN
  4960.   for ac_prog in dumpbin "link -dump"
  4961. do
  4962.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4963. set dummy $ac_prog; ac_word=$2
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4965. $as_echo_n "checking for $ac_word... " >&6; }
  4966. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4967.   $as_echo_n "(cached) " >&6
  4968. else
  4969.   if test -n "$ac_ct_DUMPBIN"; then
  4970.   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4971. else
  4972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4973. for as_dir in $PATH
  4974. do
  4975.   IFS=$as_save_IFS
  4976.   test -z "$as_dir" && as_dir=.
  4977.     for ac_exec_ext in '' $ac_executable_extensions; do
  4978.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4979.     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4980.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4981.     break 2
  4982.   fi
  4983. done
  4984.   done
  4985. IFS=$as_save_IFS
  4986.  
  4987. fi
  4988. fi
  4989. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4990. if test -n "$ac_ct_DUMPBIN"; then
  4991.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4992. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4993. else
  4994.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4995. $as_echo "no" >&6; }
  4996. fi
  4997.  
  4998.  
  4999.   test -n "$ac_ct_DUMPBIN" && break
  5000. done
  5001.  
  5002.   if test "x$ac_ct_DUMPBIN" = x; then
  5003.     DUMPBIN=":"
  5004.   else
  5005.     case $cross_compiling:$ac_tool_warned in
  5006. yes:)
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5008. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5009. ac_tool_warned=yes ;;
  5010. esac
  5011.     DUMPBIN=$ac_ct_DUMPBIN
  5012.   fi
  5013. fi
  5014.  
  5015.     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5016.     *COFF*)
  5017.       DUMPBIN="$DUMPBIN -symbols"
  5018.       ;;
  5019.     *)
  5020.       DUMPBIN=:
  5021.       ;;
  5022.     esac
  5023.   fi
  5024.  
  5025.   if test "$DUMPBIN" != ":"; then
  5026.     NM="$DUMPBIN"
  5027.   fi
  5028. fi
  5029. test -z "$NM" && NM=nm
  5030.  
  5031.  
  5032.  
  5033.  
  5034.  
  5035.  
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5037. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5038. if ${lt_cv_nm_interface+:} false; then :
  5039.   $as_echo_n "(cached) " >&6
  5040. else
  5041.   lt_cv_nm_interface="BSD nm"
  5042.   echo "int some_variable = 0;" > conftest.$ac_ext
  5043.   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5044.   (eval "$ac_compile" 2>conftest.err)
  5045.   cat conftest.err >&5
  5046.   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5047.   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5048.   cat conftest.err >&5
  5049.   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5050.   cat conftest.out >&5
  5051.   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5052.     lt_cv_nm_interface="MS dumpbin"
  5053.   fi
  5054.   rm -f conftest*
  5055. fi
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5057. $as_echo "$lt_cv_nm_interface" >&6; }
  5058.  
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5060. $as_echo_n "checking whether ln -s works... " >&6; }
  5061. LN_S=$as_ln_s
  5062. if test "$LN_S" = "ln -s"; then
  5063.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5064. $as_echo "yes" >&6; }
  5065. else
  5066.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5067. $as_echo "no, using $LN_S" >&6; }
  5068. fi
  5069.  
  5070. # find the maximum length of command line arguments
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5072. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5073. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5074.   $as_echo_n "(cached) " >&6
  5075. else
  5076.     i=0
  5077.   teststring="ABCD"
  5078.  
  5079.   case $build_os in
  5080.   msdosdjgpp*)
  5081.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  5082.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  5083.     # during glob expansion).  Even if it were fixed, the result of this
  5084.     # check would be larger than it should be.
  5085.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  5086.     ;;
  5087.  
  5088.   gnu*)
  5089.     # Under GNU Hurd, this test is not required because there is
  5090.     # no limit to the length of command line arguments.
  5091.     # Libtool will interpret -1 as no limit whatsoever
  5092.     lt_cv_sys_max_cmd_len=-1;
  5093.     ;;
  5094.  
  5095.   cygwin* | mingw* | cegcc*)
  5096.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  5097.     # about 5 minutes as the teststring grows exponentially.
  5098.     # Worse, since 9x/ME are not pre-emptively multitasking,
  5099.     # you end up with a "frozen" computer, even though with patience
  5100.     # the test eventually succeeds (with a max line length of 256k).
  5101.     # Instead, let's just punt: use the minimum linelength reported by
  5102.     # all of the supported platforms: 8192 (on NT/2K/XP).
  5103.     lt_cv_sys_max_cmd_len=8192;
  5104.     ;;
  5105.  
  5106.   mint*)
  5107.     # On MiNT this can take a long time and run out of memory.
  5108.     lt_cv_sys_max_cmd_len=8192;
  5109.     ;;
  5110.  
  5111.   amigaos*)
  5112.     # On AmigaOS with pdksh, this test takes hours, literally.
  5113.     # So we just punt and use a minimum line length of 8192.
  5114.     lt_cv_sys_max_cmd_len=8192;
  5115.     ;;
  5116.  
  5117.   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5118.     # This has been around since 386BSD, at least.  Likely further.
  5119.     if test -x /sbin/sysctl; then
  5120.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5121.     elif test -x /usr/sbin/sysctl; then
  5122.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5123.     else
  5124.       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
  5125.     fi
  5126.     # And add a safety zone
  5127.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5128.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5129.     ;;
  5130.  
  5131.   interix*)
  5132.     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5133.     lt_cv_sys_max_cmd_len=196608
  5134.     ;;
  5135.  
  5136.   os2*)
  5137.     # The test takes a long time on OS/2.
  5138.     lt_cv_sys_max_cmd_len=8192
  5139.     ;;
  5140.  
  5141.   osf*)
  5142.     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5143.     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5144.     # nice to cause kernel panics so lets avoid the loop below.
  5145.     # First set a reasonable default.
  5146.     lt_cv_sys_max_cmd_len=16384
  5147.     #
  5148.     if test -x /sbin/sysconfig; then
  5149.       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5150.         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5151.       esac
  5152.     fi
  5153.     ;;
  5154.   sco3.2v5*)
  5155.     lt_cv_sys_max_cmd_len=102400
  5156.     ;;
  5157.   sysv5* | sco5v6* | sysv4.2uw2*)
  5158.     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5159.     if test -n "$kargmax"; then
  5160.       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
  5161.     else
  5162.       lt_cv_sys_max_cmd_len=32768
  5163.     fi
  5164.     ;;
  5165.   *)
  5166.     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5167.     if test -n "$lt_cv_sys_max_cmd_len" && \
  5168.         test undefined != "$lt_cv_sys_max_cmd_len"; then
  5169.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5170.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5171.     else
  5172.       # Make teststring a little bigger before we do anything with it.
  5173.       # a 1K string should be a reasonable start.
  5174.       for i in 1 2 3 4 5 6 7 8 ; do
  5175.         teststring=$teststring$teststring
  5176.       done
  5177.       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5178.       # If test is not a shell built-in, we'll probably end up computing a
  5179.       # maximum length that is only half of the actual maximum length, but
  5180.       # we can't tell.
  5181.       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5182.                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5183.               test $i != 17 # 1/2 MB should be enough
  5184.       do
  5185.         i=`expr $i + 1`
  5186.         teststring=$teststring$teststring
  5187.       done
  5188.       # Only check the string length outside the loop.
  5189.       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5190.       teststring=
  5191.       # Add a significant safety factor because C++ compilers can tack on
  5192.       # massive amounts of additional arguments before passing them to the
  5193.       # linker.  It appears as though 1/2 is a usable value.
  5194.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5195.     fi
  5196.     ;;
  5197.   esac
  5198.  
  5199. fi
  5200.  
  5201. if test -n $lt_cv_sys_max_cmd_len ; then
  5202.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5203. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5204. else
  5205.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5206. $as_echo "none" >&6; }
  5207. fi
  5208. max_cmd_len=$lt_cv_sys_max_cmd_len
  5209.  
  5210.  
  5211.  
  5212.  
  5213.  
  5214.  
  5215. : ${CP="cp -f"}
  5216. : ${MV="mv -f"}
  5217. : ${RM="rm -f"}
  5218.  
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5220. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5221. # Try some XSI features
  5222. xsi_shell=no
  5223. ( _lt_dummy="a/b/c"
  5224.   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5225.       = c,a/b,b/c, \
  5226.     && eval 'test $(( 1 + 1 )) -eq 2 \
  5227.     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5228.   && xsi_shell=yes
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5230. $as_echo "$xsi_shell" >&6; }
  5231.  
  5232.  
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5234. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5235. lt_shell_append=no
  5236. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5237.     >/dev/null 2>&1 \
  5238.   && lt_shell_append=yes
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5240. $as_echo "$lt_shell_append" >&6; }
  5241.  
  5242.  
  5243. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5244.   lt_unset=unset
  5245. else
  5246.   lt_unset=false
  5247. fi
  5248.  
  5249.  
  5250.  
  5251.  
  5252.  
  5253. # test EBCDIC or ASCII
  5254. case `echo X|tr X '\101'` in
  5255.  A) # ASCII based system
  5256.     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5257.   lt_SP2NL='tr \040 \012'
  5258.   lt_NL2SP='tr \015\012 \040\040'
  5259.   ;;
  5260.  *) # EBCDIC based system
  5261.   lt_SP2NL='tr \100 \n'
  5262.   lt_NL2SP='tr \r\n \100\100'
  5263.   ;;
  5264. esac
  5265.  
  5266.  
  5267.  
  5268.  
  5269.  
  5270.  
  5271.  
  5272.  
  5273.  
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5275. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5276. if ${lt_cv_to_host_file_cmd+:} false; then :
  5277.   $as_echo_n "(cached) " >&6
  5278. else
  5279.   case $host in
  5280.   *-*-mingw* )
  5281.     case $build in
  5282.       *-*-mingw* ) # actually msys
  5283.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5284.         ;;
  5285.       *-*-cygwin* )
  5286.         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5287.         ;;
  5288.       * ) # otherwise, assume *nix
  5289.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5290.         ;;
  5291.     esac
  5292.     ;;
  5293.   *-*-cygwin* )
  5294.     case $build in
  5295.       *-*-mingw* ) # actually msys
  5296.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5297.         ;;
  5298.       *-*-cygwin* )
  5299.         lt_cv_to_host_file_cmd=func_convert_file_noop
  5300.         ;;
  5301.       * ) # otherwise, assume *nix
  5302.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5303.         ;;
  5304.     esac
  5305.     ;;
  5306.   * ) # unhandled hosts (and "normal" native builds)
  5307.     lt_cv_to_host_file_cmd=func_convert_file_noop
  5308.     ;;
  5309. esac
  5310.  
  5311. fi
  5312.  
  5313. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5315. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5316.  
  5317.  
  5318.  
  5319.  
  5320.  
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5322. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5323. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5324.   $as_echo_n "(cached) " >&6
  5325. else
  5326.   #assume ordinary cross tools, or native build.
  5327. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5328. case $host in
  5329.   *-*-mingw* )
  5330.     case $build in
  5331.       *-*-mingw* ) # actually msys
  5332.         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5333.         ;;
  5334.     esac
  5335.     ;;
  5336. esac
  5337.  
  5338. fi
  5339.  
  5340. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5342. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5343.  
  5344.  
  5345.  
  5346.  
  5347.  
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5349. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5350. if ${lt_cv_ld_reload_flag+:} false; then :
  5351.   $as_echo_n "(cached) " >&6
  5352. else
  5353.   lt_cv_ld_reload_flag='-r'
  5354. fi
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5356. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5357. reload_flag=$lt_cv_ld_reload_flag
  5358. case $reload_flag in
  5359. "" | " "*) ;;
  5360. *) reload_flag=" $reload_flag" ;;
  5361. esac
  5362. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5363. case $host_os in
  5364.   cygwin* | mingw* | pw32* | cegcc*)
  5365.     if test "$GCC" != yes; then
  5366.       reload_cmds=false
  5367.     fi
  5368.     ;;
  5369.   darwin*)
  5370.     if test "$GCC" = yes; then
  5371.       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5372.     else
  5373.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5374.     fi
  5375.     ;;
  5376. esac
  5377.  
  5378.  
  5379.  
  5380.  
  5381.  
  5382.  
  5383.  
  5384.  
  5385.  
  5386. if test -n "$ac_tool_prefix"; then
  5387.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5388. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5390. $as_echo_n "checking for $ac_word... " >&6; }
  5391. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5392.   $as_echo_n "(cached) " >&6
  5393. else
  5394.   if test -n "$OBJDUMP"; then
  5395.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5396. else
  5397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5398. for as_dir in $PATH
  5399. do
  5400.   IFS=$as_save_IFS
  5401.   test -z "$as_dir" && as_dir=.
  5402.     for ac_exec_ext in '' $ac_executable_extensions; do
  5403.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5404.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5405.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5406.     break 2
  5407.   fi
  5408. done
  5409.   done
  5410. IFS=$as_save_IFS
  5411.  
  5412. fi
  5413. fi
  5414. OBJDUMP=$ac_cv_prog_OBJDUMP
  5415. if test -n "$OBJDUMP"; then
  5416.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5417. $as_echo "$OBJDUMP" >&6; }
  5418. else
  5419.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5420. $as_echo "no" >&6; }
  5421. fi
  5422.  
  5423.  
  5424. fi
  5425. if test -z "$ac_cv_prog_OBJDUMP"; then
  5426.   ac_ct_OBJDUMP=$OBJDUMP
  5427.   # Extract the first word of "objdump", so it can be a program name with args.
  5428. set dummy objdump; ac_word=$2
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5430. $as_echo_n "checking for $ac_word... " >&6; }
  5431. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5432.   $as_echo_n "(cached) " >&6
  5433. else
  5434.   if test -n "$ac_ct_OBJDUMP"; then
  5435.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5436. else
  5437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5438. for as_dir in $PATH
  5439. do
  5440.   IFS=$as_save_IFS
  5441.   test -z "$as_dir" && as_dir=.
  5442.     for ac_exec_ext in '' $ac_executable_extensions; do
  5443.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5444.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5445.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5446.     break 2
  5447.   fi
  5448. done
  5449.   done
  5450. IFS=$as_save_IFS
  5451.  
  5452. fi
  5453. fi
  5454. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5455. if test -n "$ac_ct_OBJDUMP"; then
  5456.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5457. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5458. else
  5459.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5460. $as_echo "no" >&6; }
  5461. fi
  5462.  
  5463.   if test "x$ac_ct_OBJDUMP" = x; then
  5464.     OBJDUMP="false"
  5465.   else
  5466.     case $cross_compiling:$ac_tool_warned in
  5467. yes:)
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5469. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5470. ac_tool_warned=yes ;;
  5471. esac
  5472.     OBJDUMP=$ac_ct_OBJDUMP
  5473.   fi
  5474. else
  5475.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  5476. fi
  5477.  
  5478. test -z "$OBJDUMP" && OBJDUMP=objdump
  5479.  
  5480.  
  5481.  
  5482.  
  5483.  
  5484.  
  5485.  
  5486.  
  5487.  
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5489. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5490. if ${lt_cv_deplibs_check_method+:} false; then :
  5491.   $as_echo_n "(cached) " >&6
  5492. else
  5493.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  5494. lt_cv_file_magic_test_file=
  5495. lt_cv_deplibs_check_method='unknown'
  5496. # Need to set the preceding variable on all platforms that support
  5497. # interlibrary dependencies.
  5498. # 'none' -- dependencies not supported.
  5499. # `unknown' -- same as none, but documents that we really don't know.
  5500. # 'pass_all' -- all dependencies passed with no checks.
  5501. # 'test_compile' -- check by making test program.
  5502. # 'file_magic [[regex]]' -- check by looking for files in library path
  5503. # which responds to the $file_magic_cmd with a given extended regex.
  5504. # If you have `file' or equivalent on your system and you're not sure
  5505. # whether `pass_all' will *always* work, you probably want this one.
  5506.  
  5507. case $host_os in
  5508. aix[4-9]*)
  5509.   lt_cv_deplibs_check_method=pass_all
  5510.   ;;
  5511.  
  5512. beos*)
  5513.   lt_cv_deplibs_check_method=pass_all
  5514.   ;;
  5515.  
  5516. bsdi[45]*)
  5517.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5518.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  5519.   lt_cv_file_magic_test_file=/shlib/libc.so
  5520.   ;;
  5521.  
  5522. cygwin*)
  5523.   # func_win32_libid is a shell function defined in ltmain.sh
  5524.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5525.   lt_cv_file_magic_cmd='func_win32_libid'
  5526.   ;;
  5527.  
  5528. mingw* | pw32*)
  5529.   # Base MSYS/MinGW do not provide the 'file' command needed by
  5530.   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5531.   # unless we find 'file', for example because we are cross-compiling.
  5532.   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5533.   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5534.     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5535.     lt_cv_file_magic_cmd='func_win32_libid'
  5536.   else
  5537.     # Keep this pattern in sync with the one in func_win32_libid.
  5538.     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5539.     lt_cv_file_magic_cmd='$OBJDUMP -f'
  5540.   fi
  5541.   ;;
  5542.  
  5543. cegcc*)
  5544.   # use the weaker test based on 'objdump'. See mingw*.
  5545.   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5546.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  5547.   ;;
  5548.  
  5549. darwin* | rhapsody*)
  5550.   lt_cv_deplibs_check_method=pass_all
  5551.   ;;
  5552.  
  5553. freebsd* | dragonfly*)
  5554.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5555.     case $host_cpu in
  5556.     i*86 )
  5557.       # Not sure whether the presence of OpenBSD here was a mistake.
  5558.       # Let's accept both of them until this is cleared up.
  5559.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5560.       lt_cv_file_magic_cmd=/usr/bin/file
  5561.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5562.       ;;
  5563.     esac
  5564.   else
  5565.     lt_cv_deplibs_check_method=pass_all
  5566.   fi
  5567.   ;;
  5568.  
  5569. haiku*)
  5570.   lt_cv_deplibs_check_method=pass_all
  5571.   ;;
  5572.  
  5573. hpux10.20* | hpux11*)
  5574.   lt_cv_file_magic_cmd=/usr/bin/file
  5575.   case $host_cpu in
  5576.   ia64*)
  5577.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5578.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5579.     ;;
  5580.   hppa*64*)
  5581.     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]'
  5582.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5583.     ;;
  5584.   *)
  5585.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5586.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5587.     ;;
  5588.   esac
  5589.   ;;
  5590.  
  5591. interix[3-9]*)
  5592.   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5593.   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5594.   ;;
  5595.  
  5596. irix5* | irix6* | nonstopux*)
  5597.   case $LD in
  5598.   *-32|*"-32 ") libmagic=32-bit;;
  5599.   *-n32|*"-n32 ") libmagic=N32;;
  5600.   *-64|*"-64 ") libmagic=64-bit;;
  5601.   *) libmagic=never-match;;
  5602.   esac
  5603.   lt_cv_deplibs_check_method=pass_all
  5604.   ;;
  5605.  
  5606. # This must be glibc/ELF.
  5607. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5608.   lt_cv_deplibs_check_method=pass_all
  5609.   ;;
  5610.  
  5611. netbsd* | netbsdelf*-gnu)
  5612.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5613.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5614.   else
  5615.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5616.   fi
  5617.   ;;
  5618.  
  5619. newos6*)
  5620.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5621.   lt_cv_file_magic_cmd=/usr/bin/file
  5622.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5623.   ;;
  5624.  
  5625. *nto* | *qnx*)
  5626.   lt_cv_deplibs_check_method=pass_all
  5627.   ;;
  5628.  
  5629. openbsd*)
  5630.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5631.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5632.   else
  5633.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5634.   fi
  5635.   ;;
  5636.  
  5637. osf3* | osf4* | osf5*)
  5638.   lt_cv_deplibs_check_method=pass_all
  5639.   ;;
  5640.  
  5641. rdos*)
  5642.   lt_cv_deplibs_check_method=pass_all
  5643.   ;;
  5644.  
  5645. solaris*)
  5646.   lt_cv_deplibs_check_method=pass_all
  5647.   ;;
  5648.  
  5649. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5650.   lt_cv_deplibs_check_method=pass_all
  5651.   ;;
  5652.  
  5653. sysv4 | sysv4.3*)
  5654.   case $host_vendor in
  5655.   motorola)
  5656.     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]'
  5657.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5658.     ;;
  5659.   ncr)
  5660.     lt_cv_deplibs_check_method=pass_all
  5661.     ;;
  5662.   sequent)
  5663.     lt_cv_file_magic_cmd='/bin/file'
  5664.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5665.     ;;
  5666.   sni)
  5667.     lt_cv_file_magic_cmd='/bin/file'
  5668.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5669.     lt_cv_file_magic_test_file=/lib/libc.so
  5670.     ;;
  5671.   siemens)
  5672.     lt_cv_deplibs_check_method=pass_all
  5673.     ;;
  5674.   pc)
  5675.     lt_cv_deplibs_check_method=pass_all
  5676.     ;;
  5677.   esac
  5678.   ;;
  5679.  
  5680. tpf*)
  5681.   lt_cv_deplibs_check_method=pass_all
  5682.   ;;
  5683. esac
  5684.  
  5685. fi
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5687. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5688.  
  5689. file_magic_glob=
  5690. want_nocaseglob=no
  5691. if test "$build" = "$host"; then
  5692.   case $host_os in
  5693.   mingw* | pw32*)
  5694.     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5695.       want_nocaseglob=yes
  5696.     else
  5697.       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5698.     fi
  5699.     ;;
  5700.   esac
  5701. fi
  5702.  
  5703. file_magic_cmd=$lt_cv_file_magic_cmd
  5704. deplibs_check_method=$lt_cv_deplibs_check_method
  5705. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5706.  
  5707.  
  5708.  
  5709.  
  5710.  
  5711.  
  5712.  
  5713.  
  5714.  
  5715.  
  5716.  
  5717.  
  5718.  
  5719.  
  5720.  
  5721.  
  5722.  
  5723.  
  5724.  
  5725.  
  5726.  
  5727.  
  5728. if test -n "$ac_tool_prefix"; then
  5729.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5730. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5732. $as_echo_n "checking for $ac_word... " >&6; }
  5733. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5734.   $as_echo_n "(cached) " >&6
  5735. else
  5736.   if test -n "$DLLTOOL"; then
  5737.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5738. else
  5739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5740. for as_dir in $PATH
  5741. do
  5742.   IFS=$as_save_IFS
  5743.   test -z "$as_dir" && as_dir=.
  5744.     for ac_exec_ext in '' $ac_executable_extensions; do
  5745.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5746.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5747.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5748.     break 2
  5749.   fi
  5750. done
  5751.   done
  5752. IFS=$as_save_IFS
  5753.  
  5754. fi
  5755. fi
  5756. DLLTOOL=$ac_cv_prog_DLLTOOL
  5757. if test -n "$DLLTOOL"; then
  5758.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5759. $as_echo "$DLLTOOL" >&6; }
  5760. else
  5761.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5762. $as_echo "no" >&6; }
  5763. fi
  5764.  
  5765.  
  5766. fi
  5767. if test -z "$ac_cv_prog_DLLTOOL"; then
  5768.   ac_ct_DLLTOOL=$DLLTOOL
  5769.   # Extract the first word of "dlltool", so it can be a program name with args.
  5770. set dummy dlltool; ac_word=$2
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. $as_echo_n "checking for $ac_word... " >&6; }
  5773. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5774.   $as_echo_n "(cached) " >&6
  5775. else
  5776.   if test -n "$ac_ct_DLLTOOL"; then
  5777.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5778. else
  5779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5780. for as_dir in $PATH
  5781. do
  5782.   IFS=$as_save_IFS
  5783.   test -z "$as_dir" && as_dir=.
  5784.     for ac_exec_ext in '' $ac_executable_extensions; do
  5785.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5786.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5787.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5788.     break 2
  5789.   fi
  5790. done
  5791.   done
  5792. IFS=$as_save_IFS
  5793.  
  5794. fi
  5795. fi
  5796. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5797. if test -n "$ac_ct_DLLTOOL"; then
  5798.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5799. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5800. else
  5801.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5802. $as_echo "no" >&6; }
  5803. fi
  5804.  
  5805.   if test "x$ac_ct_DLLTOOL" = x; then
  5806.     DLLTOOL="false"
  5807.   else
  5808.     case $cross_compiling:$ac_tool_warned in
  5809. yes:)
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5811. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5812. ac_tool_warned=yes ;;
  5813. esac
  5814.     DLLTOOL=$ac_ct_DLLTOOL
  5815.   fi
  5816. else
  5817.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  5818. fi
  5819.  
  5820. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5821.  
  5822.  
  5823.  
  5824.  
  5825.  
  5826.  
  5827.  
  5828.  
  5829.  
  5830.  
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5832. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5833. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5834.   $as_echo_n "(cached) " >&6
  5835. else
  5836.   lt_cv_sharedlib_from_linklib_cmd='unknown'
  5837.  
  5838. case $host_os in
  5839. cygwin* | mingw* | pw32* | cegcc*)
  5840.   # two different shell functions defined in ltmain.sh
  5841.   # decide which to use based on capabilities of $DLLTOOL
  5842.   case `$DLLTOOL --help 2>&1` in
  5843.   *--identify-strict*)
  5844.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5845.     ;;
  5846.   *)
  5847.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5848.     ;;
  5849.   esac
  5850.   ;;
  5851. *)
  5852.   # fallback: assume linklib IS sharedlib
  5853.   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5854.   ;;
  5855. esac
  5856.  
  5857. fi
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5859. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5860. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5861. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5862.  
  5863.  
  5864.  
  5865.  
  5866.  
  5867.  
  5868.  
  5869.  
  5870. if test -n "$ac_tool_prefix"; then
  5871.   for ac_prog in ar
  5872.   do
  5873.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5874. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5876. $as_echo_n "checking for $ac_word... " >&6; }
  5877. if ${ac_cv_prog_AR+:} false; then :
  5878.   $as_echo_n "(cached) " >&6
  5879. else
  5880.   if test -n "$AR"; then
  5881.   ac_cv_prog_AR="$AR" # Let the user override the test.
  5882. else
  5883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5884. for as_dir in $PATH
  5885. do
  5886.   IFS=$as_save_IFS
  5887.   test -z "$as_dir" && as_dir=.
  5888.     for ac_exec_ext in '' $ac_executable_extensions; do
  5889.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5890.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5891.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5892.     break 2
  5893.   fi
  5894. done
  5895.   done
  5896. IFS=$as_save_IFS
  5897.  
  5898. fi
  5899. fi
  5900. AR=$ac_cv_prog_AR
  5901. if test -n "$AR"; then
  5902.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5903. $as_echo "$AR" >&6; }
  5904. else
  5905.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5906. $as_echo "no" >&6; }
  5907. fi
  5908.  
  5909.  
  5910.     test -n "$AR" && break
  5911.   done
  5912. fi
  5913. if test -z "$AR"; then
  5914.   ac_ct_AR=$AR
  5915.   for ac_prog in ar
  5916. do
  5917.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5918. set dummy $ac_prog; ac_word=$2
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5920. $as_echo_n "checking for $ac_word... " >&6; }
  5921. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5922.   $as_echo_n "(cached) " >&6
  5923. else
  5924.   if test -n "$ac_ct_AR"; then
  5925.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5926. else
  5927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5928. for as_dir in $PATH
  5929. do
  5930.   IFS=$as_save_IFS
  5931.   test -z "$as_dir" && as_dir=.
  5932.     for ac_exec_ext in '' $ac_executable_extensions; do
  5933.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5934.     ac_cv_prog_ac_ct_AR="$ac_prog"
  5935.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5936.     break 2
  5937.   fi
  5938. done
  5939.   done
  5940. IFS=$as_save_IFS
  5941.  
  5942. fi
  5943. fi
  5944. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5945. if test -n "$ac_ct_AR"; then
  5946.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5947. $as_echo "$ac_ct_AR" >&6; }
  5948. else
  5949.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5950. $as_echo "no" >&6; }
  5951. fi
  5952.  
  5953.  
  5954.   test -n "$ac_ct_AR" && break
  5955. done
  5956.  
  5957.   if test "x$ac_ct_AR" = x; then
  5958.     AR="false"
  5959.   else
  5960.     case $cross_compiling:$ac_tool_warned in
  5961. yes:)
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5963. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5964. ac_tool_warned=yes ;;
  5965. esac
  5966.     AR=$ac_ct_AR
  5967.   fi
  5968. fi
  5969.  
  5970. : ${AR=ar}
  5971. : ${AR_FLAGS=cru}
  5972.  
  5973.  
  5974.  
  5975.  
  5976.  
  5977.  
  5978.  
  5979.  
  5980.  
  5981.  
  5982.  
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5984. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5985. if ${lt_cv_ar_at_file+:} false; then :
  5986.   $as_echo_n "(cached) " >&6
  5987. else
  5988.   lt_cv_ar_at_file=no
  5989.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5990. /* end confdefs.h.  */
  5991.  
  5992. int
  5993. main ()
  5994. {
  5995.  
  5996.   ;
  5997.   return 0;
  5998. }
  5999. _ACEOF
  6000. if ac_fn_c_try_compile "$LINENO"; then :
  6001.   echo conftest.$ac_objext > conftest.lst
  6002.       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6003.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6004.   (eval $lt_ar_try) 2>&5
  6005.   ac_status=$?
  6006.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6007.   test $ac_status = 0; }
  6008.       if test "$ac_status" -eq 0; then
  6009.         # Ensure the archiver fails upon bogus file names.
  6010.         rm -f conftest.$ac_objext libconftest.a
  6011.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6012.   (eval $lt_ar_try) 2>&5
  6013.   ac_status=$?
  6014.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6015.   test $ac_status = 0; }
  6016.         if test "$ac_status" -ne 0; then
  6017.           lt_cv_ar_at_file=@
  6018.         fi
  6019.       fi
  6020.       rm -f conftest.* libconftest.a
  6021.  
  6022. fi
  6023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6024.  
  6025. fi
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6027. $as_echo "$lt_cv_ar_at_file" >&6; }
  6028.  
  6029. if test "x$lt_cv_ar_at_file" = xno; then
  6030.   archiver_list_spec=
  6031. else
  6032.   archiver_list_spec=$lt_cv_ar_at_file
  6033. fi
  6034.  
  6035.  
  6036.  
  6037.  
  6038.  
  6039.  
  6040.  
  6041. if test -n "$ac_tool_prefix"; then
  6042.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6043. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6045. $as_echo_n "checking for $ac_word... " >&6; }
  6046. if ${ac_cv_prog_STRIP+:} false; then :
  6047.   $as_echo_n "(cached) " >&6
  6048. else
  6049.   if test -n "$STRIP"; then
  6050.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6051. else
  6052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6053. for as_dir in $PATH
  6054. do
  6055.   IFS=$as_save_IFS
  6056.   test -z "$as_dir" && as_dir=.
  6057.     for ac_exec_ext in '' $ac_executable_extensions; do
  6058.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6059.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6060.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6061.     break 2
  6062.   fi
  6063. done
  6064.   done
  6065. IFS=$as_save_IFS
  6066.  
  6067. fi
  6068. fi
  6069. STRIP=$ac_cv_prog_STRIP
  6070. if test -n "$STRIP"; then
  6071.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6072. $as_echo "$STRIP" >&6; }
  6073. else
  6074.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6075. $as_echo "no" >&6; }
  6076. fi
  6077.  
  6078.  
  6079. fi
  6080. if test -z "$ac_cv_prog_STRIP"; then
  6081.   ac_ct_STRIP=$STRIP
  6082.   # Extract the first word of "strip", so it can be a program name with args.
  6083. set dummy strip; ac_word=$2
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6085. $as_echo_n "checking for $ac_word... " >&6; }
  6086. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6087.   $as_echo_n "(cached) " >&6
  6088. else
  6089.   if test -n "$ac_ct_STRIP"; then
  6090.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6091. else
  6092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6093. for as_dir in $PATH
  6094. do
  6095.   IFS=$as_save_IFS
  6096.   test -z "$as_dir" && as_dir=.
  6097.     for ac_exec_ext in '' $ac_executable_extensions; do
  6098.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6099.     ac_cv_prog_ac_ct_STRIP="strip"
  6100.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6101.     break 2
  6102.   fi
  6103. done
  6104.   done
  6105. IFS=$as_save_IFS
  6106.  
  6107. fi
  6108. fi
  6109. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6110. if test -n "$ac_ct_STRIP"; then
  6111.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6112. $as_echo "$ac_ct_STRIP" >&6; }
  6113. else
  6114.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6115. $as_echo "no" >&6; }
  6116. fi
  6117.  
  6118.   if test "x$ac_ct_STRIP" = x; then
  6119.     STRIP=":"
  6120.   else
  6121.     case $cross_compiling:$ac_tool_warned in
  6122. yes:)
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6124. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6125. ac_tool_warned=yes ;;
  6126. esac
  6127.     STRIP=$ac_ct_STRIP
  6128.   fi
  6129. else
  6130.   STRIP="$ac_cv_prog_STRIP"
  6131. fi
  6132.  
  6133. test -z "$STRIP" && STRIP=:
  6134.  
  6135.  
  6136.  
  6137.  
  6138.  
  6139.  
  6140. if test -n "$ac_tool_prefix"; then
  6141.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6142. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6144. $as_echo_n "checking for $ac_word... " >&6; }
  6145. if ${ac_cv_prog_RANLIB+:} false; then :
  6146.   $as_echo_n "(cached) " >&6
  6147. else
  6148.   if test -n "$RANLIB"; then
  6149.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6150. else
  6151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6152. for as_dir in $PATH
  6153. do
  6154.   IFS=$as_save_IFS
  6155.   test -z "$as_dir" && as_dir=.
  6156.     for ac_exec_ext in '' $ac_executable_extensions; do
  6157.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6158.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6159.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6160.     break 2
  6161.   fi
  6162. done
  6163.   done
  6164. IFS=$as_save_IFS
  6165.  
  6166. fi
  6167. fi
  6168. RANLIB=$ac_cv_prog_RANLIB
  6169. if test -n "$RANLIB"; then
  6170.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6171. $as_echo "$RANLIB" >&6; }
  6172. else
  6173.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6174. $as_echo "no" >&6; }
  6175. fi
  6176.  
  6177.  
  6178. fi
  6179. if test -z "$ac_cv_prog_RANLIB"; then
  6180.   ac_ct_RANLIB=$RANLIB
  6181.   # Extract the first word of "ranlib", so it can be a program name with args.
  6182. set dummy ranlib; ac_word=$2
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6184. $as_echo_n "checking for $ac_word... " >&6; }
  6185. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6186.   $as_echo_n "(cached) " >&6
  6187. else
  6188.   if test -n "$ac_ct_RANLIB"; then
  6189.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6190. else
  6191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6192. for as_dir in $PATH
  6193. do
  6194.   IFS=$as_save_IFS
  6195.   test -z "$as_dir" && as_dir=.
  6196.     for ac_exec_ext in '' $ac_executable_extensions; do
  6197.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6198.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  6199.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6200.     break 2
  6201.   fi
  6202. done
  6203.   done
  6204. IFS=$as_save_IFS
  6205.  
  6206. fi
  6207. fi
  6208. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6209. if test -n "$ac_ct_RANLIB"; then
  6210.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6211. $as_echo "$ac_ct_RANLIB" >&6; }
  6212. else
  6213.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6214. $as_echo "no" >&6; }
  6215. fi
  6216.  
  6217.   if test "x$ac_ct_RANLIB" = x; then
  6218.     RANLIB=":"
  6219.   else
  6220.     case $cross_compiling:$ac_tool_warned in
  6221. yes:)
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6223. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6224. ac_tool_warned=yes ;;
  6225. esac
  6226.     RANLIB=$ac_ct_RANLIB
  6227.   fi
  6228. else
  6229.   RANLIB="$ac_cv_prog_RANLIB"
  6230. fi
  6231.  
  6232. test -z "$RANLIB" && RANLIB=:
  6233.  
  6234.  
  6235.  
  6236.  
  6237.  
  6238.  
  6239. # Determine commands to create old-style static archives.
  6240. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6241. old_postinstall_cmds='chmod 644 $oldlib'
  6242. old_postuninstall_cmds=
  6243.  
  6244. if test -n "$RANLIB"; then
  6245.   case $host_os in
  6246.   openbsd*)
  6247.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6248.     ;;
  6249.   *)
  6250.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6251.     ;;
  6252.   esac
  6253.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6254. fi
  6255.  
  6256. case $host_os in
  6257.   darwin*)
  6258.     lock_old_archive_extraction=yes ;;
  6259.   *)
  6260.     lock_old_archive_extraction=no ;;
  6261. esac
  6262.  
  6263.  
  6264.  
  6265.  
  6266.  
  6267.  
  6268.  
  6269.  
  6270.  
  6271.  
  6272.  
  6273.  
  6274.  
  6275.  
  6276.  
  6277.  
  6278.  
  6279.  
  6280.  
  6281.  
  6282.  
  6283.  
  6284.  
  6285.  
  6286.  
  6287.  
  6288.  
  6289.  
  6290.  
  6291.  
  6292.  
  6293.  
  6294.  
  6295.  
  6296.  
  6297.  
  6298.  
  6299.  
  6300.  
  6301. # If no C compiler was specified, use CC.
  6302. LTCC=${LTCC-"$CC"}
  6303.  
  6304. # If no C compiler flags were specified, use CFLAGS.
  6305. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6306.  
  6307. # Allow CC to be a program name with arguments.
  6308. compiler=$CC
  6309.  
  6310.  
  6311. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6313. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6314. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6315.   $as_echo_n "(cached) " >&6
  6316. else
  6317.  
  6318. # These are sane defaults that work on at least a few old systems.
  6319. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  6320.  
  6321. # Character class describing NM global symbol codes.
  6322. symcode='[BCDEGRST]'
  6323.  
  6324. # Regexp to match symbols that can be accessed directly from C.
  6325. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6326.  
  6327. # Define system-specific variables.
  6328. case $host_os in
  6329. aix*)
  6330.   symcode='[BCDT]'
  6331.   ;;
  6332. cygwin* | mingw* | pw32* | cegcc*)
  6333.   symcode='[ABCDGISTW]'
  6334.   ;;
  6335. hpux*)
  6336.   if test "$host_cpu" = ia64; then
  6337.     symcode='[ABCDEGRST]'
  6338.   fi
  6339.   ;;
  6340. irix* | nonstopux*)
  6341.   symcode='[BCDEGRST]'
  6342.   ;;
  6343. osf*)
  6344.   symcode='[BCDEGQRST]'
  6345.   ;;
  6346. solaris*)
  6347.   symcode='[BDRT]'
  6348.   ;;
  6349. sco3.2v5*)
  6350.   symcode='[DT]'
  6351.   ;;
  6352. sysv4.2uw2*)
  6353.   symcode='[DT]'
  6354.   ;;
  6355. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6356.   symcode='[ABDT]'
  6357.   ;;
  6358. sysv4)
  6359.   symcode='[DFNSTU]'
  6360.   ;;
  6361. esac
  6362.  
  6363. # If we're using GNU nm, then use its standard symbol codes.
  6364. case `$NM -V 2>&1` in
  6365. *GNU* | *'with BFD'*)
  6366.   symcode='[ABCDGIRSTW]' ;;
  6367. esac
  6368.  
  6369. # Transform an extracted symbol line into a proper C declaration.
  6370. # Some systems (esp. on ia64) link data and code symbols differently,
  6371. # so use this general approach.
  6372. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6373.  
  6374. # Transform an extracted symbol line into symbol name and symbol address
  6375. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
  6376. 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'"
  6377.  
  6378. # Handle CRLF in mingw tool chain
  6379. opt_cr=
  6380. case $build_os in
  6381. mingw*)
  6382.   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6383.   ;;
  6384. esac
  6385.  
  6386. # Try without a prefix underscore, then with it.
  6387. for ac_symprfx in "" "_"; do
  6388.  
  6389.   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6390.   symxfrm="\\1 $ac_symprfx\\2 \\2"
  6391.  
  6392.   # Write the raw and C identifiers.
  6393.   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6394.     # Fake it for dumpbin and say T for any non-static function
  6395.     # and D for any global variable.
  6396.     # Also find C++ and __fastcall symbols from MSVC++,
  6397.     # which start with @ or ?.
  6398.     lt_cv_sys_global_symbol_pipe="$AWK '"\
  6399. "     {last_section=section; section=\$ 3};"\
  6400. "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6401. "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6402. "     \$ 0!~/External *\|/{next};"\
  6403. "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6404. "     {if(hide[section]) next};"\
  6405. "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6406. "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6407. "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6408. "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6409. "     ' prfx=^$ac_symprfx"
  6410.   else
  6411.     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6412.   fi
  6413.   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6414.  
  6415.   # Check to see that the pipe works correctly.
  6416.   pipe_works=no
  6417.  
  6418.   rm -f conftest*
  6419.   cat > conftest.$ac_ext <<_LT_EOF
  6420. #ifdef __cplusplus
  6421. extern "C" {
  6422. #endif
  6423. char nm_test_var;
  6424. void nm_test_func(void);
  6425. void nm_test_func(void){}
  6426. #ifdef __cplusplus
  6427. }
  6428. #endif
  6429. int main(){nm_test_var='a';nm_test_func();return(0);}
  6430. _LT_EOF
  6431.  
  6432.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6433.   (eval $ac_compile) 2>&5
  6434.   ac_status=$?
  6435.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6436.   test $ac_status = 0; }; then
  6437.     # Now try to grab the symbols.
  6438.     nlist=conftest.nm
  6439.     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6440.   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6441.   ac_status=$?
  6442.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6443.   test $ac_status = 0; } && test -s "$nlist"; then
  6444.       # Try sorting and uniquifying the output.
  6445.       if sort "$nlist" | uniq > "$nlist"T; then
  6446.         mv -f "$nlist"T "$nlist"
  6447.       else
  6448.         rm -f "$nlist"T
  6449.       fi
  6450.  
  6451.       # Make sure that we snagged all the symbols we need.
  6452.       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6453.         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6454.           cat <<_LT_EOF > conftest.$ac_ext
  6455. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  6456. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6457. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6458.    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  6459. # define LT_DLSYM_CONST
  6460. #elif defined(__osf__)
  6461. /* This system does not cope well with relocations in const data.  */
  6462. # define LT_DLSYM_CONST
  6463. #else
  6464. # define LT_DLSYM_CONST const
  6465. #endif
  6466.  
  6467. #ifdef __cplusplus
  6468. extern "C" {
  6469. #endif
  6470.  
  6471. _LT_EOF
  6472.           # Now generate the symbol file.
  6473.           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6474.  
  6475.           cat <<_LT_EOF >> conftest.$ac_ext
  6476.  
  6477. /* The mapping between symbol names and symbols.  */
  6478. LT_DLSYM_CONST struct {
  6479.   const char *name;
  6480.   void       *address;
  6481. }
  6482. lt__PROGRAM__LTX_preloaded_symbols[] =
  6483. {
  6484.   { "@PROGRAM@", (void *) 0 },
  6485. _LT_EOF
  6486.           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6487.           cat <<\_LT_EOF >> conftest.$ac_ext
  6488.   {0, (void *) 0}
  6489. };
  6490.  
  6491. /* This works around a problem in FreeBSD linker */
  6492. #ifdef FREEBSD_WORKAROUND
  6493. static const void *lt_preloaded_setup() {
  6494.   return lt__PROGRAM__LTX_preloaded_symbols;
  6495. }
  6496. #endif
  6497.  
  6498. #ifdef __cplusplus
  6499. }
  6500. #endif
  6501. _LT_EOF
  6502.           # Now try linking the two files.
  6503.           mv conftest.$ac_objext conftstm.$ac_objext
  6504.           lt_globsym_save_LIBS=$LIBS
  6505.           lt_globsym_save_CFLAGS=$CFLAGS
  6506.           LIBS="conftstm.$ac_objext"
  6507.           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6508.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6509.   (eval $ac_link) 2>&5
  6510.   ac_status=$?
  6511.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6512.   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6513.             pipe_works=yes
  6514.           fi
  6515.           LIBS=$lt_globsym_save_LIBS
  6516.           CFLAGS=$lt_globsym_save_CFLAGS
  6517.         else
  6518.           echo "cannot find nm_test_func in $nlist" >&5
  6519.         fi
  6520.       else
  6521.         echo "cannot find nm_test_var in $nlist" >&5
  6522.       fi
  6523.     else
  6524.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6525.     fi
  6526.   else
  6527.     echo "$progname: failed program was:" >&5
  6528.     cat conftest.$ac_ext >&5
  6529.   fi
  6530.   rm -rf conftest* conftst*
  6531.  
  6532.   # Do not use the global_symbol_pipe unless it works.
  6533.   if test "$pipe_works" = yes; then
  6534.     break
  6535.   else
  6536.     lt_cv_sys_global_symbol_pipe=
  6537.   fi
  6538. done
  6539.  
  6540. fi
  6541.  
  6542. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6543.   lt_cv_sys_global_symbol_to_cdecl=
  6544. fi
  6545. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6546.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6547. $as_echo "failed" >&6; }
  6548. else
  6549.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6550. $as_echo "ok" >&6; }
  6551. fi
  6552.  
  6553. # Response file support.
  6554. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6555.   nm_file_list_spec='@'
  6556. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6557.   nm_file_list_spec='@'
  6558. fi
  6559.  
  6560.  
  6561.  
  6562.  
  6563.  
  6564.  
  6565.  
  6566.  
  6567.  
  6568.  
  6569.  
  6570.  
  6571.  
  6572.  
  6573.  
  6574.  
  6575.  
  6576.  
  6577.  
  6578.  
  6579.  
  6580.  
  6581.  
  6582.  
  6583.  
  6584.  
  6585.  
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6587. $as_echo_n "checking for sysroot... " >&6; }
  6588.  
  6589. # Check whether --with-sysroot was given.
  6590. if test "${with_sysroot+set}" = set; then :
  6591.   withval=$with_sysroot;
  6592. else
  6593.   with_sysroot=no
  6594. fi
  6595.  
  6596.  
  6597. lt_sysroot=
  6598. case ${with_sysroot} in #(
  6599.  yes)
  6600.    if test "$GCC" = yes; then
  6601.      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6602.    fi
  6603.    ;; #(
  6604.  /*)
  6605.    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6606.    ;; #(
  6607.  no|'')
  6608.    ;; #(
  6609.  *)
  6610.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6611. $as_echo "${with_sysroot}" >&6; }
  6612.    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6613.    ;;
  6614. esac
  6615.  
  6616.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6617. $as_echo "${lt_sysroot:-no}" >&6; }
  6618.  
  6619.  
  6620.  
  6621.  
  6622.  
  6623. # Check whether --enable-libtool-lock was given.
  6624. if test "${enable_libtool_lock+set}" = set; then :
  6625.   enableval=$enable_libtool_lock;
  6626. fi
  6627.  
  6628. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6629.  
  6630. # Some flags need to be propagated to the compiler or linker for good
  6631. # libtool support.
  6632. case $host in
  6633. ia64-*-hpux*)
  6634.   # Find out which ABI we are using.
  6635.   echo 'int i;' > conftest.$ac_ext
  6636.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6637.   (eval $ac_compile) 2>&5
  6638.   ac_status=$?
  6639.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6640.   test $ac_status = 0; }; then
  6641.     case `/usr/bin/file conftest.$ac_objext` in
  6642.       *ELF-32*)
  6643.         HPUX_IA64_MODE="32"
  6644.         ;;
  6645.       *ELF-64*)
  6646.         HPUX_IA64_MODE="64"
  6647.         ;;
  6648.     esac
  6649.   fi
  6650.   rm -rf conftest*
  6651.   ;;
  6652. *-*-irix6*)
  6653.   # Find out which ABI we are using.
  6654.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6655.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6656.   (eval $ac_compile) 2>&5
  6657.   ac_status=$?
  6658.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6659.   test $ac_status = 0; }; then
  6660.     if test "$lt_cv_prog_gnu_ld" = yes; then
  6661.       case `/usr/bin/file conftest.$ac_objext` in
  6662.         *32-bit*)
  6663.           LD="${LD-ld} -melf32bsmip"
  6664.           ;;
  6665.         *N32*)
  6666.           LD="${LD-ld} -melf32bmipn32"
  6667.           ;;
  6668.         *64-bit*)
  6669.           LD="${LD-ld} -melf64bmip"
  6670.         ;;
  6671.       esac
  6672.     else
  6673.       case `/usr/bin/file conftest.$ac_objext` in
  6674.         *32-bit*)
  6675.           LD="${LD-ld} -32"
  6676.           ;;
  6677.         *N32*)
  6678.           LD="${LD-ld} -n32"
  6679.           ;;
  6680.         *64-bit*)
  6681.           LD="${LD-ld} -64"
  6682.           ;;
  6683.       esac
  6684.     fi
  6685.   fi
  6686.   rm -rf conftest*
  6687.   ;;
  6688.  
  6689. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6690. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6691.   # Find out which ABI we are using.
  6692.   echo 'int i;' > conftest.$ac_ext
  6693.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6694.   (eval $ac_compile) 2>&5
  6695.   ac_status=$?
  6696.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6697.   test $ac_status = 0; }; then
  6698.     case `/usr/bin/file conftest.o` in
  6699.       *32-bit*)
  6700.         case $host in
  6701.           x86_64-*kfreebsd*-gnu)
  6702.             LD="${LD-ld} -m elf_i386_fbsd"
  6703.             ;;
  6704.           x86_64-*linux*)
  6705.             case `/usr/bin/file conftest.o` in
  6706.               *x86-64*)
  6707.                 LD="${LD-ld} -m elf32_x86_64"
  6708.                 ;;
  6709.               *)
  6710.                 LD="${LD-ld} -m elf_i386"
  6711.                 ;;
  6712.             esac
  6713.             ;;
  6714.           powerpc64le-*)
  6715.             LD="${LD-ld} -m elf32lppclinux"
  6716.             ;;
  6717.           powerpc64-*)
  6718.             LD="${LD-ld} -m elf32ppclinux"
  6719.             ;;
  6720.           s390x-*linux*)
  6721.             LD="${LD-ld} -m elf_s390"
  6722.             ;;
  6723.           sparc64-*linux*)
  6724.             LD="${LD-ld} -m elf32_sparc"
  6725.             ;;
  6726.         esac
  6727.         ;;
  6728.       *64-bit*)
  6729.         case $host in
  6730.           x86_64-*kfreebsd*-gnu)
  6731.             LD="${LD-ld} -m elf_x86_64_fbsd"
  6732.             ;;
  6733.           x86_64-*linux*)
  6734.             LD="${LD-ld} -m elf_x86_64"
  6735.             ;;
  6736.           powerpcle-*)
  6737.             LD="${LD-ld} -m elf64lppc"
  6738.             ;;
  6739.           powerpc-*)
  6740.             LD="${LD-ld} -m elf64ppc"
  6741.             ;;
  6742.           s390*-*linux*|s390*-*tpf*)
  6743.             LD="${LD-ld} -m elf64_s390"
  6744.             ;;
  6745.           sparc*-*linux*)
  6746.             LD="${LD-ld} -m elf64_sparc"
  6747.             ;;
  6748.         esac
  6749.         ;;
  6750.     esac
  6751.   fi
  6752.   rm -rf conftest*
  6753.   ;;
  6754.  
  6755. *-*-sco3.2v5*)
  6756.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6757.   SAVE_CFLAGS="$CFLAGS"
  6758.   CFLAGS="$CFLAGS -belf"
  6759.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6760. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6761. if ${lt_cv_cc_needs_belf+:} false; then :
  6762.   $as_echo_n "(cached) " >&6
  6763. else
  6764.   ac_ext=c
  6765. ac_cpp='$CPP $CPPFLAGS'
  6766. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6767. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6768. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6769.  
  6770.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6771. /* end confdefs.h.  */
  6772.  
  6773. int
  6774. main ()
  6775. {
  6776.  
  6777.   ;
  6778.   return 0;
  6779. }
  6780. _ACEOF
  6781. if ac_fn_c_try_link "$LINENO"; then :
  6782.   lt_cv_cc_needs_belf=yes
  6783. else
  6784.   lt_cv_cc_needs_belf=no
  6785. fi
  6786. rm -f core conftest.err conftest.$ac_objext \
  6787.     conftest$ac_exeext conftest.$ac_ext
  6788.      ac_ext=c
  6789. ac_cpp='$CPP $CPPFLAGS'
  6790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6793.  
  6794. fi
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6796. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6797.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6798.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6799.     CFLAGS="$SAVE_CFLAGS"
  6800.   fi
  6801.   ;;
  6802. *-*solaris*)
  6803.   # Find out which ABI we are using.
  6804.   echo 'int i;' > conftest.$ac_ext
  6805.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6806.   (eval $ac_compile) 2>&5
  6807.   ac_status=$?
  6808.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6809.   test $ac_status = 0; }; then
  6810.     case `/usr/bin/file conftest.o` in
  6811.     *64-bit*)
  6812.       case $lt_cv_prog_gnu_ld in
  6813.       yes*)
  6814.         case $host in
  6815.         i?86-*-solaris*)
  6816.           LD="${LD-ld} -m elf_x86_64"
  6817.           ;;
  6818.         sparc*-*-solaris*)
  6819.           LD="${LD-ld} -m elf64_sparc"
  6820.           ;;
  6821.         esac
  6822.         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  6823.         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6824.           LD="${LD-ld}_sol2"
  6825.         fi
  6826.         ;;
  6827.       *)
  6828.         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6829.           LD="${LD-ld} -64"
  6830.         fi
  6831.         ;;
  6832.       esac
  6833.       ;;
  6834.     esac
  6835.   fi
  6836.   rm -rf conftest*
  6837.   ;;
  6838. esac
  6839.  
  6840. need_locks="$enable_libtool_lock"
  6841.  
  6842. if test -n "$ac_tool_prefix"; then
  6843.   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6844. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6846. $as_echo_n "checking for $ac_word... " >&6; }
  6847. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6848.   $as_echo_n "(cached) " >&6
  6849. else
  6850.   if test -n "$MANIFEST_TOOL"; then
  6851.   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6852. else
  6853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6854. for as_dir in $PATH
  6855. do
  6856.   IFS=$as_save_IFS
  6857.   test -z "$as_dir" && as_dir=.
  6858.     for ac_exec_ext in '' $ac_executable_extensions; do
  6859.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6860.     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6861.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6862.     break 2
  6863.   fi
  6864. done
  6865.   done
  6866. IFS=$as_save_IFS
  6867.  
  6868. fi
  6869. fi
  6870. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6871. if test -n "$MANIFEST_TOOL"; then
  6872.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6873. $as_echo "$MANIFEST_TOOL" >&6; }
  6874. else
  6875.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6876. $as_echo "no" >&6; }
  6877. fi
  6878.  
  6879.  
  6880. fi
  6881. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6882.   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6883.   # Extract the first word of "mt", so it can be a program name with args.
  6884. set dummy mt; ac_word=$2
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6886. $as_echo_n "checking for $ac_word... " >&6; }
  6887. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6888.   $as_echo_n "(cached) " >&6
  6889. else
  6890.   if test -n "$ac_ct_MANIFEST_TOOL"; then
  6891.   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6892. else
  6893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6894. for as_dir in $PATH
  6895. do
  6896.   IFS=$as_save_IFS
  6897.   test -z "$as_dir" && as_dir=.
  6898.     for ac_exec_ext in '' $ac_executable_extensions; do
  6899.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6900.     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6901.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6902.     break 2
  6903.   fi
  6904. done
  6905.   done
  6906. IFS=$as_save_IFS
  6907.  
  6908. fi
  6909. fi
  6910. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6911. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6912.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6913. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6914. else
  6915.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6916. $as_echo "no" >&6; }
  6917. fi
  6918.  
  6919.   if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6920.     MANIFEST_TOOL=":"
  6921.   else
  6922.     case $cross_compiling:$ac_tool_warned in
  6923. yes:)
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6925. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6926. ac_tool_warned=yes ;;
  6927. esac
  6928.     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6929.   fi
  6930. else
  6931.   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6932. fi
  6933.  
  6934. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6936. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6937. if ${lt_cv_path_mainfest_tool+:} false; then :
  6938.   $as_echo_n "(cached) " >&6
  6939. else
  6940.   lt_cv_path_mainfest_tool=no
  6941.   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6942.   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6943.   cat conftest.err >&5
  6944.   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6945.     lt_cv_path_mainfest_tool=yes
  6946.   fi
  6947.   rm -f conftest*
  6948. fi
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6950. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6951. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6952.   MANIFEST_TOOL=:
  6953. fi
  6954.  
  6955.  
  6956.  
  6957.  
  6958.  
  6959.  
  6960.   case $host_os in
  6961.     rhapsody* | darwin*)
  6962.     if test -n "$ac_tool_prefix"; then
  6963.   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6964. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6966. $as_echo_n "checking for $ac_word... " >&6; }
  6967. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6968.   $as_echo_n "(cached) " >&6
  6969. else
  6970.   if test -n "$DSYMUTIL"; then
  6971.   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6972. else
  6973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6974. for as_dir in $PATH
  6975. do
  6976.   IFS=$as_save_IFS
  6977.   test -z "$as_dir" && as_dir=.
  6978.     for ac_exec_ext in '' $ac_executable_extensions; do
  6979.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6980.     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6981.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6982.     break 2
  6983.   fi
  6984. done
  6985.   done
  6986. IFS=$as_save_IFS
  6987.  
  6988. fi
  6989. fi
  6990. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6991. if test -n "$DSYMUTIL"; then
  6992.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6993. $as_echo "$DSYMUTIL" >&6; }
  6994. else
  6995.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6996. $as_echo "no" >&6; }
  6997. fi
  6998.  
  6999.  
  7000. fi
  7001. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7002.   ac_ct_DSYMUTIL=$DSYMUTIL
  7003.   # Extract the first word of "dsymutil", so it can be a program name with args.
  7004. set dummy dsymutil; ac_word=$2
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7006. $as_echo_n "checking for $ac_word... " >&6; }
  7007. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7008.   $as_echo_n "(cached) " >&6
  7009. else
  7010.   if test -n "$ac_ct_DSYMUTIL"; then
  7011.   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7012. else
  7013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7014. for as_dir in $PATH
  7015. do
  7016.   IFS=$as_save_IFS
  7017.   test -z "$as_dir" && as_dir=.
  7018.     for ac_exec_ext in '' $ac_executable_extensions; do
  7019.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7020.     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7021.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7022.     break 2
  7023.   fi
  7024. done
  7025.   done
  7026. IFS=$as_save_IFS
  7027.  
  7028. fi
  7029. fi
  7030. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7031. if test -n "$ac_ct_DSYMUTIL"; then
  7032.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7033. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7034. else
  7035.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7036. $as_echo "no" >&6; }
  7037. fi
  7038.  
  7039.   if test "x$ac_ct_DSYMUTIL" = x; then
  7040.     DSYMUTIL=":"
  7041.   else
  7042.     case $cross_compiling:$ac_tool_warned in
  7043. yes:)
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7045. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7046. ac_tool_warned=yes ;;
  7047. esac
  7048.     DSYMUTIL=$ac_ct_DSYMUTIL
  7049.   fi
  7050. else
  7051.   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7052. fi
  7053.  
  7054.     if test -n "$ac_tool_prefix"; then
  7055.   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7056. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7058. $as_echo_n "checking for $ac_word... " >&6; }
  7059. if ${ac_cv_prog_NMEDIT+:} false; then :
  7060.   $as_echo_n "(cached) " >&6
  7061. else
  7062.   if test -n "$NMEDIT"; then
  7063.   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7064. else
  7065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7066. for as_dir in $PATH
  7067. do
  7068.   IFS=$as_save_IFS
  7069.   test -z "$as_dir" && as_dir=.
  7070.     for ac_exec_ext in '' $ac_executable_extensions; do
  7071.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7072.     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7073.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7074.     break 2
  7075.   fi
  7076. done
  7077.   done
  7078. IFS=$as_save_IFS
  7079.  
  7080. fi
  7081. fi
  7082. NMEDIT=$ac_cv_prog_NMEDIT
  7083. if test -n "$NMEDIT"; then
  7084.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7085. $as_echo "$NMEDIT" >&6; }
  7086. else
  7087.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7088. $as_echo "no" >&6; }
  7089. fi
  7090.  
  7091.  
  7092. fi
  7093. if test -z "$ac_cv_prog_NMEDIT"; then
  7094.   ac_ct_NMEDIT=$NMEDIT
  7095.   # Extract the first word of "nmedit", so it can be a program name with args.
  7096. set dummy nmedit; ac_word=$2
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7098. $as_echo_n "checking for $ac_word... " >&6; }
  7099. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7100.   $as_echo_n "(cached) " >&6
  7101. else
  7102.   if test -n "$ac_ct_NMEDIT"; then
  7103.   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7104. else
  7105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7106. for as_dir in $PATH
  7107. do
  7108.   IFS=$as_save_IFS
  7109.   test -z "$as_dir" && as_dir=.
  7110.     for ac_exec_ext in '' $ac_executable_extensions; do
  7111.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7112.     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7113.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7114.     break 2
  7115.   fi
  7116. done
  7117.   done
  7118. IFS=$as_save_IFS
  7119.  
  7120. fi
  7121. fi
  7122. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7123. if test -n "$ac_ct_NMEDIT"; then
  7124.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7125. $as_echo "$ac_ct_NMEDIT" >&6; }
  7126. else
  7127.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7128. $as_echo "no" >&6; }
  7129. fi
  7130.  
  7131.   if test "x$ac_ct_NMEDIT" = x; then
  7132.     NMEDIT=":"
  7133.   else
  7134.     case $cross_compiling:$ac_tool_warned in
  7135. yes:)
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7138. ac_tool_warned=yes ;;
  7139. esac
  7140.     NMEDIT=$ac_ct_NMEDIT
  7141.   fi
  7142. else
  7143.   NMEDIT="$ac_cv_prog_NMEDIT"
  7144. fi
  7145.  
  7146.     if test -n "$ac_tool_prefix"; then
  7147.   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7148. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7150. $as_echo_n "checking for $ac_word... " >&6; }
  7151. if ${ac_cv_prog_LIPO+:} false; then :
  7152.   $as_echo_n "(cached) " >&6
  7153. else
  7154.   if test -n "$LIPO"; then
  7155.   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7156. else
  7157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7158. for as_dir in $PATH
  7159. do
  7160.   IFS=$as_save_IFS
  7161.   test -z "$as_dir" && as_dir=.
  7162.     for ac_exec_ext in '' $ac_executable_extensions; do
  7163.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7164.     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7165.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7166.     break 2
  7167.   fi
  7168. done
  7169.   done
  7170. IFS=$as_save_IFS
  7171.  
  7172. fi
  7173. fi
  7174. LIPO=$ac_cv_prog_LIPO
  7175. if test -n "$LIPO"; then
  7176.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7177. $as_echo "$LIPO" >&6; }
  7178. else
  7179.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7180. $as_echo "no" >&6; }
  7181. fi
  7182.  
  7183.  
  7184. fi
  7185. if test -z "$ac_cv_prog_LIPO"; then
  7186.   ac_ct_LIPO=$LIPO
  7187.   # Extract the first word of "lipo", so it can be a program name with args.
  7188. set dummy lipo; ac_word=$2
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7190. $as_echo_n "checking for $ac_word... " >&6; }
  7191. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7192.   $as_echo_n "(cached) " >&6
  7193. else
  7194.   if test -n "$ac_ct_LIPO"; then
  7195.   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7196. else
  7197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7198. for as_dir in $PATH
  7199. do
  7200.   IFS=$as_save_IFS
  7201.   test -z "$as_dir" && as_dir=.
  7202.     for ac_exec_ext in '' $ac_executable_extensions; do
  7203.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7204.     ac_cv_prog_ac_ct_LIPO="lipo"
  7205.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7206.     break 2
  7207.   fi
  7208. done
  7209.   done
  7210. IFS=$as_save_IFS
  7211.  
  7212. fi
  7213. fi
  7214. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7215. if test -n "$ac_ct_LIPO"; then
  7216.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7217. $as_echo "$ac_ct_LIPO" >&6; }
  7218. else
  7219.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7220. $as_echo "no" >&6; }
  7221. fi
  7222.  
  7223.   if test "x$ac_ct_LIPO" = x; then
  7224.     LIPO=":"
  7225.   else
  7226.     case $cross_compiling:$ac_tool_warned in
  7227. yes:)
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7229. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7230. ac_tool_warned=yes ;;
  7231. esac
  7232.     LIPO=$ac_ct_LIPO
  7233.   fi
  7234. else
  7235.   LIPO="$ac_cv_prog_LIPO"
  7236. fi
  7237.  
  7238.     if test -n "$ac_tool_prefix"; then
  7239.   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7240. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7242. $as_echo_n "checking for $ac_word... " >&6; }
  7243. if ${ac_cv_prog_OTOOL+:} false; then :
  7244.   $as_echo_n "(cached) " >&6
  7245. else
  7246.   if test -n "$OTOOL"; then
  7247.   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7248. else
  7249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7250. for as_dir in $PATH
  7251. do
  7252.   IFS=$as_save_IFS
  7253.   test -z "$as_dir" && as_dir=.
  7254.     for ac_exec_ext in '' $ac_executable_extensions; do
  7255.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7256.     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7257.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7258.     break 2
  7259.   fi
  7260. done
  7261.   done
  7262. IFS=$as_save_IFS
  7263.  
  7264. fi
  7265. fi
  7266. OTOOL=$ac_cv_prog_OTOOL
  7267. if test -n "$OTOOL"; then
  7268.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7269. $as_echo "$OTOOL" >&6; }
  7270. else
  7271.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7272. $as_echo "no" >&6; }
  7273. fi
  7274.  
  7275.  
  7276. fi
  7277. if test -z "$ac_cv_prog_OTOOL"; then
  7278.   ac_ct_OTOOL=$OTOOL
  7279.   # Extract the first word of "otool", so it can be a program name with args.
  7280. set dummy otool; ac_word=$2
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7282. $as_echo_n "checking for $ac_word... " >&6; }
  7283. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7284.   $as_echo_n "(cached) " >&6
  7285. else
  7286.   if test -n "$ac_ct_OTOOL"; then
  7287.   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7288. else
  7289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7290. for as_dir in $PATH
  7291. do
  7292.   IFS=$as_save_IFS
  7293.   test -z "$as_dir" && as_dir=.
  7294.     for ac_exec_ext in '' $ac_executable_extensions; do
  7295.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7296.     ac_cv_prog_ac_ct_OTOOL="otool"
  7297.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7298.     break 2
  7299.   fi
  7300. done
  7301.   done
  7302. IFS=$as_save_IFS
  7303.  
  7304. fi
  7305. fi
  7306. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7307. if test -n "$ac_ct_OTOOL"; then
  7308.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7309. $as_echo "$ac_ct_OTOOL" >&6; }
  7310. else
  7311.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7312. $as_echo "no" >&6; }
  7313. fi
  7314.  
  7315.   if test "x$ac_ct_OTOOL" = x; then
  7316.     OTOOL=":"
  7317.   else
  7318.     case $cross_compiling:$ac_tool_warned in
  7319. yes:)
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7321. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7322. ac_tool_warned=yes ;;
  7323. esac
  7324.     OTOOL=$ac_ct_OTOOL
  7325.   fi
  7326. else
  7327.   OTOOL="$ac_cv_prog_OTOOL"
  7328. fi
  7329.  
  7330.     if test -n "$ac_tool_prefix"; then
  7331.   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7332. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7334. $as_echo_n "checking for $ac_word... " >&6; }
  7335. if ${ac_cv_prog_OTOOL64+:} false; then :
  7336.   $as_echo_n "(cached) " >&6
  7337. else
  7338.   if test -n "$OTOOL64"; then
  7339.   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7340. else
  7341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7342. for as_dir in $PATH
  7343. do
  7344.   IFS=$as_save_IFS
  7345.   test -z "$as_dir" && as_dir=.
  7346.     for ac_exec_ext in '' $ac_executable_extensions; do
  7347.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7348.     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7349.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7350.     break 2
  7351.   fi
  7352. done
  7353.   done
  7354. IFS=$as_save_IFS
  7355.  
  7356. fi
  7357. fi
  7358. OTOOL64=$ac_cv_prog_OTOOL64
  7359. if test -n "$OTOOL64"; then
  7360.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7361. $as_echo "$OTOOL64" >&6; }
  7362. else
  7363.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7364. $as_echo "no" >&6; }
  7365. fi
  7366.  
  7367.  
  7368. fi
  7369. if test -z "$ac_cv_prog_OTOOL64"; then
  7370.   ac_ct_OTOOL64=$OTOOL64
  7371.   # Extract the first word of "otool64", so it can be a program name with args.
  7372. set dummy otool64; ac_word=$2
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7374. $as_echo_n "checking for $ac_word... " >&6; }
  7375. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7376.   $as_echo_n "(cached) " >&6
  7377. else
  7378.   if test -n "$ac_ct_OTOOL64"; then
  7379.   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7380. else
  7381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7382. for as_dir in $PATH
  7383. do
  7384.   IFS=$as_save_IFS
  7385.   test -z "$as_dir" && as_dir=.
  7386.     for ac_exec_ext in '' $ac_executable_extensions; do
  7387.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7388.     ac_cv_prog_ac_ct_OTOOL64="otool64"
  7389.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7390.     break 2
  7391.   fi
  7392. done
  7393.   done
  7394. IFS=$as_save_IFS
  7395.  
  7396. fi
  7397. fi
  7398. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7399. if test -n "$ac_ct_OTOOL64"; then
  7400.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7401. $as_echo "$ac_ct_OTOOL64" >&6; }
  7402. else
  7403.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7404. $as_echo "no" >&6; }
  7405. fi
  7406.  
  7407.   if test "x$ac_ct_OTOOL64" = x; then
  7408.     OTOOL64=":"
  7409.   else
  7410.     case $cross_compiling:$ac_tool_warned in
  7411. yes:)
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7414. ac_tool_warned=yes ;;
  7415. esac
  7416.     OTOOL64=$ac_ct_OTOOL64
  7417.   fi
  7418. else
  7419.   OTOOL64="$ac_cv_prog_OTOOL64"
  7420. fi
  7421.  
  7422.  
  7423.  
  7424.  
  7425.  
  7426.  
  7427.  
  7428.  
  7429.  
  7430.  
  7431.  
  7432.  
  7433.  
  7434.  
  7435.  
  7436.  
  7437.  
  7438.  
  7439.  
  7440.  
  7441.  
  7442.  
  7443.  
  7444.  
  7445.  
  7446.  
  7447.  
  7448.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7449. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7450. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7451.   $as_echo_n "(cached) " >&6
  7452. else
  7453.   lt_cv_apple_cc_single_mod=no
  7454.       if test -z "${LT_MULTI_MODULE}"; then
  7455.         # By default we will add the -single_module flag. You can override
  7456.         # by either setting the environment variable LT_MULTI_MODULE
  7457.         # non-empty at configure time, or by adding -multi_module to the
  7458.         # link flags.
  7459.         rm -rf libconftest.dylib*
  7460.         echo "int foo(void){return 1;}" > conftest.c
  7461.         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7462. -dynamiclib -Wl,-single_module conftest.c" >&5
  7463.         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7464.           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7465.         _lt_result=$?
  7466.         # If there is a non-empty error log, and "single_module"
  7467.         # appears in it, assume the flag caused a linker warning
  7468.         if test -s conftest.err && $GREP single_module conftest.err; then
  7469.           cat conftest.err >&5
  7470.         # Otherwise, if the output was created with a 0 exit code from
  7471.         # the compiler, it worked.
  7472.         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7473.           lt_cv_apple_cc_single_mod=yes
  7474.         else
  7475.           cat conftest.err >&5
  7476.         fi
  7477.         rm -rf libconftest.dylib*
  7478.         rm -f conftest.*
  7479.       fi
  7480. fi
  7481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7482. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7483.  
  7484.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7485. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7486. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7487.   $as_echo_n "(cached) " >&6
  7488. else
  7489.   lt_cv_ld_exported_symbols_list=no
  7490.       save_LDFLAGS=$LDFLAGS
  7491.       echo "_main" > conftest.sym
  7492.       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7493.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7494. /* end confdefs.h.  */
  7495.  
  7496. int
  7497. main ()
  7498. {
  7499.  
  7500.   ;
  7501.   return 0;
  7502. }
  7503. _ACEOF
  7504. if ac_fn_c_try_link "$LINENO"; then :
  7505.   lt_cv_ld_exported_symbols_list=yes
  7506. else
  7507.   lt_cv_ld_exported_symbols_list=no
  7508. fi
  7509. rm -f core conftest.err conftest.$ac_objext \
  7510.     conftest$ac_exeext conftest.$ac_ext
  7511.         LDFLAGS="$save_LDFLAGS"
  7512.  
  7513. fi
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7515. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7516.  
  7517.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7518. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7519. if ${lt_cv_ld_force_load+:} false; then :
  7520.   $as_echo_n "(cached) " >&6
  7521. else
  7522.   lt_cv_ld_force_load=no
  7523.       cat > conftest.c << _LT_EOF
  7524. int forced_loaded() { return 2;}
  7525. _LT_EOF
  7526.       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7527.       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7528.       echo "$AR cru libconftest.a conftest.o" >&5
  7529.       $AR cru libconftest.a conftest.o 2>&5
  7530.       echo "$RANLIB libconftest.a" >&5
  7531.       $RANLIB libconftest.a 2>&5
  7532.       cat > conftest.c << _LT_EOF
  7533. int main() { return 0;}
  7534. _LT_EOF
  7535.       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7536.       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7537.       _lt_result=$?
  7538.       if test -s conftest.err && $GREP force_load conftest.err; then
  7539.         cat conftest.err >&5
  7540.       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7541.         lt_cv_ld_force_load=yes
  7542.       else
  7543.         cat conftest.err >&5
  7544.       fi
  7545.         rm -f conftest.err libconftest.a conftest conftest.c
  7546.         rm -rf conftest.dSYM
  7547.  
  7548. fi
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7550. $as_echo "$lt_cv_ld_force_load" >&6; }
  7551.     case $host_os in
  7552.     rhapsody* | darwin1.[012])
  7553.       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7554.     darwin1.*)
  7555.       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7556.     darwin*) # darwin 5.x on
  7557.       # if running on 10.5 or later, the deployment target defaults
  7558.       # to the OS version, if on x86, and 10.4, the deployment
  7559.       # target defaults to 10.4. Don't you love it?
  7560.       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7561.         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7562.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7563.         10.[012]*)
  7564.           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7565.         10.*)
  7566.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7567.       esac
  7568.     ;;
  7569.   esac
  7570.     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7571.       _lt_dar_single_mod='$single_module'
  7572.     fi
  7573.     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7574.       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7575.     else
  7576.       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7577.     fi
  7578.     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7579.       _lt_dsymutil='~$DSYMUTIL $lib || :'
  7580.     else
  7581.       _lt_dsymutil=
  7582.     fi
  7583.     ;;
  7584.   esac
  7585.  
  7586. ac_ext=c
  7587. ac_cpp='$CPP $CPPFLAGS'
  7588. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7589. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7590. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7592. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7593. # On Suns, sometimes $CPP names a directory.
  7594. if test -n "$CPP" && test -d "$CPP"; then
  7595.   CPP=
  7596. fi
  7597. if test -z "$CPP"; then
  7598.   if ${ac_cv_prog_CPP+:} false; then :
  7599.   $as_echo_n "(cached) " >&6
  7600. else
  7601.       # Double quotes because CPP needs to be expanded
  7602.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7603.     do
  7604.       ac_preproc_ok=false
  7605. for ac_c_preproc_warn_flag in '' yes
  7606. do
  7607.   # Use a header file that comes with gcc, so configuring glibc
  7608.   # with a fresh cross-compiler works.
  7609.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7610.   # <limits.h> exists even on freestanding compilers.
  7611.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7612.   # not just through cpp. "Syntax error" is here to catch this case.
  7613.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7614. /* end confdefs.h.  */
  7615. #ifdef __STDC__
  7616. # include <limits.h>
  7617. #else
  7618. # include <assert.h>
  7619. #endif
  7620.                      Syntax error
  7621. _ACEOF
  7622. if ac_fn_c_try_cpp "$LINENO"; then :
  7623.  
  7624. else
  7625.   # Broken: fails on valid input.
  7626. continue
  7627. fi
  7628. rm -f conftest.err conftest.i conftest.$ac_ext
  7629.  
  7630.   # OK, works on sane cases.  Now check whether nonexistent headers
  7631.   # can be detected and how.
  7632.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7633. /* end confdefs.h.  */
  7634. #include <ac_nonexistent.h>
  7635. _ACEOF
  7636. if ac_fn_c_try_cpp "$LINENO"; then :
  7637.   # Broken: success on invalid input.
  7638. continue
  7639. else
  7640.   # Passes both tests.
  7641. ac_preproc_ok=:
  7642. break
  7643. fi
  7644. rm -f conftest.err conftest.i conftest.$ac_ext
  7645.  
  7646. done
  7647. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7648. rm -f conftest.i conftest.err conftest.$ac_ext
  7649. if $ac_preproc_ok; then :
  7650.   break
  7651. fi
  7652.  
  7653.     done
  7654.     ac_cv_prog_CPP=$CPP
  7655.  
  7656. fi
  7657.   CPP=$ac_cv_prog_CPP
  7658. else
  7659.   ac_cv_prog_CPP=$CPP
  7660. fi
  7661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7662. $as_echo "$CPP" >&6; }
  7663. ac_preproc_ok=false
  7664. for ac_c_preproc_warn_flag in '' yes
  7665. do
  7666.   # Use a header file that comes with gcc, so configuring glibc
  7667.   # with a fresh cross-compiler works.
  7668.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7669.   # <limits.h> exists even on freestanding compilers.
  7670.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7671.   # not just through cpp. "Syntax error" is here to catch this case.
  7672.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7673. /* end confdefs.h.  */
  7674. #ifdef __STDC__
  7675. # include <limits.h>
  7676. #else
  7677. # include <assert.h>
  7678. #endif
  7679.                      Syntax error
  7680. _ACEOF
  7681. if ac_fn_c_try_cpp "$LINENO"; then :
  7682.  
  7683. else
  7684.   # Broken: fails on valid input.
  7685. continue
  7686. fi
  7687. rm -f conftest.err conftest.i conftest.$ac_ext
  7688.  
  7689.   # OK, works on sane cases.  Now check whether nonexistent headers
  7690.   # can be detected and how.
  7691.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7692. /* end confdefs.h.  */
  7693. #include <ac_nonexistent.h>
  7694. _ACEOF
  7695. if ac_fn_c_try_cpp "$LINENO"; then :
  7696.   # Broken: success on invalid input.
  7697. continue
  7698. else
  7699.   # Passes both tests.
  7700. ac_preproc_ok=:
  7701. break
  7702. fi
  7703. rm -f conftest.err conftest.i conftest.$ac_ext
  7704.  
  7705. done
  7706. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7707. rm -f conftest.i conftest.err conftest.$ac_ext
  7708. if $ac_preproc_ok; then :
  7709.  
  7710. else
  7711.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7712. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7713. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7714. See \`config.log' for more details" "$LINENO" 5; }
  7715. fi
  7716.  
  7717. ac_ext=c
  7718. ac_cpp='$CPP $CPPFLAGS'
  7719. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7720. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7721. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7722.  
  7723.  
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7725. $as_echo_n "checking for ANSI C header files... " >&6; }
  7726. if ${ac_cv_header_stdc+:} false; then :
  7727.   $as_echo_n "(cached) " >&6
  7728. else
  7729.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7730. /* end confdefs.h.  */
  7731. #include <stdlib.h>
  7732. #include <stdarg.h>
  7733. #include <string.h>
  7734. #include <float.h>
  7735.  
  7736. int
  7737. main ()
  7738. {
  7739.  
  7740.   ;
  7741.   return 0;
  7742. }
  7743. _ACEOF
  7744. if ac_fn_c_try_compile "$LINENO"; then :
  7745.   ac_cv_header_stdc=yes
  7746. else
  7747.   ac_cv_header_stdc=no
  7748. fi
  7749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7750.  
  7751. if test $ac_cv_header_stdc = yes; then
  7752.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7753.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7754. /* end confdefs.h.  */
  7755. #include <string.h>
  7756.  
  7757. _ACEOF
  7758. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7759.   $EGREP "memchr" >/dev/null 2>&1; then :
  7760.  
  7761. else
  7762.   ac_cv_header_stdc=no
  7763. fi
  7764. rm -f conftest*
  7765.  
  7766. fi
  7767.  
  7768. if test $ac_cv_header_stdc = yes; then
  7769.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7770.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7771. /* end confdefs.h.  */
  7772. #include <stdlib.h>
  7773.  
  7774. _ACEOF
  7775. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7776.   $EGREP "free" >/dev/null 2>&1; then :
  7777.  
  7778. else
  7779.   ac_cv_header_stdc=no
  7780. fi
  7781. rm -f conftest*
  7782.  
  7783. fi
  7784.  
  7785. if test $ac_cv_header_stdc = yes; then
  7786.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7787.   if test "$cross_compiling" = yes; then :
  7788.   :
  7789. else
  7790.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7791. /* end confdefs.h.  */
  7792. #include <ctype.h>
  7793. #include <stdlib.h>
  7794. #if ((' ' & 0x0FF) == 0x020)
  7795. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7796. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7797. #else
  7798. # define ISLOWER(c) \
  7799.                    (('a' <= (c) && (c) <= 'i') \
  7800.                      || ('j' <= (c) && (c) <= 'r') \
  7801.                      || ('s' <= (c) && (c) <= 'z'))
  7802. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7803. #endif
  7804.  
  7805. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7806. int
  7807. main ()
  7808. {
  7809.   int i;
  7810.   for (i = 0; i < 256; i++)
  7811.     if (XOR (islower (i), ISLOWER (i))
  7812.         || toupper (i) != TOUPPER (i))
  7813.       return 2;
  7814.   return 0;
  7815. }
  7816. _ACEOF
  7817. if ac_fn_c_try_run "$LINENO"; then :
  7818.  
  7819. else
  7820.   ac_cv_header_stdc=no
  7821. fi
  7822. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7823.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  7824. fi
  7825.  
  7826. fi
  7827. fi
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7829. $as_echo "$ac_cv_header_stdc" >&6; }
  7830. if test $ac_cv_header_stdc = yes; then
  7831.  
  7832. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7833.  
  7834. fi
  7835.  
  7836. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7837. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7838.                   inttypes.h stdint.h unistd.h
  7839. do :
  7840.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7841. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7842. "
  7843. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7844.   cat >>confdefs.h <<_ACEOF
  7845. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7846. _ACEOF
  7847.  
  7848. fi
  7849.  
  7850. done
  7851.  
  7852.  
  7853. for ac_header in dlfcn.h
  7854. do :
  7855.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7856. "
  7857. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7858.   cat >>confdefs.h <<_ACEOF
  7859. #define HAVE_DLFCN_H 1
  7860. _ACEOF
  7861.  
  7862. fi
  7863.  
  7864. done
  7865.  
  7866.  
  7867.  
  7868.  
  7869.  
  7870. # Set options
  7871.  
  7872.  
  7873.  
  7874.         enable_dlopen=no
  7875.  
  7876.  
  7877.   enable_win32_dll=no
  7878.  
  7879.  
  7880.             # Check whether --enable-shared was given.
  7881. if test "${enable_shared+set}" = set; then :
  7882.   enableval=$enable_shared; p=${PACKAGE-default}
  7883.     case $enableval in
  7884.     yes) enable_shared=yes ;;
  7885.     no) enable_shared=no ;;
  7886.     *)
  7887.       enable_shared=no
  7888.       # Look at the argument we got.  We use all the common list separators.
  7889.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7890.       for pkg in $enableval; do
  7891.         IFS="$lt_save_ifs"
  7892.         if test "X$pkg" = "X$p"; then
  7893.           enable_shared=yes
  7894.         fi
  7895.       done
  7896.       IFS="$lt_save_ifs"
  7897.       ;;
  7898.     esac
  7899. else
  7900.   enable_shared=yes
  7901. fi
  7902.  
  7903.  
  7904.  
  7905.  
  7906.  
  7907.  
  7908.  
  7909.  
  7910.  
  7911.  
  7912.  
  7913. # Check whether --with-pic was given.
  7914. if test "${with_pic+set}" = set; then :
  7915.   withval=$with_pic; lt_p=${PACKAGE-default}
  7916.     case $withval in
  7917.     yes|no) pic_mode=$withval ;;
  7918.     *)
  7919.       pic_mode=default
  7920.       # Look at the argument we got.  We use all the common list separators.
  7921.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7922.       for lt_pkg in $withval; do
  7923.         IFS="$lt_save_ifs"
  7924.         if test "X$lt_pkg" = "X$lt_p"; then
  7925.           pic_mode=yes
  7926.         fi
  7927.       done
  7928.       IFS="$lt_save_ifs"
  7929.       ;;
  7930.     esac
  7931. else
  7932.   pic_mode=default
  7933. fi
  7934.  
  7935.  
  7936. test -z "$pic_mode" && pic_mode=default
  7937.  
  7938.  
  7939.  
  7940.  
  7941.  
  7942.  
  7943.  
  7944.   # Check whether --enable-fast-install was given.
  7945. if test "${enable_fast_install+set}" = set; then :
  7946.   enableval=$enable_fast_install; p=${PACKAGE-default}
  7947.     case $enableval in
  7948.     yes) enable_fast_install=yes ;;
  7949.     no) enable_fast_install=no ;;
  7950.     *)
  7951.       enable_fast_install=no
  7952.       # Look at the argument we got.  We use all the common list separators.
  7953.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7954.       for pkg in $enableval; do
  7955.         IFS="$lt_save_ifs"
  7956.         if test "X$pkg" = "X$p"; then
  7957.           enable_fast_install=yes
  7958.         fi
  7959.       done
  7960.       IFS="$lt_save_ifs"
  7961.       ;;
  7962.     esac
  7963. else
  7964.   enable_fast_install=yes
  7965. fi
  7966.  
  7967.  
  7968.  
  7969.  
  7970.  
  7971.  
  7972.  
  7973.  
  7974.  
  7975.  
  7976.  
  7977. # This can be used to rebuild libtool when needed
  7978. LIBTOOL_DEPS="$ltmain"
  7979.  
  7980. # Always use our own libtool.
  7981. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7982.  
  7983.  
  7984.  
  7985.  
  7986.  
  7987.  
  7988.  
  7989.  
  7990.  
  7991.  
  7992.  
  7993.  
  7994.  
  7995.  
  7996.  
  7997.  
  7998.  
  7999.  
  8000.  
  8001.  
  8002.  
  8003.  
  8004.  
  8005.  
  8006.  
  8007.  
  8008.  
  8009.  
  8010.  
  8011.  
  8012. test -z "$LN_S" && LN_S="ln -s"
  8013.  
  8014.  
  8015.  
  8016.  
  8017.  
  8018.  
  8019.  
  8020.  
  8021.  
  8022.  
  8023.  
  8024.  
  8025.  
  8026.  
  8027. if test -n "${ZSH_VERSION+set}" ; then
  8028.    setopt NO_GLOB_SUBST
  8029. fi
  8030.  
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8032. $as_echo_n "checking for objdir... " >&6; }
  8033. if ${lt_cv_objdir+:} false; then :
  8034.   $as_echo_n "(cached) " >&6
  8035. else
  8036.   rm -f .libs 2>/dev/null
  8037. mkdir .libs 2>/dev/null
  8038. if test -d .libs; then
  8039.   lt_cv_objdir=.libs
  8040. else
  8041.   # MS-DOS does not allow filenames that begin with a dot.
  8042.   lt_cv_objdir=_libs
  8043. fi
  8044. rmdir .libs 2>/dev/null
  8045. fi
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8047. $as_echo "$lt_cv_objdir" >&6; }
  8048. objdir=$lt_cv_objdir
  8049.  
  8050.  
  8051.  
  8052.  
  8053.  
  8054. cat >>confdefs.h <<_ACEOF
  8055. #define LT_OBJDIR "$lt_cv_objdir/"
  8056. _ACEOF
  8057.  
  8058.  
  8059.  
  8060.  
  8061. case $host_os in
  8062. aix3*)
  8063.   # AIX sometimes has problems with the GCC collect2 program.  For some
  8064.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  8065.   # vanish in a puff of smoke.
  8066.   if test "X${COLLECT_NAMES+set}" != Xset; then
  8067.     COLLECT_NAMES=
  8068.     export COLLECT_NAMES
  8069.   fi
  8070.   ;;
  8071. esac
  8072.  
  8073. # Global variables:
  8074. ofile=libtool
  8075. can_build_shared=yes
  8076.  
  8077. # All known linkers require a `.a' archive for static linking (except MSVC,
  8078. # which needs '.lib').
  8079. libext=a
  8080.  
  8081. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8082.  
  8083. old_CC="$CC"
  8084. old_CFLAGS="$CFLAGS"
  8085.  
  8086. # Set sane defaults for various variables
  8087. test -z "$CC" && CC=cc
  8088. test -z "$LTCC" && LTCC=$CC
  8089. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8090. test -z "$LD" && LD=ld
  8091. test -z "$ac_objext" && ac_objext=o
  8092.  
  8093. for cc_temp in $compiler""; do
  8094.   case $cc_temp in
  8095.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8096.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8097.     \-*) ;;
  8098.     *) break;;
  8099.   esac
  8100. done
  8101. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8102.  
  8103.  
  8104. # Only perform the check for file, if the check method requires it
  8105. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8106. case $deplibs_check_method in
  8107. file_magic*)
  8108.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8109.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8110. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8111. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8112.   $as_echo_n "(cached) " >&6
  8113. else
  8114.   case $MAGIC_CMD in
  8115. [\\/*] |  ?:[\\/]*)
  8116.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8117.   ;;
  8118. *)
  8119.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8120.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8121.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8122.   for ac_dir in $ac_dummy; do
  8123.     IFS="$lt_save_ifs"
  8124.     test -z "$ac_dir" && ac_dir=.
  8125.     if test -f $ac_dir/${ac_tool_prefix}file; then
  8126.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8127.       if test -n "$file_magic_test_file"; then
  8128.         case $deplibs_check_method in
  8129.         "file_magic "*)
  8130.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8131.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8132.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8133.             $EGREP "$file_magic_regex" > /dev/null; then
  8134.             :
  8135.           else
  8136.             cat <<_LT_EOF 1>&2
  8137.  
  8138. *** Warning: the command libtool uses to detect shared libraries,
  8139. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8140. *** The result is that libtool may fail to recognize shared libraries
  8141. *** as such.  This will affect the creation of libtool libraries that
  8142. *** depend on shared libraries, but programs linked with such libtool
  8143. *** libraries will work regardless of this problem.  Nevertheless, you
  8144. *** may want to report the problem to your system manager and/or to
  8145. *** bug-libtool@gnu.org
  8146.  
  8147. _LT_EOF
  8148.           fi ;;
  8149.         esac
  8150.       fi
  8151.       break
  8152.     fi
  8153.   done
  8154.   IFS="$lt_save_ifs"
  8155.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8156.   ;;
  8157. esac
  8158. fi
  8159.  
  8160. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8161. if test -n "$MAGIC_CMD"; then
  8162.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8163. $as_echo "$MAGIC_CMD" >&6; }
  8164. else
  8165.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8166. $as_echo "no" >&6; }
  8167. fi
  8168.  
  8169.  
  8170.  
  8171.  
  8172.  
  8173. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8174.   if test -n "$ac_tool_prefix"; then
  8175.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8176. $as_echo_n "checking for file... " >&6; }
  8177. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8178.   $as_echo_n "(cached) " >&6
  8179. else
  8180.   case $MAGIC_CMD in
  8181. [\\/*] |  ?:[\\/]*)
  8182.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8183.   ;;
  8184. *)
  8185.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8186.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8187.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8188.   for ac_dir in $ac_dummy; do
  8189.     IFS="$lt_save_ifs"
  8190.     test -z "$ac_dir" && ac_dir=.
  8191.     if test -f $ac_dir/file; then
  8192.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8193.       if test -n "$file_magic_test_file"; then
  8194.         case $deplibs_check_method in
  8195.         "file_magic "*)
  8196.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8197.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8198.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8199.             $EGREP "$file_magic_regex" > /dev/null; then
  8200.             :
  8201.           else
  8202.             cat <<_LT_EOF 1>&2
  8203.  
  8204. *** Warning: the command libtool uses to detect shared libraries,
  8205. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8206. *** The result is that libtool may fail to recognize shared libraries
  8207. *** as such.  This will affect the creation of libtool libraries that
  8208. *** depend on shared libraries, but programs linked with such libtool
  8209. *** libraries will work regardless of this problem.  Nevertheless, you
  8210. *** may want to report the problem to your system manager and/or to
  8211. *** bug-libtool@gnu.org
  8212.  
  8213. _LT_EOF
  8214.           fi ;;
  8215.         esac
  8216.       fi
  8217.       break
  8218.     fi
  8219.   done
  8220.   IFS="$lt_save_ifs"
  8221.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8222.   ;;
  8223. esac
  8224. fi
  8225.  
  8226. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8227. if test -n "$MAGIC_CMD"; then
  8228.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8229. $as_echo "$MAGIC_CMD" >&6; }
  8230. else
  8231.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8232. $as_echo "no" >&6; }
  8233. fi
  8234.  
  8235.  
  8236.   else
  8237.     MAGIC_CMD=:
  8238.   fi
  8239. fi
  8240.  
  8241.   fi
  8242.   ;;
  8243. esac
  8244.  
  8245. # Use C for the default configuration in the libtool script
  8246.  
  8247. lt_save_CC="$CC"
  8248. ac_ext=c
  8249. ac_cpp='$CPP $CPPFLAGS'
  8250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8253.  
  8254.  
  8255. # Source file extension for C test sources.
  8256. ac_ext=c
  8257.  
  8258. # Object file extension for compiled C test sources.
  8259. objext=o
  8260. objext=$objext
  8261.  
  8262. # Code to be used in simple compile tests
  8263. lt_simple_compile_test_code="int some_variable = 0;"
  8264.  
  8265. # Code to be used in simple link tests
  8266. lt_simple_link_test_code='int main(){return(0);}'
  8267.  
  8268.  
  8269.  
  8270.  
  8271.  
  8272.  
  8273.  
  8274. # If no C compiler was specified, use CC.
  8275. LTCC=${LTCC-"$CC"}
  8276.  
  8277. # If no C compiler flags were specified, use CFLAGS.
  8278. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8279.  
  8280. # Allow CC to be a program name with arguments.
  8281. compiler=$CC
  8282.  
  8283. # Save the default compiler, since it gets overwritten when the other
  8284. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8285. compiler_DEFAULT=$CC
  8286.  
  8287. # save warnings/boilerplate of simple test code
  8288. ac_outfile=conftest.$ac_objext
  8289. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8290. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8291. _lt_compiler_boilerplate=`cat conftest.err`
  8292. $RM conftest*
  8293.  
  8294. ac_outfile=conftest.$ac_objext
  8295. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8296. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8297. _lt_linker_boilerplate=`cat conftest.err`
  8298. $RM -r conftest*
  8299.  
  8300.  
  8301. if test -n "$compiler"; then
  8302.  
  8303. lt_prog_compiler_no_builtin_flag=
  8304.  
  8305. if test "$GCC" = yes; then
  8306.   case $cc_basename in
  8307.   nvcc*)
  8308.     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8309.   *)
  8310.     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8311.   esac
  8312.  
  8313.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8314. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8315. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8316.   $as_echo_n "(cached) " >&6
  8317. else
  8318.   lt_cv_prog_compiler_rtti_exceptions=no
  8319.    ac_outfile=conftest.$ac_objext
  8320.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8321.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  8322.    # Insert the option either (1) after the last *FLAGS variable, or
  8323.    # (2) before a word containing "conftest.", or (3) at the end.
  8324.    # Note that $ac_compile itself does not contain backslashes and begins
  8325.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8326.    # The option is referenced via a variable to avoid confusing sed.
  8327.    lt_compile=`echo "$ac_compile" | $SED \
  8328.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8329.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8330.    -e 's:$: $lt_compiler_flag:'`
  8331.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8332.    (eval "$lt_compile" 2>conftest.err)
  8333.    ac_status=$?
  8334.    cat conftest.err >&5
  8335.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8336.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8337.      # The compiler can only warn and ignore the option if not recognized
  8338.      # So say no if there are warnings other than the usual output.
  8339.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8340.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8341.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8342.        lt_cv_prog_compiler_rtti_exceptions=yes
  8343.      fi
  8344.    fi
  8345.    $RM conftest*
  8346.  
  8347. fi
  8348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8349. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8350.  
  8351. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8352.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8353. else
  8354.     :
  8355. fi
  8356.  
  8357. fi
  8358.  
  8359.  
  8360.  
  8361.  
  8362.  
  8363.  
  8364.   lt_prog_compiler_wl=
  8365. lt_prog_compiler_pic=
  8366. lt_prog_compiler_static=
  8367.  
  8368.  
  8369.   if test "$GCC" = yes; then
  8370.     lt_prog_compiler_wl='-Wl,'
  8371.     lt_prog_compiler_static='-static'
  8372.  
  8373.     case $host_os in
  8374.       aix*)
  8375.       # All AIX code is PIC.
  8376.       if test "$host_cpu" = ia64; then
  8377.         # AIX 5 now supports IA64 processor
  8378.         lt_prog_compiler_static='-Bstatic'
  8379.       fi
  8380.       ;;
  8381.  
  8382.     amigaos*)
  8383.       case $host_cpu in
  8384.       powerpc)
  8385.             # see comment about AmigaOS4 .so support
  8386.             lt_prog_compiler_pic='-fPIC'
  8387.         ;;
  8388.       m68k)
  8389.             # FIXME: we need at least 68020 code to build shared libraries, but
  8390.             # adding the `-m68020' flag to GCC prevents building anything better,
  8391.             # like `-m68040'.
  8392.             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8393.         ;;
  8394.       esac
  8395.       ;;
  8396.  
  8397.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8398.       # PIC is the default for these OSes.
  8399.       ;;
  8400.  
  8401.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8402.       # This hack is so that the source file can tell whether it is being
  8403.       # built for inclusion in a dll (and should export symbols for example).
  8404.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8405.       # (--disable-auto-import) libraries
  8406.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8407.       ;;
  8408.  
  8409.     darwin* | rhapsody*)
  8410.       # PIC is the default on this platform
  8411.       # Common symbols not allowed in MH_DYLIB files
  8412.       lt_prog_compiler_pic='-fno-common'
  8413.       ;;
  8414.  
  8415.     haiku*)
  8416.       # PIC is the default for Haiku.
  8417.       # The "-static" flag exists, but is broken.
  8418.       lt_prog_compiler_static=
  8419.       ;;
  8420.  
  8421.     hpux*)
  8422.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8423.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  8424.       # sets the default TLS model and affects inlining.
  8425.       case $host_cpu in
  8426.       hppa*64*)
  8427.         # +Z the default
  8428.         ;;
  8429.       *)
  8430.         lt_prog_compiler_pic='-fPIC'
  8431.         ;;
  8432.       esac
  8433.       ;;
  8434.  
  8435.     interix[3-9]*)
  8436.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8437.       # Instead, we relocate shared libraries at runtime.
  8438.       ;;
  8439.  
  8440.     msdosdjgpp*)
  8441.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  8442.       # on systems that don't support them.
  8443.       lt_prog_compiler_can_build_shared=no
  8444.       enable_shared=no
  8445.       ;;
  8446.  
  8447.     *nto* | *qnx*)
  8448.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8449.       # it will coredump.
  8450.       lt_prog_compiler_pic='-fPIC -shared'
  8451.       ;;
  8452.  
  8453.     sysv4*MP*)
  8454.       if test -d /usr/nec; then
  8455.         lt_prog_compiler_pic=-Kconform_pic
  8456.       fi
  8457.       ;;
  8458.  
  8459.     *)
  8460.       lt_prog_compiler_pic='-fPIC'
  8461.       ;;
  8462.     esac
  8463.  
  8464.     case $cc_basename in
  8465.     nvcc*) # Cuda Compiler Driver 2.2
  8466.       lt_prog_compiler_wl='-Xlinker '
  8467.       if test -n "$lt_prog_compiler_pic"; then
  8468.         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8469.       fi
  8470.       ;;
  8471.     esac
  8472.   else
  8473.     # PORTME Check for flag to pass linker flags through the system compiler.
  8474.     case $host_os in
  8475.     aix*)
  8476.       lt_prog_compiler_wl='-Wl,'
  8477.       if test "$host_cpu" = ia64; then
  8478.         # AIX 5 now supports IA64 processor
  8479.         lt_prog_compiler_static='-Bstatic'
  8480.       else
  8481.         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8482.       fi
  8483.       ;;
  8484.  
  8485.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8486.       # This hack is so that the source file can tell whether it is being
  8487.       # built for inclusion in a dll (and should export symbols for example).
  8488.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8489.       ;;
  8490.  
  8491.     hpux9* | hpux10* | hpux11*)
  8492.       lt_prog_compiler_wl='-Wl,'
  8493.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8494.       # not for PA HP-UX.
  8495.       case $host_cpu in
  8496.       hppa*64*|ia64*)
  8497.         # +Z the default
  8498.         ;;
  8499.       *)
  8500.         lt_prog_compiler_pic='+Z'
  8501.         ;;
  8502.       esac
  8503.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8504.       lt_prog_compiler_static='${wl}-a ${wl}archive'
  8505.       ;;
  8506.  
  8507.     irix5* | irix6* | nonstopux*)
  8508.       lt_prog_compiler_wl='-Wl,'
  8509.       # PIC (with -KPIC) is the default.
  8510.       lt_prog_compiler_static='-non_shared'
  8511.       ;;
  8512.  
  8513.     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8514.       case $cc_basename in
  8515.       # old Intel for x86_64 which still supported -KPIC.
  8516.       ecc*)
  8517.         lt_prog_compiler_wl='-Wl,'
  8518.         lt_prog_compiler_pic='-KPIC'
  8519.         lt_prog_compiler_static='-static'
  8520.         ;;
  8521.       # icc used to be incompatible with GCC.
  8522.       # ICC 10 doesn't accept -KPIC any more.
  8523.       icc* | ifort*)
  8524.         lt_prog_compiler_wl='-Wl,'
  8525.         lt_prog_compiler_pic='-fPIC'
  8526.         lt_prog_compiler_static='-static'
  8527.         ;;
  8528.       # Lahey Fortran 8.1.
  8529.       lf95*)
  8530.         lt_prog_compiler_wl='-Wl,'
  8531.         lt_prog_compiler_pic='--shared'
  8532.         lt_prog_compiler_static='--static'
  8533.         ;;
  8534.       nagfor*)
  8535.         # NAG Fortran compiler
  8536.         lt_prog_compiler_wl='-Wl,-Wl,,'
  8537.         lt_prog_compiler_pic='-PIC'
  8538.         lt_prog_compiler_static='-Bstatic'
  8539.         ;;
  8540.       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8541.         # Portland Group compilers (*not* the Pentium gcc compiler,
  8542.         # which looks to be a dead project)
  8543.         lt_prog_compiler_wl='-Wl,'
  8544.         lt_prog_compiler_pic='-fpic'
  8545.         lt_prog_compiler_static='-Bstatic'
  8546.         ;;
  8547.       ccc*)
  8548.         lt_prog_compiler_wl='-Wl,'
  8549.         # All Alpha code is PIC.
  8550.         lt_prog_compiler_static='-non_shared'
  8551.         ;;
  8552.       xl* | bgxl* | bgf* | mpixl*)
  8553.         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8554.         lt_prog_compiler_wl='-Wl,'
  8555.         lt_prog_compiler_pic='-qpic'
  8556.         lt_prog_compiler_static='-qstaticlink'
  8557.         ;;
  8558.       *)
  8559.         case `$CC -V 2>&1 | sed 5q` in
  8560.         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8561.           # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8562.           lt_prog_compiler_pic='-KPIC'
  8563.           lt_prog_compiler_static='-Bstatic'
  8564.           lt_prog_compiler_wl=''
  8565.           ;;
  8566.         *Sun\ F* | *Sun*Fortran*)
  8567.           lt_prog_compiler_pic='-KPIC'
  8568.           lt_prog_compiler_static='-Bstatic'
  8569.           lt_prog_compiler_wl='-Qoption ld '
  8570.           ;;
  8571.         *Sun\ C*)
  8572.           # Sun C 5.9
  8573.           lt_prog_compiler_pic='-KPIC'
  8574.           lt_prog_compiler_static='-Bstatic'
  8575.           lt_prog_compiler_wl='-Wl,'
  8576.           ;;
  8577.         *Intel*\ [CF]*Compiler*)
  8578.           lt_prog_compiler_wl='-Wl,'
  8579.           lt_prog_compiler_pic='-fPIC'
  8580.           lt_prog_compiler_static='-static'
  8581.           ;;
  8582.         *Portland\ Group*)
  8583.           lt_prog_compiler_wl='-Wl,'
  8584.           lt_prog_compiler_pic='-fpic'
  8585.           lt_prog_compiler_static='-Bstatic'
  8586.           ;;
  8587.         esac
  8588.         ;;
  8589.       esac
  8590.       ;;
  8591.  
  8592.     newsos6)
  8593.       lt_prog_compiler_pic='-KPIC'
  8594.       lt_prog_compiler_static='-Bstatic'
  8595.       ;;
  8596.  
  8597.     *nto* | *qnx*)
  8598.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8599.       # it will coredump.
  8600.       lt_prog_compiler_pic='-fPIC -shared'
  8601.       ;;
  8602.  
  8603.     osf3* | osf4* | osf5*)
  8604.       lt_prog_compiler_wl='-Wl,'
  8605.       # All OSF/1 code is PIC.
  8606.       lt_prog_compiler_static='-non_shared'
  8607.       ;;
  8608.  
  8609.     rdos*)
  8610.       lt_prog_compiler_static='-non_shared'
  8611.       ;;
  8612.  
  8613.     solaris*)
  8614.       lt_prog_compiler_pic='-KPIC'
  8615.       lt_prog_compiler_static='-Bstatic'
  8616.       case $cc_basename in
  8617.       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8618.         lt_prog_compiler_wl='-Qoption ld ';;
  8619.       *)
  8620.         lt_prog_compiler_wl='-Wl,';;
  8621.       esac
  8622.       ;;
  8623.  
  8624.     sunos4*)
  8625.       lt_prog_compiler_wl='-Qoption ld '
  8626.       lt_prog_compiler_pic='-PIC'
  8627.       lt_prog_compiler_static='-Bstatic'
  8628.       ;;
  8629.  
  8630.     sysv4 | sysv4.2uw2* | sysv4.3*)
  8631.       lt_prog_compiler_wl='-Wl,'
  8632.       lt_prog_compiler_pic='-KPIC'
  8633.       lt_prog_compiler_static='-Bstatic'
  8634.       ;;
  8635.  
  8636.     sysv4*MP*)
  8637.       if test -d /usr/nec ;then
  8638.         lt_prog_compiler_pic='-Kconform_pic'
  8639.         lt_prog_compiler_static='-Bstatic'
  8640.       fi
  8641.       ;;
  8642.  
  8643.     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8644.       lt_prog_compiler_wl='-Wl,'
  8645.       lt_prog_compiler_pic='-KPIC'
  8646.       lt_prog_compiler_static='-Bstatic'
  8647.       ;;
  8648.  
  8649.     unicos*)
  8650.       lt_prog_compiler_wl='-Wl,'
  8651.       lt_prog_compiler_can_build_shared=no
  8652.       ;;
  8653.  
  8654.     uts4*)
  8655.       lt_prog_compiler_pic='-pic'
  8656.       lt_prog_compiler_static='-Bstatic'
  8657.       ;;
  8658.  
  8659.     *)
  8660.       lt_prog_compiler_can_build_shared=no
  8661.       ;;
  8662.     esac
  8663.   fi
  8664.  
  8665. case $host_os in
  8666.   # For platforms which do not support PIC, -DPIC is meaningless:
  8667.   *djgpp*)
  8668.     lt_prog_compiler_pic=
  8669.     ;;
  8670.   *)
  8671.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8672.     ;;
  8673. esac
  8674.  
  8675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8676. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8677. if ${lt_cv_prog_compiler_pic+:} false; then :
  8678.   $as_echo_n "(cached) " >&6
  8679. else
  8680.   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8681. fi
  8682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8683. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8684. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8685.  
  8686. #
  8687. # Check to make sure the PIC flag actually works.
  8688. #
  8689. if test -n "$lt_prog_compiler_pic"; then
  8690.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8691. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8692. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8693.   $as_echo_n "(cached) " >&6
  8694. else
  8695.   lt_cv_prog_compiler_pic_works=no
  8696.    ac_outfile=conftest.$ac_objext
  8697.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8698.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8699.    # Insert the option either (1) after the last *FLAGS variable, or
  8700.    # (2) before a word containing "conftest.", or (3) at the end.
  8701.    # Note that $ac_compile itself does not contain backslashes and begins
  8702.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8703.    # The option is referenced via a variable to avoid confusing sed.
  8704.    lt_compile=`echo "$ac_compile" | $SED \
  8705.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8706.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8707.    -e 's:$: $lt_compiler_flag:'`
  8708.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8709.    (eval "$lt_compile" 2>conftest.err)
  8710.    ac_status=$?
  8711.    cat conftest.err >&5
  8712.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8713.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8714.      # The compiler can only warn and ignore the option if not recognized
  8715.      # So say no if there are warnings other than the usual output.
  8716.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8717.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8718.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8719.        lt_cv_prog_compiler_pic_works=yes
  8720.      fi
  8721.    fi
  8722.    $RM conftest*
  8723.  
  8724. fi
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8726. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8727.  
  8728. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8729.     case $lt_prog_compiler_pic in
  8730.      "" | " "*) ;;
  8731.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8732.      esac
  8733. else
  8734.     lt_prog_compiler_pic=
  8735.      lt_prog_compiler_can_build_shared=no
  8736. fi
  8737.  
  8738. fi
  8739.  
  8740.  
  8741.  
  8742.  
  8743.  
  8744.  
  8745.  
  8746.  
  8747.  
  8748.  
  8749.  
  8750. #
  8751. # Check to make sure the static flag actually works.
  8752. #
  8753. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8755. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8756. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8757.   $as_echo_n "(cached) " >&6
  8758. else
  8759.   lt_cv_prog_compiler_static_works=no
  8760.    save_LDFLAGS="$LDFLAGS"
  8761.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8762.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8763.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8764.      # The linker can only warn and ignore the option if not recognized
  8765.      # So say no if there are warnings
  8766.      if test -s conftest.err; then
  8767.        # Append any errors to the config.log.
  8768.        cat conftest.err 1>&5
  8769.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8770.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8771.        if diff conftest.exp conftest.er2 >/dev/null; then
  8772.          lt_cv_prog_compiler_static_works=yes
  8773.        fi
  8774.      else
  8775.        lt_cv_prog_compiler_static_works=yes
  8776.      fi
  8777.    fi
  8778.    $RM -r conftest*
  8779.    LDFLAGS="$save_LDFLAGS"
  8780.  
  8781. fi
  8782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8783. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8784.  
  8785. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8786.     :
  8787. else
  8788.     lt_prog_compiler_static=
  8789. fi
  8790.  
  8791.  
  8792.  
  8793.  
  8794.  
  8795.  
  8796.  
  8797.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8798. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8799. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8800.   $as_echo_n "(cached) " >&6
  8801. else
  8802.   lt_cv_prog_compiler_c_o=no
  8803.    $RM -r conftest 2>/dev/null
  8804.    mkdir conftest
  8805.    cd conftest
  8806.    mkdir out
  8807.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8808.  
  8809.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  8810.    # Insert the option either (1) after the last *FLAGS variable, or
  8811.    # (2) before a word containing "conftest.", or (3) at the end.
  8812.    # Note that $ac_compile itself does not contain backslashes and begins
  8813.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8814.    lt_compile=`echo "$ac_compile" | $SED \
  8815.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8816.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8817.    -e 's:$: $lt_compiler_flag:'`
  8818.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8819.    (eval "$lt_compile" 2>out/conftest.err)
  8820.    ac_status=$?
  8821.    cat out/conftest.err >&5
  8822.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8823.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8824.    then
  8825.      # The compiler can only warn and ignore the option if not recognized
  8826.      # So say no if there are warnings
  8827.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8828.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8829.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8830.        lt_cv_prog_compiler_c_o=yes
  8831.      fi
  8832.    fi
  8833.    chmod u+w . 2>&5
  8834.    $RM conftest*
  8835.    # SGI C++ compiler will create directory out/ii_files/ for
  8836.    # template instantiation
  8837.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8838.    $RM out/* && rmdir out
  8839.    cd ..
  8840.    $RM -r conftest
  8841.    $RM conftest*
  8842.  
  8843. fi
  8844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8845. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8846.  
  8847.  
  8848.  
  8849.  
  8850.  
  8851.  
  8852.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8853. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8854. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8855.   $as_echo_n "(cached) " >&6
  8856. else
  8857.   lt_cv_prog_compiler_c_o=no
  8858.    $RM -r conftest 2>/dev/null
  8859.    mkdir conftest
  8860.    cd conftest
  8861.    mkdir out
  8862.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8863.  
  8864.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  8865.    # Insert the option either (1) after the last *FLAGS variable, or
  8866.    # (2) before a word containing "conftest.", or (3) at the end.
  8867.    # Note that $ac_compile itself does not contain backslashes and begins
  8868.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8869.    lt_compile=`echo "$ac_compile" | $SED \
  8870.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8871.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8872.    -e 's:$: $lt_compiler_flag:'`
  8873.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8874.    (eval "$lt_compile" 2>out/conftest.err)
  8875.    ac_status=$?
  8876.    cat out/conftest.err >&5
  8877.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8878.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8879.    then
  8880.      # The compiler can only warn and ignore the option if not recognized
  8881.      # So say no if there are warnings
  8882.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8883.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8884.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8885.        lt_cv_prog_compiler_c_o=yes
  8886.      fi
  8887.    fi
  8888.    chmod u+w . 2>&5
  8889.    $RM conftest*
  8890.    # SGI C++ compiler will create directory out/ii_files/ for
  8891.    # template instantiation
  8892.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8893.    $RM out/* && rmdir out
  8894.    cd ..
  8895.    $RM -r conftest
  8896.    $RM conftest*
  8897.  
  8898. fi
  8899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8900. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8901.  
  8902.  
  8903.  
  8904.  
  8905. hard_links="nottested"
  8906. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8907.   # do not overwrite the value of need_locks provided by the user
  8908.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8909. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8910.   hard_links=yes
  8911.   $RM conftest*
  8912.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8913.   touch conftest.a
  8914.   ln conftest.a conftest.b 2>&5 || hard_links=no
  8915.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8916.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8917. $as_echo "$hard_links" >&6; }
  8918.   if test "$hard_links" = no; then
  8919.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8920. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8921.     need_locks=warn
  8922.   fi
  8923. else
  8924.   need_locks=no
  8925. fi
  8926.  
  8927.  
  8928.  
  8929.  
  8930.  
  8931.  
  8932.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8933. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8934.  
  8935.   runpath_var=
  8936.   allow_undefined_flag=
  8937.   always_export_symbols=no
  8938.   archive_cmds=
  8939.   archive_expsym_cmds=
  8940.   compiler_needs_object=no
  8941.   enable_shared_with_static_runtimes=no
  8942.   export_dynamic_flag_spec=
  8943.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8944.   hardcode_automatic=no
  8945.   hardcode_direct=no
  8946.   hardcode_direct_absolute=no
  8947.   hardcode_libdir_flag_spec=
  8948.   hardcode_libdir_separator=
  8949.   hardcode_minus_L=no
  8950.   hardcode_shlibpath_var=unsupported
  8951.   inherit_rpath=no
  8952.   link_all_deplibs=unknown
  8953.   module_cmds=
  8954.   module_expsym_cmds=
  8955.   old_archive_from_new_cmds=
  8956.   old_archive_from_expsyms_cmds=
  8957.   thread_safe_flag_spec=
  8958.   whole_archive_flag_spec=
  8959.   # include_expsyms should be a list of space-separated symbols to be *always*
  8960.   # included in the symbol list
  8961.   include_expsyms=
  8962.   # exclude_expsyms can be an extended regexp of symbols to exclude
  8963.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8964.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8965.   # as well as any symbol that contains `d'.
  8966.   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8967.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8968.   # platforms (ab)use it in PIC code, but their linkers get confused if
  8969.   # the symbol is explicitly referenced.  Since portable code cannot
  8970.   # rely on this symbol name, it's probably fine to never include it in
  8971.   # preloaded symbol tables.
  8972.   # Exclude shared library initialization/finalization symbols.
  8973.   extract_expsyms_cmds=
  8974.  
  8975.   case $host_os in
  8976.   cygwin* | mingw* | pw32* | cegcc*)
  8977.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8978.     # When not using gcc, we currently assume that we are using
  8979.     # Microsoft Visual C++.
  8980.     if test "$GCC" != yes; then
  8981.       with_gnu_ld=no
  8982.     fi
  8983.     ;;
  8984.   interix*)
  8985.     # we just hope/assume this is gcc and not c89 (= MSVC++)
  8986.     with_gnu_ld=yes
  8987.     ;;
  8988.   openbsd*)
  8989.     with_gnu_ld=no
  8990.     ;;
  8991.   linux* | k*bsd*-gnu | gnu*)
  8992.     link_all_deplibs=no
  8993.     ;;
  8994.   esac
  8995.  
  8996.   ld_shlibs=yes
  8997.  
  8998.   # On some targets, GNU ld is compatible enough with the native linker
  8999.   # that we're better off using the native interface for both.
  9000.   lt_use_gnu_ld_interface=no
  9001.   if test "$with_gnu_ld" = yes; then
  9002.     case $host_os in
  9003.       aix*)
  9004.         # The AIX port of GNU ld has always aspired to compatibility
  9005.         # with the native linker.  However, as the warning in the GNU ld
  9006.         # block says, versions before 2.19.5* couldn't really create working
  9007.         # shared libraries, regardless of the interface used.
  9008.         case `$LD -v 2>&1` in
  9009.           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9010.           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9011.           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9012.           *)
  9013.             lt_use_gnu_ld_interface=yes
  9014.             ;;
  9015.         esac
  9016.         ;;
  9017.       *)
  9018.         lt_use_gnu_ld_interface=yes
  9019.         ;;
  9020.     esac
  9021.   fi
  9022.  
  9023.   if test "$lt_use_gnu_ld_interface" = yes; then
  9024.     # If archive_cmds runs LD, not CC, wlarc should be empty
  9025.     wlarc='${wl}'
  9026.  
  9027.     # Set some defaults for GNU ld with shared library support. These
  9028.     # are reset later if shared libraries are not supported. Putting them
  9029.     # here allows them to be overridden if necessary.
  9030.     runpath_var=LD_RUN_PATH
  9031.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9032.     export_dynamic_flag_spec='${wl}--export-dynamic'
  9033.     # ancient GNU ld didn't support --whole-archive et. al.
  9034.     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9035.       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9036.     else
  9037.       whole_archive_flag_spec=
  9038.     fi
  9039.     supports_anon_versioning=no
  9040.     case `$LD -v 2>&1` in
  9041.       *GNU\ gold*) supports_anon_versioning=yes ;;
  9042.       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9043.       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9044.       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9045.       *\ 2.11.*) ;; # other 2.11 versions
  9046.       *) supports_anon_versioning=yes ;;
  9047.     esac
  9048.  
  9049.     # See if GNU ld supports shared libraries.
  9050.     case $host_os in
  9051.     aix[3-9]*)
  9052.       # On AIX/PPC, the GNU linker is very broken
  9053.       if test "$host_cpu" != ia64; then
  9054.         ld_shlibs=no
  9055.         cat <<_LT_EOF 1>&2
  9056.  
  9057. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9058. *** to be unable to reliably create shared libraries on AIX.
  9059. *** Therefore, libtool is disabling shared libraries support.  If you
  9060. *** really care for shared libraries, you may want to install binutils
  9061. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9062. *** You will then need to restart the configuration process.
  9063.  
  9064. _LT_EOF
  9065.       fi
  9066.       ;;
  9067.  
  9068.     amigaos*)
  9069.       case $host_cpu in
  9070.       powerpc)
  9071.             # see comment about AmigaOS4 .so support
  9072.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9073.             archive_expsym_cmds=''
  9074.         ;;
  9075.       m68k)
  9076.             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)'
  9077.             hardcode_libdir_flag_spec='-L$libdir'
  9078.             hardcode_minus_L=yes
  9079.         ;;
  9080.       esac
  9081.       ;;
  9082.  
  9083.     beos*)
  9084.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9085.         allow_undefined_flag=unsupported
  9086.         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9087.         # support --undefined.  This deserves some investigation.  FIXME
  9088.         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9089.       else
  9090.         ld_shlibs=no
  9091.       fi
  9092.       ;;
  9093.  
  9094.     cygwin* | mingw* | pw32* | cegcc*)
  9095.       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9096.       # as there is no search path for DLLs.
  9097.       hardcode_libdir_flag_spec='-L$libdir'
  9098.       export_dynamic_flag_spec='${wl}--export-all-symbols'
  9099.       allow_undefined_flag=unsupported
  9100.       always_export_symbols=no
  9101.       enable_shared_with_static_runtimes=yes
  9102.       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'
  9103.       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9104.  
  9105.       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9106.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9107.         # If the export-symbols file already is a .def file (1st line
  9108.         # is EXPORTS), use it as is; otherwise, prepend...
  9109.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9110.           cp $export_symbols $output_objdir/$soname.def;
  9111.         else
  9112.           echo EXPORTS > $output_objdir/$soname.def;
  9113.           cat $export_symbols >> $output_objdir/$soname.def;
  9114.         fi~
  9115.         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9116.       else
  9117.         ld_shlibs=no
  9118.       fi
  9119.       ;;
  9120.  
  9121.     haiku*)
  9122.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9123.       link_all_deplibs=yes
  9124.       ;;
  9125.  
  9126.     interix[3-9]*)
  9127.       hardcode_direct=no
  9128.       hardcode_shlibpath_var=no
  9129.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9130.       export_dynamic_flag_spec='${wl}-E'
  9131.       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9132.       # Instead, shared libraries are loaded at an image base (0x10000000 by
  9133.       # default) and relocated if they conflict, which is a slow very memory
  9134.       # consuming and fragmenting process.  To avoid this, we pick a random,
  9135.       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9136.       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  9137.       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9138.       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'
  9139.       ;;
  9140.  
  9141.     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9142.       tmp_diet=no
  9143.       if test "$host_os" = linux-dietlibc; then
  9144.         case $cc_basename in
  9145.           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
  9146.         esac
  9147.       fi
  9148.       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9149.          && test "$tmp_diet" = no
  9150.       then
  9151.         tmp_addflag=' $pic_flag'
  9152.         tmp_sharedflag='-shared'
  9153.         case $cc_basename,$host_cpu in
  9154.         pgcc*)                          # Portland Group C compiler
  9155.           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'
  9156.           tmp_addflag=' $pic_flag'
  9157.           ;;
  9158.         pgf77* | pgf90* | pgf95* | pgfortran*)
  9159.                                         # Portland Group f77 and f90 compilers
  9160.           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'
  9161.           tmp_addflag=' $pic_flag -Mnomain' ;;
  9162.         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
  9163.           tmp_addflag=' -i_dynamic' ;;
  9164.         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
  9165.           tmp_addflag=' -i_dynamic -nofor_main' ;;
  9166.         ifc* | ifort*)                  # Intel Fortran compiler
  9167.           tmp_addflag=' -nofor_main' ;;
  9168.         lf95*)                          # Lahey Fortran 8.1
  9169.           whole_archive_flag_spec=
  9170.           tmp_sharedflag='--shared' ;;
  9171.         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9172.           tmp_sharedflag='-qmkshrobj'
  9173.           tmp_addflag= ;;
  9174.         nvcc*)  # Cuda Compiler Driver 2.2
  9175.           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'
  9176.           compiler_needs_object=yes
  9177.           ;;
  9178.         esac
  9179.         case `$CC -V 2>&1 | sed 5q` in
  9180.         *Sun\ C*)                       # Sun C 5.9
  9181.           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'
  9182.           compiler_needs_object=yes
  9183.           tmp_sharedflag='-G' ;;
  9184.         *Sun\ F*)                       # Sun Fortran 8.3
  9185.           tmp_sharedflag='-G' ;;
  9186.         esac
  9187.         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9188.  
  9189.         if test "x$supports_anon_versioning" = xyes; then
  9190.           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9191.             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9192.             echo "local: *; };" >> $output_objdir/$libname.ver~
  9193.             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9194.         fi
  9195.  
  9196.         case $cc_basename in
  9197.         xlf* | bgf* | bgxlf* | mpixlf*)
  9198.           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9199.           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9200.           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9201.           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9202.           if test "x$supports_anon_versioning" = xyes; then
  9203.             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9204.               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9205.               echo "local: *; };" >> $output_objdir/$libname.ver~
  9206.               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9207.           fi
  9208.           ;;
  9209.         esac
  9210.       else
  9211.         ld_shlibs=no
  9212.       fi
  9213.       ;;
  9214.  
  9215.     netbsd* | netbsdelf*-gnu)
  9216.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9217.         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9218.         wlarc=
  9219.       else
  9220.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9221.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9222.       fi
  9223.       ;;
  9224.  
  9225.     solaris*)
  9226.       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9227.         ld_shlibs=no
  9228.         cat <<_LT_EOF 1>&2
  9229.  
  9230. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9231. *** create shared libraries on Solaris systems.  Therefore, libtool
  9232. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9233. *** binutils to release 2.9.1 or newer.  Another option is to modify
  9234. *** your PATH or compiler configuration so that the native linker is
  9235. *** used, and then restart.
  9236.  
  9237. _LT_EOF
  9238.       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9239.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9240.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9241.       else
  9242.         ld_shlibs=no
  9243.       fi
  9244.       ;;
  9245.  
  9246.     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9247.       case `$LD -v 2>&1` in
  9248.         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9249.         ld_shlibs=no
  9250.         cat <<_LT_EOF 1>&2
  9251.  
  9252. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9253. *** reliably create shared libraries on SCO systems.  Therefore, libtool
  9254. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9255. *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  9256. *** your PATH or compiler configuration so that the native linker is
  9257. *** used, and then restart.
  9258.  
  9259. _LT_EOF
  9260.         ;;
  9261.         *)
  9262.           # For security reasons, it is highly recommended that you always
  9263.           # use absolute paths for naming shared libraries, and exclude the
  9264.           # DT_RUNPATH tag from executables and libraries.  But doing so
  9265.           # requires that you compile everything twice, which is a pain.
  9266.           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9267.             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9268.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9269.             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9270.           else
  9271.             ld_shlibs=no
  9272.           fi
  9273.         ;;
  9274.       esac
  9275.       ;;
  9276.  
  9277.     sunos4*)
  9278.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9279.       wlarc=
  9280.       hardcode_direct=yes
  9281.       hardcode_shlibpath_var=no
  9282.       ;;
  9283.  
  9284.     *)
  9285.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9286.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9287.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9288.       else
  9289.         ld_shlibs=no
  9290.       fi
  9291.       ;;
  9292.     esac
  9293.  
  9294.     if test "$ld_shlibs" = no; then
  9295.       runpath_var=
  9296.       hardcode_libdir_flag_spec=
  9297.       export_dynamic_flag_spec=
  9298.       whole_archive_flag_spec=
  9299.     fi
  9300.   else
  9301.     # PORTME fill in a description of your system's linker (not GNU ld)
  9302.     case $host_os in
  9303.     aix3*)
  9304.       allow_undefined_flag=unsupported
  9305.       always_export_symbols=yes
  9306.       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'
  9307.       # Note: this linker hardcodes the directories in LIBPATH if there
  9308.       # are no directories specified by -L.
  9309.       hardcode_minus_L=yes
  9310.       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9311.         # Neither direct hardcoding nor static linking is supported with a
  9312.         # broken collect2.
  9313.         hardcode_direct=unsupported
  9314.       fi
  9315.       ;;
  9316.  
  9317.     aix[4-9]*)
  9318.       if test "$host_cpu" = ia64; then
  9319.         # On IA64, the linker does run time linking by default, so we don't
  9320.         # have to do anything special.
  9321.         aix_use_runtimelinking=no
  9322.         exp_sym_flag='-Bexport'
  9323.         no_entry_flag=""
  9324.       else
  9325.         # If we're using GNU nm, then we don't want the "-C" option.
  9326.         # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9327.         # Also, AIX nm treats weak defined symbols like other global
  9328.         # defined symbols, whereas GNU nm marks them as "W".
  9329.         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9330.           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'
  9331.         else
  9332.           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'
  9333.         fi
  9334.         aix_use_runtimelinking=no
  9335.  
  9336.         # Test if we are trying to use run time linking or normal
  9337.         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9338.         # need to do runtime linking.
  9339.         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9340.           for ld_flag in $LDFLAGS; do
  9341.           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9342.             aix_use_runtimelinking=yes
  9343.             break
  9344.           fi
  9345.           done
  9346.           ;;
  9347.         esac
  9348.  
  9349.         exp_sym_flag='-bexport'
  9350.         no_entry_flag='-bnoentry'
  9351.       fi
  9352.  
  9353.       # When large executables or shared objects are built, AIX ld can
  9354.       # have problems creating the table of contents.  If linking a library
  9355.       # or program results in "error TOC overflow" add -mminimal-toc to
  9356.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  9357.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9358.  
  9359.       archive_cmds=''
  9360.       hardcode_direct=yes
  9361.       hardcode_direct_absolute=yes
  9362.       hardcode_libdir_separator=':'
  9363.       link_all_deplibs=yes
  9364.       file_list_spec='${wl}-f,'
  9365.  
  9366.       if test "$GCC" = yes; then
  9367.         case $host_os in aix4.[012]|aix4.[012].*)
  9368.         # We only want to do this on AIX 4.2 and lower, the check
  9369.         # below for broken collect2 doesn't work under 4.3+
  9370.           collect2name=`${CC} -print-prog-name=collect2`
  9371.           if test -f "$collect2name" &&
  9372.            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9373.           then
  9374.           # We have reworked collect2
  9375.           :
  9376.           else
  9377.           # We have old collect2
  9378.           hardcode_direct=unsupported
  9379.           # It fails to find uninstalled libraries when the uninstalled
  9380.           # path is not listed in the libpath.  Setting hardcode_minus_L
  9381.           # to unsupported forces relinking
  9382.           hardcode_minus_L=yes
  9383.           hardcode_libdir_flag_spec='-L$libdir'
  9384.           hardcode_libdir_separator=
  9385.           fi
  9386.           ;;
  9387.         esac
  9388.         shared_flag='-shared'
  9389.         if test "$aix_use_runtimelinking" = yes; then
  9390.           shared_flag="$shared_flag "'${wl}-G'
  9391.         fi
  9392.         link_all_deplibs=no
  9393.       else
  9394.         # not using gcc
  9395.         if test "$host_cpu" = ia64; then
  9396.         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9397.         # chokes on -Wl,-G. The following line is correct:
  9398.           shared_flag='-G'
  9399.         else
  9400.           if test "$aix_use_runtimelinking" = yes; then
  9401.             shared_flag='${wl}-G'
  9402.           else
  9403.             shared_flag='${wl}-bM:SRE'
  9404.           fi
  9405.         fi
  9406.       fi
  9407.  
  9408.       export_dynamic_flag_spec='${wl}-bexpall'
  9409.       # It seems that -bexpall does not export symbols beginning with
  9410.       # underscore (_), so it is better to generate a list of symbols to export.
  9411.       always_export_symbols=yes
  9412.       if test "$aix_use_runtimelinking" = yes; then
  9413.         # Warning - without using the other runtime loading flags (-brtl),
  9414.         # -berok will link without error, but may produce a broken library.
  9415.         allow_undefined_flag='-berok'
  9416.         # Determine the default libpath from the value encoded in an
  9417.         # empty executable.
  9418.         if test "${lt_cv_aix_libpath+set}" = set; then
  9419.   aix_libpath=$lt_cv_aix_libpath
  9420. else
  9421.   if ${lt_cv_aix_libpath_+:} false; then :
  9422.   $as_echo_n "(cached) " >&6
  9423. else
  9424.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9425. /* end confdefs.h.  */
  9426.  
  9427. int
  9428. main ()
  9429. {
  9430.  
  9431.   ;
  9432.   return 0;
  9433. }
  9434. _ACEOF
  9435. if ac_fn_c_try_link "$LINENO"; then :
  9436.  
  9437.   lt_aix_libpath_sed='
  9438.       /Import File Strings/,/^$/ {
  9439.           /^0/ {
  9440.               s/^0  *\([^ ]*\) *$/\1/
  9441.               p
  9442.           }
  9443.       }'
  9444.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9445.   # Check for a 64-bit object if we didn't find anything.
  9446.   if test -z "$lt_cv_aix_libpath_"; then
  9447.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9448.   fi
  9449. fi
  9450. rm -f core conftest.err conftest.$ac_objext \
  9451.     conftest$ac_exeext conftest.$ac_ext
  9452.   if test -z "$lt_cv_aix_libpath_"; then
  9453.     lt_cv_aix_libpath_="/usr/lib:/lib"
  9454.   fi
  9455.  
  9456. fi
  9457.  
  9458.   aix_libpath=$lt_cv_aix_libpath_
  9459. fi
  9460.  
  9461.         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9462.         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"
  9463.       else
  9464.         if test "$host_cpu" = ia64; then
  9465.           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9466.           allow_undefined_flag="-z nodefs"
  9467.           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"
  9468.         else
  9469.          # Determine the default libpath from the value encoded in an
  9470.          # empty executable.
  9471.          if test "${lt_cv_aix_libpath+set}" = set; then
  9472.   aix_libpath=$lt_cv_aix_libpath
  9473. else
  9474.   if ${lt_cv_aix_libpath_+:} false; then :
  9475.   $as_echo_n "(cached) " >&6
  9476. else
  9477.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9478. /* end confdefs.h.  */
  9479.  
  9480. int
  9481. main ()
  9482. {
  9483.  
  9484.   ;
  9485.   return 0;
  9486. }
  9487. _ACEOF
  9488. if ac_fn_c_try_link "$LINENO"; then :
  9489.  
  9490.   lt_aix_libpath_sed='
  9491.       /Import File Strings/,/^$/ {
  9492.           /^0/ {
  9493.               s/^0  *\([^ ]*\) *$/\1/
  9494.               p
  9495.           }
  9496.       }'
  9497.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9498.   # Check for a 64-bit object if we didn't find anything.
  9499.   if test -z "$lt_cv_aix_libpath_"; then
  9500.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9501.   fi
  9502. fi
  9503. rm -f core conftest.err conftest.$ac_objext \
  9504.     conftest$ac_exeext conftest.$ac_ext
  9505.   if test -z "$lt_cv_aix_libpath_"; then
  9506.     lt_cv_aix_libpath_="/usr/lib:/lib"
  9507.   fi
  9508.  
  9509. fi
  9510.  
  9511.   aix_libpath=$lt_cv_aix_libpath_
  9512. fi
  9513.  
  9514.          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9515.           # Warning - without using the other run time loading flags,
  9516.           # -berok will link without error, but may produce a broken library.
  9517.           no_undefined_flag=' ${wl}-bernotok'
  9518.           allow_undefined_flag=' ${wl}-berok'
  9519.           if test "$with_gnu_ld" = yes; then
  9520.             # We only use this code for GNU lds that support --whole-archive.
  9521.             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9522.           else
  9523.             # Exported symbols can be pulled into shared objects from archives
  9524.             whole_archive_flag_spec='$convenience'
  9525.           fi
  9526.           archive_cmds_need_lc=yes
  9527.           # This is similar to how AIX traditionally builds its shared libraries.
  9528.           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'
  9529.         fi
  9530.       fi
  9531.       ;;
  9532.  
  9533.     amigaos*)
  9534.       case $host_cpu in
  9535.       powerpc)
  9536.             # see comment about AmigaOS4 .so support
  9537.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9538.             archive_expsym_cmds=''
  9539.         ;;
  9540.       m68k)
  9541.             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)'
  9542.             hardcode_libdir_flag_spec='-L$libdir'
  9543.             hardcode_minus_L=yes
  9544.         ;;
  9545.       esac
  9546.       ;;
  9547.  
  9548.     bsdi[45]*)
  9549.       export_dynamic_flag_spec=-rdynamic
  9550.       ;;
  9551.  
  9552.     cygwin* | mingw* | pw32* | cegcc*)
  9553.       # When not using gcc, we currently assume that we are using
  9554.       # Microsoft Visual C++.
  9555.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  9556.       # no search path for DLLs.
  9557.       case $cc_basename in
  9558.       cl*)
  9559.         # Native MSVC
  9560.         hardcode_libdir_flag_spec=' '
  9561.         allow_undefined_flag=unsupported
  9562.         always_export_symbols=yes
  9563.         file_list_spec='@'
  9564.         # Tell ltmain to make .lib files, not .a files.
  9565.         libext=lib
  9566.         # Tell ltmain to make .dll files, not .so files.
  9567.         shrext_cmds=".dll"
  9568.         # FIXME: Setting linknames here is a bad hack.
  9569.         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9570.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9571.             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9572.           else
  9573.             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9574.           fi~
  9575.           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9576.           linknames='
  9577.         # The linker will not automatically build a static lib if we build a DLL.
  9578.         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9579.         enable_shared_with_static_runtimes=yes
  9580.         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9581.         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9582.         # Don't use ranlib
  9583.         old_postinstall_cmds='chmod 644 $oldlib'
  9584.         postlink_cmds='lt_outputfile="@OUTPUT@"~
  9585.           lt_tool_outputfile="@TOOL_OUTPUT@"~
  9586.           case $lt_outputfile in
  9587.             *.exe|*.EXE) ;;
  9588.             *)
  9589.               lt_outputfile="$lt_outputfile.exe"
  9590.               lt_tool_outputfile="$lt_tool_outputfile.exe"
  9591.               ;;
  9592.           esac~
  9593.           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9594.             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9595.             $RM "$lt_outputfile.manifest";
  9596.           fi'
  9597.         ;;
  9598.       *)
  9599.         # Assume MSVC wrapper
  9600.         hardcode_libdir_flag_spec=' '
  9601.         allow_undefined_flag=unsupported
  9602.         # Tell ltmain to make .lib files, not .a files.
  9603.         libext=lib
  9604.         # Tell ltmain to make .dll files, not .so files.
  9605.         shrext_cmds=".dll"
  9606.         # FIXME: Setting linknames here is a bad hack.
  9607.         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9608.         # The linker will automatically build a .lib file if we build a DLL.
  9609.         old_archive_from_new_cmds='true'
  9610.         # FIXME: Should let the user specify the lib program.
  9611.         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9612.         enable_shared_with_static_runtimes=yes
  9613.         ;;
  9614.       esac
  9615.       ;;
  9616.  
  9617.     darwin* | rhapsody*)
  9618.  
  9619.  
  9620.   archive_cmds_need_lc=no
  9621.   hardcode_direct=no
  9622.   hardcode_automatic=yes
  9623.   hardcode_shlibpath_var=unsupported
  9624.   if test "$lt_cv_ld_force_load" = "yes"; then
  9625.     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\"`'
  9626.  
  9627.   else
  9628.     whole_archive_flag_spec=''
  9629.   fi
  9630.   link_all_deplibs=yes
  9631.   allow_undefined_flag="$_lt_dar_allow_undefined"
  9632.   case $cc_basename in
  9633.      ifort*) _lt_dar_can_shared=yes ;;
  9634.      *) _lt_dar_can_shared=$GCC ;;
  9635.   esac
  9636.   if test "$_lt_dar_can_shared" = "yes"; then
  9637.     output_verbose_link_cmd=func_echo_all
  9638.     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9639.     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9640.     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}"
  9641.     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}"
  9642.  
  9643.   else
  9644.   ld_shlibs=no
  9645.   fi
  9646.  
  9647.       ;;
  9648.  
  9649.     dgux*)
  9650.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9651.       hardcode_libdir_flag_spec='-L$libdir'
  9652.       hardcode_shlibpath_var=no
  9653.       ;;
  9654.  
  9655.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9656.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  9657.     # does not break anything, and helps significantly (at the cost of a little
  9658.     # extra space).
  9659.     freebsd2.2*)
  9660.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9661.       hardcode_libdir_flag_spec='-R$libdir'
  9662.       hardcode_direct=yes
  9663.       hardcode_shlibpath_var=no
  9664.       ;;
  9665.  
  9666.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9667.     freebsd2.*)
  9668.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9669.       hardcode_direct=yes
  9670.       hardcode_minus_L=yes
  9671.       hardcode_shlibpath_var=no
  9672.       ;;
  9673.  
  9674.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9675.     freebsd* | dragonfly*)
  9676.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9677.       hardcode_libdir_flag_spec='-R$libdir'
  9678.       hardcode_direct=yes
  9679.       hardcode_shlibpath_var=no
  9680.       ;;
  9681.  
  9682.     hpux9*)
  9683.       if test "$GCC" = yes; then
  9684.         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'
  9685.       else
  9686.         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'
  9687.       fi
  9688.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9689.       hardcode_libdir_separator=:
  9690.       hardcode_direct=yes
  9691.  
  9692.       # hardcode_minus_L: Not really in the search PATH,
  9693.       # but as the default location of the library.
  9694.       hardcode_minus_L=yes
  9695.       export_dynamic_flag_spec='${wl}-E'
  9696.       ;;
  9697.  
  9698.     hpux10*)
  9699.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9700.         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9701.       else
  9702.         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9703.       fi
  9704.       if test "$with_gnu_ld" = no; then
  9705.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9706.         hardcode_libdir_separator=:
  9707.         hardcode_direct=yes
  9708.         hardcode_direct_absolute=yes
  9709.         export_dynamic_flag_spec='${wl}-E'
  9710.         # hardcode_minus_L: Not really in the search PATH,
  9711.         # but as the default location of the library.
  9712.         hardcode_minus_L=yes
  9713.       fi
  9714.       ;;
  9715.  
  9716.     hpux11*)
  9717.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9718.         case $host_cpu in
  9719.         hppa*64*)
  9720.           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9721.           ;;
  9722.         ia64*)
  9723.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9724.           ;;
  9725.         *)
  9726.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9727.           ;;
  9728.         esac
  9729.       else
  9730.         case $host_cpu in
  9731.         hppa*64*)
  9732.           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9733.           ;;
  9734.         ia64*)
  9735.           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9736.           ;;
  9737.         *)
  9738.  
  9739.           # Older versions of the 11.00 compiler do not understand -b yet
  9740.           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9741.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9742. $as_echo_n "checking if $CC understands -b... " >&6; }
  9743. if ${lt_cv_prog_compiler__b+:} false; then :
  9744.   $as_echo_n "(cached) " >&6
  9745. else
  9746.   lt_cv_prog_compiler__b=no
  9747.    save_LDFLAGS="$LDFLAGS"
  9748.    LDFLAGS="$LDFLAGS -b"
  9749.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9750.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9751.      # The linker can only warn and ignore the option if not recognized
  9752.      # So say no if there are warnings
  9753.      if test -s conftest.err; then
  9754.        # Append any errors to the config.log.
  9755.        cat conftest.err 1>&5
  9756.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9757.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9758.        if diff conftest.exp conftest.er2 >/dev/null; then
  9759.          lt_cv_prog_compiler__b=yes
  9760.        fi
  9761.      else
  9762.        lt_cv_prog_compiler__b=yes
  9763.      fi
  9764.    fi
  9765.    $RM -r conftest*
  9766.    LDFLAGS="$save_LDFLAGS"
  9767.  
  9768. fi
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9770. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9771.  
  9772. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9773.     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9774. else
  9775.     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9776. fi
  9777.  
  9778.           ;;
  9779.         esac
  9780.       fi
  9781.       if test "$with_gnu_ld" = no; then
  9782.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9783.         hardcode_libdir_separator=:
  9784.  
  9785.         case $host_cpu in
  9786.         hppa*64*|ia64*)
  9787.           hardcode_direct=no
  9788.           hardcode_shlibpath_var=no
  9789.           ;;
  9790.         *)
  9791.           hardcode_direct=yes
  9792.           hardcode_direct_absolute=yes
  9793.           export_dynamic_flag_spec='${wl}-E'
  9794.  
  9795.           # hardcode_minus_L: Not really in the search PATH,
  9796.           # but as the default location of the library.
  9797.           hardcode_minus_L=yes
  9798.           ;;
  9799.         esac
  9800.       fi
  9801.       ;;
  9802.  
  9803.     irix5* | irix6* | nonstopux*)
  9804.       if test "$GCC" = yes; then
  9805.         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'
  9806.         # Try to use the -exported_symbol ld option, if it does not
  9807.         # work, assume that -exports_file does not work either and
  9808.         # implicitly export all symbols.
  9809.         # This should be the same for all languages, so no per-tag cache variable.
  9810.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9811. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9812. if ${lt_cv_irix_exported_symbol+:} false; then :
  9813.   $as_echo_n "(cached) " >&6
  9814. else
  9815.   save_LDFLAGS="$LDFLAGS"
  9816.            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9817.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9818. /* end confdefs.h.  */
  9819. int foo (void) { return 0; }
  9820. _ACEOF
  9821. if ac_fn_c_try_link "$LINENO"; then :
  9822.   lt_cv_irix_exported_symbol=yes
  9823. else
  9824.   lt_cv_irix_exported_symbol=no
  9825. fi
  9826. rm -f core conftest.err conftest.$ac_objext \
  9827.     conftest$ac_exeext conftest.$ac_ext
  9828.            LDFLAGS="$save_LDFLAGS"
  9829. fi
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9831. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9832.         if test "$lt_cv_irix_exported_symbol" = yes; then
  9833.           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'
  9834.         fi
  9835.       else
  9836.         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'
  9837.         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'
  9838.       fi
  9839.       archive_cmds_need_lc='no'
  9840.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9841.       hardcode_libdir_separator=:
  9842.       inherit_rpath=yes
  9843.       link_all_deplibs=yes
  9844.       ;;
  9845.  
  9846.     netbsd* | netbsdelf*-gnu)
  9847.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9848.         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  9849.       else
  9850.         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  9851.       fi
  9852.       hardcode_libdir_flag_spec='-R$libdir'
  9853.       hardcode_direct=yes
  9854.       hardcode_shlibpath_var=no
  9855.       ;;
  9856.  
  9857.     newsos6)
  9858.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9859.       hardcode_direct=yes
  9860.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9861.       hardcode_libdir_separator=:
  9862.       hardcode_shlibpath_var=no
  9863.       ;;
  9864.  
  9865.     *nto* | *qnx*)
  9866.       ;;
  9867.  
  9868.     openbsd*)
  9869.       if test -f /usr/libexec/ld.so; then
  9870.         hardcode_direct=yes
  9871.         hardcode_shlibpath_var=no
  9872.         hardcode_direct_absolute=yes
  9873.         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9874.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9875.           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9876.           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9877.           export_dynamic_flag_spec='${wl}-E'
  9878.         else
  9879.           case $host_os in
  9880.            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9881.              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9882.              hardcode_libdir_flag_spec='-R$libdir'
  9883.              ;;
  9884.            *)
  9885.              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9886.              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9887.              ;;
  9888.           esac
  9889.         fi
  9890.       else
  9891.         ld_shlibs=no
  9892.       fi
  9893.       ;;
  9894.  
  9895.     os2*)
  9896.       hardcode_libdir_flag_spec='-L$libdir'
  9897.       hardcode_minus_L=yes
  9898.       allow_undefined_flag=unsupported
  9899.       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'
  9900.       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9901.       ;;
  9902.  
  9903.     osf3*)
  9904.       if test "$GCC" = yes; then
  9905.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9906.         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'
  9907.       else
  9908.         allow_undefined_flag=' -expect_unresolved \*'
  9909.         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'
  9910.       fi
  9911.       archive_cmds_need_lc='no'
  9912.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9913.       hardcode_libdir_separator=:
  9914.       ;;
  9915.  
  9916.     osf4* | osf5*)      # as osf3* with the addition of -msym flag
  9917.       if test "$GCC" = yes; then
  9918.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9919.         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'
  9920.         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9921.       else
  9922.         allow_undefined_flag=' -expect_unresolved \*'
  9923.         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'
  9924.         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~
  9925.         $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'
  9926.  
  9927.         # Both c and cxx compiler support -rpath directly
  9928.         hardcode_libdir_flag_spec='-rpath $libdir'
  9929.       fi
  9930.       archive_cmds_need_lc='no'
  9931.       hardcode_libdir_separator=:
  9932.       ;;
  9933.  
  9934.     solaris*)
  9935.       no_undefined_flag=' -z defs'
  9936.       if test "$GCC" = yes; then
  9937.         wlarc='${wl}'
  9938.         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9939.         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9940.           $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'
  9941.       else
  9942.         case `$CC -V 2>&1` in
  9943.         *"Compilers 5.0"*)
  9944.           wlarc=''
  9945.           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9946.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9947.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9948.           ;;
  9949.         *)
  9950.           wlarc='${wl}'
  9951.           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9952.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9953.           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9954.           ;;
  9955.         esac
  9956.       fi
  9957.       hardcode_libdir_flag_spec='-R$libdir'
  9958.       hardcode_shlibpath_var=no
  9959.       case $host_os in
  9960.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  9961.       *)
  9962.         # The compiler driver will combine and reorder linker options,
  9963.         # but understands `-z linker_flag'.  GCC discards it without `$wl',
  9964.         # but is careful enough not to reorder.
  9965.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  9966.         if test "$GCC" = yes; then
  9967.           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9968.         else
  9969.           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9970.         fi
  9971.         ;;
  9972.       esac
  9973.       link_all_deplibs=yes
  9974.       ;;
  9975.  
  9976.     sunos4*)
  9977.       if test "x$host_vendor" = xsequent; then
  9978.         # Use $CC to link under sequent, because it throws in some extra .o
  9979.         # files that make .init and .fini sections work.
  9980.         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9981.       else
  9982.         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9983.       fi
  9984.       hardcode_libdir_flag_spec='-L$libdir'
  9985.       hardcode_direct=yes
  9986.       hardcode_minus_L=yes
  9987.       hardcode_shlibpath_var=no
  9988.       ;;
  9989.  
  9990.     sysv4)
  9991.       case $host_vendor in
  9992.         sni)
  9993.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9994.           hardcode_direct=yes # is this really true???
  9995.         ;;
  9996.         siemens)
  9997.           ## LD is ld it makes a PLAMLIB
  9998.           ## CC just makes a GrossModule.
  9999.           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10000.           reload_cmds='$CC -r -o $output$reload_objs'
  10001.           hardcode_direct=no
  10002.         ;;
  10003.         motorola)
  10004.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10005.           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10006.         ;;
  10007.       esac
  10008.       runpath_var='LD_RUN_PATH'
  10009.       hardcode_shlibpath_var=no
  10010.       ;;
  10011.  
  10012.     sysv4.3*)
  10013.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10014.       hardcode_shlibpath_var=no
  10015.       export_dynamic_flag_spec='-Bexport'
  10016.       ;;
  10017.  
  10018.     sysv4*MP*)
  10019.       if test -d /usr/nec; then
  10020.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10021.         hardcode_shlibpath_var=no
  10022.         runpath_var=LD_RUN_PATH
  10023.         hardcode_runpath_var=yes
  10024.         ld_shlibs=yes
  10025.       fi
  10026.       ;;
  10027.  
  10028.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10029.       no_undefined_flag='${wl}-z,text'
  10030.       archive_cmds_need_lc=no
  10031.       hardcode_shlibpath_var=no
  10032.       runpath_var='LD_RUN_PATH'
  10033.  
  10034.       if test "$GCC" = yes; then
  10035.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10036.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10037.       else
  10038.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10039.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10040.       fi
  10041.       ;;
  10042.  
  10043.     sysv5* | sco3.2v5* | sco5v6*)
  10044.       # Note: We can NOT use -z defs as we might desire, because we do not
  10045.       # link with -lc, and that would cause any symbols used from libc to
  10046.       # always be unresolved, which means just about no library would
  10047.       # ever link correctly.  If we're not using GNU ld we use -z text
  10048.       # though, which does catch some bad symbols but isn't as heavy-handed
  10049.       # as -z defs.
  10050.       no_undefined_flag='${wl}-z,text'
  10051.       allow_undefined_flag='${wl}-z,nodefs'
  10052.       archive_cmds_need_lc=no
  10053.       hardcode_shlibpath_var=no
  10054.       hardcode_libdir_flag_spec='${wl}-R,$libdir'
  10055.       hardcode_libdir_separator=':'
  10056.       link_all_deplibs=yes
  10057.       export_dynamic_flag_spec='${wl}-Bexport'
  10058.       runpath_var='LD_RUN_PATH'
  10059.  
  10060.       if test "$GCC" = yes; then
  10061.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10062.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10063.       else
  10064.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10065.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10066.       fi
  10067.       ;;
  10068.  
  10069.     uts4*)
  10070.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10071.       hardcode_libdir_flag_spec='-L$libdir'
  10072.       hardcode_shlibpath_var=no
  10073.       ;;
  10074.  
  10075.     *)
  10076.       ld_shlibs=no
  10077.       ;;
  10078.     esac
  10079.  
  10080.     if test x$host_vendor = xsni; then
  10081.       case $host in
  10082.       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10083.         export_dynamic_flag_spec='${wl}-Blargedynsym'
  10084.         ;;
  10085.       esac
  10086.     fi
  10087.   fi
  10088.  
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10090. $as_echo "$ld_shlibs" >&6; }
  10091. test "$ld_shlibs" = no && can_build_shared=no
  10092.  
  10093. with_gnu_ld=$with_gnu_ld
  10094.  
  10095.  
  10096.  
  10097.  
  10098.  
  10099.  
  10100.  
  10101.  
  10102.  
  10103.  
  10104.  
  10105.  
  10106.  
  10107.  
  10108.  
  10109. #
  10110. # Do we need to explicitly link libc?
  10111. #
  10112. case "x$archive_cmds_need_lc" in
  10113. x|xyes)
  10114.   # Assume -lc should be added
  10115.   archive_cmds_need_lc=yes
  10116.  
  10117.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  10118.     case $archive_cmds in
  10119.     *'~'*)
  10120.       # FIXME: we may have to deal with multi-command sequences.
  10121.       ;;
  10122.     '$CC '*)
  10123.       # Test whether the compiler implicitly links with -lc since on some
  10124.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10125.       # to ld, don't add -lc before -lgcc.
  10126.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10127. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10128. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10129.   $as_echo_n "(cached) " >&6
  10130. else
  10131.   $RM conftest*
  10132.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10133.  
  10134.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10135.   (eval $ac_compile) 2>&5
  10136.   ac_status=$?
  10137.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10138.   test $ac_status = 0; } 2>conftest.err; then
  10139.           soname=conftest
  10140.           lib=conftest
  10141.           libobjs=conftest.$ac_objext
  10142.           deplibs=
  10143.           wl=$lt_prog_compiler_wl
  10144.           pic_flag=$lt_prog_compiler_pic
  10145.           compiler_flags=-v
  10146.           linker_flags=-v
  10147.           verstring=
  10148.           output_objdir=.
  10149.           libname=conftest
  10150.           lt_save_allow_undefined_flag=$allow_undefined_flag
  10151.           allow_undefined_flag=
  10152.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10153.   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10154.   ac_status=$?
  10155.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10156.   test $ac_status = 0; }
  10157.           then
  10158.             lt_cv_archive_cmds_need_lc=no
  10159.           else
  10160.             lt_cv_archive_cmds_need_lc=yes
  10161.           fi
  10162.           allow_undefined_flag=$lt_save_allow_undefined_flag
  10163.         else
  10164.           cat conftest.err 1>&5
  10165.         fi
  10166.         $RM conftest*
  10167.  
  10168. fi
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10170. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10171.       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10172.       ;;
  10173.     esac
  10174.   fi
  10175.   ;;
  10176. esac
  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.  
  10258.  
  10259.  
  10260.  
  10261.  
  10262.  
  10263.  
  10264.  
  10265.  
  10266.  
  10267.  
  10268.  
  10269.  
  10270.  
  10271.  
  10272.  
  10273.  
  10274.  
  10275.  
  10276.  
  10277.  
  10278.  
  10279.  
  10280.  
  10281.  
  10282.  
  10283.  
  10284.  
  10285.  
  10286.  
  10287.  
  10288.  
  10289.  
  10290.  
  10291.  
  10292.  
  10293.  
  10294.  
  10295.  
  10296.  
  10297.  
  10298.  
  10299.  
  10300.  
  10301.  
  10302.  
  10303.  
  10304.  
  10305.  
  10306.  
  10307.  
  10308.  
  10309.  
  10310.  
  10311.  
  10312.  
  10313.  
  10314.  
  10315.  
  10316.  
  10317.  
  10318.  
  10319.  
  10320.  
  10321.  
  10322.  
  10323.  
  10324.  
  10325.  
  10326.  
  10327.  
  10328.  
  10329.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10330. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10331.  
  10332. if test "$GCC" = yes; then
  10333.   case $host_os in
  10334.     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10335.     *) lt_awk_arg="/^libraries:/" ;;
  10336.   esac
  10337.   case $host_os in
  10338.     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  10339.     *) lt_sed_strip_eq="s,=/,/,g" ;;
  10340.   esac
  10341.   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10342.   case $lt_search_path_spec in
  10343.   *\;*)
  10344.     # if the path contains ";" then we assume it to be the separator
  10345.     # otherwise default to the standard path separator (i.e. ":") - it is
  10346.     # assumed that no part of a normal pathname contains ";" but that should
  10347.     # okay in the real world where ";" in dirpaths is itself problematic.
  10348.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10349.     ;;
  10350.   *)
  10351.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10352.     ;;
  10353.   esac
  10354.   # Ok, now we have the path, separated by spaces, we can step through it
  10355.   # and add multilib dir if necessary.
  10356.   lt_tmp_lt_search_path_spec=
  10357.   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10358.   for lt_sys_path in $lt_search_path_spec; do
  10359.     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10360.       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10361.     else
  10362.       test -d "$lt_sys_path" && \
  10363.         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10364.     fi
  10365.   done
  10366.   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10367. BEGIN {RS=" "; FS="/|\n";} {
  10368.   lt_foo="";
  10369.   lt_count=0;
  10370.   for (lt_i = NF; lt_i > 0; lt_i--) {
  10371.     if ($lt_i != "" && $lt_i != ".") {
  10372.       if ($lt_i == "..") {
  10373.         lt_count++;
  10374.       } else {
  10375.         if (lt_count == 0) {
  10376.           lt_foo="/" $lt_i lt_foo;
  10377.         } else {
  10378.           lt_count--;
  10379.         }
  10380.       }
  10381.     }
  10382.   }
  10383.   if (lt_foo != "") { lt_freq[lt_foo]++; }
  10384.   if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10385. }'`
  10386.   # AWK program above erroneously prepends '/' to C:/dos/paths
  10387.   # for these hosts.
  10388.   case $host_os in
  10389.     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10390.       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  10391.   esac
  10392.   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10393. else
  10394.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10395. fi
  10396. library_names_spec=
  10397. libname_spec='lib$name'
  10398. soname_spec=
  10399. shrext_cmds=".so"
  10400. postinstall_cmds=
  10401. postuninstall_cmds=
  10402. finish_cmds=
  10403. finish_eval=
  10404. shlibpath_var=
  10405. shlibpath_overrides_runpath=unknown
  10406. version_type=none
  10407. dynamic_linker="$host_os ld.so"
  10408. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10409. need_lib_prefix=unknown
  10410. hardcode_into_libs=no
  10411.  
  10412. # when you set need_version to no, make sure it does not cause -set_version
  10413. # flags to be left without arguments
  10414. need_version=unknown
  10415.  
  10416. case $host_os in
  10417. aix3*)
  10418.   version_type=linux # correct to gnu/linux during the next big refactor
  10419.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10420.   shlibpath_var=LIBPATH
  10421.  
  10422.   # AIX 3 has no versioning support, so we append a major version to the name.
  10423.   soname_spec='${libname}${release}${shared_ext}$major'
  10424.   ;;
  10425.  
  10426. aix[4-9]*)
  10427.   version_type=linux # correct to gnu/linux during the next big refactor
  10428.   need_lib_prefix=no
  10429.   need_version=no
  10430.   hardcode_into_libs=yes
  10431.   if test "$host_cpu" = ia64; then
  10432.     # AIX 5 supports IA64
  10433.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10434.     shlibpath_var=LD_LIBRARY_PATH
  10435.   else
  10436.     # With GCC up to 2.95.x, collect2 would create an import file
  10437.     # for dependence libraries.  The import file would start with
  10438.     # the line `#! .'.  This would cause the generated library to
  10439.     # depend on `.', always an invalid library.  This was fixed in
  10440.     # development snapshots of GCC prior to 3.0.
  10441.     case $host_os in
  10442.       aix4 | aix4.[01] | aix4.[01].*)
  10443.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10444.            echo ' yes '
  10445.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10446.         :
  10447.       else
  10448.         can_build_shared=no
  10449.       fi
  10450.       ;;
  10451.     esac
  10452.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10453.     # soname into executable. Probably we can add versioning support to
  10454.     # collect2, so additional links can be useful in future.
  10455.     if test "$aix_use_runtimelinking" = yes; then
  10456.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10457.       # instead of lib<name>.a to let people know that these are not
  10458.       # typical AIX shared libraries.
  10459.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10460.     else
  10461.       # We preserve .a as extension for shared libraries through AIX4.2
  10462.       # and later when we are not doing run time linking.
  10463.       library_names_spec='${libname}${release}.a $libname.a'
  10464.       soname_spec='${libname}${release}${shared_ext}$major'
  10465.     fi
  10466.     shlibpath_var=LIBPATH
  10467.   fi
  10468.   ;;
  10469.  
  10470. amigaos*)
  10471.   case $host_cpu in
  10472.   powerpc)
  10473.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  10474.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10475.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10476.     ;;
  10477.   m68k)
  10478.     library_names_spec='$libname.ixlibrary $libname.a'
  10479.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10480.     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'
  10481.     ;;
  10482.   esac
  10483.   ;;
  10484.  
  10485. beos*)
  10486.   library_names_spec='${libname}${shared_ext}'
  10487.   dynamic_linker="$host_os ld.so"
  10488.   shlibpath_var=LIBRARY_PATH
  10489.   ;;
  10490.  
  10491. bsdi[45]*)
  10492.   version_type=linux # correct to gnu/linux during the next big refactor
  10493.   need_version=no
  10494.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10495.   soname_spec='${libname}${release}${shared_ext}$major'
  10496.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10497.   shlibpath_var=LD_LIBRARY_PATH
  10498.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10499.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10500.   # the default ld.so.conf also contains /usr/contrib/lib and
  10501.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10502.   # libtool to hard-code these into programs
  10503.   ;;
  10504.  
  10505. cygwin* | mingw* | pw32* | cegcc*)
  10506.   version_type=windows
  10507.   shrext_cmds=".dll"
  10508.   need_version=no
  10509.   need_lib_prefix=no
  10510.  
  10511.   case $GCC,$cc_basename in
  10512.   yes,*)
  10513.     # gcc
  10514.     library_names_spec='$libname.dll.a'
  10515.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10516.     postinstall_cmds='base_file=`basename \${file}`~
  10517.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10518.       dldir=$destdir/`dirname \$dlpath`~
  10519.       test -d \$dldir || mkdir -p \$dldir~
  10520.       $install_prog $dir/$dlname \$dldir/$dlname~
  10521.       chmod a+x \$dldir/$dlname~
  10522.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10523.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10524.       fi'
  10525.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10526.       dlpath=$dir/\$dldll~
  10527.        $RM \$dlpath'
  10528.     shlibpath_overrides_runpath=yes
  10529.  
  10530.     case $host_os in
  10531.     cygwin*)
  10532.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10533.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10534.  
  10535.       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10536.       ;;
  10537.     mingw* | cegcc*)
  10538.       # MinGW DLLs use traditional 'lib' prefix
  10539.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10540.       ;;
  10541.     pw32*)
  10542.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  10543.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10544.       ;;
  10545.     esac
  10546.     dynamic_linker='Win32 ld.exe'
  10547.     ;;
  10548.  
  10549.   *,cl*)
  10550.     # Native MSVC
  10551.     libname_spec='$name'
  10552.     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10553.     library_names_spec='${libname}.dll.lib'
  10554.  
  10555.     case $build_os in
  10556.     mingw*)
  10557.       sys_lib_search_path_spec=
  10558.       lt_save_ifs=$IFS
  10559.       IFS=';'
  10560.       for lt_path in $LIB
  10561.       do
  10562.         IFS=$lt_save_ifs
  10563.         # Let DOS variable expansion print the short 8.3 style file name.
  10564.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10565.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10566.       done
  10567.       IFS=$lt_save_ifs
  10568.       # Convert to MSYS style.
  10569.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10570.       ;;
  10571.     cygwin*)
  10572.       # Convert to unix form, then to dos form, then back to unix form
  10573.       # but this time dos style (no spaces!) so that the unix form looks
  10574.       # like /cygdrive/c/PROGRA~1:/cygdr...
  10575.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10576.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10577.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10578.       ;;
  10579.     *)
  10580.       sys_lib_search_path_spec="$LIB"
  10581.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10582.         # It is most probably a Windows format PATH.
  10583.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10584.       else
  10585.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10586.       fi
  10587.       # FIXME: find the short name or the path components, as spaces are
  10588.       # common. (e.g. "Program Files" -> "PROGRA~1")
  10589.       ;;
  10590.     esac
  10591.  
  10592.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10593.     postinstall_cmds='base_file=`basename \${file}`~
  10594.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10595.       dldir=$destdir/`dirname \$dlpath`~
  10596.       test -d \$dldir || mkdir -p \$dldir~
  10597.       $install_prog $dir/$dlname \$dldir/$dlname'
  10598.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10599.       dlpath=$dir/\$dldll~
  10600.        $RM \$dlpath'
  10601.     shlibpath_overrides_runpath=yes
  10602.     dynamic_linker='Win32 link.exe'
  10603.     ;;
  10604.  
  10605.   *)
  10606.     # Assume MSVC wrapper
  10607.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10608.     dynamic_linker='Win32 ld.exe'
  10609.     ;;
  10610.   esac
  10611.   # FIXME: first we should search . and the directory the executable is in
  10612.   shlibpath_var=PATH
  10613.   ;;
  10614.  
  10615. darwin* | rhapsody*)
  10616.   dynamic_linker="$host_os dyld"
  10617.   version_type=darwin
  10618.   need_lib_prefix=no
  10619.   need_version=no
  10620.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10621.   soname_spec='${libname}${release}${major}$shared_ext'
  10622.   shlibpath_overrides_runpath=yes
  10623.   shlibpath_var=DYLD_LIBRARY_PATH
  10624.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10625.  
  10626.   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10627.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10628.   ;;
  10629.  
  10630. dgux*)
  10631.   version_type=linux # correct to gnu/linux during the next big refactor
  10632.   need_lib_prefix=no
  10633.   need_version=no
  10634.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10635.   soname_spec='${libname}${release}${shared_ext}$major'
  10636.   shlibpath_var=LD_LIBRARY_PATH
  10637.   ;;
  10638.  
  10639. freebsd* | dragonfly*)
  10640.   # DragonFly does not have aout.  When/if they implement a new
  10641.   # versioning mechanism, adjust this.
  10642.   if test -x /usr/bin/objformat; then
  10643.     objformat=`/usr/bin/objformat`
  10644.   else
  10645.     case $host_os in
  10646.     freebsd[23].*) objformat=aout ;;
  10647.     *) objformat=elf ;;
  10648.     esac
  10649.   fi
  10650.   version_type=freebsd-$objformat
  10651.   case $version_type in
  10652.     freebsd-elf*)
  10653.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10654.       need_version=no
  10655.       need_lib_prefix=no
  10656.       ;;
  10657.     freebsd-*)
  10658.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10659.       need_version=yes
  10660.       ;;
  10661.   esac
  10662.   shlibpath_var=LD_LIBRARY_PATH
  10663.   case $host_os in
  10664.   freebsd2.*)
  10665.     shlibpath_overrides_runpath=yes
  10666.     ;;
  10667.   freebsd3.[01]* | freebsdelf3.[01]*)
  10668.     shlibpath_overrides_runpath=yes
  10669.     hardcode_into_libs=yes
  10670.     ;;
  10671.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10672.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10673.     shlibpath_overrides_runpath=no
  10674.     hardcode_into_libs=yes
  10675.     ;;
  10676.   *) # from 4.6 on, and DragonFly
  10677.     shlibpath_overrides_runpath=yes
  10678.     hardcode_into_libs=yes
  10679.     ;;
  10680.   esac
  10681.   ;;
  10682.  
  10683. haiku*)
  10684.   version_type=linux # correct to gnu/linux during the next big refactor
  10685.   need_lib_prefix=no
  10686.   need_version=no
  10687.   dynamic_linker="$host_os runtime_loader"
  10688.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10689.   soname_spec='${libname}${release}${shared_ext}$major'
  10690.   shlibpath_var=LIBRARY_PATH
  10691.   shlibpath_overrides_runpath=yes
  10692.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10693.   hardcode_into_libs=yes
  10694.   ;;
  10695.  
  10696. hpux9* | hpux10* | hpux11*)
  10697.   # Give a soname corresponding to the major version so that dld.sl refuses to
  10698.   # link against other versions.
  10699.   version_type=sunos
  10700.   need_lib_prefix=no
  10701.   need_version=no
  10702.   case $host_cpu in
  10703.   ia64*)
  10704.     shrext_cmds='.so'
  10705.     hardcode_into_libs=yes
  10706.     dynamic_linker="$host_os dld.so"
  10707.     shlibpath_var=LD_LIBRARY_PATH
  10708.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10709.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10710.     soname_spec='${libname}${release}${shared_ext}$major'
  10711.     if test "X$HPUX_IA64_MODE" = X32; then
  10712.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10713.     else
  10714.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10715.     fi
  10716.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10717.     ;;
  10718.   hppa*64*)
  10719.     shrext_cmds='.sl'
  10720.     hardcode_into_libs=yes
  10721.     dynamic_linker="$host_os dld.sl"
  10722.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10723.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10724.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10725.     soname_spec='${libname}${release}${shared_ext}$major'
  10726.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10727.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10728.     ;;
  10729.   *)
  10730.     shrext_cmds='.sl'
  10731.     dynamic_linker="$host_os dld.sl"
  10732.     shlibpath_var=SHLIB_PATH
  10733.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10734.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10735.     soname_spec='${libname}${release}${shared_ext}$major'
  10736.     ;;
  10737.   esac
  10738.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10739.   postinstall_cmds='chmod 555 $lib'
  10740.   # or fails outright, so override atomically:
  10741.   install_override_mode=555
  10742.   ;;
  10743.  
  10744. interix[3-9]*)
  10745.   version_type=linux # correct to gnu/linux during the next big refactor
  10746.   need_lib_prefix=no
  10747.   need_version=no
  10748.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10749.   soname_spec='${libname}${release}${shared_ext}$major'
  10750.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10751.   shlibpath_var=LD_LIBRARY_PATH
  10752.   shlibpath_overrides_runpath=no
  10753.   hardcode_into_libs=yes
  10754.   ;;
  10755.  
  10756. irix5* | irix6* | nonstopux*)
  10757.   case $host_os in
  10758.     nonstopux*) version_type=nonstopux ;;
  10759.     *)
  10760.         if test "$lt_cv_prog_gnu_ld" = yes; then
  10761.                 version_type=linux # correct to gnu/linux during the next big refactor
  10762.         else
  10763.                 version_type=irix
  10764.         fi ;;
  10765.   esac
  10766.   need_lib_prefix=no
  10767.   need_version=no
  10768.   soname_spec='${libname}${release}${shared_ext}$major'
  10769.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10770.   case $host_os in
  10771.   irix5* | nonstopux*)
  10772.     libsuff= shlibsuff=
  10773.     ;;
  10774.   *)
  10775.     case $LD in # libtool.m4 will add one of these switches to LD
  10776.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10777.       libsuff= shlibsuff= libmagic=32-bit;;
  10778.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10779.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  10780.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10781.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10782.     *) libsuff= shlibsuff= libmagic=never-match;;
  10783.     esac
  10784.     ;;
  10785.   esac
  10786.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10787.   shlibpath_overrides_runpath=no
  10788.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10789.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10790.   hardcode_into_libs=yes
  10791.   ;;
  10792.  
  10793. # No shared lib support for Linux oldld, aout, or coff.
  10794. linux*oldld* | linux*aout* | linux*coff*)
  10795.   dynamic_linker=no
  10796.   ;;
  10797.  
  10798. # This must be glibc/ELF.
  10799. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10800.   version_type=linux # correct to gnu/linux during the next big refactor
  10801.   need_lib_prefix=no
  10802.   need_version=no
  10803.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10804.   soname_spec='${libname}${release}${shared_ext}$major'
  10805.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10806.   shlibpath_var=LD_LIBRARY_PATH
  10807.   shlibpath_overrides_runpath=no
  10808.  
  10809.   # Some binutils ld are patched to set DT_RUNPATH
  10810.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10811.   $as_echo_n "(cached) " >&6
  10812. else
  10813.   lt_cv_shlibpath_overrides_runpath=no
  10814.     save_LDFLAGS=$LDFLAGS
  10815.     save_libdir=$libdir
  10816.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10817.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10818.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10819. /* end confdefs.h.  */
  10820.  
  10821. int
  10822. main ()
  10823. {
  10824.  
  10825.   ;
  10826.   return 0;
  10827. }
  10828. _ACEOF
  10829. if ac_fn_c_try_link "$LINENO"; then :
  10830.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10831.   lt_cv_shlibpath_overrides_runpath=yes
  10832. fi
  10833. fi
  10834. rm -f core conftest.err conftest.$ac_objext \
  10835.     conftest$ac_exeext conftest.$ac_ext
  10836.     LDFLAGS=$save_LDFLAGS
  10837.     libdir=$save_libdir
  10838.  
  10839. fi
  10840.  
  10841.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10842.  
  10843.   # This implies no fast_install, which is unacceptable.
  10844.   # Some rework will be needed to allow for fast_install
  10845.   # before this can be enabled.
  10846.   hardcode_into_libs=yes
  10847.  
  10848.   # Append ld.so.conf contents to the search path
  10849.   if test -f /etc/ld.so.conf; then
  10850.     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' ' '`
  10851.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10852.   fi
  10853.  
  10854.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  10855.   # powerpc, because MkLinux only supported shared libraries with the
  10856.   # GNU dynamic linker.  Since this was broken with cross compilers,
  10857.   # most powerpc-linux boxes support dynamic linking these days and
  10858.   # people can always --disable-shared, the test was removed, and we
  10859.   # assume the GNU/Linux dynamic linker is in use.
  10860.   dynamic_linker='GNU/Linux ld.so'
  10861.   ;;
  10862.  
  10863. netbsdelf*-gnu)
  10864.   version_type=linux
  10865.   need_lib_prefix=no
  10866.   need_version=no
  10867.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10868.   soname_spec='${libname}${release}${shared_ext}$major'
  10869.   shlibpath_var=LD_LIBRARY_PATH
  10870.   shlibpath_overrides_runpath=no
  10871.   hardcode_into_libs=yes
  10872.   dynamic_linker='NetBSD ld.elf_so'
  10873.   ;;
  10874.  
  10875. netbsd*)
  10876.   version_type=sunos
  10877.   need_lib_prefix=no
  10878.   need_version=no
  10879.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10880.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10881.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10882.     dynamic_linker='NetBSD (a.out) ld.so'
  10883.   else
  10884.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10885.     soname_spec='${libname}${release}${shared_ext}$major'
  10886.     dynamic_linker='NetBSD ld.elf_so'
  10887.   fi
  10888.   shlibpath_var=LD_LIBRARY_PATH
  10889.   shlibpath_overrides_runpath=yes
  10890.   hardcode_into_libs=yes
  10891.   ;;
  10892.  
  10893. newsos6)
  10894.   version_type=linux # correct to gnu/linux during the next big refactor
  10895.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10896.   shlibpath_var=LD_LIBRARY_PATH
  10897.   shlibpath_overrides_runpath=yes
  10898.   ;;
  10899.  
  10900. *nto* | *qnx*)
  10901.   version_type=qnx
  10902.   need_lib_prefix=no
  10903.   need_version=no
  10904.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10905.   soname_spec='${libname}${release}${shared_ext}$major'
  10906.   shlibpath_var=LD_LIBRARY_PATH
  10907.   shlibpath_overrides_runpath=no
  10908.   hardcode_into_libs=yes
  10909.   dynamic_linker='ldqnx.so'
  10910.   ;;
  10911.  
  10912. openbsd*)
  10913.   version_type=sunos
  10914.   sys_lib_dlsearch_path_spec="/usr/lib"
  10915.   need_lib_prefix=no
  10916.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10917.   case $host_os in
  10918.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  10919.     *)                          need_version=no  ;;
  10920.   esac
  10921.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10922.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10923.   shlibpath_var=LD_LIBRARY_PATH
  10924.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10925.     case $host_os in
  10926.       openbsd2.[89] | openbsd2.[89].*)
  10927.         shlibpath_overrides_runpath=no
  10928.         ;;
  10929.       *)
  10930.         shlibpath_overrides_runpath=yes
  10931.         ;;
  10932.       esac
  10933.   else
  10934.     shlibpath_overrides_runpath=yes
  10935.   fi
  10936.   ;;
  10937.  
  10938. os2*)
  10939.   libname_spec='$name'
  10940.   shrext_cmds=".dll"
  10941.   need_lib_prefix=no
  10942.   library_names_spec='$libname${shared_ext} $libname.a'
  10943.   dynamic_linker='OS/2 ld.exe'
  10944.   shlibpath_var=LIBPATH
  10945.   ;;
  10946.  
  10947. osf3* | osf4* | osf5*)
  10948.   version_type=osf
  10949.   need_lib_prefix=no
  10950.   need_version=no
  10951.   soname_spec='${libname}${release}${shared_ext}$major'
  10952.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10953.   shlibpath_var=LD_LIBRARY_PATH
  10954.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10955.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10956.   ;;
  10957.  
  10958. rdos*)
  10959.   dynamic_linker=no
  10960.   ;;
  10961.  
  10962. solaris*)
  10963.   version_type=linux # correct to gnu/linux during the next big refactor
  10964.   need_lib_prefix=no
  10965.   need_version=no
  10966.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10967.   soname_spec='${libname}${release}${shared_ext}$major'
  10968.   shlibpath_var=LD_LIBRARY_PATH
  10969.   shlibpath_overrides_runpath=yes
  10970.   hardcode_into_libs=yes
  10971.   # ldd complains unless libraries are executable
  10972.   postinstall_cmds='chmod +x $lib'
  10973.   ;;
  10974.  
  10975. sunos4*)
  10976.   version_type=sunos
  10977.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10978.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10979.   shlibpath_var=LD_LIBRARY_PATH
  10980.   shlibpath_overrides_runpath=yes
  10981.   if test "$with_gnu_ld" = yes; then
  10982.     need_lib_prefix=no
  10983.   fi
  10984.   need_version=yes
  10985.   ;;
  10986.  
  10987. sysv4 | sysv4.3*)
  10988.   version_type=linux # correct to gnu/linux during the next big refactor
  10989.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10990.   soname_spec='${libname}${release}${shared_ext}$major'
  10991.   shlibpath_var=LD_LIBRARY_PATH
  10992.   case $host_vendor in
  10993.     sni)
  10994.       shlibpath_overrides_runpath=no
  10995.       need_lib_prefix=no
  10996.       runpath_var=LD_RUN_PATH
  10997.       ;;
  10998.     siemens)
  10999.       need_lib_prefix=no
  11000.       ;;
  11001.     motorola)
  11002.       need_lib_prefix=no
  11003.       need_version=no
  11004.       shlibpath_overrides_runpath=no
  11005.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11006.       ;;
  11007.   esac
  11008.   ;;
  11009.  
  11010. sysv4*MP*)
  11011.   if test -d /usr/nec ;then
  11012.     version_type=linux # correct to gnu/linux during the next big refactor
  11013.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11014.     soname_spec='$libname${shared_ext}.$major'
  11015.     shlibpath_var=LD_LIBRARY_PATH
  11016.   fi
  11017.   ;;
  11018.  
  11019. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11020.   version_type=freebsd-elf
  11021.   need_lib_prefix=no
  11022.   need_version=no
  11023.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11024.   soname_spec='${libname}${release}${shared_ext}$major'
  11025.   shlibpath_var=LD_LIBRARY_PATH
  11026.   shlibpath_overrides_runpath=yes
  11027.   hardcode_into_libs=yes
  11028.   if test "$with_gnu_ld" = yes; then
  11029.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11030.   else
  11031.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11032.     case $host_os in
  11033.       sco3.2v5*)
  11034.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11035.         ;;
  11036.     esac
  11037.   fi
  11038.   sys_lib_dlsearch_path_spec='/usr/lib'
  11039.   ;;
  11040.  
  11041. tpf*)
  11042.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  11043.   version_type=linux # correct to gnu/linux during the next big refactor
  11044.   need_lib_prefix=no
  11045.   need_version=no
  11046.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11047.   shlibpath_var=LD_LIBRARY_PATH
  11048.   shlibpath_overrides_runpath=no
  11049.   hardcode_into_libs=yes
  11050.   ;;
  11051.  
  11052. uts4*)
  11053.   version_type=linux # correct to gnu/linux during the next big refactor
  11054.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11055.   soname_spec='${libname}${release}${shared_ext}$major'
  11056.   shlibpath_var=LD_LIBRARY_PATH
  11057.   ;;
  11058.  
  11059. *)
  11060.   dynamic_linker=no
  11061.   ;;
  11062. esac
  11063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11064. $as_echo "$dynamic_linker" >&6; }
  11065. test "$dynamic_linker" = no && can_build_shared=no
  11066.  
  11067. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11068. if test "$GCC" = yes; then
  11069.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11070. fi
  11071.  
  11072. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11073.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11074. fi
  11075. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11076.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11077. fi
  11078.  
  11079.  
  11080.  
  11081.  
  11082.  
  11083.  
  11084.  
  11085.  
  11086.  
  11087.  
  11088.  
  11089.  
  11090.  
  11091.  
  11092.  
  11093.  
  11094.  
  11095.  
  11096.  
  11097.  
  11098.  
  11099.  
  11100.  
  11101.  
  11102.  
  11103.  
  11104.  
  11105.  
  11106.  
  11107.  
  11108.  
  11109.  
  11110.  
  11111.  
  11112.  
  11113.  
  11114.  
  11115.  
  11116.  
  11117.  
  11118.  
  11119.  
  11120.  
  11121.  
  11122.  
  11123.  
  11124.  
  11125.  
  11126.  
  11127.  
  11128.  
  11129.  
  11130.  
  11131.  
  11132.  
  11133.  
  11134.  
  11135.  
  11136.  
  11137.  
  11138.  
  11139.  
  11140.  
  11141.  
  11142.  
  11143.  
  11144.  
  11145.  
  11146.  
  11147.  
  11148.  
  11149.  
  11150.  
  11151.  
  11152.  
  11153.  
  11154.  
  11155.  
  11156.  
  11157.  
  11158.  
  11159.  
  11160.  
  11161.  
  11162.  
  11163.  
  11164.  
  11165.  
  11166.  
  11167.  
  11168.  
  11169.  
  11170.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11171. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11172. hardcode_action=
  11173. if test -n "$hardcode_libdir_flag_spec" ||
  11174.    test -n "$runpath_var" ||
  11175.    test "X$hardcode_automatic" = "Xyes" ; then
  11176.  
  11177.   # We can hardcode non-existent directories.
  11178.   if test "$hardcode_direct" != no &&
  11179.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11180.      # have to relink, otherwise we might link with an installed library
  11181.      # when we should be linking with a yet-to-be-installed one
  11182.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11183.      test "$hardcode_minus_L" != no; then
  11184.     # Linking always hardcodes the temporary library directory.
  11185.     hardcode_action=relink
  11186.   else
  11187.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11188.     hardcode_action=immediate
  11189.   fi
  11190. else
  11191.   # We cannot hardcode anything, or else we can only hardcode existing
  11192.   # directories.
  11193.   hardcode_action=unsupported
  11194. fi
  11195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11196. $as_echo "$hardcode_action" >&6; }
  11197.  
  11198. if test "$hardcode_action" = relink ||
  11199.    test "$inherit_rpath" = yes; then
  11200.   # Fast installation is not supported
  11201.   enable_fast_install=no
  11202. elif test "$shlibpath_overrides_runpath" = yes ||
  11203.      test "$enable_shared" = no; then
  11204.   # Fast installation is not necessary
  11205.   enable_fast_install=needless
  11206. fi
  11207.  
  11208.  
  11209.  
  11210.  
  11211.  
  11212.  
  11213.   if test "x$enable_dlopen" != xyes; then
  11214.   enable_dlopen=unknown
  11215.   enable_dlopen_self=unknown
  11216.   enable_dlopen_self_static=unknown
  11217. else
  11218.   lt_cv_dlopen=no
  11219.   lt_cv_dlopen_libs=
  11220.  
  11221.   case $host_os in
  11222.   beos*)
  11223.     lt_cv_dlopen="load_add_on"
  11224.     lt_cv_dlopen_libs=
  11225.     lt_cv_dlopen_self=yes
  11226.     ;;
  11227.  
  11228.   mingw* | pw32* | cegcc*)
  11229.     lt_cv_dlopen="LoadLibrary"
  11230.     lt_cv_dlopen_libs=
  11231.     ;;
  11232.  
  11233.   cygwin*)
  11234.     lt_cv_dlopen="dlopen"
  11235.     lt_cv_dlopen_libs=
  11236.     ;;
  11237.  
  11238.   darwin*)
  11239.   # if libdl is installed we need to link against it
  11240.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11241. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11242. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11243.   $as_echo_n "(cached) " >&6
  11244. else
  11245.   ac_check_lib_save_LIBS=$LIBS
  11246. LIBS="-ldl  $LIBS"
  11247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11248. /* end confdefs.h.  */
  11249.  
  11250. /* Override any GCC internal prototype to avoid an error.
  11251.    Use char because int might match the return type of a GCC
  11252.    builtin and then its argument prototype would still apply.  */
  11253. #ifdef __cplusplus
  11254. extern "C"
  11255. #endif
  11256. char dlopen ();
  11257. int
  11258. main ()
  11259. {
  11260. return dlopen ();
  11261.   ;
  11262.   return 0;
  11263. }
  11264. _ACEOF
  11265. if ac_fn_c_try_link "$LINENO"; then :
  11266.   ac_cv_lib_dl_dlopen=yes
  11267. else
  11268.   ac_cv_lib_dl_dlopen=no
  11269. fi
  11270. rm -f core conftest.err conftest.$ac_objext \
  11271.     conftest$ac_exeext conftest.$ac_ext
  11272. LIBS=$ac_check_lib_save_LIBS
  11273. fi
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11275. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11276. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11277.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11278. else
  11279.  
  11280.     lt_cv_dlopen="dyld"
  11281.     lt_cv_dlopen_libs=
  11282.     lt_cv_dlopen_self=yes
  11283.  
  11284. fi
  11285.  
  11286.     ;;
  11287.  
  11288.   *)
  11289.     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11290. if test "x$ac_cv_func_shl_load" = xyes; then :
  11291.   lt_cv_dlopen="shl_load"
  11292. else
  11293.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11294. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11295. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11296.   $as_echo_n "(cached) " >&6
  11297. else
  11298.   ac_check_lib_save_LIBS=$LIBS
  11299. LIBS="-ldld  $LIBS"
  11300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11301. /* end confdefs.h.  */
  11302.  
  11303. /* Override any GCC internal prototype to avoid an error.
  11304.    Use char because int might match the return type of a GCC
  11305.    builtin and then its argument prototype would still apply.  */
  11306. #ifdef __cplusplus
  11307. extern "C"
  11308. #endif
  11309. char shl_load ();
  11310. int
  11311. main ()
  11312. {
  11313. return shl_load ();
  11314.   ;
  11315.   return 0;
  11316. }
  11317. _ACEOF
  11318. if ac_fn_c_try_link "$LINENO"; then :
  11319.   ac_cv_lib_dld_shl_load=yes
  11320. else
  11321.   ac_cv_lib_dld_shl_load=no
  11322. fi
  11323. rm -f core conftest.err conftest.$ac_objext \
  11324.     conftest$ac_exeext conftest.$ac_ext
  11325. LIBS=$ac_check_lib_save_LIBS
  11326. fi
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11328. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11329. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11330.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11331. else
  11332.   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11333. if test "x$ac_cv_func_dlopen" = xyes; then :
  11334.   lt_cv_dlopen="dlopen"
  11335. else
  11336.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11337. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11338. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11339.   $as_echo_n "(cached) " >&6
  11340. else
  11341.   ac_check_lib_save_LIBS=$LIBS
  11342. LIBS="-ldl  $LIBS"
  11343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11344. /* end confdefs.h.  */
  11345.  
  11346. /* Override any GCC internal prototype to avoid an error.
  11347.    Use char because int might match the return type of a GCC
  11348.    builtin and then its argument prototype would still apply.  */
  11349. #ifdef __cplusplus
  11350. extern "C"
  11351. #endif
  11352. char dlopen ();
  11353. int
  11354. main ()
  11355. {
  11356. return dlopen ();
  11357.   ;
  11358.   return 0;
  11359. }
  11360. _ACEOF
  11361. if ac_fn_c_try_link "$LINENO"; then :
  11362.   ac_cv_lib_dl_dlopen=yes
  11363. else
  11364.   ac_cv_lib_dl_dlopen=no
  11365. fi
  11366. rm -f core conftest.err conftest.$ac_objext \
  11367.     conftest$ac_exeext conftest.$ac_ext
  11368. LIBS=$ac_check_lib_save_LIBS
  11369. fi
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11371. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11372. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11373.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11374. else
  11375.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11376. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11377. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11378.   $as_echo_n "(cached) " >&6
  11379. else
  11380.   ac_check_lib_save_LIBS=$LIBS
  11381. LIBS="-lsvld  $LIBS"
  11382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11383. /* end confdefs.h.  */
  11384.  
  11385. /* Override any GCC internal prototype to avoid an error.
  11386.    Use char because int might match the return type of a GCC
  11387.    builtin and then its argument prototype would still apply.  */
  11388. #ifdef __cplusplus
  11389. extern "C"
  11390. #endif
  11391. char dlopen ();
  11392. int
  11393. main ()
  11394. {
  11395. return dlopen ();
  11396.   ;
  11397.   return 0;
  11398. }
  11399. _ACEOF
  11400. if ac_fn_c_try_link "$LINENO"; then :
  11401.   ac_cv_lib_svld_dlopen=yes
  11402. else
  11403.   ac_cv_lib_svld_dlopen=no
  11404. fi
  11405. rm -f core conftest.err conftest.$ac_objext \
  11406.     conftest$ac_exeext conftest.$ac_ext
  11407. LIBS=$ac_check_lib_save_LIBS
  11408. fi
  11409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11410. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11411. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11412.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11413. else
  11414.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11415. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11416. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11417.   $as_echo_n "(cached) " >&6
  11418. else
  11419.   ac_check_lib_save_LIBS=$LIBS
  11420. LIBS="-ldld  $LIBS"
  11421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11422. /* end confdefs.h.  */
  11423.  
  11424. /* Override any GCC internal prototype to avoid an error.
  11425.    Use char because int might match the return type of a GCC
  11426.    builtin and then its argument prototype would still apply.  */
  11427. #ifdef __cplusplus
  11428. extern "C"
  11429. #endif
  11430. char dld_link ();
  11431. int
  11432. main ()
  11433. {
  11434. return dld_link ();
  11435.   ;
  11436.   return 0;
  11437. }
  11438. _ACEOF
  11439. if ac_fn_c_try_link "$LINENO"; then :
  11440.   ac_cv_lib_dld_dld_link=yes
  11441. else
  11442.   ac_cv_lib_dld_dld_link=no
  11443. fi
  11444. rm -f core conftest.err conftest.$ac_objext \
  11445.     conftest$ac_exeext conftest.$ac_ext
  11446. LIBS=$ac_check_lib_save_LIBS
  11447. fi
  11448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11449. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11450. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11451.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11452. fi
  11453.  
  11454.  
  11455. fi
  11456.  
  11457.  
  11458. fi
  11459.  
  11460.  
  11461. fi
  11462.  
  11463.  
  11464. fi
  11465.  
  11466.  
  11467. fi
  11468.  
  11469.     ;;
  11470.   esac
  11471.  
  11472.   if test "x$lt_cv_dlopen" != xno; then
  11473.     enable_dlopen=yes
  11474.   else
  11475.     enable_dlopen=no
  11476.   fi
  11477.  
  11478.   case $lt_cv_dlopen in
  11479.   dlopen)
  11480.     save_CPPFLAGS="$CPPFLAGS"
  11481.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11482.  
  11483.     save_LDFLAGS="$LDFLAGS"
  11484.     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11485.  
  11486.     save_LIBS="$LIBS"
  11487.     LIBS="$lt_cv_dlopen_libs $LIBS"
  11488.  
  11489.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11490. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11491. if ${lt_cv_dlopen_self+:} false; then :
  11492.   $as_echo_n "(cached) " >&6
  11493. else
  11494.           if test "$cross_compiling" = yes; then :
  11495.   lt_cv_dlopen_self=cross
  11496. else
  11497.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11498.   lt_status=$lt_dlunknown
  11499.   cat > conftest.$ac_ext <<_LT_EOF
  11500. #line $LINENO "configure"
  11501. #include "confdefs.h"
  11502.  
  11503. #if HAVE_DLFCN_H
  11504. #include <dlfcn.h>
  11505. #endif
  11506.  
  11507. #include <stdio.h>
  11508.  
  11509. #ifdef RTLD_GLOBAL
  11510. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11511. #else
  11512. #  ifdef DL_GLOBAL
  11513. #    define LT_DLGLOBAL         DL_GLOBAL
  11514. #  else
  11515. #    define LT_DLGLOBAL         0
  11516. #  endif
  11517. #endif
  11518.  
  11519. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11520.    find out it does not work in some platform. */
  11521. #ifndef LT_DLLAZY_OR_NOW
  11522. #  ifdef RTLD_LAZY
  11523. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11524. #  else
  11525. #    ifdef DL_LAZY
  11526. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11527. #    else
  11528. #      ifdef RTLD_NOW
  11529. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11530. #      else
  11531. #        ifdef DL_NOW
  11532. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11533. #        else
  11534. #          define LT_DLLAZY_OR_NOW      0
  11535. #        endif
  11536. #      endif
  11537. #    endif
  11538. #  endif
  11539. #endif
  11540.  
  11541. /* When -fvisbility=hidden is used, assume the code has been annotated
  11542.    correspondingly for the symbols needed.  */
  11543. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11544. int fnord () __attribute__((visibility("default")));
  11545. #endif
  11546.  
  11547. int fnord () { return 42; }
  11548. int main ()
  11549. {
  11550.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11551.   int status = $lt_dlunknown;
  11552.  
  11553.   if (self)
  11554.     {
  11555.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11556.       else
  11557.         {
  11558.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11559.           else puts (dlerror ());
  11560.         }
  11561.       /* dlclose (self); */
  11562.     }
  11563.   else
  11564.     puts (dlerror ());
  11565.  
  11566.   return status;
  11567. }
  11568. _LT_EOF
  11569.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11570.   (eval $ac_link) 2>&5
  11571.   ac_status=$?
  11572.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11573.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11574.     (./conftest; exit; ) >&5 2>/dev/null
  11575.     lt_status=$?
  11576.     case x$lt_status in
  11577.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11578.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11579.       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11580.     esac
  11581.   else :
  11582.     # compilation failed
  11583.     lt_cv_dlopen_self=no
  11584.   fi
  11585. fi
  11586. rm -fr conftest*
  11587.  
  11588.  
  11589. fi
  11590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11591. $as_echo "$lt_cv_dlopen_self" >&6; }
  11592.  
  11593.     if test "x$lt_cv_dlopen_self" = xyes; then
  11594.       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11595.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11596. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11597. if ${lt_cv_dlopen_self_static+:} false; then :
  11598.   $as_echo_n "(cached) " >&6
  11599. else
  11600.           if test "$cross_compiling" = yes; then :
  11601.   lt_cv_dlopen_self_static=cross
  11602. else
  11603.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11604.   lt_status=$lt_dlunknown
  11605.   cat > conftest.$ac_ext <<_LT_EOF
  11606. #line $LINENO "configure"
  11607. #include "confdefs.h"
  11608.  
  11609. #if HAVE_DLFCN_H
  11610. #include <dlfcn.h>
  11611. #endif
  11612.  
  11613. #include <stdio.h>
  11614.  
  11615. #ifdef RTLD_GLOBAL
  11616. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11617. #else
  11618. #  ifdef DL_GLOBAL
  11619. #    define LT_DLGLOBAL         DL_GLOBAL
  11620. #  else
  11621. #    define LT_DLGLOBAL         0
  11622. #  endif
  11623. #endif
  11624.  
  11625. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11626.    find out it does not work in some platform. */
  11627. #ifndef LT_DLLAZY_OR_NOW
  11628. #  ifdef RTLD_LAZY
  11629. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11630. #  else
  11631. #    ifdef DL_LAZY
  11632. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11633. #    else
  11634. #      ifdef RTLD_NOW
  11635. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11636. #      else
  11637. #        ifdef DL_NOW
  11638. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11639. #        else
  11640. #          define LT_DLLAZY_OR_NOW      0
  11641. #        endif
  11642. #      endif
  11643. #    endif
  11644. #  endif
  11645. #endif
  11646.  
  11647. /* When -fvisbility=hidden is used, assume the code has been annotated
  11648.    correspondingly for the symbols needed.  */
  11649. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11650. int fnord () __attribute__((visibility("default")));
  11651. #endif
  11652.  
  11653. int fnord () { return 42; }
  11654. int main ()
  11655. {
  11656.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11657.   int status = $lt_dlunknown;
  11658.  
  11659.   if (self)
  11660.     {
  11661.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11662.       else
  11663.         {
  11664.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11665.           else puts (dlerror ());
  11666.         }
  11667.       /* dlclose (self); */
  11668.     }
  11669.   else
  11670.     puts (dlerror ());
  11671.  
  11672.   return status;
  11673. }
  11674. _LT_EOF
  11675.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11676.   (eval $ac_link) 2>&5
  11677.   ac_status=$?
  11678.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11679.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11680.     (./conftest; exit; ) >&5 2>/dev/null
  11681.     lt_status=$?
  11682.     case x$lt_status in
  11683.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11684.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11685.       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11686.     esac
  11687.   else :
  11688.     # compilation failed
  11689.     lt_cv_dlopen_self_static=no
  11690.   fi
  11691. fi
  11692. rm -fr conftest*
  11693.  
  11694.  
  11695. fi
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11697. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11698.     fi
  11699.  
  11700.     CPPFLAGS="$save_CPPFLAGS"
  11701.     LDFLAGS="$save_LDFLAGS"
  11702.     LIBS="$save_LIBS"
  11703.     ;;
  11704.   esac
  11705.  
  11706.   case $lt_cv_dlopen_self in
  11707.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11708.   *) enable_dlopen_self=unknown ;;
  11709.   esac
  11710.  
  11711.   case $lt_cv_dlopen_self_static in
  11712.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11713.   *) enable_dlopen_self_static=unknown ;;
  11714.   esac
  11715. fi
  11716.  
  11717.  
  11718.  
  11719.  
  11720.  
  11721.  
  11722.  
  11723.  
  11724.  
  11725.  
  11726.  
  11727.  
  11728.  
  11729.  
  11730.  
  11731.  
  11732.  
  11733. striplib=
  11734. old_striplib=
  11735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11736. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11737. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11738.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11739.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11740.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11741. $as_echo "yes" >&6; }
  11742. else
  11743. # FIXME - insert some real tests, host_os isn't really good enough
  11744.   case $host_os in
  11745.   darwin*)
  11746.     if test -n "$STRIP" ; then
  11747.       striplib="$STRIP -x"
  11748.       old_striplib="$STRIP -S"
  11749.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11750. $as_echo "yes" >&6; }
  11751.     else
  11752.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11753. $as_echo "no" >&6; }
  11754.     fi
  11755.     ;;
  11756.   *)
  11757.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11758. $as_echo "no" >&6; }
  11759.     ;;
  11760.   esac
  11761. fi
  11762.  
  11763.  
  11764.  
  11765.  
  11766.  
  11767.  
  11768.  
  11769.  
  11770.  
  11771.  
  11772.  
  11773.  
  11774.   # Report which library types will actually be built
  11775.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11776. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11777.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11778. $as_echo "$can_build_shared" >&6; }
  11779.  
  11780.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11781. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11782.   test "$can_build_shared" = "no" && enable_shared=no
  11783.  
  11784.   # On AIX, shared libraries and static libraries use the same namespace, and
  11785.   # are all built from PIC.
  11786.   case $host_os in
  11787.   aix3*)
  11788.     test "$enable_shared" = yes && enable_static=no
  11789.     if test -n "$RANLIB"; then
  11790.       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11791.       postinstall_cmds='$RANLIB $lib'
  11792.     fi
  11793.     ;;
  11794.  
  11795.   aix[4-9]*)
  11796.     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11797.       test "$enable_shared" = yes && enable_static=no
  11798.     fi
  11799.     ;;
  11800.   esac
  11801.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11802. $as_echo "$enable_shared" >&6; }
  11803.  
  11804.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11805. $as_echo_n "checking whether to build static libraries... " >&6; }
  11806.   # Make sure either enable_shared or enable_static is yes.
  11807.   test "$enable_shared" = yes || enable_static=yes
  11808.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11809. $as_echo "$enable_static" >&6; }
  11810.  
  11811.  
  11812.  
  11813.  
  11814. fi
  11815. ac_ext=c
  11816. ac_cpp='$CPP $CPPFLAGS'
  11817. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11818. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11820.  
  11821. CC="$lt_save_CC"
  11822.  
  11823.  
  11824.  
  11825.  
  11826.  
  11827.  
  11828.  
  11829.  
  11830.  
  11831.  
  11832.  
  11833.  
  11834.  
  11835.  
  11836.  
  11837.         ac_config_commands="$ac_config_commands libtool"
  11838.  
  11839.  
  11840.  
  11841.  
  11842. # Only expand once:
  11843.  
  11844.  
  11845. ac_ext=c
  11846. ac_cpp='$CPP $CPPFLAGS'
  11847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11850. if test -n "$ac_tool_prefix"; then
  11851.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11852. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11854. $as_echo_n "checking for $ac_word... " >&6; }
  11855. if ${ac_cv_prog_CC+:} false; then :
  11856.   $as_echo_n "(cached) " >&6
  11857. else
  11858.   if test -n "$CC"; then
  11859.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11860. else
  11861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11862. for as_dir in $PATH
  11863. do
  11864.   IFS=$as_save_IFS
  11865.   test -z "$as_dir" && as_dir=.
  11866.     for ac_exec_ext in '' $ac_executable_extensions; do
  11867.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11868.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11869.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11870.     break 2
  11871.   fi
  11872. done
  11873.   done
  11874. IFS=$as_save_IFS
  11875.  
  11876. fi
  11877. fi
  11878. CC=$ac_cv_prog_CC
  11879. if test -n "$CC"; then
  11880.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11881. $as_echo "$CC" >&6; }
  11882. else
  11883.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11884. $as_echo "no" >&6; }
  11885. fi
  11886.  
  11887.  
  11888. fi
  11889. if test -z "$ac_cv_prog_CC"; then
  11890.   ac_ct_CC=$CC
  11891.   # Extract the first word of "gcc", so it can be a program name with args.
  11892. set dummy gcc; ac_word=$2
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11894. $as_echo_n "checking for $ac_word... " >&6; }
  11895. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11896.   $as_echo_n "(cached) " >&6
  11897. else
  11898.   if test -n "$ac_ct_CC"; then
  11899.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11900. else
  11901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11902. for as_dir in $PATH
  11903. do
  11904.   IFS=$as_save_IFS
  11905.   test -z "$as_dir" && as_dir=.
  11906.     for ac_exec_ext in '' $ac_executable_extensions; do
  11907.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11908.     ac_cv_prog_ac_ct_CC="gcc"
  11909.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11910.     break 2
  11911.   fi
  11912. done
  11913.   done
  11914. IFS=$as_save_IFS
  11915.  
  11916. fi
  11917. fi
  11918. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11919. if test -n "$ac_ct_CC"; then
  11920.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11921. $as_echo "$ac_ct_CC" >&6; }
  11922. else
  11923.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11924. $as_echo "no" >&6; }
  11925. fi
  11926.  
  11927.   if test "x$ac_ct_CC" = x; then
  11928.     CC=""
  11929.   else
  11930.     case $cross_compiling:$ac_tool_warned in
  11931. yes:)
  11932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11933. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11934. ac_tool_warned=yes ;;
  11935. esac
  11936.     CC=$ac_ct_CC
  11937.   fi
  11938. else
  11939.   CC="$ac_cv_prog_CC"
  11940. fi
  11941.  
  11942. if test -z "$CC"; then
  11943.           if test -n "$ac_tool_prefix"; then
  11944.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11945. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11947. $as_echo_n "checking for $ac_word... " >&6; }
  11948. if ${ac_cv_prog_CC+:} false; then :
  11949.   $as_echo_n "(cached) " >&6
  11950. else
  11951.   if test -n "$CC"; then
  11952.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11953. else
  11954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11955. for as_dir in $PATH
  11956. do
  11957.   IFS=$as_save_IFS
  11958.   test -z "$as_dir" && as_dir=.
  11959.     for ac_exec_ext in '' $ac_executable_extensions; do
  11960.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11961.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  11962.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11963.     break 2
  11964.   fi
  11965. done
  11966.   done
  11967. IFS=$as_save_IFS
  11968.  
  11969. fi
  11970. fi
  11971. CC=$ac_cv_prog_CC
  11972. if test -n "$CC"; then
  11973.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11974. $as_echo "$CC" >&6; }
  11975. else
  11976.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11977. $as_echo "no" >&6; }
  11978. fi
  11979.  
  11980.  
  11981.   fi
  11982. fi
  11983. if test -z "$CC"; then
  11984.   # Extract the first word of "cc", so it can be a program name with args.
  11985. set dummy cc; ac_word=$2
  11986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11987. $as_echo_n "checking for $ac_word... " >&6; }
  11988. if ${ac_cv_prog_CC+:} false; then :
  11989.   $as_echo_n "(cached) " >&6
  11990. else
  11991.   if test -n "$CC"; then
  11992.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11993. else
  11994.   ac_prog_rejected=no
  11995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11996. for as_dir in $PATH
  11997. do
  11998.   IFS=$as_save_IFS
  11999.   test -z "$as_dir" && as_dir=.
  12000.     for ac_exec_ext in '' $ac_executable_extensions; do
  12001.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12002.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  12003.        ac_prog_rejected=yes
  12004.        continue
  12005.      fi
  12006.     ac_cv_prog_CC="cc"
  12007.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12008.     break 2
  12009.   fi
  12010. done
  12011.   done
  12012. IFS=$as_save_IFS
  12013.  
  12014. if test $ac_prog_rejected = yes; then
  12015.   # We found a bogon in the path, so make sure we never use it.
  12016.   set dummy $ac_cv_prog_CC
  12017.   shift
  12018.   if test $# != 0; then
  12019.     # We chose a different compiler from the bogus one.
  12020.     # However, it has the same basename, so the bogon will be chosen
  12021.     # first if we set CC to just the basename; use the full file name.
  12022.     shift
  12023.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  12024.   fi
  12025. fi
  12026. fi
  12027. fi
  12028. CC=$ac_cv_prog_CC
  12029. if test -n "$CC"; then
  12030.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12031. $as_echo "$CC" >&6; }
  12032. else
  12033.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12034. $as_echo "no" >&6; }
  12035. fi
  12036.  
  12037.  
  12038. fi
  12039. if test -z "$CC"; then
  12040.   if test -n "$ac_tool_prefix"; then
  12041.   for ac_prog in cl.exe
  12042.   do
  12043.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12044. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12046. $as_echo_n "checking for $ac_word... " >&6; }
  12047. if ${ac_cv_prog_CC+:} false; then :
  12048.   $as_echo_n "(cached) " >&6
  12049. else
  12050.   if test -n "$CC"; then
  12051.   ac_cv_prog_CC="$CC" # Let the user override the test.
  12052. else
  12053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12054. for as_dir in $PATH
  12055. do
  12056.   IFS=$as_save_IFS
  12057.   test -z "$as_dir" && as_dir=.
  12058.     for ac_exec_ext in '' $ac_executable_extensions; do
  12059.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12060.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  12061.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12062.     break 2
  12063.   fi
  12064. done
  12065.   done
  12066. IFS=$as_save_IFS
  12067.  
  12068. fi
  12069. fi
  12070. CC=$ac_cv_prog_CC
  12071. if test -n "$CC"; then
  12072.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12073. $as_echo "$CC" >&6; }
  12074. else
  12075.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12076. $as_echo "no" >&6; }
  12077. fi
  12078.  
  12079.  
  12080.     test -n "$CC" && break
  12081.   done
  12082. fi
  12083. if test -z "$CC"; then
  12084.   ac_ct_CC=$CC
  12085.   for ac_prog in cl.exe
  12086. do
  12087.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  12088. set dummy $ac_prog; ac_word=$2
  12089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12090. $as_echo_n "checking for $ac_word... " >&6; }
  12091. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  12092.   $as_echo_n "(cached) " >&6
  12093. else
  12094.   if test -n "$ac_ct_CC"; then
  12095.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  12096. else
  12097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12098. for as_dir in $PATH
  12099. do
  12100.   IFS=$as_save_IFS
  12101.   test -z "$as_dir" && as_dir=.
  12102.     for ac_exec_ext in '' $ac_executable_extensions; do
  12103.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12104.     ac_cv_prog_ac_ct_CC="$ac_prog"
  12105.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12106.     break 2
  12107.   fi
  12108. done
  12109.   done
  12110. IFS=$as_save_IFS
  12111.  
  12112. fi
  12113. fi
  12114. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  12115. if test -n "$ac_ct_CC"; then
  12116.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  12117. $as_echo "$ac_ct_CC" >&6; }
  12118. else
  12119.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12120. $as_echo "no" >&6; }
  12121. fi
  12122.  
  12123.  
  12124.   test -n "$ac_ct_CC" && break
  12125. done
  12126.  
  12127.   if test "x$ac_ct_CC" = x; then
  12128.     CC=""
  12129.   else
  12130.     case $cross_compiling:$ac_tool_warned in
  12131. yes:)
  12132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12133. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12134. ac_tool_warned=yes ;;
  12135. esac
  12136.     CC=$ac_ct_CC
  12137.   fi
  12138. fi
  12139.  
  12140. fi
  12141.  
  12142.  
  12143. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12144. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12145. as_fn_error $? "no acceptable C compiler found in \$PATH
  12146. See \`config.log' for more details" "$LINENO" 5; }
  12147.  
  12148. # Provide some information about the compiler.
  12149. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  12150. set X $ac_compile
  12151. ac_compiler=$2
  12152. for ac_option in --version -v -V -qversion; do
  12153.   { { ac_try="$ac_compiler $ac_option >&5"
  12154. case "(($ac_try" in
  12155.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12156.   *) ac_try_echo=$ac_try;;
  12157. esac
  12158. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12159. $as_echo "$ac_try_echo"; } >&5
  12160.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12161.   ac_status=$?
  12162.   if test -s conftest.err; then
  12163.     sed '10a\
  12164. ... rest of stderr output deleted ...
  12165.          10q' conftest.err >conftest.er1
  12166.     cat conftest.er1 >&5
  12167.   fi
  12168.   rm -f conftest.er1 conftest.err
  12169.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12170.   test $ac_status = 0; }
  12171. done
  12172.  
  12173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  12174. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  12175. if ${ac_cv_c_compiler_gnu+:} false; then :
  12176.   $as_echo_n "(cached) " >&6
  12177. else
  12178.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12179. /* end confdefs.h.  */
  12180.  
  12181. int
  12182. main ()
  12183. {
  12184. #ifndef __GNUC__
  12185.        choke me
  12186. #endif
  12187.  
  12188.   ;
  12189.   return 0;
  12190. }
  12191. _ACEOF
  12192. if ac_fn_c_try_compile "$LINENO"; then :
  12193.   ac_compiler_gnu=yes
  12194. else
  12195.   ac_compiler_gnu=no
  12196. fi
  12197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12198. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  12199.  
  12200. fi
  12201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  12202. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  12203. if test $ac_compiler_gnu = yes; then
  12204.   GCC=yes
  12205. else
  12206.   GCC=
  12207. fi
  12208. ac_test_CFLAGS=${CFLAGS+set}
  12209. ac_save_CFLAGS=$CFLAGS
  12210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  12211. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  12212. if ${ac_cv_prog_cc_g+:} false; then :
  12213.   $as_echo_n "(cached) " >&6
  12214. else
  12215.   ac_save_c_werror_flag=$ac_c_werror_flag
  12216.    ac_c_werror_flag=yes
  12217.    ac_cv_prog_cc_g=no
  12218.    CFLAGS="-g"
  12219.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12220. /* end confdefs.h.  */
  12221.  
  12222. int
  12223. main ()
  12224. {
  12225.  
  12226.   ;
  12227.   return 0;
  12228. }
  12229. _ACEOF
  12230. if ac_fn_c_try_compile "$LINENO"; then :
  12231.   ac_cv_prog_cc_g=yes
  12232. else
  12233.   CFLAGS=""
  12234.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12235. /* end confdefs.h.  */
  12236.  
  12237. int
  12238. main ()
  12239. {
  12240.  
  12241.   ;
  12242.   return 0;
  12243. }
  12244. _ACEOF
  12245. if ac_fn_c_try_compile "$LINENO"; then :
  12246.  
  12247. else
  12248.   ac_c_werror_flag=$ac_save_c_werror_flag
  12249.          CFLAGS="-g"
  12250.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12251. /* end confdefs.h.  */
  12252.  
  12253. int
  12254. main ()
  12255. {
  12256.  
  12257.   ;
  12258.   return 0;
  12259. }
  12260. _ACEOF
  12261. if ac_fn_c_try_compile "$LINENO"; then :
  12262.   ac_cv_prog_cc_g=yes
  12263. fi
  12264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12265. fi
  12266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12267. fi
  12268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12269.    ac_c_werror_flag=$ac_save_c_werror_flag
  12270. fi
  12271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  12272. $as_echo "$ac_cv_prog_cc_g" >&6; }
  12273. if test "$ac_test_CFLAGS" = set; then
  12274.   CFLAGS=$ac_save_CFLAGS
  12275. elif test $ac_cv_prog_cc_g = yes; then
  12276.   if test "$GCC" = yes; then
  12277.     CFLAGS="-g -O2"
  12278.   else
  12279.     CFLAGS="-g"
  12280.   fi
  12281. else
  12282.   if test "$GCC" = yes; then
  12283.     CFLAGS="-O2"
  12284.   else
  12285.     CFLAGS=
  12286.   fi
  12287. fi
  12288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  12289. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  12290. if ${ac_cv_prog_cc_c89+:} false; then :
  12291.   $as_echo_n "(cached) " >&6
  12292. else
  12293.   ac_cv_prog_cc_c89=no
  12294. ac_save_CC=$CC
  12295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12296. /* end confdefs.h.  */
  12297. #include <stdarg.h>
  12298. #include <stdio.h>
  12299. struct stat;
  12300. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  12301. struct buf { int x; };
  12302. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  12303. static char *e (p, i)
  12304.      char **p;
  12305.      int i;
  12306. {
  12307.   return p[i];
  12308. }
  12309. static char *f (char * (*g) (char **, int), char **p, ...)
  12310. {
  12311.   char *s;
  12312.   va_list v;
  12313.   va_start (v,p);
  12314.   s = g (p, va_arg (v,int));
  12315.   va_end (v);
  12316.   return s;
  12317. }
  12318.  
  12319. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  12320.    function prototypes and stuff, but not '\xHH' hex character constants.
  12321.    These don't provoke an error unfortunately, instead are silently treated
  12322.    as 'x'.  The following induces an error, until -std is added to get
  12323.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  12324.    array size at least.  It's necessary to write '\x00'==0 to get something
  12325.    that's true only with -std.  */
  12326. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  12327.  
  12328. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  12329.    inside strings and character constants.  */
  12330. #define FOO(x) 'x'
  12331. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  12332.  
  12333. int test (int i, double x);
  12334. struct s1 {int (*f) (int a);};
  12335. struct s2 {int (*f) (double a);};
  12336. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  12337. int argc;
  12338. char **argv;
  12339. int
  12340. main ()
  12341. {
  12342. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  12343.   ;
  12344.   return 0;
  12345. }
  12346. _ACEOF
  12347. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  12348.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12349. do
  12350.   CC="$ac_save_CC $ac_arg"
  12351.   if ac_fn_c_try_compile "$LINENO"; then :
  12352.   ac_cv_prog_cc_c89=$ac_arg
  12353. fi
  12354. rm -f core conftest.err conftest.$ac_objext
  12355.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  12356. done
  12357. rm -f conftest.$ac_ext
  12358. CC=$ac_save_CC
  12359.  
  12360. fi
  12361. # AC_CACHE_VAL
  12362. case "x$ac_cv_prog_cc_c89" in
  12363.   x)
  12364.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12365. $as_echo "none needed" >&6; } ;;
  12366.   xno)
  12367.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12368. $as_echo "unsupported" >&6; } ;;
  12369.   *)
  12370.     CC="$CC $ac_cv_prog_cc_c89"
  12371.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12372. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  12373. esac
  12374. if test "x$ac_cv_prog_cc_c89" != xno; then :
  12375.  
  12376. fi
  12377.  
  12378. ac_ext=c
  12379. ac_cpp='$CPP $CPPFLAGS'
  12380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12383.  
  12384. ac_ext=c
  12385. ac_cpp='$CPP $CPPFLAGS'
  12386. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12387. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12388. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  12390. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  12391. if ${am_cv_prog_cc_c_o+:} false; then :
  12392.   $as_echo_n "(cached) " >&6
  12393. else
  12394.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12395. /* end confdefs.h.  */
  12396.  
  12397. int
  12398. main ()
  12399. {
  12400.  
  12401.   ;
  12402.   return 0;
  12403. }
  12404. _ACEOF
  12405.   # Make sure it works both with $CC and with simple cc.
  12406.   # Following AC_PROG_CC_C_O, we do the test twice because some
  12407.   # compilers refuse to overwrite an existing .o file with -o,
  12408.   # though they will create one.
  12409.   am_cv_prog_cc_c_o=yes
  12410.   for am_i in 1 2; do
  12411.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  12412.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  12413.    ac_status=$?
  12414.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12415.    (exit $ac_status); } \
  12416.          && test -f conftest2.$ac_objext; then
  12417.       : OK
  12418.     else
  12419.       am_cv_prog_cc_c_o=no
  12420.       break
  12421.     fi
  12422.   done
  12423.   rm -f core conftest*
  12424.   unset am_i
  12425. fi
  12426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  12427. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  12428. if test "$am_cv_prog_cc_c_o" != yes; then
  12429.    # Losing compiler, so override with the script.
  12430.    # FIXME: It is wrong to rewrite CC.
  12431.    # But if we don't then we get into trouble of one sort or another.
  12432.    # A longer-term fix would be to have automake use am__CC in this case,
  12433.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  12434.    CC="$am_aux_dir/compile $CC"
  12435. fi
  12436. ac_ext=c
  12437. ac_cpp='$CPP $CPPFLAGS'
  12438. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12439. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12440. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12441.  
  12442.  
  12443. depcc="$CC"   am_compiler_list=
  12444.  
  12445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12446. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12447. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  12448.   $as_echo_n "(cached) " >&6
  12449. else
  12450.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12451.   # We make a subdir and do the tests there.  Otherwise we can end up
  12452.   # making bogus files that we don't know about and never remove.  For
  12453.   # instance it was reported that on HP-UX the gcc test will end up
  12454.   # making a dummy file named 'D' -- because '-MD' means "put the output
  12455.   # in D".
  12456.   rm -rf conftest.dir
  12457.   mkdir conftest.dir
  12458.   # Copy depcomp to subdir because otherwise we won't find it if we're
  12459.   # using a relative directory.
  12460.   cp "$am_depcomp" conftest.dir
  12461.   cd conftest.dir
  12462.   # We will build objects and dependencies in a subdirectory because
  12463.   # it helps to detect inapplicable dependency modes.  For instance
  12464.   # both Tru64's cc and ICC support -MD to output dependencies as a
  12465.   # side effect of compilation, but ICC will put the dependencies in
  12466.   # the current directory while Tru64 will put them in the object
  12467.   # directory.
  12468.   mkdir sub
  12469.  
  12470.   am_cv_CC_dependencies_compiler_type=none
  12471.   if test "$am_compiler_list" = ""; then
  12472.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12473.   fi
  12474.   am__universal=false
  12475.   case " $depcc " in #(
  12476.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12477.      esac
  12478.  
  12479.   for depmode in $am_compiler_list; do
  12480.     # Setup a source with many dependencies, because some compilers
  12481.     # like to wrap large dependency lists on column 80 (with \), and
  12482.     # we should not choose a depcomp mode which is confused by this.
  12483.     #
  12484.     # We need to recreate these files for each test, as the compiler may
  12485.     # overwrite some of them when testing with obscure command lines.
  12486.     # This happens at least with the AIX C compiler.
  12487.     : > sub/conftest.c
  12488.     for i in 1 2 3 4 5 6; do
  12489.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12490.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12491.       # Solaris 10 /bin/sh.
  12492.       echo '/* dummy */' > sub/conftst$i.h
  12493.     done
  12494.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12495.  
  12496.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12497.     # mode.  It turns out that the SunPro C++ compiler does not properly
  12498.     # handle '-M -o', and we need to detect this.  Also, some Intel
  12499.     # versions had trouble with output in subdirs.
  12500.     am__obj=sub/conftest.${OBJEXT-o}
  12501.     am__minus_obj="-o $am__obj"
  12502.     case $depmode in
  12503.     gcc)
  12504.       # This depmode causes a compiler race in universal mode.
  12505.       test "$am__universal" = false || continue
  12506.       ;;
  12507.     nosideeffect)
  12508.       # After this tag, mechanisms are not by side-effect, so they'll
  12509.       # only be used when explicitly requested.
  12510.       if test "x$enable_dependency_tracking" = xyes; then
  12511.         continue
  12512.       else
  12513.         break
  12514.       fi
  12515.       ;;
  12516.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12517.       # This compiler won't grok '-c -o', but also, the minuso test has
  12518.       # not run yet.  These depmodes are late enough in the game, and
  12519.       # so weak that their functioning should not be impacted.
  12520.       am__obj=conftest.${OBJEXT-o}
  12521.       am__minus_obj=
  12522.       ;;
  12523.     none) break ;;
  12524.     esac
  12525.     if depmode=$depmode \
  12526.        source=sub/conftest.c object=$am__obj \
  12527.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12528.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12529.          >/dev/null 2>conftest.err &&
  12530.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12531.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12532.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12533.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12534.       # icc doesn't choke on unknown options, it will just issue warnings
  12535.       # or remarks (even with -Werror).  So we grep stderr for any message
  12536.       # that says an option was ignored or not supported.
  12537.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  12538.       #   icc: Command line warning: ignoring option '-M'; no argument required
  12539.       # The diagnosis changed in icc 8.0:
  12540.       #   icc: Command line remark: option '-MP' not supported
  12541.       if (grep 'ignoring option' conftest.err ||
  12542.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12543.         am_cv_CC_dependencies_compiler_type=$depmode
  12544.         break
  12545.       fi
  12546.     fi
  12547.   done
  12548.  
  12549.   cd ..
  12550.   rm -rf conftest.dir
  12551. else
  12552.   am_cv_CC_dependencies_compiler_type=none
  12553. fi
  12554.  
  12555. fi
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12557. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12558. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12559.  
  12560.  if
  12561.   test "x$enable_dependency_tracking" != xno \
  12562.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12563.   am__fastdepCC_TRUE=
  12564.   am__fastdepCC_FALSE='#'
  12565. else
  12566.   am__fastdepCC_TRUE='#'
  12567.   am__fastdepCC_FALSE=
  12568. fi
  12569.  
  12570.  
  12571. ac_ext=cpp
  12572. ac_cpp='$CXXCPP $CPPFLAGS'
  12573. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12574. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12575. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12576. if test -z "$CXX"; then
  12577.   if test -n "$CCC"; then
  12578.     CXX=$CCC
  12579.   else
  12580.     if test -n "$ac_tool_prefix"; then
  12581.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12582.   do
  12583.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12584. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12586. $as_echo_n "checking for $ac_word... " >&6; }
  12587. if ${ac_cv_prog_CXX+:} false; then :
  12588.   $as_echo_n "(cached) " >&6
  12589. else
  12590.   if test -n "$CXX"; then
  12591.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12592. else
  12593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12594. for as_dir in $PATH
  12595. do
  12596.   IFS=$as_save_IFS
  12597.   test -z "$as_dir" && as_dir=.
  12598.     for ac_exec_ext in '' $ac_executable_extensions; do
  12599.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12600.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12601.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12602.     break 2
  12603.   fi
  12604. done
  12605.   done
  12606. IFS=$as_save_IFS
  12607.  
  12608. fi
  12609. fi
  12610. CXX=$ac_cv_prog_CXX
  12611. if test -n "$CXX"; then
  12612.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12613. $as_echo "$CXX" >&6; }
  12614. else
  12615.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12616. $as_echo "no" >&6; }
  12617. fi
  12618.  
  12619.  
  12620.     test -n "$CXX" && break
  12621.   done
  12622. fi
  12623. if test -z "$CXX"; then
  12624.   ac_ct_CXX=$CXX
  12625.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12626. do
  12627.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  12628. set dummy $ac_prog; ac_word=$2
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12630. $as_echo_n "checking for $ac_word... " >&6; }
  12631. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12632.   $as_echo_n "(cached) " >&6
  12633. else
  12634.   if test -n "$ac_ct_CXX"; then
  12635.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12636. else
  12637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12638. for as_dir in $PATH
  12639. do
  12640.   IFS=$as_save_IFS
  12641.   test -z "$as_dir" && as_dir=.
  12642.     for ac_exec_ext in '' $ac_executable_extensions; do
  12643.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12644.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  12645.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12646.     break 2
  12647.   fi
  12648. done
  12649.   done
  12650. IFS=$as_save_IFS
  12651.  
  12652. fi
  12653. fi
  12654. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12655. if test -n "$ac_ct_CXX"; then
  12656.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12657. $as_echo "$ac_ct_CXX" >&6; }
  12658. else
  12659.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12660. $as_echo "no" >&6; }
  12661. fi
  12662.  
  12663.  
  12664.   test -n "$ac_ct_CXX" && break
  12665. done
  12666.  
  12667.   if test "x$ac_ct_CXX" = x; then
  12668.     CXX="g++"
  12669.   else
  12670.     case $cross_compiling:$ac_tool_warned in
  12671. yes:)
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12674. ac_tool_warned=yes ;;
  12675. esac
  12676.     CXX=$ac_ct_CXX
  12677.   fi
  12678. fi
  12679.  
  12680.   fi
  12681. fi
  12682. # Provide some information about the compiler.
  12683. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12684. set X $ac_compile
  12685. ac_compiler=$2
  12686. for ac_option in --version -v -V -qversion; do
  12687.   { { ac_try="$ac_compiler $ac_option >&5"
  12688. case "(($ac_try" in
  12689.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12690.   *) ac_try_echo=$ac_try;;
  12691. esac
  12692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12693. $as_echo "$ac_try_echo"; } >&5
  12694.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12695.   ac_status=$?
  12696.   if test -s conftest.err; then
  12697.     sed '10a\
  12698. ... rest of stderr output deleted ...
  12699.          10q' conftest.err >conftest.er1
  12700.     cat conftest.er1 >&5
  12701.   fi
  12702.   rm -f conftest.er1 conftest.err
  12703.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12704.   test $ac_status = 0; }
  12705. done
  12706.  
  12707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12708. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12709. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12710.   $as_echo_n "(cached) " >&6
  12711. else
  12712.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12713. /* end confdefs.h.  */
  12714.  
  12715. int
  12716. main ()
  12717. {
  12718. #ifndef __GNUC__
  12719.        choke me
  12720. #endif
  12721.  
  12722.   ;
  12723.   return 0;
  12724. }
  12725. _ACEOF
  12726. if ac_fn_cxx_try_compile "$LINENO"; then :
  12727.   ac_compiler_gnu=yes
  12728. else
  12729.   ac_compiler_gnu=no
  12730. fi
  12731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12732. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12733.  
  12734. fi
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12736. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12737. if test $ac_compiler_gnu = yes; then
  12738.   GXX=yes
  12739. else
  12740.   GXX=
  12741. fi
  12742. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12743. ac_save_CXXFLAGS=$CXXFLAGS
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12745. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12746. if ${ac_cv_prog_cxx_g+:} false; then :
  12747.   $as_echo_n "(cached) " >&6
  12748. else
  12749.   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12750.    ac_cxx_werror_flag=yes
  12751.    ac_cv_prog_cxx_g=no
  12752.    CXXFLAGS="-g"
  12753.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12754. /* end confdefs.h.  */
  12755.  
  12756. int
  12757. main ()
  12758. {
  12759.  
  12760.   ;
  12761.   return 0;
  12762. }
  12763. _ACEOF
  12764. if ac_fn_cxx_try_compile "$LINENO"; then :
  12765.   ac_cv_prog_cxx_g=yes
  12766. else
  12767.   CXXFLAGS=""
  12768.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12769. /* end confdefs.h.  */
  12770.  
  12771. int
  12772. main ()
  12773. {
  12774.  
  12775.   ;
  12776.   return 0;
  12777. }
  12778. _ACEOF
  12779. if ac_fn_cxx_try_compile "$LINENO"; then :
  12780.  
  12781. else
  12782.   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12783.          CXXFLAGS="-g"
  12784.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12785. /* end confdefs.h.  */
  12786.  
  12787. int
  12788. main ()
  12789. {
  12790.  
  12791.   ;
  12792.   return 0;
  12793. }
  12794. _ACEOF
  12795. if ac_fn_cxx_try_compile "$LINENO"; then :
  12796.   ac_cv_prog_cxx_g=yes
  12797. fi
  12798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12799. fi
  12800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12801. fi
  12802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12803.    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12804. fi
  12805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12806. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12807. if test "$ac_test_CXXFLAGS" = set; then
  12808.   CXXFLAGS=$ac_save_CXXFLAGS
  12809. elif test $ac_cv_prog_cxx_g = yes; then
  12810.   if test "$GXX" = yes; then
  12811.     CXXFLAGS="-g -O2"
  12812.   else
  12813.     CXXFLAGS="-g"
  12814.   fi
  12815. else
  12816.   if test "$GXX" = yes; then
  12817.     CXXFLAGS="-O2"
  12818.   else
  12819.     CXXFLAGS=
  12820.   fi
  12821. fi
  12822. ac_ext=c
  12823. ac_cpp='$CPP $CPPFLAGS'
  12824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12827.  
  12828. depcc="$CXX"  am_compiler_list=
  12829.  
  12830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12831. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12832. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12833.   $as_echo_n "(cached) " >&6
  12834. else
  12835.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12836.   # We make a subdir and do the tests there.  Otherwise we can end up
  12837.   # making bogus files that we don't know about and never remove.  For
  12838.   # instance it was reported that on HP-UX the gcc test will end up
  12839.   # making a dummy file named 'D' -- because '-MD' means "put the output
  12840.   # in D".
  12841.   rm -rf conftest.dir
  12842.   mkdir conftest.dir
  12843.   # Copy depcomp to subdir because otherwise we won't find it if we're
  12844.   # using a relative directory.
  12845.   cp "$am_depcomp" conftest.dir
  12846.   cd conftest.dir
  12847.   # We will build objects and dependencies in a subdirectory because
  12848.   # it helps to detect inapplicable dependency modes.  For instance
  12849.   # both Tru64's cc and ICC support -MD to output dependencies as a
  12850.   # side effect of compilation, but ICC will put the dependencies in
  12851.   # the current directory while Tru64 will put them in the object
  12852.   # directory.
  12853.   mkdir sub
  12854.  
  12855.   am_cv_CXX_dependencies_compiler_type=none
  12856.   if test "$am_compiler_list" = ""; then
  12857.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12858.   fi
  12859.   am__universal=false
  12860.   case " $depcc " in #(
  12861.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12862.      esac
  12863.  
  12864.   for depmode in $am_compiler_list; do
  12865.     # Setup a source with many dependencies, because some compilers
  12866.     # like to wrap large dependency lists on column 80 (with \), and
  12867.     # we should not choose a depcomp mode which is confused by this.
  12868.     #
  12869.     # We need to recreate these files for each test, as the compiler may
  12870.     # overwrite some of them when testing with obscure command lines.
  12871.     # This happens at least with the AIX C compiler.
  12872.     : > sub/conftest.c
  12873.     for i in 1 2 3 4 5 6; do
  12874.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12875.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12876.       # Solaris 10 /bin/sh.
  12877.       echo '/* dummy */' > sub/conftst$i.h
  12878.     done
  12879.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12880.  
  12881.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12882.     # mode.  It turns out that the SunPro C++ compiler does not properly
  12883.     # handle '-M -o', and we need to detect this.  Also, some Intel
  12884.     # versions had trouble with output in subdirs.
  12885.     am__obj=sub/conftest.${OBJEXT-o}
  12886.     am__minus_obj="-o $am__obj"
  12887.     case $depmode in
  12888.     gcc)
  12889.       # This depmode causes a compiler race in universal mode.
  12890.       test "$am__universal" = false || continue
  12891.       ;;
  12892.     nosideeffect)
  12893.       # After this tag, mechanisms are not by side-effect, so they'll
  12894.       # only be used when explicitly requested.
  12895.       if test "x$enable_dependency_tracking" = xyes; then
  12896.         continue
  12897.       else
  12898.         break
  12899.       fi
  12900.       ;;
  12901.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12902.       # This compiler won't grok '-c -o', but also, the minuso test has
  12903.       # not run yet.  These depmodes are late enough in the game, and
  12904.       # so weak that their functioning should not be impacted.
  12905.       am__obj=conftest.${OBJEXT-o}
  12906.       am__minus_obj=
  12907.       ;;
  12908.     none) break ;;
  12909.     esac
  12910.     if depmode=$depmode \
  12911.        source=sub/conftest.c object=$am__obj \
  12912.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12913.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12914.          >/dev/null 2>conftest.err &&
  12915.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12916.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12917.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12918.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12919.       # icc doesn't choke on unknown options, it will just issue warnings
  12920.       # or remarks (even with -Werror).  So we grep stderr for any message
  12921.       # that says an option was ignored or not supported.
  12922.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  12923.       #   icc: Command line warning: ignoring option '-M'; no argument required
  12924.       # The diagnosis changed in icc 8.0:
  12925.       #   icc: Command line remark: option '-MP' not supported
  12926.       if (grep 'ignoring option' conftest.err ||
  12927.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12928.         am_cv_CXX_dependencies_compiler_type=$depmode
  12929.         break
  12930.       fi
  12931.     fi
  12932.   done
  12933.  
  12934.   cd ..
  12935.   rm -rf conftest.dir
  12936. else
  12937.   am_cv_CXX_dependencies_compiler_type=none
  12938. fi
  12939.  
  12940. fi
  12941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12942. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12943. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12944.  
  12945.  if
  12946.   test "x$enable_dependency_tracking" != xno \
  12947.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12948.   am__fastdepCXX_TRUE=
  12949.   am__fastdepCXX_FALSE='#'
  12950. else
  12951.   am__fastdepCXX_TRUE='#'
  12952.   am__fastdepCXX_FALSE=
  12953. fi
  12954.  
  12955.  
  12956.  
  12957.  
  12958. func_stripname_cnf ()
  12959. {
  12960.   case ${2} in
  12961.   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12962.   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12963.   esac
  12964. } # func_stripname_cnf
  12965.  
  12966.       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  12967.     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  12968.     (test "X$CXX" != "Xg++"))) ; then
  12969.   ac_ext=cpp
  12970. ac_cpp='$CXXCPP $CPPFLAGS'
  12971. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12972. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12973. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12975. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12976. if test -z "$CXXCPP"; then
  12977.   if ${ac_cv_prog_CXXCPP+:} false; then :
  12978.   $as_echo_n "(cached) " >&6
  12979. else
  12980.       # Double quotes because CXXCPP needs to be expanded
  12981.     for CXXCPP in "$CXX -E" "/lib/cpp"
  12982.     do
  12983.       ac_preproc_ok=false
  12984. for ac_cxx_preproc_warn_flag in '' yes
  12985. do
  12986.   # Use a header file that comes with gcc, so configuring glibc
  12987.   # with a fresh cross-compiler works.
  12988.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12989.   # <limits.h> exists even on freestanding compilers.
  12990.   # On the NeXT, cc -E runs the code through the compiler's parser,
  12991.   # not just through cpp. "Syntax error" is here to catch this case.
  12992.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12993. /* end confdefs.h.  */
  12994. #ifdef __STDC__
  12995. # include <limits.h>
  12996. #else
  12997. # include <assert.h>
  12998. #endif
  12999.                      Syntax error
  13000. _ACEOF
  13001. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13002.  
  13003. else
  13004.   # Broken: fails on valid input.
  13005. continue
  13006. fi
  13007. rm -f conftest.err conftest.i conftest.$ac_ext
  13008.  
  13009.   # OK, works on sane cases.  Now check whether nonexistent headers
  13010.   # can be detected and how.
  13011.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13012. /* end confdefs.h.  */
  13013. #include <ac_nonexistent.h>
  13014. _ACEOF
  13015. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13016.   # Broken: success on invalid input.
  13017. continue
  13018. else
  13019.   # Passes both tests.
  13020. ac_preproc_ok=:
  13021. break
  13022. fi
  13023. rm -f conftest.err conftest.i conftest.$ac_ext
  13024.  
  13025. done
  13026. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13027. rm -f conftest.i conftest.err conftest.$ac_ext
  13028. if $ac_preproc_ok; then :
  13029.   break
  13030. fi
  13031.  
  13032.     done
  13033.     ac_cv_prog_CXXCPP=$CXXCPP
  13034.  
  13035. fi
  13036.   CXXCPP=$ac_cv_prog_CXXCPP
  13037. else
  13038.   ac_cv_prog_CXXCPP=$CXXCPP
  13039. fi
  13040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  13041. $as_echo "$CXXCPP" >&6; }
  13042. ac_preproc_ok=false
  13043. for ac_cxx_preproc_warn_flag in '' yes
  13044. do
  13045.   # Use a header file that comes with gcc, so configuring glibc
  13046.   # with a fresh cross-compiler works.
  13047.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13048.   # <limits.h> exists even on freestanding compilers.
  13049.   # On the NeXT, cc -E runs the code through the compiler's parser,
  13050.   # not just through cpp. "Syntax error" is here to catch this case.
  13051.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13052. /* end confdefs.h.  */
  13053. #ifdef __STDC__
  13054. # include <limits.h>
  13055. #else
  13056. # include <assert.h>
  13057. #endif
  13058.                      Syntax error
  13059. _ACEOF
  13060. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13061.  
  13062. else
  13063.   # Broken: fails on valid input.
  13064. continue
  13065. fi
  13066. rm -f conftest.err conftest.i conftest.$ac_ext
  13067.  
  13068.   # OK, works on sane cases.  Now check whether nonexistent headers
  13069.   # can be detected and how.
  13070.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13071. /* end confdefs.h.  */
  13072. #include <ac_nonexistent.h>
  13073. _ACEOF
  13074. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13075.   # Broken: success on invalid input.
  13076. continue
  13077. else
  13078.   # Passes both tests.
  13079. ac_preproc_ok=:
  13080. break
  13081. fi
  13082. rm -f conftest.err conftest.i conftest.$ac_ext
  13083.  
  13084. done
  13085. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13086. rm -f conftest.i conftest.err conftest.$ac_ext
  13087. if $ac_preproc_ok; then :
  13088.  
  13089. else
  13090.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13091. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13092. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  13093. See \`config.log' for more details" "$LINENO" 5; }
  13094. fi
  13095.  
  13096. ac_ext=c
  13097. ac_cpp='$CPP $CPPFLAGS'
  13098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13101.  
  13102. else
  13103.   _lt_caught_CXX_error=yes
  13104. fi
  13105.  
  13106. ac_ext=cpp
  13107. ac_cpp='$CXXCPP $CPPFLAGS'
  13108. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13109. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13110. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13111.  
  13112. archive_cmds_need_lc_CXX=no
  13113. allow_undefined_flag_CXX=
  13114. always_export_symbols_CXX=no
  13115. archive_expsym_cmds_CXX=
  13116. compiler_needs_object_CXX=no
  13117. export_dynamic_flag_spec_CXX=
  13118. hardcode_direct_CXX=no
  13119. hardcode_direct_absolute_CXX=no
  13120. hardcode_libdir_flag_spec_CXX=
  13121. hardcode_libdir_separator_CXX=
  13122. hardcode_minus_L_CXX=no
  13123. hardcode_shlibpath_var_CXX=unsupported
  13124. hardcode_automatic_CXX=no
  13125. inherit_rpath_CXX=no
  13126. module_cmds_CXX=
  13127. module_expsym_cmds_CXX=
  13128. link_all_deplibs_CXX=unknown
  13129. old_archive_cmds_CXX=$old_archive_cmds
  13130. reload_flag_CXX=$reload_flag
  13131. reload_cmds_CXX=$reload_cmds
  13132. no_undefined_flag_CXX=
  13133. whole_archive_flag_spec_CXX=
  13134. enable_shared_with_static_runtimes_CXX=no
  13135.  
  13136. # Source file extension for C++ test sources.
  13137. ac_ext=cpp
  13138.  
  13139. # Object file extension for compiled C++ test sources.
  13140. objext=o
  13141. objext_CXX=$objext
  13142.  
  13143. # No sense in running all these tests if we already determined that
  13144. # the CXX compiler isn't working.  Some variables (like enable_shared)
  13145. # are currently assumed to apply to all compilers on this platform,
  13146. # and will be corrupted by setting them based on a non-working compiler.
  13147. if test "$_lt_caught_CXX_error" != yes; then
  13148.   # Code to be used in simple compile tests
  13149.   lt_simple_compile_test_code="int some_variable = 0;"
  13150.  
  13151.   # Code to be used in simple link tests
  13152.   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  13153.  
  13154.   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13155.  
  13156.  
  13157.  
  13158.  
  13159.  
  13160.  
  13161. # If no C compiler was specified, use CC.
  13162. LTCC=${LTCC-"$CC"}
  13163.  
  13164. # If no C compiler flags were specified, use CFLAGS.
  13165. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13166.  
  13167. # Allow CC to be a program name with arguments.
  13168. compiler=$CC
  13169.  
  13170.  
  13171.   # save warnings/boilerplate of simple test code
  13172.   ac_outfile=conftest.$ac_objext
  13173. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13174. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13175. _lt_compiler_boilerplate=`cat conftest.err`
  13176. $RM conftest*
  13177.  
  13178.   ac_outfile=conftest.$ac_objext
  13179. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13180. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13181. _lt_linker_boilerplate=`cat conftest.err`
  13182. $RM -r conftest*
  13183.  
  13184.  
  13185.   # Allow CC to be a program name with arguments.
  13186.   lt_save_CC=$CC
  13187.   lt_save_CFLAGS=$CFLAGS
  13188.   lt_save_LD=$LD
  13189.   lt_save_GCC=$GCC
  13190.   GCC=$GXX
  13191.   lt_save_with_gnu_ld=$with_gnu_ld
  13192.   lt_save_path_LD=$lt_cv_path_LD
  13193.   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  13194.     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  13195.   else
  13196.     $as_unset lt_cv_prog_gnu_ld
  13197.   fi
  13198.   if test -n "${lt_cv_path_LDCXX+set}"; then
  13199.     lt_cv_path_LD=$lt_cv_path_LDCXX
  13200.   else
  13201.     $as_unset lt_cv_path_LD
  13202.   fi
  13203.   test -z "${LDCXX+set}" || LD=$LDCXX
  13204.   CC=${CXX-"c++"}
  13205.   CFLAGS=$CXXFLAGS
  13206.   compiler=$CC
  13207.   compiler_CXX=$CC
  13208.   for cc_temp in $compiler""; do
  13209.   case $cc_temp in
  13210.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13211.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13212.     \-*) ;;
  13213.     *) break;;
  13214.   esac
  13215. done
  13216. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13217.  
  13218.  
  13219.   if test -n "$compiler"; then
  13220.     # We don't want -fno-exception when compiling C++ code, so set the
  13221.     # no_builtin_flag separately
  13222.     if test "$GXX" = yes; then
  13223.       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  13224.     else
  13225.       lt_prog_compiler_no_builtin_flag_CXX=
  13226.     fi
  13227.  
  13228.     if test "$GXX" = yes; then
  13229.       # Set up default GNU C++ configuration
  13230.  
  13231.  
  13232.  
  13233. # Check whether --with-gnu-ld was given.
  13234. if test "${with_gnu_ld+set}" = set; then :
  13235.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  13236. else
  13237.   with_gnu_ld=no
  13238. fi
  13239.  
  13240. ac_prog=ld
  13241. if test "$GCC" = yes; then
  13242.   # Check if gcc -print-prog-name=ld gives a path.
  13243.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13244. $as_echo_n "checking for ld used by $CC... " >&6; }
  13245.   case $host in
  13246.   *-*-mingw*)
  13247.     # gcc leaves a trailing carriage return which upsets mingw
  13248.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13249.   *)
  13250.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13251.   esac
  13252.   case $ac_prog in
  13253.     # Accept absolute paths.
  13254.     [\\/]* | ?:[\\/]*)
  13255.       re_direlt='/[^/][^/]*/\.\./'
  13256.       # Canonicalize the pathname of ld
  13257.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13258.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13259.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13260.       done
  13261.       test -z "$LD" && LD="$ac_prog"
  13262.       ;;
  13263.   "")
  13264.     # If it fails, then pretend we aren't using GCC.
  13265.     ac_prog=ld
  13266.     ;;
  13267.   *)
  13268.     # If it is relative, then search for the first ld in PATH.
  13269.     with_gnu_ld=unknown
  13270.     ;;
  13271.   esac
  13272. elif test "$with_gnu_ld" = yes; then
  13273.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13274. $as_echo_n "checking for GNU ld... " >&6; }
  13275. else
  13276.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13277. $as_echo_n "checking for non-GNU ld... " >&6; }
  13278. fi
  13279. if ${lt_cv_path_LD+:} false; then :
  13280.   $as_echo_n "(cached) " >&6
  13281. else
  13282.   if test -z "$LD"; then
  13283.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13284.   for ac_dir in $PATH; do
  13285.     IFS="$lt_save_ifs"
  13286.     test -z "$ac_dir" && ac_dir=.
  13287.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13288.       lt_cv_path_LD="$ac_dir/$ac_prog"
  13289.       # Check to see if the program is GNU ld.  I'd rather use --version,
  13290.       # but apparently some variants of GNU ld only accept -v.
  13291.       # Break only if it was the GNU/non-GNU ld that we prefer.
  13292.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13293.       *GNU* | *'with BFD'*)
  13294.         test "$with_gnu_ld" != no && break
  13295.         ;;
  13296.       *)
  13297.         test "$with_gnu_ld" != yes && break
  13298.         ;;
  13299.       esac
  13300.     fi
  13301.   done
  13302.   IFS="$lt_save_ifs"
  13303. else
  13304.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  13305. fi
  13306. fi
  13307.  
  13308. LD="$lt_cv_path_LD"
  13309. if test -n "$LD"; then
  13310.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13311. $as_echo "$LD" >&6; }
  13312. else
  13313.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13314. $as_echo "no" >&6; }
  13315. fi
  13316. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13318. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  13319. if ${lt_cv_prog_gnu_ld+:} false; then :
  13320.   $as_echo_n "(cached) " >&6
  13321. else
  13322.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13323. case `$LD -v 2>&1 </dev/null` in
  13324. *GNU* | *'with BFD'*)
  13325.   lt_cv_prog_gnu_ld=yes
  13326.   ;;
  13327. *)
  13328.   lt_cv_prog_gnu_ld=no
  13329.   ;;
  13330. esac
  13331. fi
  13332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13333. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  13334. with_gnu_ld=$lt_cv_prog_gnu_ld
  13335.  
  13336.  
  13337.  
  13338.  
  13339.  
  13340.  
  13341.  
  13342.       # Check if GNU C++ uses GNU ld as the underlying linker, since the
  13343.       # archiving commands below assume that GNU ld is being used.
  13344.       if test "$with_gnu_ld" = yes; then
  13345.         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13346.         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13347.  
  13348.         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13349.         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13350.  
  13351.         # If archive_cmds runs LD, not CC, wlarc should be empty
  13352.         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  13353.         #     investigate it a little bit more. (MM)
  13354.         wlarc='${wl}'
  13355.  
  13356.         # ancient GNU ld didn't support --whole-archive et. al.
  13357.         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  13358.           $GREP 'no-whole-archive' > /dev/null; then
  13359.           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13360.         else
  13361.           whole_archive_flag_spec_CXX=
  13362.         fi
  13363.       else
  13364.         with_gnu_ld=no
  13365.         wlarc=
  13366.  
  13367.         # A generic and very simple default shared library creation
  13368.         # command for GNU C++ for the case where it uses the native
  13369.         # linker, instead of GNU ld.  If possible, this setting should
  13370.         # overridden to take advantage of the native linker features on
  13371.         # the platform it is being used on.
  13372.         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13373.       fi
  13374.  
  13375.       # Commands to make compiler produce verbose output that lists
  13376.       # what "hidden" libraries, object files and flags are used when
  13377.       # linking a shared library.
  13378.       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13379.  
  13380.     else
  13381.       GXX=no
  13382.       with_gnu_ld=no
  13383.       wlarc=
  13384.     fi
  13385.  
  13386.     # PORTME: fill in a description of your system's C++ link characteristics
  13387.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13388. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13389.     ld_shlibs_CXX=yes
  13390.     case $host_os in
  13391.       aix3*)
  13392.         # FIXME: insert proper C++ library support
  13393.         ld_shlibs_CXX=no
  13394.         ;;
  13395.       aix[4-9]*)
  13396.         if test "$host_cpu" = ia64; then
  13397.           # On IA64, the linker does run time linking by default, so we don't
  13398.           # have to do anything special.
  13399.           aix_use_runtimelinking=no
  13400.           exp_sym_flag='-Bexport'
  13401.           no_entry_flag=""
  13402.         else
  13403.           aix_use_runtimelinking=no
  13404.  
  13405.           # Test if we are trying to use run time linking or normal
  13406.           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13407.           # need to do runtime linking.
  13408.           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13409.             for ld_flag in $LDFLAGS; do
  13410.               case $ld_flag in
  13411.               *-brtl*)
  13412.                 aix_use_runtimelinking=yes
  13413.                 break
  13414.                 ;;
  13415.               esac
  13416.             done
  13417.             ;;
  13418.           esac
  13419.  
  13420.           exp_sym_flag='-bexport'
  13421.           no_entry_flag='-bnoentry'
  13422.         fi
  13423.  
  13424.         # When large executables or shared objects are built, AIX ld can
  13425.         # have problems creating the table of contents.  If linking a library
  13426.         # or program results in "error TOC overflow" add -mminimal-toc to
  13427.         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  13428.         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13429.  
  13430.         archive_cmds_CXX=''
  13431.         hardcode_direct_CXX=yes
  13432.         hardcode_direct_absolute_CXX=yes
  13433.         hardcode_libdir_separator_CXX=':'
  13434.         link_all_deplibs_CXX=yes
  13435.         file_list_spec_CXX='${wl}-f,'
  13436.  
  13437.         if test "$GXX" = yes; then
  13438.           case $host_os in aix4.[012]|aix4.[012].*)
  13439.           # We only want to do this on AIX 4.2 and lower, the check
  13440.           # below for broken collect2 doesn't work under 4.3+
  13441.           collect2name=`${CC} -print-prog-name=collect2`
  13442.           if test -f "$collect2name" &&
  13443.              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13444.           then
  13445.             # We have reworked collect2
  13446.             :
  13447.           else
  13448.             # We have old collect2
  13449.             hardcode_direct_CXX=unsupported
  13450.             # It fails to find uninstalled libraries when the uninstalled
  13451.             # path is not listed in the libpath.  Setting hardcode_minus_L
  13452.             # to unsupported forces relinking
  13453.             hardcode_minus_L_CXX=yes
  13454.             hardcode_libdir_flag_spec_CXX='-L$libdir'
  13455.             hardcode_libdir_separator_CXX=
  13456.           fi
  13457.           esac
  13458.           shared_flag='-shared'
  13459.           if test "$aix_use_runtimelinking" = yes; then
  13460.             shared_flag="$shared_flag "'${wl}-G'
  13461.           fi
  13462.         else
  13463.           # not using gcc
  13464.           if test "$host_cpu" = ia64; then
  13465.           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13466.           # chokes on -Wl,-G. The following line is correct:
  13467.           shared_flag='-G'
  13468.           else
  13469.             if test "$aix_use_runtimelinking" = yes; then
  13470.               shared_flag='${wl}-G'
  13471.             else
  13472.               shared_flag='${wl}-bM:SRE'
  13473.             fi
  13474.           fi
  13475.         fi
  13476.  
  13477.         export_dynamic_flag_spec_CXX='${wl}-bexpall'
  13478.         # It seems that -bexpall does not export symbols beginning with
  13479.         # underscore (_), so it is better to generate a list of symbols to
  13480.         # export.
  13481.         always_export_symbols_CXX=yes
  13482.         if test "$aix_use_runtimelinking" = yes; then
  13483.           # Warning - without using the other runtime loading flags (-brtl),
  13484.           # -berok will link without error, but may produce a broken library.
  13485.           allow_undefined_flag_CXX='-berok'
  13486.           # Determine the default libpath from the value encoded in an empty
  13487.           # executable.
  13488.           if test "${lt_cv_aix_libpath+set}" = set; then
  13489.   aix_libpath=$lt_cv_aix_libpath
  13490. else
  13491.   if ${lt_cv_aix_libpath__CXX+:} false; then :
  13492.   $as_echo_n "(cached) " >&6
  13493. else
  13494.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13495. /* end confdefs.h.  */
  13496.  
  13497. int
  13498. main ()
  13499. {
  13500.  
  13501.   ;
  13502.   return 0;
  13503. }
  13504. _ACEOF
  13505. if ac_fn_cxx_try_link "$LINENO"; then :
  13506.  
  13507.   lt_aix_libpath_sed='
  13508.       /Import File Strings/,/^$/ {
  13509.           /^0/ {
  13510.               s/^0  *\([^ ]*\) *$/\1/
  13511.               p
  13512.           }
  13513.       }'
  13514.   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13515.   # Check for a 64-bit object if we didn't find anything.
  13516.   if test -z "$lt_cv_aix_libpath__CXX"; then
  13517.     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13518.   fi
  13519. fi
  13520. rm -f core conftest.err conftest.$ac_objext \
  13521.     conftest$ac_exeext conftest.$ac_ext
  13522.   if test -z "$lt_cv_aix_libpath__CXX"; then
  13523.     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  13524.   fi
  13525.  
  13526. fi
  13527.  
  13528.   aix_libpath=$lt_cv_aix_libpath__CXX
  13529. fi
  13530.  
  13531.           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13532.  
  13533.           archive_expsym_cmds_CXX='$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"
  13534.         else
  13535.           if test "$host_cpu" = ia64; then
  13536.             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  13537.             allow_undefined_flag_CXX="-z nodefs"
  13538.             archive_expsym_cmds_CXX="\$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"
  13539.           else
  13540.             # Determine the default libpath from the value encoded in an
  13541.             # empty executable.
  13542.             if test "${lt_cv_aix_libpath+set}" = set; then
  13543.   aix_libpath=$lt_cv_aix_libpath
  13544. else
  13545.   if ${lt_cv_aix_libpath__CXX+:} false; then :
  13546.   $as_echo_n "(cached) " >&6
  13547. else
  13548.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13549. /* end confdefs.h.  */
  13550.  
  13551. int
  13552. main ()
  13553. {
  13554.  
  13555.   ;
  13556.   return 0;
  13557. }
  13558. _ACEOF
  13559. if ac_fn_cxx_try_link "$LINENO"; then :
  13560.  
  13561.   lt_aix_libpath_sed='
  13562.       /Import File Strings/,/^$/ {
  13563.           /^0/ {
  13564.               s/^0  *\([^ ]*\) *$/\1/
  13565.               p
  13566.           }
  13567.       }'
  13568.   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13569.   # Check for a 64-bit object if we didn't find anything.
  13570.   if test -z "$lt_cv_aix_libpath__CXX"; then
  13571.     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13572.   fi
  13573. fi
  13574. rm -f core conftest.err conftest.$ac_objext \
  13575.     conftest$ac_exeext conftest.$ac_ext
  13576.   if test -z "$lt_cv_aix_libpath__CXX"; then
  13577.     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  13578.   fi
  13579.  
  13580. fi
  13581.  
  13582.   aix_libpath=$lt_cv_aix_libpath__CXX
  13583. fi
  13584.  
  13585.             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13586.             # Warning - without using the other run time loading flags,
  13587.             # -berok will link without error, but may produce a broken library.
  13588.             no_undefined_flag_CXX=' ${wl}-bernotok'
  13589.             allow_undefined_flag_CXX=' ${wl}-berok'
  13590.             if test "$with_gnu_ld" = yes; then
  13591.               # We only use this code for GNU lds that support --whole-archive.
  13592.               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13593.             else
  13594.               # Exported symbols can be pulled into shared objects from archives
  13595.               whole_archive_flag_spec_CXX='$convenience'
  13596.             fi
  13597.             archive_cmds_need_lc_CXX=yes
  13598.             # This is similar to how AIX traditionally builds its shared
  13599.             # libraries.
  13600.             archive_expsym_cmds_CXX="\$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'
  13601.           fi
  13602.         fi
  13603.         ;;
  13604.  
  13605.       beos*)
  13606.         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13607.           allow_undefined_flag_CXX=unsupported
  13608.           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13609.           # support --undefined.  This deserves some investigation.  FIXME
  13610.           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13611.         else
  13612.           ld_shlibs_CXX=no
  13613.         fi
  13614.         ;;
  13615.  
  13616.       chorus*)
  13617.         case $cc_basename in
  13618.           *)
  13619.           # FIXME: insert proper C++ library support
  13620.           ld_shlibs_CXX=no
  13621.           ;;
  13622.         esac
  13623.         ;;
  13624.  
  13625.       cygwin* | mingw* | pw32* | cegcc*)
  13626.         case $GXX,$cc_basename in
  13627.         ,cl* | no,cl*)
  13628.           # Native MSVC
  13629.           # hardcode_libdir_flag_spec is actually meaningless, as there is
  13630.           # no search path for DLLs.
  13631.           hardcode_libdir_flag_spec_CXX=' '
  13632.           allow_undefined_flag_CXX=unsupported
  13633.           always_export_symbols_CXX=yes
  13634.           file_list_spec_CXX='@'
  13635.           # Tell ltmain to make .lib files, not .a files.
  13636.           libext=lib
  13637.           # Tell ltmain to make .dll files, not .so files.
  13638.           shrext_cmds=".dll"
  13639.           # FIXME: Setting linknames here is a bad hack.
  13640.           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  13641.           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13642.               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  13643.             else
  13644.               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  13645.             fi~
  13646.             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13647.             linknames='
  13648.           # The linker will not automatically build a static lib if we build a DLL.
  13649.           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13650.           enable_shared_with_static_runtimes_CXX=yes
  13651.           # Don't use ranlib
  13652.           old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13653.           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13654.             lt_tool_outputfile="@TOOL_OUTPUT@"~
  13655.             case $lt_outputfile in
  13656.               *.exe|*.EXE) ;;
  13657.               *)
  13658.                 lt_outputfile="$lt_outputfile.exe"
  13659.                 lt_tool_outputfile="$lt_tool_outputfile.exe"
  13660.                 ;;
  13661.             esac~
  13662.             func_to_tool_file "$lt_outputfile"~
  13663.             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  13664.               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13665.               $RM "$lt_outputfile.manifest";
  13666.             fi'
  13667.           ;;
  13668.         *)
  13669.           # g++
  13670.           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13671.           # as there is no search path for DLLs.
  13672.           hardcode_libdir_flag_spec_CXX='-L$libdir'
  13673.           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  13674.           allow_undefined_flag_CXX=unsupported
  13675.           always_export_symbols_CXX=no
  13676.           enable_shared_with_static_runtimes_CXX=yes
  13677.  
  13678.           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13679.             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13680.             # If the export-symbols file already is a .def file (1st line
  13681.             # is EXPORTS), use it as is; otherwise, prepend...
  13682.             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13683.               cp $export_symbols $output_objdir/$soname.def;
  13684.             else
  13685.               echo EXPORTS > $output_objdir/$soname.def;
  13686.               cat $export_symbols >> $output_objdir/$soname.def;
  13687.             fi~
  13688.             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13689.           else
  13690.             ld_shlibs_CXX=no
  13691.           fi
  13692.           ;;
  13693.         esac
  13694.         ;;
  13695.       darwin* | rhapsody*)
  13696.  
  13697.  
  13698.   archive_cmds_need_lc_CXX=no
  13699.   hardcode_direct_CXX=no
  13700.   hardcode_automatic_CXX=yes
  13701.   hardcode_shlibpath_var_CXX=unsupported
  13702.   if test "$lt_cv_ld_force_load" = "yes"; then
  13703.     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13704.  
  13705.   else
  13706.     whole_archive_flag_spec_CXX=''
  13707.   fi
  13708.   link_all_deplibs_CXX=yes
  13709.   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  13710.   case $cc_basename in
  13711.      ifort*) _lt_dar_can_shared=yes ;;
  13712.      *) _lt_dar_can_shared=$GCC ;;
  13713.   esac
  13714.   if test "$_lt_dar_can_shared" = "yes"; then
  13715.     output_verbose_link_cmd=func_echo_all
  13716.     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  13717.     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13718.     archive_expsym_cmds_CXX="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}"
  13719.     module_expsym_cmds_CXX="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}"
  13720.        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  13721.       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  13722.       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  13723.     fi
  13724.  
  13725.   else
  13726.   ld_shlibs_CXX=no
  13727.   fi
  13728.  
  13729.         ;;
  13730.  
  13731.       dgux*)
  13732.         case $cc_basename in
  13733.           ec++*)
  13734.             # FIXME: insert proper C++ library support
  13735.             ld_shlibs_CXX=no
  13736.             ;;
  13737.           ghcx*)
  13738.             # Green Hills C++ Compiler
  13739.             # FIXME: insert proper C++ library support
  13740.             ld_shlibs_CXX=no
  13741.             ;;
  13742.           *)
  13743.             # FIXME: insert proper C++ library support
  13744.             ld_shlibs_CXX=no
  13745.             ;;
  13746.         esac
  13747.         ;;
  13748.  
  13749.       freebsd2.*)
  13750.         # C++ shared libraries reported to be fairly broken before
  13751.         # switch to ELF
  13752.         ld_shlibs_CXX=no
  13753.         ;;
  13754.  
  13755.       freebsd-elf*)
  13756.         archive_cmds_need_lc_CXX=no
  13757.         ;;
  13758.  
  13759.       freebsd* | dragonfly*)
  13760.         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13761.         # conventions
  13762.         ld_shlibs_CXX=yes
  13763.         ;;
  13764.  
  13765.       haiku*)
  13766.         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13767.         link_all_deplibs_CXX=yes
  13768.         ;;
  13769.  
  13770.       hpux9*)
  13771.         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13772.         hardcode_libdir_separator_CXX=:
  13773.         export_dynamic_flag_spec_CXX='${wl}-E'
  13774.         hardcode_direct_CXX=yes
  13775.         hardcode_minus_L_CXX=yes # Not in the search PATH,
  13776.                                              # but as the default
  13777.                                              # location of the library.
  13778.  
  13779.         case $cc_basename in
  13780.           CC*)
  13781.             # FIXME: insert proper C++ library support
  13782.             ld_shlibs_CXX=no
  13783.             ;;
  13784.           aCC*)
  13785.             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13786.             # Commands to make compiler produce verbose output that lists
  13787.             # what "hidden" libraries, object files and flags are used when
  13788.             # linking a shared library.
  13789.             #
  13790.             # There doesn't appear to be a way to prevent this compiler from
  13791.             # explicitly linking system object files so we need to strip them
  13792.             # from the output so that they don't get included in the library
  13793.             # dependencies.
  13794.             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13795.             ;;
  13796.           *)
  13797.             if test "$GXX" = yes; then
  13798.               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13799.             else
  13800.               # FIXME: insert proper C++ library support
  13801.               ld_shlibs_CXX=no
  13802.             fi
  13803.             ;;
  13804.         esac
  13805.         ;;
  13806.  
  13807.       hpux10*|hpux11*)
  13808.         if test $with_gnu_ld = no; then
  13809.           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13810.           hardcode_libdir_separator_CXX=:
  13811.  
  13812.           case $host_cpu in
  13813.             hppa*64*|ia64*)
  13814.               ;;
  13815.             *)
  13816.               export_dynamic_flag_spec_CXX='${wl}-E'
  13817.               ;;
  13818.           esac
  13819.         fi
  13820.         case $host_cpu in
  13821.           hppa*64*|ia64*)
  13822.             hardcode_direct_CXX=no
  13823.             hardcode_shlibpath_var_CXX=no
  13824.             ;;
  13825.           *)
  13826.             hardcode_direct_CXX=yes
  13827.             hardcode_direct_absolute_CXX=yes
  13828.             hardcode_minus_L_CXX=yes # Not in the search PATH,
  13829.                                                  # but as the default
  13830.                                                  # location of the library.
  13831.             ;;
  13832.         esac
  13833.  
  13834.         case $cc_basename in
  13835.           CC*)
  13836.             # FIXME: insert proper C++ library support
  13837.             ld_shlibs_CXX=no
  13838.             ;;
  13839.           aCC*)
  13840.             case $host_cpu in
  13841.               hppa*64*)
  13842.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13843.                 ;;
  13844.               ia64*)
  13845.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13846.                 ;;
  13847.               *)
  13848.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13849.                 ;;
  13850.             esac
  13851.             # Commands to make compiler produce verbose output that lists
  13852.             # what "hidden" libraries, object files and flags are used when
  13853.             # linking a shared library.
  13854.             #
  13855.             # There doesn't appear to be a way to prevent this compiler from
  13856.             # explicitly linking system object files so we need to strip them
  13857.             # from the output so that they don't get included in the library
  13858.             # dependencies.
  13859.             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13860.             ;;
  13861.           *)
  13862.             if test "$GXX" = yes; then
  13863.               if test $with_gnu_ld = no; then
  13864.                 case $host_cpu in
  13865.                   hppa*64*)
  13866.                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13867.                     ;;
  13868.                   ia64*)
  13869.                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13870.                     ;;
  13871.                   *)
  13872.                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13873.                     ;;
  13874.                 esac
  13875.               fi
  13876.             else
  13877.               # FIXME: insert proper C++ library support
  13878.               ld_shlibs_CXX=no
  13879.             fi
  13880.             ;;
  13881.         esac
  13882.         ;;
  13883.  
  13884.       interix[3-9]*)
  13885.         hardcode_direct_CXX=no
  13886.         hardcode_shlibpath_var_CXX=no
  13887.         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13888.         export_dynamic_flag_spec_CXX='${wl}-E'
  13889.         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13890.         # Instead, shared libraries are loaded at an image base (0x10000000 by
  13891.         # default) and relocated if they conflict, which is a slow very memory
  13892.         # consuming and fragmenting process.  To avoid this, we pick a random,
  13893.         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13894.         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  13895.         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13896.         archive_expsym_cmds_CXX='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'
  13897.         ;;
  13898.       irix5* | irix6*)
  13899.         case $cc_basename in
  13900.           CC*)
  13901.             # SGI C++
  13902.             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13903.  
  13904.             # Archives containing C++ object files must be created using
  13905.             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  13906.             # necessary to make sure instantiated templates are included
  13907.             # in the archive.
  13908.             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13909.             ;;
  13910.           *)
  13911.             if test "$GXX" = yes; then
  13912.               if test "$with_gnu_ld" = no; then
  13913.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  13914.               else
  13915.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  13916.               fi
  13917.             fi
  13918.             link_all_deplibs_CXX=yes
  13919.             ;;
  13920.         esac
  13921.         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13922.         hardcode_libdir_separator_CXX=:
  13923.         inherit_rpath_CXX=yes
  13924.         ;;
  13925.  
  13926.       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13927.         case $cc_basename in
  13928.           KCC*)
  13929.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  13930.  
  13931.             # KCC will only create a shared library if the output file
  13932.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13933.             # to its proper name (with version) after linking.
  13934.             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13935.             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  13936.             # Commands to make compiler produce verbose output that lists
  13937.             # what "hidden" libraries, object files and flags are used when
  13938.             # linking a shared library.
  13939.             #
  13940.             # There doesn't appear to be a way to prevent this compiler from
  13941.             # explicitly linking system object files so we need to strip them
  13942.             # from the output so that they don't get included in the library
  13943.             # dependencies.
  13944.             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13945.  
  13946.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13947.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13948.  
  13949.             # Archives containing C++ object files must be created using
  13950.             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13951.             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13952.             ;;
  13953.           icpc* | ecpc* )
  13954.             # Intel C++
  13955.             with_gnu_ld=yes
  13956.             # version 8.0 and above of icpc choke on multiply defined symbols
  13957.             # if we add $predep_objects and $postdep_objects, however 7.1 and
  13958.             # earlier do not add the objects themselves.
  13959.             case `$CC -V 2>&1` in
  13960.               *"Version 7."*)
  13961.                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13962.                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13963.                 ;;
  13964.               *)  # Version 8.0 or newer
  13965.                 tmp_idyn=
  13966.                 case $host_cpu in
  13967.                   ia64*) tmp_idyn=' -i_dynamic';;
  13968.                 esac
  13969.                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13970.                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13971.                 ;;
  13972.             esac
  13973.             archive_cmds_need_lc_CXX=no
  13974.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13975.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13976.             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13977.             ;;
  13978.           pgCC* | pgcpp*)
  13979.             # Portland Group C++ compiler
  13980.             case `$CC -V` in
  13981.             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13982.               prelink_cmds_CXX='tpldir=Template.dir~
  13983.                 rm -rf $tpldir~
  13984.                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13985.                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13986.               old_archive_cmds_CXX='tpldir=Template.dir~
  13987.                 rm -rf $tpldir~
  13988.                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13989.                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13990.                 $RANLIB $oldlib'
  13991.               archive_cmds_CXX='tpldir=Template.dir~
  13992.                 rm -rf $tpldir~
  13993.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13994.                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  13995.               archive_expsym_cmds_CXX='tpldir=Template.dir~
  13996.                 rm -rf $tpldir~
  13997.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13998.                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  13999.               ;;
  14000.             *) # Version 6 and above use weak symbols
  14001.               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  14002.               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  14003.               ;;
  14004.             esac
  14005.  
  14006.             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  14007.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14008.             whole_archive_flag_spec_CXX='${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'
  14009.             ;;
  14010.           cxx*)
  14011.             # Compaq C++
  14012.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14013.             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  14014.  
  14015.             runpath_var=LD_RUN_PATH
  14016.             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14017.             hardcode_libdir_separator_CXX=:
  14018.  
  14019.             # Commands to make compiler produce verbose output that lists
  14020.             # what "hidden" libraries, object files and flags are used when
  14021.             # linking a shared library.
  14022.             #
  14023.             # There doesn't appear to be a way to prevent this compiler from
  14024.             # explicitly linking system object files so we need to strip them
  14025.             # from the output so that they don't get included in the library
  14026.             # dependencies.
  14027.             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  14028.             ;;
  14029.           xl* | mpixl* | bgxl*)
  14030.             # IBM XL 8.0 on PPC, with GNU ld
  14031.             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14032.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14033.             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14034.             if test "x$supports_anon_versioning" = xyes; then
  14035.               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  14036.                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14037.                 echo "local: *; };" >> $output_objdir/$libname.ver~
  14038.                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14039.             fi
  14040.             ;;
  14041.           *)
  14042.             case `$CC -V 2>&1 | sed 5q` in
  14043.             *Sun\ C*)
  14044.               # Sun C++ 5.9
  14045.               no_undefined_flag_CXX=' -zdefs'
  14046.               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14047.               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  14048.               hardcode_libdir_flag_spec_CXX='-R$libdir'
  14049.               whole_archive_flag_spec_CXX='${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'
  14050.               compiler_needs_object_CXX=yes
  14051.  
  14052.               # Not sure whether something based on
  14053.               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  14054.               # would be better.
  14055.               output_verbose_link_cmd='func_echo_all'
  14056.  
  14057.               # Archives containing C++ object files must be created using
  14058.               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  14059.               # necessary to make sure instantiated templates are included
  14060.               # in the archive.
  14061.               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14062.               ;;
  14063.             esac
  14064.             ;;
  14065.         esac
  14066.         ;;
  14067.  
  14068.       lynxos*)
  14069.         # FIXME: insert proper C++ library support
  14070.         ld_shlibs_CXX=no
  14071.         ;;
  14072.  
  14073.       m88k*)
  14074.         # FIXME: insert proper C++ library support
  14075.         ld_shlibs_CXX=no
  14076.         ;;
  14077.  
  14078.       mvs*)
  14079.         case $cc_basename in
  14080.           cxx*)
  14081.             # FIXME: insert proper C++ library support
  14082.             ld_shlibs_CXX=no
  14083.             ;;
  14084.           *)
  14085.             # FIXME: insert proper C++ library support
  14086.             ld_shlibs_CXX=no
  14087.             ;;
  14088.         esac
  14089.         ;;
  14090.  
  14091.       netbsd*)
  14092.         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14093.           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  14094.           wlarc=
  14095.           hardcode_libdir_flag_spec_CXX='-R$libdir'
  14096.           hardcode_direct_CXX=yes
  14097.           hardcode_shlibpath_var_CXX=no
  14098.         fi
  14099.         # Workaround some broken pre-1.5 toolchains
  14100.         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  14101.         ;;
  14102.  
  14103.       *nto* | *qnx*)
  14104.         ld_shlibs_CXX=yes
  14105.         ;;
  14106.  
  14107.       openbsd2*)
  14108.         # C++ shared libraries are fairly broken
  14109.         ld_shlibs_CXX=no
  14110.         ;;
  14111.  
  14112.       openbsd*)
  14113.         if test -f /usr/libexec/ld.so; then
  14114.           hardcode_direct_CXX=yes
  14115.           hardcode_shlibpath_var_CXX=no
  14116.           hardcode_direct_absolute_CXX=yes
  14117.           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14118.           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14119.           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14120.             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  14121.             export_dynamic_flag_spec_CXX='${wl}-E'
  14122.             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14123.           fi
  14124.           output_verbose_link_cmd=func_echo_all
  14125.         else
  14126.           ld_shlibs_CXX=no
  14127.         fi
  14128.         ;;
  14129.  
  14130.       osf3* | osf4* | osf5*)
  14131.         case $cc_basename in
  14132.           KCC*)
  14133.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  14134.  
  14135.             # KCC will only create a shared library if the output file
  14136.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14137.             # to its proper name (with version) after linking.
  14138.             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  14139.  
  14140.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14141.             hardcode_libdir_separator_CXX=:
  14142.  
  14143.             # Archives containing C++ object files must be created using
  14144.             # the KAI C++ compiler.
  14145.             case $host in
  14146.               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  14147.               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  14148.             esac
  14149.             ;;
  14150.           RCC*)
  14151.             # Rational C++ 2.4.1
  14152.             # FIXME: insert proper C++ library support
  14153.             ld_shlibs_CXX=no
  14154.             ;;
  14155.           cxx*)
  14156.             case $host in
  14157.               osf3*)
  14158.                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  14159.                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  14160.                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14161.                 ;;
  14162.               *)
  14163.                 allow_undefined_flag_CXX=' -expect_unresolved \*'
  14164.                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  14165.                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  14166.                   echo "-hidden">> $lib.exp~
  14167.                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  14168.                   $RM $lib.exp'
  14169.                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14170.                 ;;
  14171.             esac
  14172.  
  14173.             hardcode_libdir_separator_CXX=:
  14174.  
  14175.             # Commands to make compiler produce verbose output that lists
  14176.             # what "hidden" libraries, object files and flags are used when
  14177.             # linking a shared library.
  14178.             #
  14179.             # There doesn't appear to be a way to prevent this compiler from
  14180.             # explicitly linking system object files so we need to strip them
  14181.             # from the output so that they don't get included in the library
  14182.             # dependencies.
  14183.             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14184.             ;;
  14185.           *)
  14186.             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  14187.               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  14188.               case $host in
  14189.                 osf3*)
  14190.                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  14191.                   ;;
  14192.                 *)
  14193.                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  14194.                   ;;
  14195.               esac
  14196.  
  14197.               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14198.               hardcode_libdir_separator_CXX=:
  14199.  
  14200.               # Commands to make compiler produce verbose output that lists
  14201.               # what "hidden" libraries, object files and flags are used when
  14202.               # linking a shared library.
  14203.               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14204.  
  14205.             else
  14206.               # FIXME: insert proper C++ library support
  14207.               ld_shlibs_CXX=no
  14208.             fi
  14209.             ;;
  14210.         esac
  14211.         ;;
  14212.  
  14213.       psos*)
  14214.         # FIXME: insert proper C++ library support
  14215.         ld_shlibs_CXX=no
  14216.         ;;
  14217.  
  14218.       sunos4*)
  14219.         case $cc_basename in
  14220.           CC*)
  14221.             # Sun C++ 4.x
  14222.             # FIXME: insert proper C++ library support
  14223.             ld_shlibs_CXX=no
  14224.             ;;
  14225.           lcc*)
  14226.             # Lucid
  14227.             # FIXME: insert proper C++ library support
  14228.             ld_shlibs_CXX=no
  14229.             ;;
  14230.           *)
  14231.             # FIXME: insert proper C++ library support
  14232.             ld_shlibs_CXX=no
  14233.             ;;
  14234.         esac
  14235.         ;;
  14236.  
  14237.       solaris*)
  14238.         case $cc_basename in
  14239.           CC* | sunCC*)
  14240.             # Sun C++ 4.2, 5.x and Centerline C++
  14241.             archive_cmds_need_lc_CXX=yes
  14242.             no_undefined_flag_CXX=' -zdefs'
  14243.             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14244.             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14245.               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14246.  
  14247.             hardcode_libdir_flag_spec_CXX='-R$libdir'
  14248.             hardcode_shlibpath_var_CXX=no
  14249.             case $host_os in
  14250.               solaris2.[0-5] | solaris2.[0-5].*) ;;
  14251.               *)
  14252.                 # The compiler driver will combine and reorder linker options,
  14253.                 # but understands `-z linker_flag'.
  14254.                 # Supported since Solaris 2.6 (maybe 2.5.1?)
  14255.                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  14256.                 ;;
  14257.             esac
  14258.             link_all_deplibs_CXX=yes
  14259.  
  14260.             output_verbose_link_cmd='func_echo_all'
  14261.  
  14262.             # Archives containing C++ object files must be created using
  14263.             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  14264.             # necessary to make sure instantiated templates are included
  14265.             # in the archive.
  14266.             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14267.             ;;
  14268.           gcx*)
  14269.             # Green Hills C++ Compiler
  14270.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14271.  
  14272.             # The C++ compiler must be used to create the archive.
  14273.             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  14274.             ;;
  14275.           *)
  14276.             # GNU C++ compiler with Solaris linker
  14277.             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  14278.               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  14279.               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  14280.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14281.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14282.                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14283.  
  14284.                 # Commands to make compiler produce verbose output that lists
  14285.                 # what "hidden" libraries, object files and flags are used when
  14286.                 # linking a shared library.
  14287.                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14288.               else
  14289.                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
  14290.                 # platform.
  14291.                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14292.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14293.                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14294.  
  14295.                 # Commands to make compiler produce verbose output that lists
  14296.                 # what "hidden" libraries, object files and flags are used when
  14297.                 # linking a shared library.
  14298.                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14299.               fi
  14300.  
  14301.               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  14302.               case $host_os in
  14303.                 solaris2.[0-5] | solaris2.[0-5].*) ;;
  14304.                 *)
  14305.                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14306.                   ;;
  14307.               esac
  14308.             fi
  14309.             ;;
  14310.         esac
  14311.         ;;
  14312.  
  14313.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14314.       no_undefined_flag_CXX='${wl}-z,text'
  14315.       archive_cmds_need_lc_CXX=no
  14316.       hardcode_shlibpath_var_CXX=no
  14317.       runpath_var='LD_RUN_PATH'
  14318.  
  14319.       case $cc_basename in
  14320.         CC*)
  14321.           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14322.           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14323.           ;;
  14324.         *)
  14325.           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14326.           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14327.           ;;
  14328.       esac
  14329.       ;;
  14330.  
  14331.       sysv5* | sco3.2v5* | sco5v6*)
  14332.         # Note: We can NOT use -z defs as we might desire, because we do not
  14333.         # link with -lc, and that would cause any symbols used from libc to
  14334.         # always be unresolved, which means just about no library would
  14335.         # ever link correctly.  If we're not using GNU ld we use -z text
  14336.         # though, which does catch some bad symbols but isn't as heavy-handed
  14337.         # as -z defs.
  14338.         no_undefined_flag_CXX='${wl}-z,text'
  14339.         allow_undefined_flag_CXX='${wl}-z,nodefs'
  14340.         archive_cmds_need_lc_CXX=no
  14341.         hardcode_shlibpath_var_CXX=no
  14342.         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  14343.         hardcode_libdir_separator_CXX=':'
  14344.         link_all_deplibs_CXX=yes
  14345.         export_dynamic_flag_spec_CXX='${wl}-Bexport'
  14346.         runpath_var='LD_RUN_PATH'
  14347.  
  14348.         case $cc_basename in
  14349.           CC*)
  14350.             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14351.             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14352.             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  14353.               '"$old_archive_cmds_CXX"
  14354.             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  14355.               '"$reload_cmds_CXX"
  14356.             ;;
  14357.           *)
  14358.             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14359.             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14360.             ;;
  14361.         esac
  14362.       ;;
  14363.  
  14364.       tandem*)
  14365.         case $cc_basename in
  14366.           NCC*)
  14367.             # NonStop-UX NCC 3.20
  14368.             # FIXME: insert proper C++ library support
  14369.             ld_shlibs_CXX=no
  14370.             ;;
  14371.           *)
  14372.             # FIXME: insert proper C++ library support
  14373.             ld_shlibs_CXX=no
  14374.             ;;
  14375.         esac
  14376.         ;;
  14377.  
  14378.       vxworks*)
  14379.         # FIXME: insert proper C++ library support
  14380.         ld_shlibs_CXX=no
  14381.         ;;
  14382.  
  14383.       *)
  14384.         # FIXME: insert proper C++ library support
  14385.         ld_shlibs_CXX=no
  14386.         ;;
  14387.     esac
  14388.  
  14389.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14390. $as_echo "$ld_shlibs_CXX" >&6; }
  14391.     test "$ld_shlibs_CXX" = no && can_build_shared=no
  14392.  
  14393.     GCC_CXX="$GXX"
  14394.     LD_CXX="$LD"
  14395.  
  14396.     ## CAVEAT EMPTOR:
  14397.     ## There is no encapsulation within the following macros, do not change
  14398.     ## the running order or otherwise move them around unless you know exactly
  14399.     ## what you are doing...
  14400.     # Dependencies to place before and after the object being linked:
  14401. predep_objects_CXX=
  14402. postdep_objects_CXX=
  14403. predeps_CXX=
  14404. postdeps_CXX=
  14405. compiler_lib_search_path_CXX=
  14406.  
  14407. cat > conftest.$ac_ext <<_LT_EOF
  14408. class Foo
  14409. {
  14410. public:
  14411.   Foo (void) { a = 0; }
  14412. private:
  14413.   int a;
  14414. };
  14415. _LT_EOF
  14416.  
  14417.  
  14418. _lt_libdeps_save_CFLAGS=$CFLAGS
  14419. case "$CC $CFLAGS " in #(
  14420. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14421. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14422. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14423. esac
  14424.  
  14425. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14426.   (eval $ac_compile) 2>&5
  14427.   ac_status=$?
  14428.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14429.   test $ac_status = 0; }; then
  14430.   # Parse the compiler output and extract the necessary
  14431.   # objects, libraries and library flags.
  14432.  
  14433.   # Sentinel used to keep track of whether or not we are before
  14434.   # the conftest object file.
  14435.   pre_test_object_deps_done=no
  14436.  
  14437.   for p in `eval "$output_verbose_link_cmd"`; do
  14438.     case ${prev}${p} in
  14439.  
  14440.     -L* | -R* | -l*)
  14441.        # Some compilers place space between "-{L,R}" and the path.
  14442.        # Remove the space.
  14443.        if test $p = "-L" ||
  14444.           test $p = "-R"; then
  14445.          prev=$p
  14446.          continue
  14447.        fi
  14448.  
  14449.        # Expand the sysroot to ease extracting the directories later.
  14450.        if test -z "$prev"; then
  14451.          case $p in
  14452.          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14453.          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14454.          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14455.          esac
  14456.        fi
  14457.        case $p in
  14458.        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14459.        esac
  14460.        if test "$pre_test_object_deps_done" = no; then
  14461.          case ${prev} in
  14462.          -L | -R)
  14463.            # Internal compiler library paths should come after those
  14464.            # provided the user.  The postdeps already come after the
  14465.            # user supplied libs so there is no need to process them.
  14466.            if test -z "$compiler_lib_search_path_CXX"; then
  14467.              compiler_lib_search_path_CXX="${prev}${p}"
  14468.            else
  14469.              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  14470.            fi
  14471.            ;;
  14472.          # The "-l" case would never come before the object being
  14473.          # linked, so don't bother handling this case.
  14474.          esac
  14475.        else
  14476.          if test -z "$postdeps_CXX"; then
  14477.            postdeps_CXX="${prev}${p}"
  14478.          else
  14479.            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  14480.          fi
  14481.        fi
  14482.        prev=
  14483.        ;;
  14484.  
  14485.     *.lto.$objext) ;; # Ignore GCC LTO objects
  14486.     *.$objext)
  14487.        # This assumes that the test object file only shows up
  14488.        # once in the compiler output.
  14489.        if test "$p" = "conftest.$objext"; then
  14490.          pre_test_object_deps_done=yes
  14491.          continue
  14492.        fi
  14493.  
  14494.        if test "$pre_test_object_deps_done" = no; then
  14495.          if test -z "$predep_objects_CXX"; then
  14496.            predep_objects_CXX="$p"
  14497.          else
  14498.            predep_objects_CXX="$predep_objects_CXX $p"
  14499.          fi
  14500.        else
  14501.          if test -z "$postdep_objects_CXX"; then
  14502.            postdep_objects_CXX="$p"
  14503.          else
  14504.            postdep_objects_CXX="$postdep_objects_CXX $p"
  14505.          fi
  14506.        fi
  14507.        ;;
  14508.  
  14509.     *) ;; # Ignore the rest.
  14510.  
  14511.     esac
  14512.   done
  14513.  
  14514.   # Clean up.
  14515.   rm -f a.out a.exe
  14516. else
  14517.   echo "libtool.m4: error: problem compiling CXX test program"
  14518. fi
  14519.  
  14520. $RM -f confest.$objext
  14521. CFLAGS=$_lt_libdeps_save_CFLAGS
  14522.  
  14523. # PORTME: override above test on systems where it is broken
  14524. case $host_os in
  14525. interix[3-9]*)
  14526.   # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14527.   # hack all around it, let's just trust "g++" to DTRT.
  14528.   predep_objects_CXX=
  14529.   postdep_objects_CXX=
  14530.   postdeps_CXX=
  14531.   ;;
  14532.  
  14533. linux*)
  14534.   case `$CC -V 2>&1 | sed 5q` in
  14535.   *Sun\ C*)
  14536.     # Sun C++ 5.9
  14537.  
  14538.     # The more standards-conforming stlport4 library is
  14539.     # incompatible with the Cstd library. Avoid specifying
  14540.     # it if it's in CXXFLAGS. Ignore libCrun as
  14541.     # -library=stlport4 depends on it.
  14542.     case " $CXX $CXXFLAGS " in
  14543.     *" -library=stlport4 "*)
  14544.       solaris_use_stlport4=yes
  14545.       ;;
  14546.     esac
  14547.  
  14548.     if test "$solaris_use_stlport4" != yes; then
  14549.       postdeps_CXX='-library=Cstd -library=Crun'
  14550.     fi
  14551.     ;;
  14552.   esac
  14553.   ;;
  14554.  
  14555. solaris*)
  14556.   case $cc_basename in
  14557.   CC* | sunCC*)
  14558.     # The more standards-conforming stlport4 library is
  14559.     # incompatible with the Cstd library. Avoid specifying
  14560.     # it if it's in CXXFLAGS. Ignore libCrun as
  14561.     # -library=stlport4 depends on it.
  14562.     case " $CXX $CXXFLAGS " in
  14563.     *" -library=stlport4 "*)
  14564.       solaris_use_stlport4=yes
  14565.       ;;
  14566.     esac
  14567.  
  14568.     # Adding this requires a known-good setup of shared libraries for
  14569.     # Sun compiler versions before 5.6, else PIC objects from an old
  14570.     # archive will be linked into the output, leading to subtle bugs.
  14571.     if test "$solaris_use_stlport4" != yes; then
  14572.       postdeps_CXX='-library=Cstd -library=Crun'
  14573.     fi
  14574.     ;;
  14575.   esac
  14576.   ;;
  14577. esac
  14578.  
  14579.  
  14580. case " $postdeps_CXX " in
  14581. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14582. esac
  14583.  compiler_lib_search_dirs_CXX=
  14584. if test -n "${compiler_lib_search_path_CXX}"; then
  14585.  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  14586. fi
  14587.  
  14588.  
  14589.  
  14590.  
  14591.  
  14592.  
  14593.  
  14594.  
  14595.  
  14596.  
  14597.  
  14598.  
  14599.  
  14600.  
  14601.  
  14602.  
  14603.  
  14604.  
  14605.  
  14606.  
  14607.  
  14608.  
  14609.  
  14610.  
  14611.  
  14612.  
  14613.  
  14614.  
  14615.  
  14616.  
  14617.  
  14618.     lt_prog_compiler_wl_CXX=
  14619. lt_prog_compiler_pic_CXX=
  14620. lt_prog_compiler_static_CXX=
  14621.  
  14622.  
  14623.   # C++ specific cases for pic, static, wl, etc.
  14624.   if test "$GXX" = yes; then
  14625.     lt_prog_compiler_wl_CXX='-Wl,'
  14626.     lt_prog_compiler_static_CXX='-static'
  14627.  
  14628.     case $host_os in
  14629.     aix*)
  14630.       # All AIX code is PIC.
  14631.       if test "$host_cpu" = ia64; then
  14632.         # AIX 5 now supports IA64 processor
  14633.         lt_prog_compiler_static_CXX='-Bstatic'
  14634.       fi
  14635.       ;;
  14636.  
  14637.     amigaos*)
  14638.       case $host_cpu in
  14639.       powerpc)
  14640.             # see comment about AmigaOS4 .so support
  14641.             lt_prog_compiler_pic_CXX='-fPIC'
  14642.         ;;
  14643.       m68k)
  14644.             # FIXME: we need at least 68020 code to build shared libraries, but
  14645.             # adding the `-m68020' flag to GCC prevents building anything better,
  14646.             # like `-m68040'.
  14647.             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14648.         ;;
  14649.       esac
  14650.       ;;
  14651.  
  14652.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14653.       # PIC is the default for these OSes.
  14654.       ;;
  14655.     mingw* | cygwin* | os2* | pw32* | cegcc*)
  14656.       # This hack is so that the source file can tell whether it is being
  14657.       # built for inclusion in a dll (and should export symbols for example).
  14658.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14659.       # (--disable-auto-import) libraries
  14660.       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14661.       ;;
  14662.     darwin* | rhapsody*)
  14663.       # PIC is the default on this platform
  14664.       # Common symbols not allowed in MH_DYLIB files
  14665.       lt_prog_compiler_pic_CXX='-fno-common'
  14666.       ;;
  14667.     *djgpp*)
  14668.       # DJGPP does not support shared libraries at all
  14669.       lt_prog_compiler_pic_CXX=
  14670.       ;;
  14671.     haiku*)
  14672.       # PIC is the default for Haiku.
  14673.       # The "-static" flag exists, but is broken.
  14674.       lt_prog_compiler_static_CXX=
  14675.       ;;
  14676.     interix[3-9]*)
  14677.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14678.       # Instead, we relocate shared libraries at runtime.
  14679.       ;;
  14680.     sysv4*MP*)
  14681.       if test -d /usr/nec; then
  14682.         lt_prog_compiler_pic_CXX=-Kconform_pic
  14683.       fi
  14684.       ;;
  14685.     hpux*)
  14686.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14687.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  14688.       # sets the default TLS model and affects inlining.
  14689.       case $host_cpu in
  14690.       hppa*64*)
  14691.         ;;
  14692.       *)
  14693.         lt_prog_compiler_pic_CXX='-fPIC'
  14694.         ;;
  14695.       esac
  14696.       ;;
  14697.     *qnx* | *nto*)
  14698.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  14699.       # it will coredump.
  14700.       lt_prog_compiler_pic_CXX='-fPIC -shared'
  14701.       ;;
  14702.     *)
  14703.       lt_prog_compiler_pic_CXX='-fPIC'
  14704.       ;;
  14705.     esac
  14706.   else
  14707.     case $host_os in
  14708.       aix[4-9]*)
  14709.         # All AIX code is PIC.
  14710.         if test "$host_cpu" = ia64; then
  14711.           # AIX 5 now supports IA64 processor
  14712.           lt_prog_compiler_static_CXX='-Bstatic'
  14713.         else
  14714.           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14715.         fi
  14716.         ;;
  14717.       chorus*)
  14718.         case $cc_basename in
  14719.         cxch68*)
  14720.           # Green Hills C++ Compiler
  14721.           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  14722.           ;;
  14723.         esac
  14724.         ;;
  14725.       mingw* | cygwin* | os2* | pw32* | cegcc*)
  14726.         # This hack is so that the source file can tell whether it is being
  14727.         # built for inclusion in a dll (and should export symbols for example).
  14728.         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14729.         ;;
  14730.       dgux*)
  14731.         case $cc_basename in
  14732.           ec++*)
  14733.             lt_prog_compiler_pic_CXX='-KPIC'
  14734.             ;;
  14735.           ghcx*)
  14736.             # Green Hills C++ Compiler
  14737.             lt_prog_compiler_pic_CXX='-pic'
  14738.             ;;
  14739.           *)
  14740.             ;;
  14741.         esac
  14742.         ;;
  14743.       freebsd* | dragonfly*)
  14744.         # FreeBSD uses GNU C++
  14745.         ;;
  14746.       hpux9* | hpux10* | hpux11*)
  14747.         case $cc_basename in
  14748.           CC*)
  14749.             lt_prog_compiler_wl_CXX='-Wl,'
  14750.             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  14751.             if test "$host_cpu" != ia64; then
  14752.               lt_prog_compiler_pic_CXX='+Z'
  14753.             fi
  14754.             ;;
  14755.           aCC*)
  14756.             lt_prog_compiler_wl_CXX='-Wl,'
  14757.             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  14758.             case $host_cpu in
  14759.             hppa*64*|ia64*)
  14760.               # +Z the default
  14761.               ;;
  14762.             *)
  14763.               lt_prog_compiler_pic_CXX='+Z'
  14764.               ;;
  14765.             esac
  14766.             ;;
  14767.           *)
  14768.             ;;
  14769.         esac
  14770.         ;;
  14771.       interix*)
  14772.         # This is c89, which is MS Visual C++ (no shared libs)
  14773.         # Anyone wants to do a port?
  14774.         ;;
  14775.       irix5* | irix6* | nonstopux*)
  14776.         case $cc_basename in
  14777.           CC*)
  14778.             lt_prog_compiler_wl_CXX='-Wl,'
  14779.             lt_prog_compiler_static_CXX='-non_shared'
  14780.             # CC pic flag -KPIC is the default.
  14781.             ;;
  14782.           *)
  14783.             ;;
  14784.         esac
  14785.         ;;
  14786.       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14787.         case $cc_basename in
  14788.           KCC*)
  14789.             # KAI C++ Compiler
  14790.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  14791.             lt_prog_compiler_pic_CXX='-fPIC'
  14792.             ;;
  14793.           ecpc* )
  14794.             # old Intel C++ for x86_64 which still supported -KPIC.
  14795.             lt_prog_compiler_wl_CXX='-Wl,'
  14796.             lt_prog_compiler_pic_CXX='-KPIC'
  14797.             lt_prog_compiler_static_CXX='-static'
  14798.             ;;
  14799.           icpc* )
  14800.             # Intel C++, used to be incompatible with GCC.
  14801.             # ICC 10 doesn't accept -KPIC any more.
  14802.             lt_prog_compiler_wl_CXX='-Wl,'
  14803.             lt_prog_compiler_pic_CXX='-fPIC'
  14804.             lt_prog_compiler_static_CXX='-static'
  14805.             ;;
  14806.           pgCC* | pgcpp*)
  14807.             # Portland Group C++ compiler
  14808.             lt_prog_compiler_wl_CXX='-Wl,'
  14809.             lt_prog_compiler_pic_CXX='-fpic'
  14810.             lt_prog_compiler_static_CXX='-Bstatic'
  14811.             ;;
  14812.           cxx*)
  14813.             # Compaq C++
  14814.             # Make sure the PIC flag is empty.  It appears that all Alpha
  14815.             # Linux and Compaq Tru64 Unix objects are PIC.
  14816.             lt_prog_compiler_pic_CXX=
  14817.             lt_prog_compiler_static_CXX='-non_shared'
  14818.             ;;
  14819.           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14820.             # IBM XL 8.0, 9.0 on PPC and BlueGene
  14821.             lt_prog_compiler_wl_CXX='-Wl,'
  14822.             lt_prog_compiler_pic_CXX='-qpic'
  14823.             lt_prog_compiler_static_CXX='-qstaticlink'
  14824.             ;;
  14825.           *)
  14826.             case `$CC -V 2>&1 | sed 5q` in
  14827.             *Sun\ C*)
  14828.               # Sun C++ 5.9
  14829.               lt_prog_compiler_pic_CXX='-KPIC'
  14830.               lt_prog_compiler_static_CXX='-Bstatic'
  14831.               lt_prog_compiler_wl_CXX='-Qoption ld '
  14832.               ;;
  14833.             esac
  14834.             ;;
  14835.         esac
  14836.         ;;
  14837.       lynxos*)
  14838.         ;;
  14839.       m88k*)
  14840.         ;;
  14841.       mvs*)
  14842.         case $cc_basename in
  14843.           cxx*)
  14844.             lt_prog_compiler_pic_CXX='-W c,exportall'
  14845.             ;;
  14846.           *)
  14847.             ;;
  14848.         esac
  14849.         ;;
  14850.       netbsd* | netbsdelf*-gnu)
  14851.         ;;
  14852.       *qnx* | *nto*)
  14853.         # QNX uses GNU C++, but need to define -shared option too, otherwise
  14854.         # it will coredump.
  14855.         lt_prog_compiler_pic_CXX='-fPIC -shared'
  14856.         ;;
  14857.       osf3* | osf4* | osf5*)
  14858.         case $cc_basename in
  14859.           KCC*)
  14860.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  14861.             ;;
  14862.           RCC*)
  14863.             # Rational C++ 2.4.1
  14864.             lt_prog_compiler_pic_CXX='-pic'
  14865.             ;;
  14866.           cxx*)
  14867.             # Digital/Compaq C++
  14868.             lt_prog_compiler_wl_CXX='-Wl,'
  14869.             # Make sure the PIC flag is empty.  It appears that all Alpha
  14870.             # Linux and Compaq Tru64 Unix objects are PIC.
  14871.             lt_prog_compiler_pic_CXX=
  14872.             lt_prog_compiler_static_CXX='-non_shared'
  14873.             ;;
  14874.           *)
  14875.             ;;
  14876.         esac
  14877.         ;;
  14878.       psos*)
  14879.         ;;
  14880.       solaris*)
  14881.         case $cc_basename in
  14882.           CC* | sunCC*)
  14883.             # Sun C++ 4.2, 5.x and Centerline C++
  14884.             lt_prog_compiler_pic_CXX='-KPIC'
  14885.             lt_prog_compiler_static_CXX='-Bstatic'
  14886.             lt_prog_compiler_wl_CXX='-Qoption ld '
  14887.             ;;
  14888.           gcx*)
  14889.             # Green Hills C++ Compiler
  14890.             lt_prog_compiler_pic_CXX='-PIC'
  14891.             ;;
  14892.           *)
  14893.             ;;
  14894.         esac
  14895.         ;;
  14896.       sunos4*)
  14897.         case $cc_basename in
  14898.           CC*)
  14899.             # Sun C++ 4.x
  14900.             lt_prog_compiler_pic_CXX='-pic'
  14901.             lt_prog_compiler_static_CXX='-Bstatic'
  14902.             ;;
  14903.           lcc*)
  14904.             # Lucid
  14905.             lt_prog_compiler_pic_CXX='-pic'
  14906.             ;;
  14907.           *)
  14908.             ;;
  14909.         esac
  14910.         ;;
  14911.       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14912.         case $cc_basename in
  14913.           CC*)
  14914.             lt_prog_compiler_wl_CXX='-Wl,'
  14915.             lt_prog_compiler_pic_CXX='-KPIC'
  14916.             lt_prog_compiler_static_CXX='-Bstatic'
  14917.             ;;
  14918.         esac
  14919.         ;;
  14920.       tandem*)
  14921.         case $cc_basename in
  14922.           NCC*)
  14923.             # NonStop-UX NCC 3.20
  14924.             lt_prog_compiler_pic_CXX='-KPIC'
  14925.             ;;
  14926.           *)
  14927.             ;;
  14928.         esac
  14929.         ;;
  14930.       vxworks*)
  14931.         ;;
  14932.       *)
  14933.         lt_prog_compiler_can_build_shared_CXX=no
  14934.         ;;
  14935.     esac
  14936.   fi
  14937.  
  14938. case $host_os in
  14939.   # For platforms which do not support PIC, -DPIC is meaningless:
  14940.   *djgpp*)
  14941.     lt_prog_compiler_pic_CXX=
  14942.     ;;
  14943.   *)
  14944.     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14945.     ;;
  14946. esac
  14947.  
  14948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14949. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14950. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14951.   $as_echo_n "(cached) " >&6
  14952. else
  14953.   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14954. fi
  14955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14956. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14957. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14958.  
  14959. #
  14960. # Check to make sure the PIC flag actually works.
  14961. #
  14962. if test -n "$lt_prog_compiler_pic_CXX"; then
  14963.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14964. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14965. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14966.   $as_echo_n "(cached) " >&6
  14967. else
  14968.   lt_cv_prog_compiler_pic_works_CXX=no
  14969.    ac_outfile=conftest.$ac_objext
  14970.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14971.    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  14972.    # Insert the option either (1) after the last *FLAGS variable, or
  14973.    # (2) before a word containing "conftest.", or (3) at the end.
  14974.    # Note that $ac_compile itself does not contain backslashes and begins
  14975.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  14976.    # The option is referenced via a variable to avoid confusing sed.
  14977.    lt_compile=`echo "$ac_compile" | $SED \
  14978.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14979.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14980.    -e 's:$: $lt_compiler_flag:'`
  14981.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14982.    (eval "$lt_compile" 2>conftest.err)
  14983.    ac_status=$?
  14984.    cat conftest.err >&5
  14985.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14986.    if (exit $ac_status) && test -s "$ac_outfile"; then
  14987.      # The compiler can only warn and ignore the option if not recognized
  14988.      # So say no if there are warnings other than the usual output.
  14989.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14990.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14991.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14992.        lt_cv_prog_compiler_pic_works_CXX=yes
  14993.      fi
  14994.    fi
  14995.    $RM conftest*
  14996.  
  14997. fi
  14998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14999. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  15000.  
  15001. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  15002.     case $lt_prog_compiler_pic_CXX in
  15003.      "" | " "*) ;;
  15004.      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  15005.      esac
  15006. else
  15007.     lt_prog_compiler_pic_CXX=
  15008.      lt_prog_compiler_can_build_shared_CXX=no
  15009. fi
  15010.  
  15011. fi
  15012.  
  15013.  
  15014.  
  15015.  
  15016.  
  15017. #
  15018. # Check to make sure the static flag actually works.
  15019. #
  15020. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  15021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15022. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15023. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  15024.   $as_echo_n "(cached) " >&6
  15025. else
  15026.   lt_cv_prog_compiler_static_works_CXX=no
  15027.    save_LDFLAGS="$LDFLAGS"
  15028.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15029.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15030.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15031.      # The linker can only warn and ignore the option if not recognized
  15032.      # So say no if there are warnings
  15033.      if test -s conftest.err; then
  15034.        # Append any errors to the config.log.
  15035.        cat conftest.err 1>&5
  15036.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15037.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15038.        if diff conftest.exp conftest.er2 >/dev/null; then
  15039.          lt_cv_prog_compiler_static_works_CXX=yes
  15040.        fi
  15041.      else
  15042.        lt_cv_prog_compiler_static_works_CXX=yes
  15043.      fi
  15044.    fi
  15045.    $RM -r conftest*
  15046.    LDFLAGS="$save_LDFLAGS"
  15047.  
  15048. fi
  15049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  15050. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  15051.  
  15052. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  15053.     :
  15054. else
  15055.     lt_prog_compiler_static_CXX=
  15056. fi
  15057.  
  15058.  
  15059.  
  15060.  
  15061.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15062. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15063. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  15064.   $as_echo_n "(cached) " >&6
  15065. else
  15066.   lt_cv_prog_compiler_c_o_CXX=no
  15067.    $RM -r conftest 2>/dev/null
  15068.    mkdir conftest
  15069.    cd conftest
  15070.    mkdir out
  15071.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15072.  
  15073.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  15074.    # Insert the option either (1) after the last *FLAGS variable, or
  15075.    # (2) before a word containing "conftest.", or (3) at the end.
  15076.    # Note that $ac_compile itself does not contain backslashes and begins
  15077.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  15078.    lt_compile=`echo "$ac_compile" | $SED \
  15079.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15080.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15081.    -e 's:$: $lt_compiler_flag:'`
  15082.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15083.    (eval "$lt_compile" 2>out/conftest.err)
  15084.    ac_status=$?
  15085.    cat out/conftest.err >&5
  15086.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15087.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15088.    then
  15089.      # The compiler can only warn and ignore the option if not recognized
  15090.      # So say no if there are warnings
  15091.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15092.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15093.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15094.        lt_cv_prog_compiler_c_o_CXX=yes
  15095.      fi
  15096.    fi
  15097.    chmod u+w . 2>&5
  15098.    $RM conftest*
  15099.    # SGI C++ compiler will create directory out/ii_files/ for
  15100.    # template instantiation
  15101.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15102.    $RM out/* && rmdir out
  15103.    cd ..
  15104.    $RM -r conftest
  15105.    $RM conftest*
  15106.  
  15107. fi
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15109. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15110.  
  15111.  
  15112.  
  15113.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15114. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15115. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  15116.   $as_echo_n "(cached) " >&6
  15117. else
  15118.   lt_cv_prog_compiler_c_o_CXX=no
  15119.    $RM -r conftest 2>/dev/null
  15120.    mkdir conftest
  15121.    cd conftest
  15122.    mkdir out
  15123.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15124.  
  15125.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  15126.    # Insert the option either (1) after the last *FLAGS variable, or
  15127.    # (2) before a word containing "conftest.", or (3) at the end.
  15128.    # Note that $ac_compile itself does not contain backslashes and begins
  15129.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  15130.    lt_compile=`echo "$ac_compile" | $SED \
  15131.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15132.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15133.    -e 's:$: $lt_compiler_flag:'`
  15134.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15135.    (eval "$lt_compile" 2>out/conftest.err)
  15136.    ac_status=$?
  15137.    cat out/conftest.err >&5
  15138.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15139.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15140.    then
  15141.      # The compiler can only warn and ignore the option if not recognized
  15142.      # So say no if there are warnings
  15143.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15144.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15145.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15146.        lt_cv_prog_compiler_c_o_CXX=yes
  15147.      fi
  15148.    fi
  15149.    chmod u+w . 2>&5
  15150.    $RM conftest*
  15151.    # SGI C++ compiler will create directory out/ii_files/ for
  15152.    # template instantiation
  15153.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15154.    $RM out/* && rmdir out
  15155.    cd ..
  15156.    $RM -r conftest
  15157.    $RM conftest*
  15158.  
  15159. fi
  15160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15161. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15162.  
  15163.  
  15164.  
  15165.  
  15166. hard_links="nottested"
  15167. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  15168.   # do not overwrite the value of need_locks provided by the user
  15169.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  15170. $as_echo_n "checking if we can lock with hard links... " >&6; }
  15171.   hard_links=yes
  15172.   $RM conftest*
  15173.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15174.   touch conftest.a
  15175.   ln conftest.a conftest.b 2>&5 || hard_links=no
  15176.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15177.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  15178. $as_echo "$hard_links" >&6; }
  15179.   if test "$hard_links" = no; then
  15180.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15181. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15182.     need_locks=warn
  15183.   fi
  15184. else
  15185.   need_locks=no
  15186. fi
  15187.  
  15188.  
  15189.  
  15190.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15191. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15192.  
  15193.   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15194.   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15195.   case $host_os in
  15196.   aix[4-9]*)
  15197.     # If we're using GNU nm, then we don't want the "-C" option.
  15198.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15199.     # Also, AIX nm treats weak defined symbols like other global defined
  15200.     # symbols, whereas GNU nm marks them as "W".
  15201.     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  15202.       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  15203.     else
  15204.       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  15205.     fi
  15206.     ;;
  15207.   pw32*)
  15208.     export_symbols_cmds_CXX="$ltdll_cmds"
  15209.     ;;
  15210.   cygwin* | mingw* | cegcc*)
  15211.     case $cc_basename in
  15212.     cl*)
  15213.       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  15214.       ;;
  15215.     *)
  15216.       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  15217.       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  15218.       ;;
  15219.     esac
  15220.     ;;
  15221.   linux* | k*bsd*-gnu | gnu*)
  15222.     link_all_deplibs_CXX=no
  15223.     ;;
  15224.   *)
  15225.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15226.     ;;
  15227.   esac
  15228.  
  15229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  15230. $as_echo "$ld_shlibs_CXX" >&6; }
  15231. test "$ld_shlibs_CXX" = no && can_build_shared=no
  15232.  
  15233. with_gnu_ld_CXX=$with_gnu_ld
  15234.  
  15235.  
  15236.  
  15237.  
  15238.  
  15239.  
  15240. #
  15241. # Do we need to explicitly link libc?
  15242. #
  15243. case "x$archive_cmds_need_lc_CXX" in
  15244. x|xyes)
  15245.   # Assume -lc should be added
  15246.   archive_cmds_need_lc_CXX=yes
  15247.  
  15248.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  15249.     case $archive_cmds_CXX in
  15250.     *'~'*)
  15251.       # FIXME: we may have to deal with multi-command sequences.
  15252.       ;;
  15253.     '$CC '*)
  15254.       # Test whether the compiler implicitly links with -lc since on some
  15255.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15256.       # to ld, don't add -lc before -lgcc.
  15257.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  15258. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  15259. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  15260.   $as_echo_n "(cached) " >&6
  15261. else
  15262.   $RM conftest*
  15263.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15264.  
  15265.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15266.   (eval $ac_compile) 2>&5
  15267.   ac_status=$?
  15268.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15269.   test $ac_status = 0; } 2>conftest.err; then
  15270.           soname=conftest
  15271.           lib=conftest
  15272.           libobjs=conftest.$ac_objext
  15273.           deplibs=
  15274.           wl=$lt_prog_compiler_wl_CXX
  15275.           pic_flag=$lt_prog_compiler_pic_CXX
  15276.           compiler_flags=-v
  15277.           linker_flags=-v
  15278.           verstring=
  15279.           output_objdir=.
  15280.           libname=conftest
  15281.           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  15282.           allow_undefined_flag_CXX=
  15283.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  15284.   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15285.   ac_status=$?
  15286.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15287.   test $ac_status = 0; }
  15288.           then
  15289.             lt_cv_archive_cmds_need_lc_CXX=no
  15290.           else
  15291.             lt_cv_archive_cmds_need_lc_CXX=yes
  15292.           fi
  15293.           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  15294.         else
  15295.           cat conftest.err 1>&5
  15296.         fi
  15297.         $RM conftest*
  15298.  
  15299. fi
  15300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  15301. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  15302.       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  15303.       ;;
  15304.     esac
  15305.   fi
  15306.   ;;
  15307. esac
  15308.  
  15309.  
  15310.  
  15311.  
  15312.  
  15313.  
  15314.  
  15315.  
  15316.  
  15317.  
  15318.  
  15319.  
  15320.  
  15321.  
  15322.  
  15323.  
  15324.  
  15325.  
  15326.  
  15327.  
  15328.  
  15329.  
  15330.  
  15331.  
  15332.  
  15333.  
  15334.  
  15335.  
  15336.  
  15337.  
  15338.  
  15339.  
  15340.  
  15341.  
  15342.  
  15343.  
  15344.  
  15345.  
  15346.  
  15347.  
  15348.  
  15349.  
  15350.  
  15351.  
  15352.  
  15353.  
  15354.  
  15355.  
  15356.  
  15357.  
  15358.  
  15359.  
  15360.  
  15361.  
  15362.  
  15363.  
  15364.  
  15365.  
  15366.  
  15367.  
  15368.  
  15369.  
  15370.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  15371. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  15372.  
  15373. library_names_spec=
  15374. libname_spec='lib$name'
  15375. soname_spec=
  15376. shrext_cmds=".so"
  15377. postinstall_cmds=
  15378. postuninstall_cmds=
  15379. finish_cmds=
  15380. finish_eval=
  15381. shlibpath_var=
  15382. shlibpath_overrides_runpath=unknown
  15383. version_type=none
  15384. dynamic_linker="$host_os ld.so"
  15385. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15386. need_lib_prefix=unknown
  15387. hardcode_into_libs=no
  15388.  
  15389. # when you set need_version to no, make sure it does not cause -set_version
  15390. # flags to be left without arguments
  15391. need_version=unknown
  15392.  
  15393. case $host_os in
  15394. aix3*)
  15395.   version_type=linux # correct to gnu/linux during the next big refactor
  15396.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15397.   shlibpath_var=LIBPATH
  15398.  
  15399.   # AIX 3 has no versioning support, so we append a major version to the name.
  15400.   soname_spec='${libname}${release}${shared_ext}$major'
  15401.   ;;
  15402.  
  15403. aix[4-9]*)
  15404.   version_type=linux # correct to gnu/linux during the next big refactor
  15405.   need_lib_prefix=no
  15406.   need_version=no
  15407.   hardcode_into_libs=yes
  15408.   if test "$host_cpu" = ia64; then
  15409.     # AIX 5 supports IA64
  15410.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15411.     shlibpath_var=LD_LIBRARY_PATH
  15412.   else
  15413.     # With GCC up to 2.95.x, collect2 would create an import file
  15414.     # for dependence libraries.  The import file would start with
  15415.     # the line `#! .'.  This would cause the generated library to
  15416.     # depend on `.', always an invalid library.  This was fixed in
  15417.     # development snapshots of GCC prior to 3.0.
  15418.     case $host_os in
  15419.       aix4 | aix4.[01] | aix4.[01].*)
  15420.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15421.            echo ' yes '
  15422.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  15423.         :
  15424.       else
  15425.         can_build_shared=no
  15426.       fi
  15427.       ;;
  15428.     esac
  15429.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15430.     # soname into executable. Probably we can add versioning support to
  15431.     # collect2, so additional links can be useful in future.
  15432.     if test "$aix_use_runtimelinking" = yes; then
  15433.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15434.       # instead of lib<name>.a to let people know that these are not
  15435.       # typical AIX shared libraries.
  15436.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15437.     else
  15438.       # We preserve .a as extension for shared libraries through AIX4.2
  15439.       # and later when we are not doing run time linking.
  15440.       library_names_spec='${libname}${release}.a $libname.a'
  15441.       soname_spec='${libname}${release}${shared_ext}$major'
  15442.     fi
  15443.     shlibpath_var=LIBPATH
  15444.   fi
  15445.   ;;
  15446.  
  15447. amigaos*)
  15448.   case $host_cpu in
  15449.   powerpc)
  15450.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  15451.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  15452.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15453.     ;;
  15454.   m68k)
  15455.     library_names_spec='$libname.ixlibrary $libname.a'
  15456.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15457.     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'
  15458.     ;;
  15459.   esac
  15460.   ;;
  15461.  
  15462. beos*)
  15463.   library_names_spec='${libname}${shared_ext}'
  15464.   dynamic_linker="$host_os ld.so"
  15465.   shlibpath_var=LIBRARY_PATH
  15466.   ;;
  15467.  
  15468. bsdi[45]*)
  15469.   version_type=linux # correct to gnu/linux during the next big refactor
  15470.   need_version=no
  15471.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15472.   soname_spec='${libname}${release}${shared_ext}$major'
  15473.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15474.   shlibpath_var=LD_LIBRARY_PATH
  15475.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15476.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15477.   # the default ld.so.conf also contains /usr/contrib/lib and
  15478.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15479.   # libtool to hard-code these into programs
  15480.   ;;
  15481.  
  15482. cygwin* | mingw* | pw32* | cegcc*)
  15483.   version_type=windows
  15484.   shrext_cmds=".dll"
  15485.   need_version=no
  15486.   need_lib_prefix=no
  15487.  
  15488.   case $GCC,$cc_basename in
  15489.   yes,*)
  15490.     # gcc
  15491.     library_names_spec='$libname.dll.a'
  15492.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15493.     postinstall_cmds='base_file=`basename \${file}`~
  15494.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  15495.       dldir=$destdir/`dirname \$dlpath`~
  15496.       test -d \$dldir || mkdir -p \$dldir~
  15497.       $install_prog $dir/$dlname \$dldir/$dlname~
  15498.       chmod a+x \$dldir/$dlname~
  15499.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15500.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15501.       fi'
  15502.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15503.       dlpath=$dir/\$dldll~
  15504.        $RM \$dlpath'
  15505.     shlibpath_overrides_runpath=yes
  15506.  
  15507.     case $host_os in
  15508.     cygwin*)
  15509.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15510.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15511.  
  15512.       ;;
  15513.     mingw* | cegcc*)
  15514.       # MinGW DLLs use traditional 'lib' prefix
  15515.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15516.       ;;
  15517.     pw32*)
  15518.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  15519.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15520.       ;;
  15521.     esac
  15522.     dynamic_linker='Win32 ld.exe'
  15523.     ;;
  15524.  
  15525.   *,cl*)
  15526.     # Native MSVC
  15527.     libname_spec='$name'
  15528.     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15529.     library_names_spec='${libname}.dll.lib'
  15530.  
  15531.     case $build_os in
  15532.     mingw*)
  15533.       sys_lib_search_path_spec=
  15534.       lt_save_ifs=$IFS
  15535.       IFS=';'
  15536.       for lt_path in $LIB
  15537.       do
  15538.         IFS=$lt_save_ifs
  15539.         # Let DOS variable expansion print the short 8.3 style file name.
  15540.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15541.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15542.       done
  15543.       IFS=$lt_save_ifs
  15544.       # Convert to MSYS style.
  15545.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  15546.       ;;
  15547.     cygwin*)
  15548.       # Convert to unix form, then to dos form, then back to unix form
  15549.       # but this time dos style (no spaces!) so that the unix form looks
  15550.       # like /cygdrive/c/PROGRA~1:/cygdr...
  15551.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15552.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15553.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15554.       ;;
  15555.     *)
  15556.       sys_lib_search_path_spec="$LIB"
  15557.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  15558.         # It is most probably a Windows format PATH.
  15559.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15560.       else
  15561.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15562.       fi
  15563.       # FIXME: find the short name or the path components, as spaces are
  15564.       # common. (e.g. "Program Files" -> "PROGRA~1")
  15565.       ;;
  15566.     esac
  15567.  
  15568.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15569.     postinstall_cmds='base_file=`basename \${file}`~
  15570.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  15571.       dldir=$destdir/`dirname \$dlpath`~
  15572.       test -d \$dldir || mkdir -p \$dldir~
  15573.       $install_prog $dir/$dlname \$dldir/$dlname'
  15574.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15575.       dlpath=$dir/\$dldll~
  15576.        $RM \$dlpath'
  15577.     shlibpath_overrides_runpath=yes
  15578.     dynamic_linker='Win32 link.exe'
  15579.     ;;
  15580.  
  15581.   *)
  15582.     # Assume MSVC wrapper
  15583.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15584.     dynamic_linker='Win32 ld.exe'
  15585.     ;;
  15586.   esac
  15587.   # FIXME: first we should search . and the directory the executable is in
  15588.   shlibpath_var=PATH
  15589.   ;;
  15590.  
  15591. darwin* | rhapsody*)
  15592.   dynamic_linker="$host_os dyld"
  15593.   version_type=darwin
  15594.   need_lib_prefix=no
  15595.   need_version=no
  15596.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15597.   soname_spec='${libname}${release}${major}$shared_ext'
  15598.   shlibpath_overrides_runpath=yes
  15599.   shlibpath_var=DYLD_LIBRARY_PATH
  15600.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15601.  
  15602.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15603.   ;;
  15604.  
  15605. dgux*)
  15606.   version_type=linux # correct to gnu/linux during the next big refactor
  15607.   need_lib_prefix=no
  15608.   need_version=no
  15609.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15610.   soname_spec='${libname}${release}${shared_ext}$major'
  15611.   shlibpath_var=LD_LIBRARY_PATH
  15612.   ;;
  15613.  
  15614. freebsd* | dragonfly*)
  15615.   # DragonFly does not have aout.  When/if they implement a new
  15616.   # versioning mechanism, adjust this.
  15617.   if test -x /usr/bin/objformat; then
  15618.     objformat=`/usr/bin/objformat`
  15619.   else
  15620.     case $host_os in
  15621.     freebsd[23].*) objformat=aout ;;
  15622.     *) objformat=elf ;;
  15623.     esac
  15624.   fi
  15625.   version_type=freebsd-$objformat
  15626.   case $version_type in
  15627.     freebsd-elf*)
  15628.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15629.       need_version=no
  15630.       need_lib_prefix=no
  15631.       ;;
  15632.     freebsd-*)
  15633.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15634.       need_version=yes
  15635.       ;;
  15636.   esac
  15637.   shlibpath_var=LD_LIBRARY_PATH
  15638.   case $host_os in
  15639.   freebsd2.*)
  15640.     shlibpath_overrides_runpath=yes
  15641.     ;;
  15642.   freebsd3.[01]* | freebsdelf3.[01]*)
  15643.     shlibpath_overrides_runpath=yes
  15644.     hardcode_into_libs=yes
  15645.     ;;
  15646.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15647.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15648.     shlibpath_overrides_runpath=no
  15649.     hardcode_into_libs=yes
  15650.     ;;
  15651.   *) # from 4.6 on, and DragonFly
  15652.     shlibpath_overrides_runpath=yes
  15653.     hardcode_into_libs=yes
  15654.     ;;
  15655.   esac
  15656.   ;;
  15657.  
  15658. haiku*)
  15659.   version_type=linux # correct to gnu/linux during the next big refactor
  15660.   need_lib_prefix=no
  15661.   need_version=no
  15662.   dynamic_linker="$host_os runtime_loader"
  15663.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15664.   soname_spec='${libname}${release}${shared_ext}$major'
  15665.   shlibpath_var=LIBRARY_PATH
  15666.   shlibpath_overrides_runpath=yes
  15667.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15668.   hardcode_into_libs=yes
  15669.   ;;
  15670.  
  15671. hpux9* | hpux10* | hpux11*)
  15672.   # Give a soname corresponding to the major version so that dld.sl refuses to
  15673.   # link against other versions.
  15674.   version_type=sunos
  15675.   need_lib_prefix=no
  15676.   need_version=no
  15677.   case $host_cpu in
  15678.   ia64*)
  15679.     shrext_cmds='.so'
  15680.     hardcode_into_libs=yes
  15681.     dynamic_linker="$host_os dld.so"
  15682.     shlibpath_var=LD_LIBRARY_PATH
  15683.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15684.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15685.     soname_spec='${libname}${release}${shared_ext}$major'
  15686.     if test "X$HPUX_IA64_MODE" = X32; then
  15687.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15688.     else
  15689.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15690.     fi
  15691.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15692.     ;;
  15693.   hppa*64*)
  15694.     shrext_cmds='.sl'
  15695.     hardcode_into_libs=yes
  15696.     dynamic_linker="$host_os dld.sl"
  15697.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15698.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15699.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15700.     soname_spec='${libname}${release}${shared_ext}$major'
  15701.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15702.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15703.     ;;
  15704.   *)
  15705.     shrext_cmds='.sl'
  15706.     dynamic_linker="$host_os dld.sl"
  15707.     shlibpath_var=SHLIB_PATH
  15708.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15709.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15710.     soname_spec='${libname}${release}${shared_ext}$major'
  15711.     ;;
  15712.   esac
  15713.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15714.   postinstall_cmds='chmod 555 $lib'
  15715.   # or fails outright, so override atomically:
  15716.   install_override_mode=555
  15717.   ;;
  15718.  
  15719. interix[3-9]*)
  15720.   version_type=linux # correct to gnu/linux during the next big refactor
  15721.   need_lib_prefix=no
  15722.   need_version=no
  15723.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15724.   soname_spec='${libname}${release}${shared_ext}$major'
  15725.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15726.   shlibpath_var=LD_LIBRARY_PATH
  15727.   shlibpath_overrides_runpath=no
  15728.   hardcode_into_libs=yes
  15729.   ;;
  15730.  
  15731. irix5* | irix6* | nonstopux*)
  15732.   case $host_os in
  15733.     nonstopux*) version_type=nonstopux ;;
  15734.     *)
  15735.         if test "$lt_cv_prog_gnu_ld" = yes; then
  15736.                 version_type=linux # correct to gnu/linux during the next big refactor
  15737.         else
  15738.                 version_type=irix
  15739.         fi ;;
  15740.   esac
  15741.   need_lib_prefix=no
  15742.   need_version=no
  15743.   soname_spec='${libname}${release}${shared_ext}$major'
  15744.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15745.   case $host_os in
  15746.   irix5* | nonstopux*)
  15747.     libsuff= shlibsuff=
  15748.     ;;
  15749.   *)
  15750.     case $LD in # libtool.m4 will add one of these switches to LD
  15751.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15752.       libsuff= shlibsuff= libmagic=32-bit;;
  15753.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15754.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  15755.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15756.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15757.     *) libsuff= shlibsuff= libmagic=never-match;;
  15758.     esac
  15759.     ;;
  15760.   esac
  15761.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15762.   shlibpath_overrides_runpath=no
  15763.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15764.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15765.   hardcode_into_libs=yes
  15766.   ;;
  15767.  
  15768. # No shared lib support for Linux oldld, aout, or coff.
  15769. linux*oldld* | linux*aout* | linux*coff*)
  15770.   dynamic_linker=no
  15771.   ;;
  15772.  
  15773. # This must be glibc/ELF.
  15774. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15775.   version_type=linux # correct to gnu/linux during the next big refactor
  15776.   need_lib_prefix=no
  15777.   need_version=no
  15778.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15779.   soname_spec='${libname}${release}${shared_ext}$major'
  15780.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15781.   shlibpath_var=LD_LIBRARY_PATH
  15782.   shlibpath_overrides_runpath=no
  15783.  
  15784.   # Some binutils ld are patched to set DT_RUNPATH
  15785.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  15786.   $as_echo_n "(cached) " >&6
  15787. else
  15788.   lt_cv_shlibpath_overrides_runpath=no
  15789.     save_LDFLAGS=$LDFLAGS
  15790.     save_libdir=$libdir
  15791.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15792.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15793.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15794. /* end confdefs.h.  */
  15795.  
  15796. int
  15797. main ()
  15798. {
  15799.  
  15800.   ;
  15801.   return 0;
  15802. }
  15803. _ACEOF
  15804. if ac_fn_cxx_try_link "$LINENO"; then :
  15805.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  15806.   lt_cv_shlibpath_overrides_runpath=yes
  15807. fi
  15808. fi
  15809. rm -f core conftest.err conftest.$ac_objext \
  15810.     conftest$ac_exeext conftest.$ac_ext
  15811.     LDFLAGS=$save_LDFLAGS
  15812.     libdir=$save_libdir
  15813.  
  15814. fi
  15815.  
  15816.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15817.  
  15818.   # This implies no fast_install, which is unacceptable.
  15819.   # Some rework will be needed to allow for fast_install
  15820.   # before this can be enabled.
  15821.   hardcode_into_libs=yes
  15822.  
  15823.   # Append ld.so.conf contents to the search path
  15824.   if test -f /etc/ld.so.conf; then
  15825.     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' ' '`
  15826.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15827.   fi
  15828.  
  15829.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  15830.   # powerpc, because MkLinux only supported shared libraries with the
  15831.   # GNU dynamic linker.  Since this was broken with cross compilers,
  15832.   # most powerpc-linux boxes support dynamic linking these days and
  15833.   # people can always --disable-shared, the test was removed, and we
  15834.   # assume the GNU/Linux dynamic linker is in use.
  15835.   dynamic_linker='GNU/Linux ld.so'
  15836.   ;;
  15837.  
  15838. netbsdelf*-gnu)
  15839.   version_type=linux
  15840.   need_lib_prefix=no
  15841.   need_version=no
  15842.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15843.   soname_spec='${libname}${release}${shared_ext}$major'
  15844.   shlibpath_var=LD_LIBRARY_PATH
  15845.   shlibpath_overrides_runpath=no
  15846.   hardcode_into_libs=yes
  15847.   dynamic_linker='NetBSD ld.elf_so'
  15848.   ;;
  15849.  
  15850. netbsd*)
  15851.   version_type=sunos
  15852.   need_lib_prefix=no
  15853.   need_version=no
  15854.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15855.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15856.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15857.     dynamic_linker='NetBSD (a.out) ld.so'
  15858.   else
  15859.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15860.     soname_spec='${libname}${release}${shared_ext}$major'
  15861.     dynamic_linker='NetBSD ld.elf_so'
  15862.   fi
  15863.   shlibpath_var=LD_LIBRARY_PATH
  15864.   shlibpath_overrides_runpath=yes
  15865.   hardcode_into_libs=yes
  15866.   ;;
  15867.  
  15868. newsos6)
  15869.   version_type=linux # correct to gnu/linux during the next big refactor
  15870.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15871.   shlibpath_var=LD_LIBRARY_PATH
  15872.   shlibpath_overrides_runpath=yes
  15873.   ;;
  15874.  
  15875. *nto* | *qnx*)
  15876.   version_type=qnx
  15877.   need_lib_prefix=no
  15878.   need_version=no
  15879.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15880.   soname_spec='${libname}${release}${shared_ext}$major'
  15881.   shlibpath_var=LD_LIBRARY_PATH
  15882.   shlibpath_overrides_runpath=no
  15883.   hardcode_into_libs=yes
  15884.   dynamic_linker='ldqnx.so'
  15885.   ;;
  15886.  
  15887. openbsd*)
  15888.   version_type=sunos
  15889.   sys_lib_dlsearch_path_spec="/usr/lib"
  15890.   need_lib_prefix=no
  15891.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15892.   case $host_os in
  15893.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  15894.     *)                          need_version=no  ;;
  15895.   esac
  15896.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15897.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15898.   shlibpath_var=LD_LIBRARY_PATH
  15899.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15900.     case $host_os in
  15901.       openbsd2.[89] | openbsd2.[89].*)
  15902.         shlibpath_overrides_runpath=no
  15903.         ;;
  15904.       *)
  15905.         shlibpath_overrides_runpath=yes
  15906.         ;;
  15907.       esac
  15908.   else
  15909.     shlibpath_overrides_runpath=yes
  15910.   fi
  15911.   ;;
  15912.  
  15913. os2*)
  15914.   libname_spec='$name'
  15915.   shrext_cmds=".dll"
  15916.   need_lib_prefix=no
  15917.   library_names_spec='$libname${shared_ext} $libname.a'
  15918.   dynamic_linker='OS/2 ld.exe'
  15919.   shlibpath_var=LIBPATH
  15920.   ;;
  15921.  
  15922. osf3* | osf4* | osf5*)
  15923.   version_type=osf
  15924.   need_lib_prefix=no
  15925.   need_version=no
  15926.   soname_spec='${libname}${release}${shared_ext}$major'
  15927.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15928.   shlibpath_var=LD_LIBRARY_PATH
  15929.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15930.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15931.   ;;
  15932.  
  15933. rdos*)
  15934.   dynamic_linker=no
  15935.   ;;
  15936.  
  15937. solaris*)
  15938.   version_type=linux # correct to gnu/linux during the next big refactor
  15939.   need_lib_prefix=no
  15940.   need_version=no
  15941.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15942.   soname_spec='${libname}${release}${shared_ext}$major'
  15943.   shlibpath_var=LD_LIBRARY_PATH
  15944.   shlibpath_overrides_runpath=yes
  15945.   hardcode_into_libs=yes
  15946.   # ldd complains unless libraries are executable
  15947.   postinstall_cmds='chmod +x $lib'
  15948.   ;;
  15949.  
  15950. sunos4*)
  15951.   version_type=sunos
  15952.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15953.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15954.   shlibpath_var=LD_LIBRARY_PATH
  15955.   shlibpath_overrides_runpath=yes
  15956.   if test "$with_gnu_ld" = yes; then
  15957.     need_lib_prefix=no
  15958.   fi
  15959.   need_version=yes
  15960.   ;;
  15961.  
  15962. sysv4 | sysv4.3*)
  15963.   version_type=linux # correct to gnu/linux during the next big refactor
  15964.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15965.   soname_spec='${libname}${release}${shared_ext}$major'
  15966.   shlibpath_var=LD_LIBRARY_PATH
  15967.   case $host_vendor in
  15968.     sni)
  15969.       shlibpath_overrides_runpath=no
  15970.       need_lib_prefix=no
  15971.       runpath_var=LD_RUN_PATH
  15972.       ;;
  15973.     siemens)
  15974.       need_lib_prefix=no
  15975.       ;;
  15976.     motorola)
  15977.       need_lib_prefix=no
  15978.       need_version=no
  15979.       shlibpath_overrides_runpath=no
  15980.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15981.       ;;
  15982.   esac
  15983.   ;;
  15984.  
  15985. sysv4*MP*)
  15986.   if test -d /usr/nec ;then
  15987.     version_type=linux # correct to gnu/linux during the next big refactor
  15988.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15989.     soname_spec='$libname${shared_ext}.$major'
  15990.     shlibpath_var=LD_LIBRARY_PATH
  15991.   fi
  15992.   ;;
  15993.  
  15994. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15995.   version_type=freebsd-elf
  15996.   need_lib_prefix=no
  15997.   need_version=no
  15998.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15999.   soname_spec='${libname}${release}${shared_ext}$major'
  16000.   shlibpath_var=LD_LIBRARY_PATH
  16001.   shlibpath_overrides_runpath=yes
  16002.   hardcode_into_libs=yes
  16003.   if test "$with_gnu_ld" = yes; then
  16004.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16005.   else
  16006.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16007.     case $host_os in
  16008.       sco3.2v5*)
  16009.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16010.         ;;
  16011.     esac
  16012.   fi
  16013.   sys_lib_dlsearch_path_spec='/usr/lib'
  16014.   ;;
  16015.  
  16016. tpf*)
  16017.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  16018.   version_type=linux # correct to gnu/linux during the next big refactor
  16019.   need_lib_prefix=no
  16020.   need_version=no
  16021.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16022.   shlibpath_var=LD_LIBRARY_PATH
  16023.   shlibpath_overrides_runpath=no
  16024.   hardcode_into_libs=yes
  16025.   ;;
  16026.  
  16027. uts4*)
  16028.   version_type=linux # correct to gnu/linux during the next big refactor
  16029.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16030.   soname_spec='${libname}${release}${shared_ext}$major'
  16031.   shlibpath_var=LD_LIBRARY_PATH
  16032.   ;;
  16033.  
  16034. *)
  16035.   dynamic_linker=no
  16036.   ;;
  16037. esac
  16038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  16039. $as_echo "$dynamic_linker" >&6; }
  16040. test "$dynamic_linker" = no && can_build_shared=no
  16041.  
  16042. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16043. if test "$GCC" = yes; then
  16044.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16045. fi
  16046.  
  16047. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  16048.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  16049. fi
  16050. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  16051.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  16052. fi
  16053.  
  16054.  
  16055.  
  16056.  
  16057.  
  16058.  
  16059.  
  16060.  
  16061.  
  16062.  
  16063.  
  16064.  
  16065.  
  16066.  
  16067.  
  16068.  
  16069.  
  16070.  
  16071.  
  16072.  
  16073.  
  16074.  
  16075.  
  16076.  
  16077.  
  16078.  
  16079.  
  16080.  
  16081.  
  16082.  
  16083.  
  16084.  
  16085.  
  16086.  
  16087.  
  16088.  
  16089.  
  16090.  
  16091.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  16092. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  16093. hardcode_action_CXX=
  16094. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  16095.    test -n "$runpath_var_CXX" ||
  16096.    test "X$hardcode_automatic_CXX" = "Xyes" ; then
  16097.  
  16098.   # We can hardcode non-existent directories.
  16099.   if test "$hardcode_direct_CXX" != no &&
  16100.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16101.      # have to relink, otherwise we might link with an installed library
  16102.      # when we should be linking with a yet-to-be-installed one
  16103.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  16104.      test "$hardcode_minus_L_CXX" != no; then
  16105.     # Linking always hardcodes the temporary library directory.
  16106.     hardcode_action_CXX=relink
  16107.   else
  16108.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16109.     hardcode_action_CXX=immediate
  16110.   fi
  16111. else
  16112.   # We cannot hardcode anything, or else we can only hardcode existing
  16113.   # directories.
  16114.   hardcode_action_CXX=unsupported
  16115. fi
  16116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  16117. $as_echo "$hardcode_action_CXX" >&6; }
  16118.  
  16119. if test "$hardcode_action_CXX" = relink ||
  16120.    test "$inherit_rpath_CXX" = yes; then
  16121.   # Fast installation is not supported
  16122.   enable_fast_install=no
  16123. elif test "$shlibpath_overrides_runpath" = yes ||
  16124.      test "$enable_shared" = no; then
  16125.   # Fast installation is not necessary
  16126.   enable_fast_install=needless
  16127. fi
  16128.  
  16129.  
  16130.  
  16131.  
  16132.  
  16133.  
  16134.  
  16135.   fi # test -n "$compiler"
  16136.  
  16137.   CC=$lt_save_CC
  16138.   CFLAGS=$lt_save_CFLAGS
  16139.   LDCXX=$LD
  16140.   LD=$lt_save_LD
  16141.   GCC=$lt_save_GCC
  16142.   with_gnu_ld=$lt_save_with_gnu_ld
  16143.   lt_cv_path_LDCXX=$lt_cv_path_LD
  16144.   lt_cv_path_LD=$lt_save_path_LD
  16145.   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  16146.   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  16147. fi # test "$_lt_caught_CXX_error" != yes
  16148.  
  16149. ac_ext=c
  16150. ac_cpp='$CPP $CPPFLAGS'
  16151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16154.  
  16155.  
  16156.  
  16157.  
  16158.  
  16159.  
  16160.  
  16161.  
  16162.  
  16163.  
  16164. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  16165.         if test -n "$ac_tool_prefix"; then
  16166.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  16167. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  16168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16169. $as_echo_n "checking for $ac_word... " >&6; }
  16170. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16171.   $as_echo_n "(cached) " >&6
  16172. else
  16173.   case $PKG_CONFIG in
  16174.   [\\/]* | ?:[\\/]*)
  16175.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16176.   ;;
  16177.   *)
  16178.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16179. for as_dir in $PATH
  16180. do
  16181.   IFS=$as_save_IFS
  16182.   test -z "$as_dir" && as_dir=.
  16183.     for ac_exec_ext in '' $ac_executable_extensions; do
  16184.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16185.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16186.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16187.     break 2
  16188.   fi
  16189. done
  16190.   done
  16191. IFS=$as_save_IFS
  16192.  
  16193.   ;;
  16194. esac
  16195. fi
  16196. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16197. if test -n "$PKG_CONFIG"; then
  16198.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16199. $as_echo "$PKG_CONFIG" >&6; }
  16200. else
  16201.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16202. $as_echo "no" >&6; }
  16203. fi
  16204.  
  16205.  
  16206. fi
  16207. if test -z "$ac_cv_path_PKG_CONFIG"; then
  16208.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  16209.   # Extract the first word of "pkg-config", so it can be a program name with args.
  16210. set dummy pkg-config; ac_word=$2
  16211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16212. $as_echo_n "checking for $ac_word... " >&6; }
  16213. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  16214.   $as_echo_n "(cached) " >&6
  16215. else
  16216.   case $ac_pt_PKG_CONFIG in
  16217.   [\\/]* | ?:[\\/]*)
  16218.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  16219.   ;;
  16220.   *)
  16221.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16222. for as_dir in $PATH
  16223. do
  16224.   IFS=$as_save_IFS
  16225.   test -z "$as_dir" && as_dir=.
  16226.     for ac_exec_ext in '' $ac_executable_extensions; do
  16227.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16228.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16229.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16230.     break 2
  16231.   fi
  16232. done
  16233.   done
  16234. IFS=$as_save_IFS
  16235.  
  16236.   ;;
  16237. esac
  16238. fi
  16239. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  16240. if test -n "$ac_pt_PKG_CONFIG"; then
  16241.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  16242. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  16243. else
  16244.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16245. $as_echo "no" >&6; }
  16246. fi
  16247.  
  16248.   if test "x$ac_pt_PKG_CONFIG" = x; then
  16249.     PKG_CONFIG=""
  16250.   else
  16251.     case $cross_compiling:$ac_tool_warned in
  16252. yes:)
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16254. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16255. ac_tool_warned=yes ;;
  16256. esac
  16257.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  16258.   fi
  16259. else
  16260.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  16261. fi
  16262.  
  16263. fi
  16264. if test -n "$PKG_CONFIG"; then
  16265.         _pkg_min_version=0.9.0
  16266.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  16267. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  16268.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  16269.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16270. $as_echo "yes" >&6; }
  16271.         else
  16272.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16273. $as_echo "no" >&6; }
  16274.                 PKG_CONFIG=""
  16275.         fi
  16276. fi
  16277.  
  16278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  16279. $as_echo_n "checking for ANSI C header files... " >&6; }
  16280. if ${ac_cv_header_stdc+:} false; then :
  16281.   $as_echo_n "(cached) " >&6
  16282. else
  16283.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16284. /* end confdefs.h.  */
  16285. #include <stdlib.h>
  16286. #include <stdarg.h>
  16287. #include <string.h>
  16288. #include <float.h>
  16289.  
  16290. int
  16291. main ()
  16292. {
  16293.  
  16294.   ;
  16295.   return 0;
  16296. }
  16297. _ACEOF
  16298. if ac_fn_c_try_compile "$LINENO"; then :
  16299.   ac_cv_header_stdc=yes
  16300. else
  16301.   ac_cv_header_stdc=no
  16302. fi
  16303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16304.  
  16305. if test $ac_cv_header_stdc = yes; then
  16306.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  16307.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16308. /* end confdefs.h.  */
  16309. #include <string.h>
  16310.  
  16311. _ACEOF
  16312. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16313.   $EGREP "memchr" >/dev/null 2>&1; then :
  16314.  
  16315. else
  16316.   ac_cv_header_stdc=no
  16317. fi
  16318. rm -f conftest*
  16319.  
  16320. fi
  16321.  
  16322. if test $ac_cv_header_stdc = yes; then
  16323.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  16324.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16325. /* end confdefs.h.  */
  16326. #include <stdlib.h>
  16327.  
  16328. _ACEOF
  16329. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16330.   $EGREP "free" >/dev/null 2>&1; then :
  16331.  
  16332. else
  16333.   ac_cv_header_stdc=no
  16334. fi
  16335. rm -f conftest*
  16336.  
  16337. fi
  16338.  
  16339. if test $ac_cv_header_stdc = yes; then
  16340.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  16341.   if test "$cross_compiling" = yes; then :
  16342.   :
  16343. else
  16344.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16345. /* end confdefs.h.  */
  16346. #include <ctype.h>
  16347. #include <stdlib.h>
  16348. #if ((' ' & 0x0FF) == 0x020)
  16349. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  16350. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  16351. #else
  16352. # define ISLOWER(c) \
  16353.                    (('a' <= (c) && (c) <= 'i') \
  16354.                      || ('j' <= (c) && (c) <= 'r') \
  16355.                      || ('s' <= (c) && (c) <= 'z'))
  16356. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  16357. #endif
  16358.  
  16359. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  16360. int
  16361. main ()
  16362. {
  16363.   int i;
  16364.   for (i = 0; i < 256; i++)
  16365.     if (XOR (islower (i), ISLOWER (i))
  16366.         || toupper (i) != TOUPPER (i))
  16367.       return 2;
  16368.   return 0;
  16369. }
  16370. _ACEOF
  16371. if ac_fn_c_try_run "$LINENO"; then :
  16372.  
  16373. else
  16374.   ac_cv_header_stdc=no
  16375. fi
  16376. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16377.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  16378. fi
  16379.  
  16380. fi
  16381. fi
  16382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  16383. $as_echo "$ac_cv_header_stdc" >&6; }
  16384. if test $ac_cv_header_stdc = yes; then
  16385.  
  16386. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  16387.  
  16388. fi
  16389.  
  16390. # Check whether --enable-largefile was given.
  16391. if test "${enable_largefile+set}" = set; then :
  16392.   enableval=$enable_largefile;
  16393. fi
  16394.  
  16395. if test "$enable_largefile" != no; then
  16396.  
  16397.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16398. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16399. if ${ac_cv_sys_largefile_CC+:} false; then :
  16400.   $as_echo_n "(cached) " >&6
  16401. else
  16402.   ac_cv_sys_largefile_CC=no
  16403.      if test "$GCC" != yes; then
  16404.        ac_save_CC=$CC
  16405.        while :; do
  16406.          # IRIX 6.2 and later do not support large files by default,
  16407.          # so use the C compiler's -n32 option if that helps.
  16408.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16409. /* end confdefs.h.  */
  16410. #include <sys/types.h>
  16411.  /* Check that off_t can represent 2**63 - 1 correctly.
  16412.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16413.     since some C++ compilers masquerading as C compilers
  16414.     incorrectly reject 9223372036854775807.  */
  16415. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16416.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16417.                        && LARGE_OFF_T % 2147483647 == 1)
  16418.                       ? 1 : -1];
  16419. int
  16420. main ()
  16421. {
  16422.  
  16423.   ;
  16424.   return 0;
  16425. }
  16426. _ACEOF
  16427.          if ac_fn_c_try_compile "$LINENO"; then :
  16428.   break
  16429. fi
  16430. rm -f core conftest.err conftest.$ac_objext
  16431.          CC="$CC -n32"
  16432.          if ac_fn_c_try_compile "$LINENO"; then :
  16433.   ac_cv_sys_largefile_CC=' -n32'; break
  16434. fi
  16435. rm -f core conftest.err conftest.$ac_objext
  16436.          break
  16437.        done
  16438.        CC=$ac_save_CC
  16439.        rm -f conftest.$ac_ext
  16440.     fi
  16441. fi
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16443. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16444.   if test "$ac_cv_sys_largefile_CC" != no; then
  16445.     CC=$CC$ac_cv_sys_largefile_CC
  16446.   fi
  16447.  
  16448.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16449. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16450. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16451.   $as_echo_n "(cached) " >&6
  16452. else
  16453.   while :; do
  16454.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16455. /* end confdefs.h.  */
  16456. #include <sys/types.h>
  16457.  /* Check that off_t can represent 2**63 - 1 correctly.
  16458.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16459.     since some C++ compilers masquerading as C compilers
  16460.     incorrectly reject 9223372036854775807.  */
  16461. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16462.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16463.                        && LARGE_OFF_T % 2147483647 == 1)
  16464.                       ? 1 : -1];
  16465. int
  16466. main ()
  16467. {
  16468.  
  16469.   ;
  16470.   return 0;
  16471. }
  16472. _ACEOF
  16473. if ac_fn_c_try_compile "$LINENO"; then :
  16474.   ac_cv_sys_file_offset_bits=no; break
  16475. fi
  16476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16477.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16478. /* end confdefs.h.  */
  16479. #define _FILE_OFFSET_BITS 64
  16480. #include <sys/types.h>
  16481.  /* Check that off_t can represent 2**63 - 1 correctly.
  16482.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16483.     since some C++ compilers masquerading as C compilers
  16484.     incorrectly reject 9223372036854775807.  */
  16485. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16486.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16487.                        && LARGE_OFF_T % 2147483647 == 1)
  16488.                       ? 1 : -1];
  16489. int
  16490. main ()
  16491. {
  16492.  
  16493.   ;
  16494.   return 0;
  16495. }
  16496. _ACEOF
  16497. if ac_fn_c_try_compile "$LINENO"; then :
  16498.   ac_cv_sys_file_offset_bits=64; break
  16499. fi
  16500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16501.   ac_cv_sys_file_offset_bits=unknown
  16502.   break
  16503. done
  16504. fi
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16506. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16507. case $ac_cv_sys_file_offset_bits in #(
  16508.   no | unknown) ;;
  16509.   *)
  16510. cat >>confdefs.h <<_ACEOF
  16511. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16512. _ACEOF
  16513. ;;
  16514. esac
  16515. rm -rf conftest*
  16516.   if test $ac_cv_sys_file_offset_bits = unknown; then
  16517.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16518. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16519. if ${ac_cv_sys_large_files+:} false; then :
  16520.   $as_echo_n "(cached) " >&6
  16521. else
  16522.   while :; do
  16523.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16524. /* end confdefs.h.  */
  16525. #include <sys/types.h>
  16526.  /* Check that off_t can represent 2**63 - 1 correctly.
  16527.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16528.     since some C++ compilers masquerading as C compilers
  16529.     incorrectly reject 9223372036854775807.  */
  16530. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16531.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16532.                        && LARGE_OFF_T % 2147483647 == 1)
  16533.                       ? 1 : -1];
  16534. int
  16535. main ()
  16536. {
  16537.  
  16538.   ;
  16539.   return 0;
  16540. }
  16541. _ACEOF
  16542. if ac_fn_c_try_compile "$LINENO"; then :
  16543.   ac_cv_sys_large_files=no; break
  16544. fi
  16545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16546.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16547. /* end confdefs.h.  */
  16548. #define _LARGE_FILES 1
  16549. #include <sys/types.h>
  16550.  /* Check that off_t can represent 2**63 - 1 correctly.
  16551.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16552.     since some C++ compilers masquerading as C compilers
  16553.     incorrectly reject 9223372036854775807.  */
  16554. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16555.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16556.                        && LARGE_OFF_T % 2147483647 == 1)
  16557.                       ? 1 : -1];
  16558. int
  16559. main ()
  16560. {
  16561.  
  16562.   ;
  16563.   return 0;
  16564. }
  16565. _ACEOF
  16566. if ac_fn_c_try_compile "$LINENO"; then :
  16567.   ac_cv_sys_large_files=1; break
  16568. fi
  16569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16570.   ac_cv_sys_large_files=unknown
  16571.   break
  16572. done
  16573. fi
  16574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16575. $as_echo "$ac_cv_sys_large_files" >&6; }
  16576. case $ac_cv_sys_large_files in #(
  16577.   no | unknown) ;;
  16578.   *)
  16579. cat >>confdefs.h <<_ACEOF
  16580. #define _LARGE_FILES $ac_cv_sys_large_files
  16581. _ACEOF
  16582. ;;
  16583. esac
  16584. rm -rf conftest*
  16585.   fi
  16586.  
  16587.  
  16588. fi
  16589.  
  16590.  
  16591. # Check for Doxygen
  16592. if test "$enable_docs" = "yes"; then
  16593.     if test -n "$ac_tool_prefix"; then
  16594.   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
  16595. set dummy ${ac_tool_prefix}doxygen; ac_word=$2
  16596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16597. $as_echo_n "checking for $ac_word... " >&6; }
  16598. if ${ac_cv_prog_DOXYGEN+:} false; then :
  16599.   $as_echo_n "(cached) " >&6
  16600. else
  16601.   if test -n "$DOXYGEN"; then
  16602.   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
  16603. else
  16604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16605. for as_dir in $PATH
  16606. do
  16607.   IFS=$as_save_IFS
  16608.   test -z "$as_dir" && as_dir=.
  16609.     for ac_exec_ext in '' $ac_executable_extensions; do
  16610.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16611.     ac_cv_prog_DOXYGEN="${ac_tool_prefix}doxygen"
  16612.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16613.     break 2
  16614.   fi
  16615. done
  16616.   done
  16617. IFS=$as_save_IFS
  16618.  
  16619. fi
  16620. fi
  16621. DOXYGEN=$ac_cv_prog_DOXYGEN
  16622. if test -n "$DOXYGEN"; then
  16623.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  16624. $as_echo "$DOXYGEN" >&6; }
  16625. else
  16626.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16627. $as_echo "no" >&6; }
  16628. fi
  16629.  
  16630.  
  16631. fi
  16632. if test -z "$ac_cv_prog_DOXYGEN"; then
  16633.   ac_ct_DOXYGEN=$DOXYGEN
  16634.   # Extract the first word of "doxygen", so it can be a program name with args.
  16635. set dummy doxygen; ac_word=$2
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16637. $as_echo_n "checking for $ac_word... " >&6; }
  16638. if ${ac_cv_prog_ac_ct_DOXYGEN+:} false; then :
  16639.   $as_echo_n "(cached) " >&6
  16640. else
  16641.   if test -n "$ac_ct_DOXYGEN"; then
  16642.   ac_cv_prog_ac_ct_DOXYGEN="$ac_ct_DOXYGEN" # Let the user override the test.
  16643. else
  16644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16645. for as_dir in $PATH
  16646. do
  16647.   IFS=$as_save_IFS
  16648.   test -z "$as_dir" && as_dir=.
  16649.     for ac_exec_ext in '' $ac_executable_extensions; do
  16650.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16651.     ac_cv_prog_ac_ct_DOXYGEN="doxygen"
  16652.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16653.     break 2
  16654.   fi
  16655. done
  16656.   done
  16657. IFS=$as_save_IFS
  16658.  
  16659. fi
  16660. fi
  16661. ac_ct_DOXYGEN=$ac_cv_prog_ac_ct_DOXYGEN
  16662. if test -n "$ac_ct_DOXYGEN"; then
  16663.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOXYGEN" >&5
  16664. $as_echo "$ac_ct_DOXYGEN" >&6; }
  16665. else
  16666.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16667. $as_echo "no" >&6; }
  16668. fi
  16669.  
  16670.   if test "x$ac_ct_DOXYGEN" = x; then
  16671.     DOXYGEN="no"
  16672.   else
  16673.     case $cross_compiling:$ac_tool_warned in
  16674. yes:)
  16675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16676. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16677. ac_tool_warned=yes ;;
  16678. esac
  16679.     DOXYGEN=$ac_ct_DOXYGEN
  16680.   fi
  16681. else
  16682.   DOXYGEN="$ac_cv_prog_DOXYGEN"
  16683. fi
  16684.  
  16685.     if test "$DOXYGEN" = "no"; then
  16686.        enable_docs="no"
  16687.     fi
  16688. fi
  16689.  if test "$enable_docs" = "yes"; then
  16690.   ENABLE_DOCS_TRUE=
  16691.   ENABLE_DOCS_FALSE='#'
  16692. else
  16693.   ENABLE_DOCS_TRUE='#'
  16694.   ENABLE_DOCS_FALSE=
  16695. fi
  16696.  
  16697.  
  16698. # Check for __attribute__((visibility()))
  16699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
  16700. $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
  16701. if ${ac_cv_have_gnuc_visibility_attribute+:} false; then :
  16702.   $as_echo_n "(cached) " >&6
  16703. else
  16704.   cat > conftest.c <<EOF
  16705. int foo __attribute__ ((visibility ("hidden"))) = 1;
  16706. int bar __attribute__ ((visibility ("protected"))) = 1;
  16707. EOF
  16708.     ac_cv_have_gnuc_visibility_attribute="no"
  16709.     if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
  16710.         if grep '\.hidden.*foo' conftest.s >/dev/null; then
  16711.             if grep '\.protected.*bar' conftest.s >/dev/null; then
  16712.                 ac_cv_have_gnuc_visibility_attribute="yes"
  16713.             fi
  16714.         fi
  16715.     fi
  16716.     rm -f conftest.cs
  16717.  
  16718. fi
  16719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_gnuc_visibility_attribute" >&5
  16720. $as_echo "$ac_cv_have_gnuc_visibility_attribute" >&6; }
  16721. if test "$ac_cv_have_gnuc_visibility_attribute" = "yes"; then
  16722.  
  16723. $as_echo "#define HAVE_GNUC_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
  16724.  
  16725. fi
  16726.  
  16727. # Check for DRM (mandatory)
  16728. LIBDRM_VERSION=2.4
  16729.  
  16730. pkg_failed=no
  16731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
  16732. $as_echo_n "checking for DRM... " >&6; }
  16733.  
  16734. if test -n "$DRM_CFLAGS"; then
  16735.     pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
  16736.  elif test -n "$PKG_CONFIG"; then
  16737.     if test -n "$PKG_CONFIG" && \
  16738.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_VERSION\""; } >&5
  16739.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_VERSION") 2>&5
  16740.   ac_status=$?
  16741.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16742.   test $ac_status = 0; }; then
  16743.   pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= $LIBDRM_VERSION" 2>/dev/null`
  16744.                       test "x$?" != "x0" && pkg_failed=yes
  16745. else
  16746.   pkg_failed=yes
  16747. fi
  16748.  else
  16749.     pkg_failed=untried
  16750. fi
  16751. if test -n "$DRM_LIBS"; then
  16752.     pkg_cv_DRM_LIBS="$DRM_LIBS"
  16753.  elif test -n "$PKG_CONFIG"; then
  16754.     if test -n "$PKG_CONFIG" && \
  16755.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_VERSION\""; } >&5
  16756.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_VERSION") 2>&5
  16757.   ac_status=$?
  16758.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16759.   test $ac_status = 0; }; then
  16760.   pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= $LIBDRM_VERSION" 2>/dev/null`
  16761.                       test "x$?" != "x0" && pkg_failed=yes
  16762. else
  16763.   pkg_failed=yes
  16764. fi
  16765.  else
  16766.     pkg_failed=untried
  16767. fi
  16768.  
  16769.  
  16770.  
  16771. if test $pkg_failed = yes; then
  16772.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16773. $as_echo "no" >&6; }
  16774.  
  16775. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16776.         _pkg_short_errors_supported=yes
  16777. else
  16778.         _pkg_short_errors_supported=no
  16779. fi
  16780.         if test $_pkg_short_errors_supported = yes; then
  16781.                 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= $LIBDRM_VERSION" 2>&1`
  16782.         else
  16783.                 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= $LIBDRM_VERSION" 2>&1`
  16784.         fi
  16785.         # Put the nasty error message in config.log where it belongs
  16786.         echo "$DRM_PKG_ERRORS" >&5
  16787.  
  16788.         as_fn_error $? "Package requirements (libdrm >= $LIBDRM_VERSION) were not met:
  16789.  
  16790. $DRM_PKG_ERRORS
  16791.  
  16792. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16793. installed software in a non-standard prefix.
  16794.  
  16795. Alternatively, you may set the environment variables DRM_CFLAGS
  16796. and DRM_LIBS to avoid the need to call pkg-config.
  16797. See the pkg-config man page for more details." "$LINENO" 5
  16798. elif test $pkg_failed = untried; then
  16799.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16800. $as_echo "no" >&6; }
  16801.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16803. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  16804. is in your PATH or set the PKG_CONFIG environment variable to the full
  16805. path to pkg-config.
  16806.  
  16807. Alternatively, you may set the environment variables DRM_CFLAGS
  16808. and DRM_LIBS to avoid the need to call pkg-config.
  16809. See the pkg-config man page for more details.
  16810.  
  16811. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16812. See \`config.log' for more details" "$LINENO" 5; }
  16813. else
  16814.         DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
  16815.         DRM_LIBS=$pkg_cv_DRM_LIBS
  16816.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16817. $as_echo "yes" >&6; }
  16818.  
  16819. fi
  16820.  
  16821.  
  16822. USE_DRM="no"
  16823. if test "$enable_drm" = "yes"; then
  16824.     USE_DRM="yes"
  16825.  
  16826. $as_echo "#define HAVE_VA_DRM 1" >>confdefs.h
  16827.  
  16828. fi
  16829.  if test "$USE_DRM" = "yes"; then
  16830.   USE_DRM_TRUE=
  16831.   USE_DRM_FALSE='#'
  16832. else
  16833.   USE_DRM_TRUE='#'
  16834.   USE_DRM_FALSE=
  16835. fi
  16836.  
  16837.  
  16838. # Check for X11
  16839. USE_X11="no"
  16840. if test "$enable_x11" = "yes"; then
  16841.     USE_X11="yes"
  16842.  
  16843. pkg_failed=no
  16844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
  16845. $as_echo_n "checking for X11... " >&6; }
  16846.  
  16847. if test -n "$X11_CFLAGS"; then
  16848.     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
  16849.  elif test -n "$PKG_CONFIG"; then
  16850.     if test -n "$PKG_CONFIG" && \
  16851.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
  16852.   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
  16853.   ac_status=$?
  16854.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16855.   test $ac_status = 0; }; then
  16856.   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
  16857.                       test "x$?" != "x0" && pkg_failed=yes
  16858. else
  16859.   pkg_failed=yes
  16860. fi
  16861.  else
  16862.     pkg_failed=untried
  16863. fi
  16864. if test -n "$X11_LIBS"; then
  16865.     pkg_cv_X11_LIBS="$X11_LIBS"
  16866.  elif test -n "$PKG_CONFIG"; then
  16867.     if test -n "$PKG_CONFIG" && \
  16868.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
  16869.   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
  16870.   ac_status=$?
  16871.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16872.   test $ac_status = 0; }; then
  16873.   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
  16874.                       test "x$?" != "x0" && pkg_failed=yes
  16875. else
  16876.   pkg_failed=yes
  16877. fi
  16878.  else
  16879.     pkg_failed=untried
  16880. fi
  16881.  
  16882.  
  16883.  
  16884. if test $pkg_failed = yes; then
  16885.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16886. $as_echo "no" >&6; }
  16887.  
  16888. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16889.         _pkg_short_errors_supported=yes
  16890. else
  16891.         _pkg_short_errors_supported=no
  16892. fi
  16893.         if test $_pkg_short_errors_supported = yes; then
  16894.                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
  16895.         else
  16896.                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
  16897.         fi
  16898.         # Put the nasty error message in config.log where it belongs
  16899.         echo "$X11_PKG_ERRORS" >&5
  16900.  
  16901.         USE_X11="no"
  16902. elif test $pkg_failed = untried; then
  16903.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16904. $as_echo "no" >&6; }
  16905.         USE_X11="no"
  16906. else
  16907.         X11_CFLAGS=$pkg_cv_X11_CFLAGS
  16908.         X11_LIBS=$pkg_cv_X11_LIBS
  16909.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16910. $as_echo "yes" >&6; }
  16911.         :
  16912. fi
  16913.  
  16914. pkg_failed=no
  16915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
  16916. $as_echo_n "checking for XEXT... " >&6; }
  16917.  
  16918. if test -n "$XEXT_CFLAGS"; then
  16919.     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
  16920.  elif test -n "$PKG_CONFIG"; then
  16921.     if test -n "$PKG_CONFIG" && \
  16922.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
  16923.   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
  16924.   ac_status=$?
  16925.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16926.   test $ac_status = 0; }; then
  16927.   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
  16928.                       test "x$?" != "x0" && pkg_failed=yes
  16929. else
  16930.   pkg_failed=yes
  16931. fi
  16932.  else
  16933.     pkg_failed=untried
  16934. fi
  16935. if test -n "$XEXT_LIBS"; then
  16936.     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
  16937.  elif test -n "$PKG_CONFIG"; then
  16938.     if test -n "$PKG_CONFIG" && \
  16939.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
  16940.   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
  16941.   ac_status=$?
  16942.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16943.   test $ac_status = 0; }; then
  16944.   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
  16945.                       test "x$?" != "x0" && pkg_failed=yes
  16946. else
  16947.   pkg_failed=yes
  16948. fi
  16949.  else
  16950.     pkg_failed=untried
  16951. fi
  16952.  
  16953.  
  16954.  
  16955. if test $pkg_failed = yes; then
  16956.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16957. $as_echo "no" >&6; }
  16958.  
  16959. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16960.         _pkg_short_errors_supported=yes
  16961. else
  16962.         _pkg_short_errors_supported=no
  16963. fi
  16964.         if test $_pkg_short_errors_supported = yes; then
  16965.                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
  16966.         else
  16967.                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
  16968.         fi
  16969.         # Put the nasty error message in config.log where it belongs
  16970.         echo "$XEXT_PKG_ERRORS" >&5
  16971.  
  16972.         USE_X11="no"
  16973. elif test $pkg_failed = untried; then
  16974.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16975. $as_echo "no" >&6; }
  16976.         USE_X11="no"
  16977. else
  16978.         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
  16979.         XEXT_LIBS=$pkg_cv_XEXT_LIBS
  16980.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16981. $as_echo "yes" >&6; }
  16982.         :
  16983. fi
  16984.  
  16985. pkg_failed=no
  16986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
  16987. $as_echo_n "checking for XFIXES... " >&6; }
  16988.  
  16989. if test -n "$XFIXES_CFLAGS"; then
  16990.     pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
  16991.  elif test -n "$PKG_CONFIG"; then
  16992.     if test -n "$PKG_CONFIG" && \
  16993.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
  16994.   ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
  16995.   ac_status=$?
  16996.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16997.   test $ac_status = 0; }; then
  16998.   pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
  16999.                       test "x$?" != "x0" && pkg_failed=yes
  17000. else
  17001.   pkg_failed=yes
  17002. fi
  17003.  else
  17004.     pkg_failed=untried
  17005. fi
  17006. if test -n "$XFIXES_LIBS"; then
  17007.     pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
  17008.  elif test -n "$PKG_CONFIG"; then
  17009.     if test -n "$PKG_CONFIG" && \
  17010.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
  17011.   ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
  17012.   ac_status=$?
  17013.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17014.   test $ac_status = 0; }; then
  17015.   pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
  17016.                       test "x$?" != "x0" && pkg_failed=yes
  17017. else
  17018.   pkg_failed=yes
  17019. fi
  17020.  else
  17021.     pkg_failed=untried
  17022. fi
  17023.  
  17024.  
  17025.  
  17026. if test $pkg_failed = yes; then
  17027.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17028. $as_echo "no" >&6; }
  17029.  
  17030. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17031.         _pkg_short_errors_supported=yes
  17032. else
  17033.         _pkg_short_errors_supported=no
  17034. fi
  17035.         if test $_pkg_short_errors_supported = yes; then
  17036.                 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1`
  17037.         else
  17038.                 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1`
  17039.         fi
  17040.         # Put the nasty error message in config.log where it belongs
  17041.         echo "$XFIXES_PKG_ERRORS" >&5
  17042.  
  17043.         USE_X11="no"
  17044. elif test $pkg_failed = untried; then
  17045.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17046. $as_echo "no" >&6; }
  17047.         USE_X11="no"
  17048. else
  17049.         XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
  17050.         XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
  17051.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17052. $as_echo "yes" >&6; }
  17053.         :
  17054. fi
  17055.     if test "$USE_X11" = "yes"; then
  17056.  
  17057. $as_echo "#define HAVE_VA_X11 1" >>confdefs.h
  17058.  
  17059.     fi
  17060. fi
  17061.  if test "$USE_X11" = "yes"; then
  17062.   USE_X11_TRUE=
  17063.   USE_X11_FALSE='#'
  17064. else
  17065.   USE_X11_TRUE='#'
  17066.   USE_X11_FALSE=
  17067. fi
  17068.  
  17069.  
  17070. # Check for GLX
  17071. USE_GLX="no"
  17072. if test "$USE_X11:$enable_glx" = "yes:yes"; then
  17073.  
  17074. pkg_failed=no
  17075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX" >&5
  17076. $as_echo_n "checking for GLX... " >&6; }
  17077.  
  17078. if test -n "$GLX_CFLAGS"; then
  17079.     pkg_cv_GLX_CFLAGS="$GLX_CFLAGS"
  17080.  elif test -n "$PKG_CONFIG"; then
  17081.     if test -n "$PKG_CONFIG" && \
  17082.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl x11\""; } >&5
  17083.   ($PKG_CONFIG --exists --print-errors "gl x11") 2>&5
  17084.   ac_status=$?
  17085.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17086.   test $ac_status = 0; }; then
  17087.   pkg_cv_GLX_CFLAGS=`$PKG_CONFIG --cflags "gl x11" 2>/dev/null`
  17088.                       test "x$?" != "x0" && pkg_failed=yes
  17089. else
  17090.   pkg_failed=yes
  17091. fi
  17092.  else
  17093.     pkg_failed=untried
  17094. fi
  17095. if test -n "$GLX_LIBS"; then
  17096.     pkg_cv_GLX_LIBS="$GLX_LIBS"
  17097.  elif test -n "$PKG_CONFIG"; then
  17098.     if test -n "$PKG_CONFIG" && \
  17099.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl x11\""; } >&5
  17100.   ($PKG_CONFIG --exists --print-errors "gl x11") 2>&5
  17101.   ac_status=$?
  17102.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17103.   test $ac_status = 0; }; then
  17104.   pkg_cv_GLX_LIBS=`$PKG_CONFIG --libs "gl x11" 2>/dev/null`
  17105.                       test "x$?" != "x0" && pkg_failed=yes
  17106. else
  17107.   pkg_failed=yes
  17108. fi
  17109.  else
  17110.     pkg_failed=untried
  17111. fi
  17112.  
  17113.  
  17114.  
  17115. if test $pkg_failed = yes; then
  17116.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17117. $as_echo "no" >&6; }
  17118.  
  17119. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17120.         _pkg_short_errors_supported=yes
  17121. else
  17122.         _pkg_short_errors_supported=no
  17123. fi
  17124.         if test $_pkg_short_errors_supported = yes; then
  17125.                 GLX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl x11" 2>&1`
  17126.         else
  17127.                 GLX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl x11" 2>&1`
  17128.         fi
  17129.         # Put the nasty error message in config.log where it belongs
  17130.         echo "$GLX_PKG_ERRORS" >&5
  17131.  
  17132.         :
  17133. elif test $pkg_failed = untried; then
  17134.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17135. $as_echo "no" >&6; }
  17136.         :
  17137. else
  17138.         GLX_CFLAGS=$pkg_cv_GLX_CFLAGS
  17139.         GLX_LIBS=$pkg_cv_GLX_LIBS
  17140.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17141. $as_echo "yes" >&6; }
  17142.         USE_GLX="yes"
  17143. fi
  17144.     saved_CPPFLAGS="$CPPFLAGS"
  17145.     saved_LIBS="$LIBS"
  17146.     CPPFLAGS="$CPPFLAGS $GLX_CFLAGS"
  17147.     LIBS="$LIBS $GLX_LIBS"
  17148.     for ac_header in GL/gl.h GL/glx.h
  17149. do :
  17150.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17151. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17152. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17153.   cat >>confdefs.h <<_ACEOF
  17154. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17155. _ACEOF
  17156.  :
  17157. else
  17158.   USE_GLX="no"
  17159. fi
  17160.  
  17161. done
  17162.  
  17163.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
  17164. $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
  17165. if ${ac_cv_lib_GL_glXCreateContext+:} false; then :
  17166.   $as_echo_n "(cached) " >&6
  17167. else
  17168.   ac_check_lib_save_LIBS=$LIBS
  17169. LIBS="-lGL  $LIBS"
  17170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17171. /* end confdefs.h.  */
  17172.  
  17173. /* Override any GCC internal prototype to avoid an error.
  17174.    Use char because int might match the return type of a GCC
  17175.    builtin and then its argument prototype would still apply.  */
  17176. #ifdef __cplusplus
  17177. extern "C"
  17178. #endif
  17179. char glXCreateContext ();
  17180. int
  17181. main ()
  17182. {
  17183. return glXCreateContext ();
  17184.   ;
  17185.   return 0;
  17186. }
  17187. _ACEOF
  17188. if ac_fn_c_try_link "$LINENO"; then :
  17189.   ac_cv_lib_GL_glXCreateContext=yes
  17190. else
  17191.   ac_cv_lib_GL_glXCreateContext=no
  17192. fi
  17193. rm -f core conftest.err conftest.$ac_objext \
  17194.     conftest$ac_exeext conftest.$ac_ext
  17195. LIBS=$ac_check_lib_save_LIBS
  17196. fi
  17197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
  17198. $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
  17199. if test "x$ac_cv_lib_GL_glXCreateContext" = xyes; then :
  17200.   : USE_GLX="no"
  17201. fi
  17202.  
  17203.     CPPFLAGS="$saved_CPPFLAGS"
  17204.     LIBS="$saved_LIBS"
  17205.     if test "$USE_GLX" = "yes"; then
  17206.  
  17207. $as_echo "#define HAVE_VA_GLX 1" >>confdefs.h
  17208.  
  17209.     fi
  17210. fi
  17211.  if test "$USE_GLX" = "yes"; then
  17212.   USE_GLX_TRUE=
  17213.   USE_GLX_FALSE='#'
  17214. else
  17215.   USE_GLX_TRUE='#'
  17216.   USE_GLX_FALSE=
  17217. fi
  17218.  
  17219.  
  17220. # Check for EGL
  17221. USE_EGL="no"
  17222. if test "$enable_egl" = "yes"; then
  17223.  
  17224. pkg_failed=no
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL" >&5
  17226. $as_echo_n "checking for EGL... " >&6; }
  17227.  
  17228. if test -n "$EGL_CFLAGS"; then
  17229.     pkg_cv_EGL_CFLAGS="$EGL_CFLAGS"
  17230.  elif test -n "$PKG_CONFIG"; then
  17231.     if test -n "$PKG_CONFIG" && \
  17232.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
  17233.   ($PKG_CONFIG --exists --print-errors "egl") 2>&5
  17234.   ac_status=$?
  17235.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17236.   test $ac_status = 0; }; then
  17237.   pkg_cv_EGL_CFLAGS=`$PKG_CONFIG --cflags "egl" 2>/dev/null`
  17238.                       test "x$?" != "x0" && pkg_failed=yes
  17239. else
  17240.   pkg_failed=yes
  17241. fi
  17242.  else
  17243.     pkg_failed=untried
  17244. fi
  17245. if test -n "$EGL_LIBS"; then
  17246.     pkg_cv_EGL_LIBS="$EGL_LIBS"
  17247.  elif test -n "$PKG_CONFIG"; then
  17248.     if test -n "$PKG_CONFIG" && \
  17249.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
  17250.   ($PKG_CONFIG --exists --print-errors "egl") 2>&5
  17251.   ac_status=$?
  17252.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17253.   test $ac_status = 0; }; then
  17254.   pkg_cv_EGL_LIBS=`$PKG_CONFIG --libs "egl" 2>/dev/null`
  17255.                       test "x$?" != "x0" && pkg_failed=yes
  17256. else
  17257.   pkg_failed=yes
  17258. fi
  17259.  else
  17260.     pkg_failed=untried
  17261. fi
  17262.  
  17263.  
  17264.  
  17265. if test $pkg_failed = yes; then
  17266.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17267. $as_echo "no" >&6; }
  17268.  
  17269. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17270.         _pkg_short_errors_supported=yes
  17271. else
  17272.         _pkg_short_errors_supported=no
  17273. fi
  17274.         if test $_pkg_short_errors_supported = yes; then
  17275.                 EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "egl" 2>&1`
  17276.         else
  17277.                 EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "egl" 2>&1`
  17278.         fi
  17279.         # Put the nasty error message in config.log where it belongs
  17280.         echo "$EGL_PKG_ERRORS" >&5
  17281.  
  17282.         :
  17283. elif test $pkg_failed = untried; then
  17284.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17285. $as_echo "no" >&6; }
  17286.         :
  17287. else
  17288.         EGL_CFLAGS=$pkg_cv_EGL_CFLAGS
  17289.         EGL_LIBS=$pkg_cv_EGL_LIBS
  17290.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17291. $as_echo "yes" >&6; }
  17292.         USE_EGL="yes"
  17293. fi
  17294.     saved_CPPFLAGS="$CPPFLAGS"
  17295.     saved_LIBS="$LIBS"
  17296.     CPPFLAGS="$CPPFLAGS $EGL_CFLAGS"
  17297.     LIBS="$LIBS $EGL_LIBS"
  17298.     for ac_header in EGL/egl.h
  17299. do :
  17300.   ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
  17301. if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
  17302.   cat >>confdefs.h <<_ACEOF
  17303. #define HAVE_EGL_EGL_H 1
  17304. _ACEOF
  17305.  :
  17306. else
  17307.   USE_EGL="no"
  17308. fi
  17309.  
  17310. done
  17311.  
  17312.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetDisplay in -lEGL" >&5
  17313. $as_echo_n "checking for eglGetDisplay in -lEGL... " >&6; }
  17314. if ${ac_cv_lib_EGL_eglGetDisplay+:} false; then :
  17315.   $as_echo_n "(cached) " >&6
  17316. else
  17317.   ac_check_lib_save_LIBS=$LIBS
  17318. LIBS="-lEGL  $LIBS"
  17319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17320. /* end confdefs.h.  */
  17321.  
  17322. /* Override any GCC internal prototype to avoid an error.
  17323.    Use char because int might match the return type of a GCC
  17324.    builtin and then its argument prototype would still apply.  */
  17325. #ifdef __cplusplus
  17326. extern "C"
  17327. #endif
  17328. char eglGetDisplay ();
  17329. int
  17330. main ()
  17331. {
  17332. return eglGetDisplay ();
  17333.   ;
  17334.   return 0;
  17335. }
  17336. _ACEOF
  17337. if ac_fn_c_try_link "$LINENO"; then :
  17338.   ac_cv_lib_EGL_eglGetDisplay=yes
  17339. else
  17340.   ac_cv_lib_EGL_eglGetDisplay=no
  17341. fi
  17342. rm -f core conftest.err conftest.$ac_objext \
  17343.     conftest$ac_exeext conftest.$ac_ext
  17344. LIBS=$ac_check_lib_save_LIBS
  17345. fi
  17346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglGetDisplay" >&5
  17347. $as_echo "$ac_cv_lib_EGL_eglGetDisplay" >&6; }
  17348. if test "x$ac_cv_lib_EGL_eglGetDisplay" = xyes; then :
  17349.   :
  17350. else
  17351.   USE_EGL="no"
  17352. fi
  17353.  
  17354.     CPPFLAGS="$saved_CPPFLAGS"
  17355.     LIBS="$saved_LIBS"
  17356.     if test "$USE_EGL" = "yes"; then
  17357.  
  17358. $as_echo "#define HAVE_VA_EGL 1" >>confdefs.h
  17359.  
  17360.     fi
  17361. fi
  17362.  if test "$USE_EGL" = "yes"; then
  17363.   USE_EGL_TRUE=
  17364.   USE_EGL_FALSE='#'
  17365. else
  17366.   USE_EGL_TRUE='#'
  17367.   USE_EGL_FALSE=
  17368. fi
  17369.  
  17370.  
  17371. # Check for Wayland
  17372. WAYLAND_API_VERSION=1.0.0
  17373.  
  17374.  
  17375. USE_WAYLAND="no"
  17376. if test "$enable_wayland" = "yes"; then
  17377.  
  17378. pkg_failed=no
  17379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5
  17380. $as_echo_n "checking for WAYLAND... " >&6; }
  17381.  
  17382. if test -n "$WAYLAND_CFLAGS"; then
  17383.     pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS"
  17384.  elif test -n "$PKG_CONFIG"; then
  17385.     if test -n "$PKG_CONFIG" && \
  17386.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.0\""; } >&5
  17387.   ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.0") 2>&5
  17388.   ac_status=$?
  17389.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17390.   test $ac_status = 0; }; then
  17391.   pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= 1.0.0" 2>/dev/null`
  17392.                       test "x$?" != "x0" && pkg_failed=yes
  17393. else
  17394.   pkg_failed=yes
  17395. fi
  17396.  else
  17397.     pkg_failed=untried
  17398. fi
  17399. if test -n "$WAYLAND_LIBS"; then
  17400.     pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS"
  17401.  elif test -n "$PKG_CONFIG"; then
  17402.     if test -n "$PKG_CONFIG" && \
  17403.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.0\""; } >&5
  17404.   ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.0") 2>&5
  17405.   ac_status=$?
  17406.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17407.   test $ac_status = 0; }; then
  17408.   pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client >= 1.0.0" 2>/dev/null`
  17409.                       test "x$?" != "x0" && pkg_failed=yes
  17410. else
  17411.   pkg_failed=yes
  17412. fi
  17413.  else
  17414.     pkg_failed=untried
  17415. fi
  17416.  
  17417.  
  17418.  
  17419. if test $pkg_failed = yes; then
  17420.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17421. $as_echo "no" >&6; }
  17422.  
  17423. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17424.         _pkg_short_errors_supported=yes
  17425. else
  17426.         _pkg_short_errors_supported=no
  17427. fi
  17428.         if test $_pkg_short_errors_supported = yes; then
  17429.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client >= 1.0.0" 2>&1`
  17430.         else
  17431.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client >= 1.0.0" 2>&1`
  17432.         fi
  17433.         # Put the nasty error message in config.log where it belongs
  17434.         echo "$WAYLAND_PKG_ERRORS" >&5
  17435.  
  17436.         :
  17437. elif test $pkg_failed = untried; then
  17438.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17439. $as_echo "no" >&6; }
  17440.         :
  17441. else
  17442.         WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS
  17443.         WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS
  17444.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17445. $as_echo "yes" >&6; }
  17446.         USE_WAYLAND="yes"
  17447. fi
  17448.     if test "$USE_WAYLAND" = "yes"; then
  17449.  
  17450. $as_echo "#define HAVE_VA_WAYLAND 1" >>confdefs.h
  17451.  
  17452.     fi
  17453. fi
  17454.  if test "$USE_WAYLAND" = "yes"; then
  17455.   USE_WAYLAND_TRUE=
  17456.   USE_WAYLAND_FALSE='#'
  17457. else
  17458.   USE_WAYLAND_TRUE='#'
  17459.   USE_WAYLAND_FALSE=
  17460. fi
  17461.  
  17462.  
  17463.  
  17464.  
  17465.  
  17466.  
  17467.  
  17468.  
  17469.  
  17470.  
  17471. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  17472.         if test -n "$ac_tool_prefix"; then
  17473.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17474. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17476. $as_echo_n "checking for $ac_word... " >&6; }
  17477. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17478.   $as_echo_n "(cached) " >&6
  17479. else
  17480.   case $PKG_CONFIG in
  17481.   [\\/]* | ?:[\\/]*)
  17482.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17483.   ;;
  17484.   *)
  17485.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17486. for as_dir in $PATH
  17487. do
  17488.   IFS=$as_save_IFS
  17489.   test -z "$as_dir" && as_dir=.
  17490.     for ac_exec_ext in '' $ac_executable_extensions; do
  17491.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17492.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17493.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17494.     break 2
  17495.   fi
  17496. done
  17497.   done
  17498. IFS=$as_save_IFS
  17499.  
  17500.   ;;
  17501. esac
  17502. fi
  17503. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17504. if test -n "$PKG_CONFIG"; then
  17505.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17506. $as_echo "$PKG_CONFIG" >&6; }
  17507. else
  17508.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17509. $as_echo "no" >&6; }
  17510. fi
  17511.  
  17512.  
  17513. fi
  17514. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17515.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  17516.   # Extract the first word of "pkg-config", so it can be a program name with args.
  17517. set dummy pkg-config; ac_word=$2
  17518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17519. $as_echo_n "checking for $ac_word... " >&6; }
  17520. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  17521.   $as_echo_n "(cached) " >&6
  17522. else
  17523.   case $ac_pt_PKG_CONFIG in
  17524.   [\\/]* | ?:[\\/]*)
  17525.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17526.   ;;
  17527.   *)
  17528.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17529. for as_dir in $PATH
  17530. do
  17531.   IFS=$as_save_IFS
  17532.   test -z "$as_dir" && as_dir=.
  17533.     for ac_exec_ext in '' $ac_executable_extensions; do
  17534.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17535.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17536.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17537.     break 2
  17538.   fi
  17539. done
  17540.   done
  17541. IFS=$as_save_IFS
  17542.  
  17543.   ;;
  17544. esac
  17545. fi
  17546. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17547. if test -n "$ac_pt_PKG_CONFIG"; then
  17548.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17549. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  17550. else
  17551.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17552. $as_echo "no" >&6; }
  17553. fi
  17554.  
  17555.   if test "x$ac_pt_PKG_CONFIG" = x; then
  17556.     PKG_CONFIG=""
  17557.   else
  17558.     case $cross_compiling:$ac_tool_warned in
  17559. yes:)
  17560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17561. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17562. ac_tool_warned=yes ;;
  17563. esac
  17564.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  17565.   fi
  17566. else
  17567.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17568. fi
  17569.  
  17570. fi
  17571. if test -n "$PKG_CONFIG"; then
  17572.         _pkg_min_version=0.9.0
  17573.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  17574. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  17575.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  17576.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17577. $as_echo "yes" >&6; }
  17578.         else
  17579.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17580. $as_echo "no" >&6; }
  17581.                 PKG_CONFIG=""
  17582.         fi
  17583. fi
  17584.  
  17585.  
  17586. pkg_failed=no
  17587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5
  17588. $as_echo_n "checking for WAYLAND_SCANNER... " >&6; }
  17589.  
  17590. if test -n "$WAYLAND_SCANNER_CFLAGS"; then
  17591.     pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS"
  17592.  elif test -n "$PKG_CONFIG"; then
  17593.     if test -n "$PKG_CONFIG" && \
  17594.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
  17595.   ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
  17596.   ac_status=$?
  17597.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17598.   test $ac_status = 0; }; then
  17599.   pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null`
  17600.                       test "x$?" != "x0" && pkg_failed=yes
  17601. else
  17602.   pkg_failed=yes
  17603. fi
  17604.  else
  17605.     pkg_failed=untried
  17606. fi
  17607. if test -n "$WAYLAND_SCANNER_LIBS"; then
  17608.     pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS"
  17609.  elif test -n "$PKG_CONFIG"; then
  17610.     if test -n "$PKG_CONFIG" && \
  17611.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
  17612.   ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
  17613.   ac_status=$?
  17614.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17615.   test $ac_status = 0; }; then
  17616.   pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null`
  17617.                       test "x$?" != "x0" && pkg_failed=yes
  17618. else
  17619.   pkg_failed=yes
  17620. fi
  17621.  else
  17622.     pkg_failed=untried
  17623. fi
  17624.  
  17625.  
  17626.  
  17627. if test $pkg_failed = yes; then
  17628.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17629. $as_echo "no" >&6; }
  17630.  
  17631. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17632.         _pkg_short_errors_supported=yes
  17633. else
  17634.         _pkg_short_errors_supported=no
  17635. fi
  17636.         if test $_pkg_short_errors_supported = yes; then
  17637.                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1`
  17638.         else
  17639.                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1`
  17640.         fi
  17641.         # Put the nasty error message in config.log where it belongs
  17642.         echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5
  17643.  
  17644.         as_fn_error $? "Package requirements (wayland-scanner) were not met:
  17645.  
  17646. $WAYLAND_SCANNER_PKG_ERRORS
  17647.  
  17648. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  17649. installed software in a non-standard prefix.
  17650.  
  17651. Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
  17652. and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
  17653. See the pkg-config man page for more details." "$LINENO" 5
  17654. elif test $pkg_failed = untried; then
  17655.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17656. $as_echo "no" >&6; }
  17657.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17658. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17659. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  17660. is in your PATH or set the PKG_CONFIG environment variable to the full
  17661. path to pkg-config.
  17662.  
  17663. Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
  17664. and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
  17665. See the pkg-config man page for more details.
  17666.  
  17667. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  17668. See \`config.log' for more details" "$LINENO" 5; }
  17669. else
  17670.         WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS
  17671.         WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS
  17672.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17673. $as_echo "yes" >&6; }
  17674.  
  17675. fi
  17676.  
  17677.     wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17678.  
  17679.  
  17680.     wayland_scanner_rules=`$PKG_CONFIG --variable=pkgdatadir wayland-scanner`/wayland-scanner.mk
  17681.  
  17682.  
  17683.     wayland_protocoldir='$(top_srcdir)/va/wayland/protocol'
  17684.  
  17685.  
  17686.  
  17687. pkgconfigdir=${libdir}/pkgconfig
  17688.  
  17689.  
  17690. # Check for builds without backend
  17691. if test "$USE_DRM:$USE_X11:$USE_WAYLAND" = "no:no:no"; then
  17692.     as_fn_error $? "Please select at least one backend (DRM, X11, Wayland)" "$LINENO" 5
  17693. fi
  17694.  
  17695. # Define __vaDriverInit*() function name for dummy backend
  17696. VA_DRIVER_INIT_FUNC="__vaDriverInit_${VA_API_MAJOR_VERSION}_${VA_API_MINOR_VERSION}"
  17697.  
  17698. cat >>confdefs.h <<_ACEOF
  17699. #define VA_DRIVER_INIT_FUNC $VA_DRIVER_INIT_FUNC
  17700. _ACEOF
  17701.  
  17702.  
  17703. ac_config_files="$ac_config_files Makefile debian.upstream/Makefile debian.upstream/changelog debian.upstream/control debian.upstream/libva$LIBVA_MAJOR_VERSION.install:debian.upstream/libva.install.in debian.upstream/libva-drm$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-drm.install.in debian.upstream/libva-egl$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-egl.install.in debian.upstream/libva-glx$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-glx.install.in debian.upstream/libva-wayland$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-wayland.install.in debian.upstream/libva-x11-$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-x11.install.in doc/Makefile dummy_drv_video/Makefile pkgconfig/Makefile pkgconfig/libva-drm.pc pkgconfig/libva-egl.pc pkgconfig/libva-glx.pc pkgconfig/libva-tpi.pc pkgconfig/libva-wayland.pc pkgconfig/libva-x11.pc pkgconfig/libva.pc test/Makefile test/basic/Makefile test/common/Makefile test/decode/Makefile test/encode/Makefile test/putsurface/Makefile test/vainfo/Makefile va/Makefile va/drm/Makefile va/egl/Makefile va/glx/Makefile va/va_version.h va/wayland/Makefile va/wayland/protocol/Makefile va/x11/Makefile"
  17704.  
  17705. cat >confcache <<\_ACEOF
  17706. # This file is a shell script that caches the results of configure
  17707. # tests run on this system so they can be shared between configure
  17708. # scripts and configure runs, see configure's option --config-cache.
  17709. # It is not useful on other systems.  If it contains results you don't
  17710. # want to keep, you may remove or edit it.
  17711. #
  17712. # config.status only pays attention to the cache file if you give it
  17713. # the --recheck option to rerun configure.
  17714. #
  17715. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17716. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17717. # following values.
  17718.  
  17719. _ACEOF
  17720.  
  17721. # The following way of writing the cache mishandles newlines in values,
  17722. # but we know of no workaround that is simple, portable, and efficient.
  17723. # So, we kill variables containing newlines.
  17724. # Ultrix sh set writes to stderr and can't be redirected directly,
  17725. # and sets the high bit in the cache file unless we assign to the vars.
  17726. (
  17727.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17728.     eval ac_val=\$$ac_var
  17729.     case $ac_val in #(
  17730.     *${as_nl}*)
  17731.       case $ac_var in #(
  17732.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17733. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17734.       esac
  17735.       case $ac_var in #(
  17736.       _ | IFS | as_nl) ;; #(
  17737.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17738.       *) { eval $ac_var=; unset $ac_var;} ;;
  17739.       esac ;;
  17740.     esac
  17741.   done
  17742.  
  17743.   (set) 2>&1 |
  17744.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17745.     *${as_nl}ac_space=\ *)
  17746.       # `set' does not quote correctly, so add quotes: double-quote
  17747.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  17748.       sed -n \
  17749.         "s/'/'\\\\''/g;
  17750.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17751.       ;; #(
  17752.     *)
  17753.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  17754.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17755.       ;;
  17756.     esac |
  17757.     sort
  17758. ) |
  17759.   sed '
  17760.      /^ac_cv_env_/b end
  17761.      t clear
  17762.      :clear
  17763.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17764.      t end
  17765.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17766.      :end' >>confcache
  17767. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17768.   if test -w "$cache_file"; then
  17769.     if test "x$cache_file" != "x/dev/null"; then
  17770.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17771. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17772.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  17773.         cat confcache >"$cache_file"
  17774.       else
  17775.         case $cache_file in #(
  17776.         */* | ?:*)
  17777.           mv -f confcache "$cache_file"$$ &&
  17778.           mv -f "$cache_file"$$ "$cache_file" ;; #(
  17779.         *)
  17780.           mv -f confcache "$cache_file" ;;
  17781.         esac
  17782.       fi
  17783.     fi
  17784.   else
  17785.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17786. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17787.   fi
  17788. fi
  17789. rm -f confcache
  17790.  
  17791. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17792. # Let make expand exec_prefix.
  17793. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17794.  
  17795. DEFS=-DHAVE_CONFIG_H
  17796.  
  17797. ac_libobjs=
  17798. ac_ltlibobjs=
  17799. U=
  17800. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17801.   # 1. Remove the extension, and $U if already installed.
  17802.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17803.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17804.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  17805.   #    will be set to the directory where LIBOBJS objects are built.
  17806.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17807.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17808. done
  17809. LIBOBJS=$ac_libobjs
  17810.  
  17811. LTLIBOBJS=$ac_ltlibobjs
  17812.  
  17813.  
  17814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17815. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  17816.    if test -n "$am_sleep_pid"; then
  17817.      # Hide warnings about reused PIDs.
  17818.      wait $am_sleep_pid 2>/dev/null
  17819.    fi
  17820.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17821. $as_echo "done" >&6; }
  17822.  if test -n "$EXEEXT"; then
  17823.   am__EXEEXT_TRUE=
  17824.   am__EXEEXT_FALSE='#'
  17825. else
  17826.   am__EXEEXT_TRUE='#'
  17827.   am__EXEEXT_FALSE=
  17828. fi
  17829.  
  17830. if test -z "${BUILD_DUMMY_DRIVER_TRUE}" && test -z "${BUILD_DUMMY_DRIVER_FALSE}"; then
  17831.   as_fn_error $? "conditional \"BUILD_DUMMY_DRIVER\" was never defined.
  17832. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17833. fi
  17834. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17835.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  17836. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17837. fi
  17838. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17839.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17840. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17841. fi
  17842. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17843.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17844. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17845. fi
  17846. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17847.   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17848. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17849. fi
  17850. if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
  17851.   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
  17852. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17853. fi
  17854. if test -z "${USE_DRM_TRUE}" && test -z "${USE_DRM_FALSE}"; then
  17855.   as_fn_error $? "conditional \"USE_DRM\" was never defined.
  17856. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17857. fi
  17858. if test -z "${USE_X11_TRUE}" && test -z "${USE_X11_FALSE}"; then
  17859.   as_fn_error $? "conditional \"USE_X11\" was never defined.
  17860. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17861. fi
  17862. if test -z "${USE_GLX_TRUE}" && test -z "${USE_GLX_FALSE}"; then
  17863.   as_fn_error $? "conditional \"USE_GLX\" was never defined.
  17864. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17865. fi
  17866. if test -z "${USE_EGL_TRUE}" && test -z "${USE_EGL_FALSE}"; then
  17867.   as_fn_error $? "conditional \"USE_EGL\" was never defined.
  17868. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17869. fi
  17870. if test -z "${USE_WAYLAND_TRUE}" && test -z "${USE_WAYLAND_FALSE}"; then
  17871.   as_fn_error $? "conditional \"USE_WAYLAND\" was never defined.
  17872. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17873. fi
  17874.  
  17875. : "${CONFIG_STATUS=./config.status}"
  17876. ac_write_fail=0
  17877. ac_clean_files_save=$ac_clean_files
  17878. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17879. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17880. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17881. as_write_fail=0
  17882. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17883. #! $SHELL
  17884. # Generated by $as_me.
  17885. # Run this file to recreate the current configuration.
  17886. # Compiler output produced by configure, useful for debugging
  17887. # configure, is in config.log if it exists.
  17888.  
  17889. debug=false
  17890. ac_cs_recheck=false
  17891. ac_cs_silent=false
  17892.  
  17893. SHELL=\${CONFIG_SHELL-$SHELL}
  17894. export SHELL
  17895. _ASEOF
  17896. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17897. ## -------------------- ##
  17898. ## M4sh Initialization. ##
  17899. ## -------------------- ##
  17900.  
  17901. # Be more Bourne compatible
  17902. DUALCASE=1; export DUALCASE # for MKS sh
  17903. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17904.   emulate sh
  17905.   NULLCMD=:
  17906.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17907.   # is contrary to our usage.  Disable this feature.
  17908.   alias -g '${1+"$@"}'='"$@"'
  17909.   setopt NO_GLOB_SUBST
  17910. else
  17911.   case `(set -o) 2>/dev/null` in #(
  17912.   *posix*) :
  17913.     set -o posix ;; #(
  17914.   *) :
  17915.      ;;
  17916. esac
  17917. fi
  17918.  
  17919.  
  17920. as_nl='
  17921. '
  17922. export as_nl
  17923. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17924. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17925. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17926. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17927. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17928. # but without wasting forks for bash or zsh.
  17929. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17930.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17931.   as_echo='print -r --'
  17932.   as_echo_n='print -rn --'
  17933. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17934.   as_echo='printf %s\n'
  17935.   as_echo_n='printf %s'
  17936. else
  17937.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17938.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17939.     as_echo_n='/usr/ucb/echo -n'
  17940.   else
  17941.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17942.     as_echo_n_body='eval
  17943.       arg=$1;
  17944.       case $arg in #(
  17945.       *"$as_nl"*)
  17946.         expr "X$arg" : "X\\(.*\\)$as_nl";
  17947.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17948.       esac;
  17949.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17950.     '
  17951.     export as_echo_n_body
  17952.     as_echo_n='sh -c $as_echo_n_body as_echo'
  17953.   fi
  17954.   export as_echo_body
  17955.   as_echo='sh -c $as_echo_body as_echo'
  17956. fi
  17957.  
  17958. # The user is always right.
  17959. if test "${PATH_SEPARATOR+set}" != set; then
  17960.   PATH_SEPARATOR=:
  17961.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17962.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17963.       PATH_SEPARATOR=';'
  17964.   }
  17965. fi
  17966.  
  17967.  
  17968. # IFS
  17969. # We need space, tab and new line, in precisely that order.  Quoting is
  17970. # there to prevent editors from complaining about space-tab.
  17971. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17972. # splitting by setting IFS to empty value.)
  17973. IFS=" ""        $as_nl"
  17974.  
  17975. # Find who we are.  Look in the path if we contain no directory separator.
  17976. as_myself=
  17977. case $0 in #((
  17978.   *[\\/]* ) as_myself=$0 ;;
  17979.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17980. for as_dir in $PATH
  17981. do
  17982.   IFS=$as_save_IFS
  17983.   test -z "$as_dir" && as_dir=.
  17984.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17985.   done
  17986. IFS=$as_save_IFS
  17987.  
  17988.      ;;
  17989. esac
  17990. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17991. # in which case we are not to be found in the path.
  17992. if test "x$as_myself" = x; then
  17993.   as_myself=$0
  17994. fi
  17995. if test ! -f "$as_myself"; then
  17996.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17997.   exit 1
  17998. fi
  17999.  
  18000. # Unset variables that we do not need and which cause bugs (e.g. in
  18001. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  18002. # suppresses any "Segmentation fault" message there.  '((' could
  18003. # trigger a bug in pdksh 5.2.14.
  18004. for as_var in BASH_ENV ENV MAIL MAILPATH
  18005. do eval test x\${$as_var+set} = xset \
  18006.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18007. done
  18008. PS1='$ '
  18009. PS2='> '
  18010. PS4='+ '
  18011.  
  18012. # NLS nuisances.
  18013. LC_ALL=C
  18014. export LC_ALL
  18015. LANGUAGE=C
  18016. export LANGUAGE
  18017.  
  18018. # CDPATH.
  18019. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18020.  
  18021.  
  18022. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18023. # ----------------------------------------
  18024. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18025. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18026. # script with STATUS, using 1 if that was 0.
  18027. as_fn_error ()
  18028. {
  18029.   as_status=$1; test $as_status -eq 0 && as_status=1
  18030.   if test "$4"; then
  18031.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18032.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18033.   fi
  18034.   $as_echo "$as_me: error: $2" >&2
  18035.   as_fn_exit $as_status
  18036. } # as_fn_error
  18037.  
  18038.  
  18039. # as_fn_set_status STATUS
  18040. # -----------------------
  18041. # Set $? to STATUS, without forking.
  18042. as_fn_set_status ()
  18043. {
  18044.   return $1
  18045. } # as_fn_set_status
  18046.  
  18047. # as_fn_exit STATUS
  18048. # -----------------
  18049. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18050. as_fn_exit ()
  18051. {
  18052.   set +e
  18053.   as_fn_set_status $1
  18054.   exit $1
  18055. } # as_fn_exit
  18056.  
  18057. # as_fn_unset VAR
  18058. # ---------------
  18059. # Portably unset VAR.
  18060. as_fn_unset ()
  18061. {
  18062.   { eval $1=; unset $1;}
  18063. }
  18064. as_unset=as_fn_unset
  18065. # as_fn_append VAR VALUE
  18066. # ----------------------
  18067. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18068. # advantage of any shell optimizations that allow amortized linear growth over
  18069. # repeated appends, instead of the typical quadratic growth present in naive
  18070. # implementations.
  18071. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18072.   eval 'as_fn_append ()
  18073.   {
  18074.     eval $1+=\$2
  18075.   }'
  18076. else
  18077.   as_fn_append ()
  18078.   {
  18079.     eval $1=\$$1\$2
  18080.   }
  18081. fi # as_fn_append
  18082.  
  18083. # as_fn_arith ARG...
  18084. # ------------------
  18085. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18086. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18087. # must be portable across $(()) and expr.
  18088. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18089.   eval 'as_fn_arith ()
  18090.   {
  18091.     as_val=$(( $* ))
  18092.   }'
  18093. else
  18094.   as_fn_arith ()
  18095.   {
  18096.     as_val=`expr "$@" || test $? -eq 1`
  18097.   }
  18098. fi # as_fn_arith
  18099.  
  18100.  
  18101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18102.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18103.   as_expr=expr
  18104. else
  18105.   as_expr=false
  18106. fi
  18107.  
  18108. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18109.   as_basename=basename
  18110. else
  18111.   as_basename=false
  18112. fi
  18113.  
  18114. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18115.   as_dirname=dirname
  18116. else
  18117.   as_dirname=false
  18118. fi
  18119.  
  18120. as_me=`$as_basename -- "$0" ||
  18121. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18122.          X"$0" : 'X\(//\)$' \| \
  18123.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18124. $as_echo X/"$0" |
  18125.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  18126.             s//\1/
  18127.             q
  18128.           }
  18129.           /^X\/\(\/\/\)$/{
  18130.             s//\1/
  18131.             q
  18132.           }
  18133.           /^X\/\(\/\).*/{
  18134.             s//\1/
  18135.             q
  18136.           }
  18137.           s/.*/./; q'`
  18138.  
  18139. # Avoid depending upon Character Ranges.
  18140. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18141. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18142. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18143. as_cr_digits='0123456789'
  18144. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18145.  
  18146. ECHO_C= ECHO_N= ECHO_T=
  18147. case `echo -n x` in #(((((
  18148. -n*)
  18149.   case `echo 'xy\c'` in
  18150.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  18151.   xy)  ECHO_C='\c';;
  18152.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18153.        ECHO_T=' ';;
  18154.   esac;;
  18155. *)
  18156.   ECHO_N='-n';;
  18157. esac
  18158.  
  18159. rm -f conf$$ conf$$.exe conf$$.file
  18160. if test -d conf$$.dir; then
  18161.   rm -f conf$$.dir/conf$$.file
  18162. else
  18163.   rm -f conf$$.dir
  18164.   mkdir conf$$.dir 2>/dev/null
  18165. fi
  18166. if (echo >conf$$.file) 2>/dev/null; then
  18167.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  18168.     as_ln_s='ln -s'
  18169.     # ... but there are two gotchas:
  18170.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18171.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18172.     # In both cases, we have to default to `cp -pR'.
  18173.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18174.       as_ln_s='cp -pR'
  18175.   elif ln conf$$.file conf$$ 2>/dev/null; then
  18176.     as_ln_s=ln
  18177.   else
  18178.     as_ln_s='cp -pR'
  18179.   fi
  18180. else
  18181.   as_ln_s='cp -pR'
  18182. fi
  18183. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18184. rmdir conf$$.dir 2>/dev/null
  18185.  
  18186.  
  18187. # as_fn_mkdir_p
  18188. # -------------
  18189. # Create "$as_dir" as a directory, including parents if necessary.
  18190. as_fn_mkdir_p ()
  18191. {
  18192.  
  18193.   case $as_dir in #(
  18194.   -*) as_dir=./$as_dir;;
  18195.   esac
  18196.   test -d "$as_dir" || eval $as_mkdir_p || {
  18197.     as_dirs=
  18198.     while :; do
  18199.       case $as_dir in #(
  18200.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18201.       *) as_qdir=$as_dir;;
  18202.       esac
  18203.       as_dirs="'$as_qdir' $as_dirs"
  18204.       as_dir=`$as_dirname -- "$as_dir" ||
  18205. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18206.          X"$as_dir" : 'X\(//\)[^/]' \| \
  18207.          X"$as_dir" : 'X\(//\)$' \| \
  18208.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18209. $as_echo X"$as_dir" |
  18210.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18211.             s//\1/
  18212.             q
  18213.           }
  18214.           /^X\(\/\/\)[^/].*/{
  18215.             s//\1/
  18216.             q
  18217.           }
  18218.           /^X\(\/\/\)$/{
  18219.             s//\1/
  18220.             q
  18221.           }
  18222.           /^X\(\/\).*/{
  18223.             s//\1/
  18224.             q
  18225.           }
  18226.           s/.*/./; q'`
  18227.       test -d "$as_dir" && break
  18228.     done
  18229.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  18230.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18231.  
  18232.  
  18233. } # as_fn_mkdir_p
  18234. if mkdir -p . 2>/dev/null; then
  18235.   as_mkdir_p='mkdir -p "$as_dir"'
  18236. else
  18237.   test -d ./-p && rmdir ./-p
  18238.   as_mkdir_p=false
  18239. fi
  18240.  
  18241.  
  18242. # as_fn_executable_p FILE
  18243. # -----------------------
  18244. # Test if FILE is an executable regular file.
  18245. as_fn_executable_p ()
  18246. {
  18247.   test -f "$1" && test -x "$1"
  18248. } # as_fn_executable_p
  18249. as_test_x='test -x'
  18250. as_executable_p=as_fn_executable_p
  18251.  
  18252. # Sed expression to map a string onto a valid CPP name.
  18253. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18254.  
  18255. # Sed expression to map a string onto a valid variable name.
  18256. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18257.  
  18258.  
  18259. exec 6>&1
  18260. ## ----------------------------------- ##
  18261. ## Main body of $CONFIG_STATUS script. ##
  18262. ## ----------------------------------- ##
  18263. _ASEOF
  18264. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18265.  
  18266. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18267. # Save the log message, to keep $0 and so on meaningful, and to
  18268. # report actual input values of CONFIG_FILES etc. instead of their
  18269. # values after options handling.
  18270. ac_log="
  18271. This file was extended by libva $as_me 1.4.1, which was
  18272. generated by GNU Autoconf 2.69.  Invocation command line was
  18273.  
  18274.   CONFIG_FILES    = $CONFIG_FILES
  18275.   CONFIG_HEADERS  = $CONFIG_HEADERS
  18276.   CONFIG_LINKS    = $CONFIG_LINKS
  18277.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  18278.   $ $0 $@
  18279.  
  18280. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18281. "
  18282.  
  18283. _ACEOF
  18284.  
  18285. case $ac_config_files in *"
  18286. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18287. esac
  18288.  
  18289. case $ac_config_headers in *"
  18290. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18291. esac
  18292.  
  18293.  
  18294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18295. # Files that config.status was made for.
  18296. config_files="$ac_config_files"
  18297. config_headers="$ac_config_headers"
  18298. config_commands="$ac_config_commands"
  18299.  
  18300. _ACEOF
  18301.  
  18302. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18303. ac_cs_usage="\
  18304. \`$as_me' instantiates files and other configuration actions
  18305. from templates according to the current configuration.  Unless the files
  18306. and actions are specified as TAGs, all are instantiated by default.
  18307.  
  18308. Usage: $0 [OPTION]... [TAG]...
  18309.  
  18310.   -h, --help       print this help, then exit
  18311.   -V, --version    print version number and configuration settings, then exit
  18312.       --config     print configuration, then exit
  18313.   -q, --quiet, --silent
  18314.                    do not print progress messages
  18315.   -d, --debug      don't remove temporary files
  18316.       --recheck    update $as_me by reconfiguring in the same conditions
  18317.       --file=FILE[:TEMPLATE]
  18318.                    instantiate the configuration file FILE
  18319.       --header=FILE[:TEMPLATE]
  18320.                    instantiate the configuration header FILE
  18321.  
  18322. Configuration files:
  18323. $config_files
  18324.  
  18325. Configuration headers:
  18326. $config_headers
  18327.  
  18328. Configuration commands:
  18329. $config_commands
  18330.  
  18331. Report bugs to <waldo.bastian@intel.com>."
  18332.  
  18333. _ACEOF
  18334. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18335. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18336. ac_cs_version="\\
  18337. libva config.status 1.4.1
  18338. configured by $0, generated by GNU Autoconf 2.69,
  18339.   with options \\"\$ac_cs_config\\"
  18340.  
  18341. Copyright (C) 2012 Free Software Foundation, Inc.
  18342. This config.status script is free software; the Free Software Foundation
  18343. gives unlimited permission to copy, distribute and modify it."
  18344.  
  18345. ac_pwd='$ac_pwd'
  18346. srcdir='$srcdir'
  18347. INSTALL='$INSTALL'
  18348. MKDIR_P='$MKDIR_P'
  18349. AWK='$AWK'
  18350. test -n "\$AWK" || AWK=awk
  18351. _ACEOF
  18352.  
  18353. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18354. # The default lists apply if the user does not specify any file.
  18355. ac_need_defaults=:
  18356. while test $# != 0
  18357. do
  18358.   case $1 in
  18359.   --*=?*)
  18360.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18361.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18362.     ac_shift=:
  18363.     ;;
  18364.   --*=)
  18365.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18366.     ac_optarg=
  18367.     ac_shift=:
  18368.     ;;
  18369.   *)
  18370.     ac_option=$1
  18371.     ac_optarg=$2
  18372.     ac_shift=shift
  18373.     ;;
  18374.   esac
  18375.  
  18376.   case $ac_option in
  18377.   # Handling of the options.
  18378.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18379.     ac_cs_recheck=: ;;
  18380.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18381.     $as_echo "$ac_cs_version"; exit ;;
  18382.   --config | --confi | --conf | --con | --co | --c )
  18383.     $as_echo "$ac_cs_config"; exit ;;
  18384.   --debug | --debu | --deb | --de | --d | -d )
  18385.     debug=: ;;
  18386.   --file | --fil | --fi | --f )
  18387.     $ac_shift
  18388.     case $ac_optarg in
  18389.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18390.     '') as_fn_error $? "missing file argument" ;;
  18391.     esac
  18392.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  18393.     ac_need_defaults=false;;
  18394.   --header | --heade | --head | --hea )
  18395.     $ac_shift
  18396.     case $ac_optarg in
  18397.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18398.     esac
  18399.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18400.     ac_need_defaults=false;;
  18401.   --he | --h)
  18402.     # Conflict between --help and --header
  18403.     as_fn_error $? "ambiguous option: \`$1'
  18404. Try \`$0 --help' for more information.";;
  18405.   --help | --hel | -h )
  18406.     $as_echo "$ac_cs_usage"; exit ;;
  18407.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18408.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18409.     ac_cs_silent=: ;;
  18410.  
  18411.   # This is an error.
  18412.   -*) as_fn_error $? "unrecognized option: \`$1'
  18413. Try \`$0 --help' for more information." ;;
  18414.  
  18415.   *) as_fn_append ac_config_targets " $1"
  18416.      ac_need_defaults=false ;;
  18417.  
  18418.   esac
  18419.   shift
  18420. done
  18421.  
  18422. ac_configure_extra_args=
  18423.  
  18424. if $ac_cs_silent; then
  18425.   exec 6>/dev/null
  18426.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  18427. fi
  18428.  
  18429. _ACEOF
  18430. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18431. if \$ac_cs_recheck; then
  18432.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18433.   shift
  18434.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18435.   CONFIG_SHELL='$SHELL'
  18436.   export CONFIG_SHELL
  18437.   exec "\$@"
  18438. fi
  18439.  
  18440. _ACEOF
  18441. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18442. exec 5>>config.log
  18443. {
  18444.   echo
  18445.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18446. ## Running $as_me. ##
  18447. _ASBOX
  18448.   $as_echo "$ac_log"
  18449. } >&5
  18450.  
  18451. _ACEOF
  18452. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18453. #
  18454. # INIT-COMMANDS
  18455. #
  18456. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18457.  
  18458.  
  18459. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18460. # if CDPATH is set.
  18461. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18462.  
  18463. sed_quote_subst='$sed_quote_subst'
  18464. double_quote_subst='$double_quote_subst'
  18465. delay_variable_subst='$delay_variable_subst'
  18466. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18467. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18468. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18469. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18470. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18471. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18472. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18473. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18474. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18475. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18476. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18477. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18478. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18479. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18480. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18481. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18482. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18483. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18484. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18485. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18486. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18487. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18488. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18489. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18490. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18491. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18492. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18493. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18494. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18495. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18496. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18497. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18498. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18499. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18500. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18501. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18502. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18503. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18504. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18505. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18506. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18507. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18508. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18509. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18510. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18511. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18512. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18513. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18514. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18515. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18516. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18517. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18518. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18519. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18520. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18521. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18522. 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"`'
  18523. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18524. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18525. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18526. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18527. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18528. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18529. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18530. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18531. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18532. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18533. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18534. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18535. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18536. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18537. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18538. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18539. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18540. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18541. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18542. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18543. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18544. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18545. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18546. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18547. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18548. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18549. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18550. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18551. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18552. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18553. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18554. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18555. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18556. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18557. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18558. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18559. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18560. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18561. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18562. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18563. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18564. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18565. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18566. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18567. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18568. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18569. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18570. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18571. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18572. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18573. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18574. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18575. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18576. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18577. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18578. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18579. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18580. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18581. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18582. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18583. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18584. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18585. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18586. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18587. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18588. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18589. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  18590. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18591. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18592. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18593. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18594. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18595. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18596. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18597. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18598. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18599. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18600. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18601. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18602. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18603. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18604. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18605. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18606. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18607. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18608. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18609. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18610. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18611. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18612. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18613. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18614. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18615. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18616. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18617. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18618. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18619. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18620. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18621. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18622. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18623. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18624. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18625. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18626. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18627. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18628. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18629. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18630. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18631. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18632. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18633. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18634. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18635. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18636. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18637. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18638. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18639. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18640. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18641. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18642. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18643. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18644. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18645. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18646. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18647. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18648. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18649. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18650.  
  18651. LTCC='$LTCC'
  18652. LTCFLAGS='$LTCFLAGS'
  18653. compiler='$compiler_DEFAULT'
  18654.  
  18655. # A function that is used when there is no print builtin or printf.
  18656. func_fallback_echo ()
  18657. {
  18658.   eval 'cat <<_LTECHO_EOF
  18659. \$1
  18660. _LTECHO_EOF'
  18661. }
  18662.  
  18663. # Quote evaled strings.
  18664. for var in SHELL \
  18665. ECHO \
  18666. PATH_SEPARATOR \
  18667. SED \
  18668. GREP \
  18669. EGREP \
  18670. FGREP \
  18671. LD \
  18672. NM \
  18673. LN_S \
  18674. lt_SP2NL \
  18675. lt_NL2SP \
  18676. reload_flag \
  18677. OBJDUMP \
  18678. deplibs_check_method \
  18679. file_magic_cmd \
  18680. file_magic_glob \
  18681. want_nocaseglob \
  18682. DLLTOOL \
  18683. sharedlib_from_linklib_cmd \
  18684. AR \
  18685. AR_FLAGS \
  18686. archiver_list_spec \
  18687. STRIP \
  18688. RANLIB \
  18689. CC \
  18690. CFLAGS \
  18691. compiler \
  18692. lt_cv_sys_global_symbol_pipe \
  18693. lt_cv_sys_global_symbol_to_cdecl \
  18694. lt_cv_sys_global_symbol_to_c_name_address \
  18695. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18696. nm_file_list_spec \
  18697. lt_prog_compiler_no_builtin_flag \
  18698. lt_prog_compiler_pic \
  18699. lt_prog_compiler_wl \
  18700. lt_prog_compiler_static \
  18701. lt_cv_prog_compiler_c_o \
  18702. need_locks \
  18703. MANIFEST_TOOL \
  18704. DSYMUTIL \
  18705. NMEDIT \
  18706. LIPO \
  18707. OTOOL \
  18708. OTOOL64 \
  18709. shrext_cmds \
  18710. export_dynamic_flag_spec \
  18711. whole_archive_flag_spec \
  18712. compiler_needs_object \
  18713. with_gnu_ld \
  18714. allow_undefined_flag \
  18715. no_undefined_flag \
  18716. hardcode_libdir_flag_spec \
  18717. hardcode_libdir_separator \
  18718. exclude_expsyms \
  18719. include_expsyms \
  18720. file_list_spec \
  18721. variables_saved_for_relink \
  18722. libname_spec \
  18723. library_names_spec \
  18724. soname_spec \
  18725. install_override_mode \
  18726. finish_eval \
  18727. old_striplib \
  18728. striplib \
  18729. compiler_lib_search_dirs \
  18730. predep_objects \
  18731. postdep_objects \
  18732. predeps \
  18733. postdeps \
  18734. compiler_lib_search_path \
  18735. LD_CXX \
  18736. reload_flag_CXX \
  18737. compiler_CXX \
  18738. lt_prog_compiler_no_builtin_flag_CXX \
  18739. lt_prog_compiler_pic_CXX \
  18740. lt_prog_compiler_wl_CXX \
  18741. lt_prog_compiler_static_CXX \
  18742. lt_cv_prog_compiler_c_o_CXX \
  18743. export_dynamic_flag_spec_CXX \
  18744. whole_archive_flag_spec_CXX \
  18745. compiler_needs_object_CXX \
  18746. with_gnu_ld_CXX \
  18747. allow_undefined_flag_CXX \
  18748. no_undefined_flag_CXX \
  18749. hardcode_libdir_flag_spec_CXX \
  18750. hardcode_libdir_separator_CXX \
  18751. exclude_expsyms_CXX \
  18752. include_expsyms_CXX \
  18753. file_list_spec_CXX \
  18754. compiler_lib_search_dirs_CXX \
  18755. predep_objects_CXX \
  18756. postdep_objects_CXX \
  18757. predeps_CXX \
  18758. postdeps_CXX \
  18759. compiler_lib_search_path_CXX; do
  18760.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18761.     *[\\\\\\\`\\"\\\$]*)
  18762.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  18763.       ;;
  18764.     *)
  18765.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18766.       ;;
  18767.     esac
  18768. done
  18769.  
  18770. # Double-quote double-evaled strings.
  18771. for var in reload_cmds \
  18772. old_postinstall_cmds \
  18773. old_postuninstall_cmds \
  18774. old_archive_cmds \
  18775. extract_expsyms_cmds \
  18776. old_archive_from_new_cmds \
  18777. old_archive_from_expsyms_cmds \
  18778. archive_cmds \
  18779. archive_expsym_cmds \
  18780. module_cmds \
  18781. module_expsym_cmds \
  18782. export_symbols_cmds \
  18783. prelink_cmds \
  18784. postlink_cmds \
  18785. postinstall_cmds \
  18786. postuninstall_cmds \
  18787. finish_cmds \
  18788. sys_lib_search_path_spec \
  18789. sys_lib_dlsearch_path_spec \
  18790. reload_cmds_CXX \
  18791. old_archive_cmds_CXX \
  18792. old_archive_from_new_cmds_CXX \
  18793. old_archive_from_expsyms_cmds_CXX \
  18794. archive_cmds_CXX \
  18795. archive_expsym_cmds_CXX \
  18796. module_cmds_CXX \
  18797. module_expsym_cmds_CXX \
  18798. export_symbols_cmds_CXX \
  18799. prelink_cmds_CXX \
  18800. postlink_cmds_CXX; do
  18801.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18802.     *[\\\\\\\`\\"\\\$]*)
  18803.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  18804.       ;;
  18805.     *)
  18806.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18807.       ;;
  18808.     esac
  18809. done
  18810.  
  18811. ac_aux_dir='$ac_aux_dir'
  18812. xsi_shell='$xsi_shell'
  18813. lt_shell_append='$lt_shell_append'
  18814.  
  18815. # See if we are running on zsh, and set the options which allow our
  18816. # commands through without removal of \ escapes INIT.
  18817. if test -n "\${ZSH_VERSION+set}" ; then
  18818.    setopt NO_GLOB_SUBST
  18819. fi
  18820.  
  18821.  
  18822.     PACKAGE='$PACKAGE'
  18823.     VERSION='$VERSION'
  18824.     TIMESTAMP='$TIMESTAMP'
  18825.     RM='$RM'
  18826.     ofile='$ofile'
  18827.  
  18828.  
  18829.  
  18830.  
  18831.  
  18832.  
  18833. _ACEOF
  18834.  
  18835. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18836.  
  18837. # Handling of arguments.
  18838. for ac_config_target in $ac_config_targets
  18839. do
  18840.   case $ac_config_target in
  18841.     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  18842.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18843.     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18844.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18845.     "debian.upstream/Makefile") CONFIG_FILES="$CONFIG_FILES debian.upstream/Makefile" ;;
  18846.     "debian.upstream/changelog") CONFIG_FILES="$CONFIG_FILES debian.upstream/changelog" ;;
  18847.     "debian.upstream/control") CONFIG_FILES="$CONFIG_FILES debian.upstream/control" ;;
  18848.     "debian.upstream/libva$LIBVA_MAJOR_VERSION.install") CONFIG_FILES="$CONFIG_FILES debian.upstream/libva$LIBVA_MAJOR_VERSION.install:debian.upstream/libva.install.in" ;;
  18849.     "debian.upstream/libva-drm$LIBVA_MAJOR_VERSION.install") CONFIG_FILES="$CONFIG_FILES debian.upstream/libva-drm$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-drm.install.in" ;;
  18850.     "debian.upstream/libva-egl$LIBVA_MAJOR_VERSION.install") CONFIG_FILES="$CONFIG_FILES debian.upstream/libva-egl$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-egl.install.in" ;;
  18851.     "debian.upstream/libva-glx$LIBVA_MAJOR_VERSION.install") CONFIG_FILES="$CONFIG_FILES debian.upstream/libva-glx$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-glx.install.in" ;;
  18852.     "debian.upstream/libva-wayland$LIBVA_MAJOR_VERSION.install") CONFIG_FILES="$CONFIG_FILES debian.upstream/libva-wayland$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-wayland.install.in" ;;
  18853.     "debian.upstream/libva-x11-$LIBVA_MAJOR_VERSION.install") CONFIG_FILES="$CONFIG_FILES debian.upstream/libva-x11-$LIBVA_MAJOR_VERSION.install:debian.upstream/libva-x11.install.in" ;;
  18854.     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  18855.     "dummy_drv_video/Makefile") CONFIG_FILES="$CONFIG_FILES dummy_drv_video/Makefile" ;;
  18856.     "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
  18857.     "pkgconfig/libva-drm.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-drm.pc" ;;
  18858.     "pkgconfig/libva-egl.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-egl.pc" ;;
  18859.     "pkgconfig/libva-glx.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-glx.pc" ;;
  18860.     "pkgconfig/libva-tpi.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-tpi.pc" ;;
  18861.     "pkgconfig/libva-wayland.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-wayland.pc" ;;
  18862.     "pkgconfig/libva-x11.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-x11.pc" ;;
  18863.     "pkgconfig/libva.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva.pc" ;;
  18864.     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  18865.     "test/basic/Makefile") CONFIG_FILES="$CONFIG_FILES test/basic/Makefile" ;;
  18866.     "test/common/Makefile") CONFIG_FILES="$CONFIG_FILES test/common/Makefile" ;;
  18867.     "test/decode/Makefile") CONFIG_FILES="$CONFIG_FILES test/decode/Makefile" ;;
  18868.     "test/encode/Makefile") CONFIG_FILES="$CONFIG_FILES test/encode/Makefile" ;;
  18869.     "test/putsurface/Makefile") CONFIG_FILES="$CONFIG_FILES test/putsurface/Makefile" ;;
  18870.     "test/vainfo/Makefile") CONFIG_FILES="$CONFIG_FILES test/vainfo/Makefile" ;;
  18871.     "va/Makefile") CONFIG_FILES="$CONFIG_FILES va/Makefile" ;;
  18872.     "va/drm/Makefile") CONFIG_FILES="$CONFIG_FILES va/drm/Makefile" ;;
  18873.     "va/egl/Makefile") CONFIG_FILES="$CONFIG_FILES va/egl/Makefile" ;;
  18874.     "va/glx/Makefile") CONFIG_FILES="$CONFIG_FILES va/glx/Makefile" ;;
  18875.     "va/va_version.h") CONFIG_FILES="$CONFIG_FILES va/va_version.h" ;;
  18876.     "va/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES va/wayland/Makefile" ;;
  18877.     "va/wayland/protocol/Makefile") CONFIG_FILES="$CONFIG_FILES va/wayland/protocol/Makefile" ;;
  18878.     "va/x11/Makefile") CONFIG_FILES="$CONFIG_FILES va/x11/Makefile" ;;
  18879.  
  18880.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18881.   esac
  18882. done
  18883.  
  18884.  
  18885. # If the user did not use the arguments to specify the items to instantiate,
  18886. # then the envvar interface is used.  Set only those that are not.
  18887. # We use the long form for the default assignment because of an extremely
  18888. # bizarre bug on SunOS 4.1.3.
  18889. if $ac_need_defaults; then
  18890.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18891.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18892.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18893. fi
  18894.  
  18895. # Have a temporary directory for convenience.  Make it in the build tree
  18896. # simply because there is no reason against having it here, and in addition,
  18897. # creating and moving files from /tmp can sometimes cause problems.
  18898. # Hook for its removal unless debugging.
  18899. # Note that there is a small window in which the directory will not be cleaned:
  18900. # after its creation but before its name has been assigned to `$tmp'.
  18901. $debug ||
  18902. {
  18903.   tmp= ac_tmp=
  18904.   trap 'exit_status=$?
  18905.   : "${ac_tmp:=$tmp}"
  18906.   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18907. ' 0
  18908.   trap 'as_fn_exit 1' 1 2 13 15
  18909. }
  18910. # Create a (secure) tmp directory for tmp files.
  18911.  
  18912. {
  18913.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18914.   test -d "$tmp"
  18915. }  ||
  18916. {
  18917.   tmp=./conf$$-$RANDOM
  18918.   (umask 077 && mkdir "$tmp")
  18919. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18920. ac_tmp=$tmp
  18921.  
  18922. # Set up the scripts for CONFIG_FILES section.
  18923. # No need to generate them if there are no CONFIG_FILES.
  18924. # This happens for instance with `./config.status config.h'.
  18925. if test -n "$CONFIG_FILES"; then
  18926.  
  18927. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  18928.   ac_cs_awk_getline=:
  18929.   ac_cs_awk_pipe_init=
  18930.   ac_cs_awk_read_file='
  18931.       while ((getline aline < (F[key])) > 0)
  18932.         print(aline)
  18933.       close(F[key])'
  18934.   ac_cs_awk_pipe_fini=
  18935. else
  18936.   ac_cs_awk_getline=false
  18937.   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  18938.   ac_cs_awk_read_file='
  18939.       print "|#_!!_#|"
  18940.       print "cat " F[key] " &&"
  18941.       '$ac_cs_awk_pipe_init
  18942.   # The final `:' finishes the AND list.
  18943.   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  18944. fi
  18945. ac_cr=`echo X | tr X '\015'`
  18946. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18947. # But we know of no other shell where ac_cr would be empty at this
  18948. # point, so we can use a bashism as a fallback.
  18949. if test "x$ac_cr" = x; then
  18950.   eval ac_cr=\$\'\\r\'
  18951. fi
  18952. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18953. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18954.   ac_cs_awk_cr='\\r'
  18955. else
  18956.   ac_cs_awk_cr=$ac_cr
  18957. fi
  18958.  
  18959. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18960. _ACEOF
  18961.  
  18962. # Create commands to substitute file output variables.
  18963. {
  18964.   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  18965.   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  18966.   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  18967.   echo "_ACAWK" &&
  18968.   echo "_ACEOF"
  18969. } >conf$$files.sh &&
  18970. . ./conf$$files.sh ||
  18971.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18972. rm -f conf$$files.sh
  18973.  
  18974. {
  18975.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  18976.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18977.   echo "_ACEOF"
  18978. } >conf$$subs.sh ||
  18979.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18980. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18981. ac_delim='%!_!# '
  18982. for ac_last_try in false false false false false :; do
  18983.   . ./conf$$subs.sh ||
  18984.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18985.  
  18986.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18987.   if test $ac_delim_n = $ac_delim_num; then
  18988.     break
  18989.   elif $ac_last_try; then
  18990.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18991.   else
  18992.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18993.   fi
  18994. done
  18995. rm -f conf$$subs.sh
  18996.  
  18997. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18998. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18999. _ACEOF
  19000. sed -n '
  19001. h
  19002. s/^/S["/; s/!.*/"]=/
  19003. p
  19004. g
  19005. s/^[^!]*!//
  19006. :repl
  19007. t repl
  19008. s/'"$ac_delim"'$//
  19009. t delim
  19010. :nl
  19011. h
  19012. s/\(.\{148\}\)..*/\1/
  19013. t more1
  19014. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19015. p
  19016. n
  19017. b repl
  19018. :more1
  19019. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19020. p
  19021. g
  19022. s/.\{148\}//
  19023. t nl
  19024. :delim
  19025. h
  19026. s/\(.\{148\}\)..*/\1/
  19027. t more2
  19028. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19029. p
  19030. b
  19031. :more2
  19032. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19033. p
  19034. g
  19035. s/.\{148\}//
  19036. t delim
  19037. ' <conf$$subs.awk | sed '
  19038. /^[^""]/{
  19039.   N
  19040.   s/\n//
  19041. }
  19042. ' >>$CONFIG_STATUS || ac_write_fail=1
  19043. rm -f conf$$subs.awk
  19044. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19045. _ACAWK
  19046. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19047.   for (key in S) S_is_set[key] = 1
  19048.   FS = ""
  19049.   \$ac_cs_awk_pipe_init
  19050. }
  19051. {
  19052.   line = $ 0
  19053.   nfields = split(line, field, "@")
  19054.   substed = 0
  19055.   len = length(field[1])
  19056.   for (i = 2; i < nfields; i++) {
  19057.     key = field[i]
  19058.     keylen = length(key)
  19059.     if (S_is_set[key]) {
  19060.       value = S[key]
  19061.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19062.       len += length(value) + length(field[++i])
  19063.       substed = 1
  19064.     } else
  19065.       len += 1 + keylen
  19066.   }
  19067.   if (nfields == 3 && !substed) {
  19068.     key = field[2]
  19069.     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
  19070.       \$ac_cs_awk_read_file
  19071.       next
  19072.     }
  19073.   }
  19074.   print line
  19075. }
  19076. \$ac_cs_awk_pipe_fini
  19077. _ACAWK
  19078. _ACEOF
  19079. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19080. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19081.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19082. else
  19083.   cat
  19084. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19085.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19086. _ACEOF
  19087.  
  19088. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19089. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19090. # trailing colons and then remove the whole line if VPATH becomes empty
  19091. # (actually we leave an empty line to preserve line numbers).
  19092. if test "x$srcdir" = x.; then
  19093.   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
  19094. h
  19095. s///
  19096. s/^/:/
  19097. s/[      ]*$/:/
  19098. s/:\$(srcdir):/:/g
  19099. s/:\${srcdir}:/:/g
  19100. s/:@srcdir@:/:/g
  19101. s/^:*//
  19102. s/:*$//
  19103. x
  19104. s/\(=[   ]*\).*/\1/
  19105. G
  19106. s/\n//
  19107. s/^[^=]*=[       ]*$//
  19108. }'
  19109. fi
  19110.  
  19111. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19112. fi # test -n "$CONFIG_FILES"
  19113.  
  19114. # Set up the scripts for CONFIG_HEADERS section.
  19115. # No need to generate them if there are no CONFIG_HEADERS.
  19116. # This happens for instance with `./config.status Makefile'.
  19117. if test -n "$CONFIG_HEADERS"; then
  19118. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19119. BEGIN {
  19120. _ACEOF
  19121.  
  19122. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19123. # here-document in config.status, that substitutes the proper values into
  19124. # config.h.in to produce config.h.
  19125.  
  19126. # Create a delimiter string that does not exist in confdefs.h, to ease
  19127. # handling of long lines.
  19128. ac_delim='%!_!# '
  19129. for ac_last_try in false false :; do
  19130.   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19131.   if test -z "$ac_tt"; then
  19132.     break
  19133.   elif $ac_last_try; then
  19134.     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19135.   else
  19136.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19137.   fi
  19138. done
  19139.  
  19140. # For the awk script, D is an array of macro values keyed by name,
  19141. # likewise P contains macro parameters if any.  Preserve backslash
  19142. # newline sequences.
  19143.  
  19144. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19145. sed -n '
  19146. s/.\{148\}/&'"$ac_delim"'/g
  19147. t rset
  19148. :rset
  19149. s/^[     ]*#[    ]*define[       ][      ]*/ /
  19150. t def
  19151. d
  19152. :def
  19153. s/\\$//
  19154. t bsnl
  19155. s/["\\]/\\&/g
  19156. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  19157. D["\1"]=" \3"/p
  19158. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
  19159. d
  19160. :bsnl
  19161. s/["\\]/\\&/g
  19162. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  19163. D["\1"]=" \3\\\\\\n"\\/p
  19164. t cont
  19165. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19166. t cont
  19167. d
  19168. :cont
  19169. n
  19170. s/.\{148\}/&'"$ac_delim"'/g
  19171. t clear
  19172. :clear
  19173. s/\\$//
  19174. t bsnlc
  19175. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19176. d
  19177. :bsnlc
  19178. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19179. b cont
  19180. ' <confdefs.h | sed '
  19181. s/'"$ac_delim"'/"\\\
  19182. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19183.  
  19184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19185.   for (key in D) D_is_set[key] = 1
  19186.   FS = ""
  19187. }
  19188. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19189.   line = \$ 0
  19190.   split(line, arg, " ")
  19191.   if (arg[1] == "#") {
  19192.     defundef = arg[2]
  19193.     mac1 = arg[3]
  19194.   } else {
  19195.     defundef = substr(arg[1], 2)
  19196.     mac1 = arg[2]
  19197.   }
  19198.   split(mac1, mac2, "(") #)
  19199.   macro = mac2[1]
  19200.   prefix = substr(line, 1, index(line, defundef) - 1)
  19201.   if (D_is_set[macro]) {
  19202.     # Preserve the white space surrounding the "#".
  19203.     print prefix "define", macro P[macro] D[macro]
  19204.     next
  19205.   } else {
  19206.     # Replace #undef with comments.  This is necessary, for example,
  19207.     # in the case of _POSIX_SOURCE, which is predefined and required
  19208.     # on some systems where configure will not decide to define it.
  19209.     if (defundef == "undef") {
  19210.       print "/*", prefix defundef, macro, "*/"
  19211.       next
  19212.     }
  19213.   }
  19214. }
  19215. { print }
  19216. _ACAWK
  19217. _ACEOF
  19218. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19219.   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19220. fi # test -n "$CONFIG_HEADERS"
  19221.  
  19222.  
  19223. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  19224. shift
  19225. for ac_tag
  19226. do
  19227.   case $ac_tag in
  19228.   :[FHLC]) ac_mode=$ac_tag; continue;;
  19229.   esac
  19230.   case $ac_mode$ac_tag in
  19231.   :[FHL]*:*);;
  19232.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19233.   :[FH]-) ac_tag=-:-;;
  19234.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19235.   esac
  19236.   ac_save_IFS=$IFS
  19237.   IFS=:
  19238.   set x $ac_tag
  19239.   IFS=$ac_save_IFS
  19240.   shift
  19241.   ac_file=$1
  19242.   shift
  19243.  
  19244.   case $ac_mode in
  19245.   :L) ac_source=$1;;
  19246.   :[FH])
  19247.     ac_file_inputs=
  19248.     for ac_f
  19249.     do
  19250.       case $ac_f in
  19251.       -) ac_f="$ac_tmp/stdin";;
  19252.       *) # Look for the file first in the build tree, then in the source tree
  19253.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  19254.          # because $ac_f cannot contain `:'.
  19255.          test -f "$ac_f" ||
  19256.            case $ac_f in
  19257.            [\\/$]*) false;;
  19258.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19259.            esac ||
  19260.            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19261.       esac
  19262.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19263.       as_fn_append ac_file_inputs " '$ac_f'"
  19264.     done
  19265.  
  19266.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  19267.     # use $as_me), people would be surprised to read:
  19268.     #    /* config.h.  Generated by config.status.  */
  19269.     configure_input='Generated from '`
  19270.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19271.         `' by configure.'
  19272.     if test x"$ac_file" != x-; then
  19273.       configure_input="$ac_file.  $configure_input"
  19274.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19275. $as_echo "$as_me: creating $ac_file" >&6;}
  19276.     fi
  19277.     # Neutralize special characters interpreted by sed in replacement strings.
  19278.     case $configure_input in #(
  19279.     *\&* | *\|* | *\\* )
  19280.        ac_sed_conf_input=`$as_echo "$configure_input" |
  19281.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19282.     *) ac_sed_conf_input=$configure_input;;
  19283.     esac
  19284.  
  19285.     case $ac_tag in
  19286.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19287.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19288.     esac
  19289.     ;;
  19290.   esac
  19291.  
  19292.   ac_dir=`$as_dirname -- "$ac_file" ||
  19293. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19294.          X"$ac_file" : 'X\(//\)[^/]' \| \
  19295.          X"$ac_file" : 'X\(//\)$' \| \
  19296.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19297. $as_echo X"$ac_file" |
  19298.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19299.             s//\1/
  19300.             q
  19301.           }
  19302.           /^X\(\/\/\)[^/].*/{
  19303.             s//\1/
  19304.             q
  19305.           }
  19306.           /^X\(\/\/\)$/{
  19307.             s//\1/
  19308.             q
  19309.           }
  19310.           /^X\(\/\).*/{
  19311.             s//\1/
  19312.             q
  19313.           }
  19314.           s/.*/./; q'`
  19315.   as_dir="$ac_dir"; as_fn_mkdir_p
  19316.   ac_builddir=.
  19317.  
  19318. case "$ac_dir" in
  19319. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19320. *)
  19321.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19322.   # A ".." for each directory in $ac_dir_suffix.
  19323.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19324.   case $ac_top_builddir_sub in
  19325.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19326.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19327.   esac ;;
  19328. esac
  19329. ac_abs_top_builddir=$ac_pwd
  19330. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19331. # for backward compatibility:
  19332. ac_top_builddir=$ac_top_build_prefix
  19333.  
  19334. case $srcdir in
  19335.   .)  # We are building in place.
  19336.     ac_srcdir=.
  19337.     ac_top_srcdir=$ac_top_builddir_sub
  19338.     ac_abs_top_srcdir=$ac_pwd ;;
  19339.   [\\/]* | ?:[\\/]* )  # Absolute name.
  19340.     ac_srcdir=$srcdir$ac_dir_suffix;
  19341.     ac_top_srcdir=$srcdir
  19342.     ac_abs_top_srcdir=$srcdir ;;
  19343.   *) # Relative name.
  19344.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19345.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  19346.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19347. esac
  19348. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19349.  
  19350.  
  19351.   case $ac_mode in
  19352.   :F)
  19353.   #
  19354.   # CONFIG_FILE
  19355.   #
  19356.  
  19357.   case $INSTALL in
  19358.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19359.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19360.   esac
  19361.   ac_MKDIR_P=$MKDIR_P
  19362.   case $MKDIR_P in
  19363.   [\\/$]* | ?:[\\/]* ) ;;
  19364.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19365.   esac
  19366. _ACEOF
  19367.  
  19368. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19369. # If the template does not know about datarootdir, expand it.
  19370. # FIXME: This hack should be removed a few years after 2.60.
  19371. ac_datarootdir_hack=; ac_datarootdir_seen=
  19372. ac_sed_dataroot='
  19373. /datarootdir/ {
  19374.   p
  19375.   q
  19376. }
  19377. /@datadir@/p
  19378. /@docdir@/p
  19379. /@infodir@/p
  19380. /@localedir@/p
  19381. /@mandir@/p'
  19382. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19383. *datarootdir*) ac_datarootdir_seen=yes;;
  19384. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19385.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19386. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19387. _ACEOF
  19388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19389.   ac_datarootdir_hack='
  19390.   s&@datadir@&$datadir&g
  19391.   s&@docdir@&$docdir&g
  19392.   s&@infodir@&$infodir&g
  19393.   s&@localedir@&$localedir&g
  19394.   s&@mandir@&$mandir&g
  19395.   s&\\\${datarootdir}&$datarootdir&g' ;;
  19396. esac
  19397. _ACEOF
  19398.  
  19399. # Neutralize VPATH when `$srcdir' = `.'.
  19400. # Shell code in configure.ac might set extrasub.
  19401. # FIXME: do we really want to maintain this feature?
  19402. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19403. ac_sed_extra="$ac_vpsub
  19404. $extrasub
  19405. _ACEOF
  19406. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19407. :t
  19408. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19409. s|@configure_input@|$ac_sed_conf_input|;t t
  19410. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19411. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19412. s&@srcdir@&$ac_srcdir&;t t
  19413. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19414. s&@top_srcdir@&$ac_top_srcdir&;t t
  19415. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19416. s&@builddir@&$ac_builddir&;t t
  19417. s&@abs_builddir@&$ac_abs_builddir&;t t
  19418. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19419. s&@INSTALL@&$ac_INSTALL&;t t
  19420. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19421. $ac_datarootdir_hack
  19422. "
  19423. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  19424. if $ac_cs_awk_getline; then
  19425.   $AWK -f "$ac_tmp/subs.awk"
  19426. else
  19427.   $AWK -f "$ac_tmp/subs.awk" | $SHELL
  19428. fi \
  19429.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19430.  
  19431. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19432.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19433.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  19434.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19435.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19436. which seems to be undefined.  Please make sure it is defined" >&5
  19437. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19438. which seems to be undefined.  Please make sure it is defined" >&2;}
  19439.  
  19440.   rm -f "$ac_tmp/stdin"
  19441.   case $ac_file in
  19442.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19443.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19444.   esac \
  19445.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19446.  ;;
  19447.   :H)
  19448.   #
  19449.   # CONFIG_HEADER
  19450.   #
  19451.   if test x"$ac_file" != x-; then
  19452.     {
  19453.       $as_echo "/* $configure_input  */" \
  19454.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19455.     } >"$ac_tmp/config.h" \
  19456.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19457.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19458.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19459. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19460.     else
  19461.       rm -f "$ac_file"
  19462.       mv "$ac_tmp/config.h" "$ac_file" \
  19463.         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19464.     fi
  19465.   else
  19466.     $as_echo "/* $configure_input  */" \
  19467.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19468.       || as_fn_error $? "could not create -" "$LINENO" 5
  19469.   fi
  19470. # Compute "$ac_file"'s index in $config_headers.
  19471. _am_arg="$ac_file"
  19472. _am_stamp_count=1
  19473. for _am_header in $config_headers :; do
  19474.   case $_am_header in
  19475.     $_am_arg | $_am_arg:* )
  19476.       break ;;
  19477.     * )
  19478.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19479.   esac
  19480. done
  19481. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19482. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19483.          X"$_am_arg" : 'X\(//\)[^/]' \| \
  19484.          X"$_am_arg" : 'X\(//\)$' \| \
  19485.          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19486. $as_echo X"$_am_arg" |
  19487.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19488.             s//\1/
  19489.             q
  19490.           }
  19491.           /^X\(\/\/\)[^/].*/{
  19492.             s//\1/
  19493.             q
  19494.           }
  19495.           /^X\(\/\/\)$/{
  19496.             s//\1/
  19497.             q
  19498.           }
  19499.           /^X\(\/\).*/{
  19500.             s//\1/
  19501.             q
  19502.           }
  19503.           s/.*/./; q'`/stamp-h$_am_stamp_count
  19504.  ;;
  19505.  
  19506.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19507. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19508.  ;;
  19509.   esac
  19510.  
  19511.  
  19512.   case $ac_file$ac_mode in
  19513.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19514.   # Older Autoconf quotes --file arguments for eval, but not when files
  19515.   # are listed without --file.  Let's play safe and only enable the eval
  19516.   # if we detect the quoting.
  19517.   case $CONFIG_FILES in
  19518.   *\'*) eval set x "$CONFIG_FILES" ;;
  19519.   *)   set x $CONFIG_FILES ;;
  19520.   esac
  19521.   shift
  19522.   for mf
  19523.   do
  19524.     # Strip MF so we end up with the name of the file.
  19525.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  19526.     # Check whether this is an Automake generated Makefile or not.
  19527.     # We used to match only the files named 'Makefile.in', but
  19528.     # some people rename them; so instead we look at the file content.
  19529.     # Grep'ing the first line is not enough: some people post-process
  19530.     # each Makefile.in and add a new line on top of each file to say so.
  19531.     # Grep'ing the whole file is not good either: AIX grep has a line
  19532.     # limit of 2048, but all sed's we know have understand at least 4000.
  19533.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19534.       dirpart=`$as_dirname -- "$mf" ||
  19535. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19536.          X"$mf" : 'X\(//\)[^/]' \| \
  19537.          X"$mf" : 'X\(//\)$' \| \
  19538.          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19539. $as_echo X"$mf" |
  19540.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19541.             s//\1/
  19542.             q
  19543.           }
  19544.           /^X\(\/\/\)[^/].*/{
  19545.             s//\1/
  19546.             q
  19547.           }
  19548.           /^X\(\/\/\)$/{
  19549.             s//\1/
  19550.             q
  19551.           }
  19552.           /^X\(\/\).*/{
  19553.             s//\1/
  19554.             q
  19555.           }
  19556.           s/.*/./; q'`
  19557.     else
  19558.       continue
  19559.     fi
  19560.     # Extract the definition of DEPDIR, am__include, and am__quote
  19561.     # from the Makefile without running 'make'.
  19562.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19563.     test -z "$DEPDIR" && continue
  19564.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19565.     test -z "$am__include" && continue
  19566.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19567.     # Find all dependency output files, they are included files with
  19568.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  19569.     # simplest approach to changing $(DEPDIR) to its actual value in the
  19570.     # expansion.
  19571.     for file in `sed -n "
  19572.       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19573.          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19574.       # Make sure the directory exists.
  19575.       test -f "$dirpart/$file" && continue
  19576.       fdir=`$as_dirname -- "$file" ||
  19577. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19578.          X"$file" : 'X\(//\)[^/]' \| \
  19579.          X"$file" : 'X\(//\)$' \| \
  19580.          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19581. $as_echo X"$file" |
  19582.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19583.             s//\1/
  19584.             q
  19585.           }
  19586.           /^X\(\/\/\)[^/].*/{
  19587.             s//\1/
  19588.             q
  19589.           }
  19590.           /^X\(\/\/\)$/{
  19591.             s//\1/
  19592.             q
  19593.           }
  19594.           /^X\(\/\).*/{
  19595.             s//\1/
  19596.             q
  19597.           }
  19598.           s/.*/./; q'`
  19599.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19600.       # echo "creating $dirpart/$file"
  19601.       echo '# dummy' > "$dirpart/$file"
  19602.     done
  19603.   done
  19604. }
  19605.  ;;
  19606.     "libtool":C)
  19607.  
  19608.     # See if we are running on zsh, and set the options which allow our
  19609.     # commands through without removal of \ escapes.
  19610.     if test -n "${ZSH_VERSION+set}" ; then
  19611.       setopt NO_GLOB_SUBST
  19612.     fi
  19613.  
  19614.     cfgfile="${ofile}T"
  19615.     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19616.     $RM "$cfgfile"
  19617.  
  19618.     cat <<_LT_EOF >> "$cfgfile"
  19619. #! $SHELL
  19620.  
  19621. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19622. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  19623. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19624. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19625. #
  19626. #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19627. #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  19628. #                 Foundation, Inc.
  19629. #   Written by Gordon Matzigkeit, 1996
  19630. #
  19631. #   This file is part of GNU Libtool.
  19632. #
  19633. # GNU Libtool is free software; you can redistribute it and/or
  19634. # modify it under the terms of the GNU General Public License as
  19635. # published by the Free Software Foundation; either version 2 of
  19636. # the License, or (at your option) any later version.
  19637. #
  19638. # As a special exception to the GNU General Public License,
  19639. # if you distribute this file as part of a program or library that
  19640. # is built using GNU Libtool, you may include this file under the
  19641. # same distribution terms that you use for the rest of that program.
  19642. #
  19643. # GNU Libtool is distributed in the hope that it will be useful,
  19644. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19645. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19646. # GNU General Public License for more details.
  19647. #
  19648. # You should have received a copy of the GNU General Public License
  19649. # along with GNU Libtool; see the file COPYING.  If not, a copy
  19650. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  19651. # obtained by writing to the Free Software Foundation, Inc.,
  19652. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19653.  
  19654.  
  19655. # The names of the tagged configurations supported by this script.
  19656. available_tags="CXX "
  19657.  
  19658. # ### BEGIN LIBTOOL CONFIG
  19659.  
  19660. # Whether or not to build static libraries.
  19661. build_old_libs=$enable_static
  19662.  
  19663. # Which release of libtool.m4 was used?
  19664. macro_version=$macro_version
  19665. macro_revision=$macro_revision
  19666.  
  19667. # Whether or not to build shared libraries.
  19668. build_libtool_libs=$enable_shared
  19669.  
  19670. # What type of objects to build.
  19671. pic_mode=$pic_mode
  19672.  
  19673. # Whether or not to optimize for fast installation.
  19674. fast_install=$enable_fast_install
  19675.  
  19676. # Shell to use when invoking shell scripts.
  19677. SHELL=$lt_SHELL
  19678.  
  19679. # An echo program that protects backslashes.
  19680. ECHO=$lt_ECHO
  19681.  
  19682. # The PATH separator for the build system.
  19683. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19684.  
  19685. # The host system.
  19686. host_alias=$host_alias
  19687. host=$host
  19688. host_os=$host_os
  19689.  
  19690. # The build system.
  19691. build_alias=$build_alias
  19692. build=$build
  19693. build_os=$build_os
  19694.  
  19695. # A sed program that does not truncate output.
  19696. SED=$lt_SED
  19697.  
  19698. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19699. Xsed="\$SED -e 1s/^X//"
  19700.  
  19701. # A grep program that handles long lines.
  19702. GREP=$lt_GREP
  19703.  
  19704. # An ERE matcher.
  19705. EGREP=$lt_EGREP
  19706.  
  19707. # A literal string matcher.
  19708. FGREP=$lt_FGREP
  19709.  
  19710. # A BSD- or MS-compatible name lister.
  19711. NM=$lt_NM
  19712.  
  19713. # Whether we need soft or hard links.
  19714. LN_S=$lt_LN_S
  19715.  
  19716. # What is the maximum length of a command?
  19717. max_cmd_len=$max_cmd_len
  19718.  
  19719. # Object file suffix (normally "o").
  19720. objext=$ac_objext
  19721.  
  19722. # Executable file suffix (normally "").
  19723. exeext=$exeext
  19724.  
  19725. # whether the shell understands "unset".
  19726. lt_unset=$lt_unset
  19727.  
  19728. # turn spaces into newlines.
  19729. SP2NL=$lt_lt_SP2NL
  19730.  
  19731. # turn newlines into spaces.
  19732. NL2SP=$lt_lt_NL2SP
  19733.  
  19734. # convert \$build file names to \$host format.
  19735. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19736.  
  19737. # convert \$build files to toolchain format.
  19738. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19739.  
  19740. # An object symbol dumper.
  19741. OBJDUMP=$lt_OBJDUMP
  19742.  
  19743. # Method to check whether dependent libraries are shared objects.
  19744. deplibs_check_method=$lt_deplibs_check_method
  19745.  
  19746. # Command to use when deplibs_check_method = "file_magic".
  19747. file_magic_cmd=$lt_file_magic_cmd
  19748.  
  19749. # How to find potential files when deplibs_check_method = "file_magic".
  19750. file_magic_glob=$lt_file_magic_glob
  19751.  
  19752. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19753. want_nocaseglob=$lt_want_nocaseglob
  19754.  
  19755. # DLL creation program.
  19756. DLLTOOL=$lt_DLLTOOL
  19757.  
  19758. # Command to associate shared and link libraries.
  19759. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19760.  
  19761. # The archiver.
  19762. AR=$lt_AR
  19763.  
  19764. # Flags to create an archive.
  19765. AR_FLAGS=$lt_AR_FLAGS
  19766.  
  19767. # How to feed a file listing to the archiver.
  19768. archiver_list_spec=$lt_archiver_list_spec
  19769.  
  19770. # A symbol stripping program.
  19771. STRIP=$lt_STRIP
  19772.  
  19773. # Commands used to install an old-style archive.
  19774. RANLIB=$lt_RANLIB
  19775. old_postinstall_cmds=$lt_old_postinstall_cmds
  19776. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19777.  
  19778. # Whether to use a lock for old archive extraction.
  19779. lock_old_archive_extraction=$lock_old_archive_extraction
  19780.  
  19781. # A C compiler.
  19782. LTCC=$lt_CC
  19783.  
  19784. # LTCC compiler flags.
  19785. LTCFLAGS=$lt_CFLAGS
  19786.  
  19787. # Take the output of nm and produce a listing of raw symbols and C names.
  19788. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19789.  
  19790. # Transform the output of nm in a proper C declaration.
  19791. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19792.  
  19793. # Transform the output of nm in a C name address pair.
  19794. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19795.  
  19796. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19797. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19798.  
  19799. # Specify filename containing input files for \$NM.
  19800. nm_file_list_spec=$lt_nm_file_list_spec
  19801.  
  19802. # The root where to search for dependent libraries,and in which our libraries should be installed.
  19803. lt_sysroot=$lt_sysroot
  19804.  
  19805. # The name of the directory that contains temporary libtool files.
  19806. objdir=$objdir
  19807.  
  19808. # Used to examine libraries when file_magic_cmd begins with "file".
  19809. MAGIC_CMD=$MAGIC_CMD
  19810.  
  19811. # Must we lock files when doing compilation?
  19812. need_locks=$lt_need_locks
  19813.  
  19814. # Manifest tool.
  19815. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19816.  
  19817. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19818. DSYMUTIL=$lt_DSYMUTIL
  19819.  
  19820. # Tool to change global to local symbols on Mac OS X.
  19821. NMEDIT=$lt_NMEDIT
  19822.  
  19823. # Tool to manipulate fat objects and archives on Mac OS X.
  19824. LIPO=$lt_LIPO
  19825.  
  19826. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19827. OTOOL=$lt_OTOOL
  19828.  
  19829. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19830. OTOOL64=$lt_OTOOL64
  19831.  
  19832. # Old archive suffix (normally "a").
  19833. libext=$libext
  19834.  
  19835. # Shared library suffix (normally ".so").
  19836. shrext_cmds=$lt_shrext_cmds
  19837.  
  19838. # The commands to extract the exported symbol list from a shared archive.
  19839. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19840.  
  19841. # Variables whose values should be saved in libtool wrapper scripts and
  19842. # restored at link time.
  19843. variables_saved_for_relink=$lt_variables_saved_for_relink
  19844.  
  19845. # Do we need the "lib" prefix for modules?
  19846. need_lib_prefix=$need_lib_prefix
  19847.  
  19848. # Do we need a version for libraries?
  19849. need_version=$need_version
  19850.  
  19851. # Library versioning type.
  19852. version_type=$version_type
  19853.  
  19854. # Shared library runtime path variable.
  19855. runpath_var=$runpath_var
  19856.  
  19857. # Shared library path variable.
  19858. shlibpath_var=$shlibpath_var
  19859.  
  19860. # Is shlibpath searched before the hard-coded library search path?
  19861. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19862.  
  19863. # Format of library name prefix.
  19864. libname_spec=$lt_libname_spec
  19865.  
  19866. # List of archive names.  First name is the real one, the rest are links.
  19867. # The last name is the one that the linker finds with -lNAME
  19868. library_names_spec=$lt_library_names_spec
  19869.  
  19870. # The coded name of the library, if different from the real name.
  19871. soname_spec=$lt_soname_spec
  19872.  
  19873. # Permission mode override for installation of shared libraries.
  19874. install_override_mode=$lt_install_override_mode
  19875.  
  19876. # Command to use after installation of a shared archive.
  19877. postinstall_cmds=$lt_postinstall_cmds
  19878.  
  19879. # Command to use after uninstallation of a shared archive.
  19880. postuninstall_cmds=$lt_postuninstall_cmds
  19881.  
  19882. # Commands used to finish a libtool library installation in a directory.
  19883. finish_cmds=$lt_finish_cmds
  19884.  
  19885. # As "finish_cmds", except a single script fragment to be evaled but
  19886. # not shown.
  19887. finish_eval=$lt_finish_eval
  19888.  
  19889. # Whether we should hardcode library paths into libraries.
  19890. hardcode_into_libs=$hardcode_into_libs
  19891.  
  19892. # Compile-time system search path for libraries.
  19893. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19894.  
  19895. # Run-time system search path for libraries.
  19896. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19897.  
  19898. # Whether dlopen is supported.
  19899. dlopen_support=$enable_dlopen
  19900.  
  19901. # Whether dlopen of programs is supported.
  19902. dlopen_self=$enable_dlopen_self
  19903.  
  19904. # Whether dlopen of statically linked programs is supported.
  19905. dlopen_self_static=$enable_dlopen_self_static
  19906.  
  19907. # Commands to strip libraries.
  19908. old_striplib=$lt_old_striplib
  19909. striplib=$lt_striplib
  19910.  
  19911.  
  19912. # The linker used to build libraries.
  19913. LD=$lt_LD
  19914.  
  19915. # How to create reloadable object files.
  19916. reload_flag=$lt_reload_flag
  19917. reload_cmds=$lt_reload_cmds
  19918.  
  19919. # Commands used to build an old-style archive.
  19920. old_archive_cmds=$lt_old_archive_cmds
  19921.  
  19922. # A language specific compiler.
  19923. CC=$lt_compiler
  19924.  
  19925. # Is the compiler the GNU compiler?
  19926. with_gcc=$GCC
  19927.  
  19928. # Compiler flag to turn off builtin functions.
  19929. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19930.  
  19931. # Additional compiler flags for building library objects.
  19932. pic_flag=$lt_lt_prog_compiler_pic
  19933.  
  19934. # How to pass a linker flag through the compiler.
  19935. wl=$lt_lt_prog_compiler_wl
  19936.  
  19937. # Compiler flag to prevent dynamic linking.
  19938. link_static_flag=$lt_lt_prog_compiler_static
  19939.  
  19940. # Does compiler simultaneously support -c and -o options?
  19941. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19942.  
  19943. # Whether or not to add -lc for building shared libraries.
  19944. build_libtool_need_lc=$archive_cmds_need_lc
  19945.  
  19946. # Whether or not to disallow shared libs when runtime libs are static.
  19947. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19948.  
  19949. # Compiler flag to allow reflexive dlopens.
  19950. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19951.  
  19952. # Compiler flag to generate shared objects directly from archives.
  19953. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19954.  
  19955. # Whether the compiler copes with passing no objects directly.
  19956. compiler_needs_object=$lt_compiler_needs_object
  19957.  
  19958. # Create an old-style archive from a shared archive.
  19959. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19960.  
  19961. # Create a temporary old-style archive to link instead of a shared archive.
  19962. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19963.  
  19964. # Commands used to build a shared archive.
  19965. archive_cmds=$lt_archive_cmds
  19966. archive_expsym_cmds=$lt_archive_expsym_cmds
  19967.  
  19968. # Commands used to build a loadable module if different from building
  19969. # a shared archive.
  19970. module_cmds=$lt_module_cmds
  19971. module_expsym_cmds=$lt_module_expsym_cmds
  19972.  
  19973. # Whether we are building with GNU ld or not.
  19974. with_gnu_ld=$lt_with_gnu_ld
  19975.  
  19976. # Flag that allows shared libraries with undefined symbols to be built.
  19977. allow_undefined_flag=$lt_allow_undefined_flag
  19978.  
  19979. # Flag that enforces no undefined symbols.
  19980. no_undefined_flag=$lt_no_undefined_flag
  19981.  
  19982. # Flag to hardcode \$libdir into a binary during linking.
  19983. # This must work even if \$libdir does not exist
  19984. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19985.  
  19986. # Whether we need a single "-rpath" flag with a separated argument.
  19987. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19988.  
  19989. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19990. # DIR into the resulting binary.
  19991. hardcode_direct=$hardcode_direct
  19992.  
  19993. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19994. # DIR into the resulting binary and the resulting library dependency is
  19995. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  19996. # library is relocated.
  19997. hardcode_direct_absolute=$hardcode_direct_absolute
  19998.  
  19999. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20000. # into the resulting binary.
  20001. hardcode_minus_L=$hardcode_minus_L
  20002.  
  20003. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20004. # into the resulting binary.
  20005. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20006.  
  20007. # Set to "yes" if building a shared library automatically hardcodes DIR
  20008. # into the library and all subsequent libraries and executables linked
  20009. # against it.
  20010. hardcode_automatic=$hardcode_automatic
  20011.  
  20012. # Set to yes if linker adds runtime paths of dependent libraries
  20013. # to runtime path list.
  20014. inherit_rpath=$inherit_rpath
  20015.  
  20016. # Whether libtool must link a program against all its dependency libraries.
  20017. link_all_deplibs=$link_all_deplibs
  20018.  
  20019. # Set to "yes" if exported symbols are required.
  20020. always_export_symbols=$always_export_symbols
  20021.  
  20022. # The commands to list exported symbols.
  20023. export_symbols_cmds=$lt_export_symbols_cmds
  20024.  
  20025. # Symbols that should not be listed in the preloaded symbols.
  20026. exclude_expsyms=$lt_exclude_expsyms
  20027.  
  20028. # Symbols that must always be exported.
  20029. include_expsyms=$lt_include_expsyms
  20030.  
  20031. # Commands necessary for linking programs (against libraries) with templates.
  20032. prelink_cmds=$lt_prelink_cmds
  20033.  
  20034. # Commands necessary for finishing linking programs.
  20035. postlink_cmds=$lt_postlink_cmds
  20036.  
  20037. # Specify filename containing input files.
  20038. file_list_spec=$lt_file_list_spec
  20039.  
  20040. # How to hardcode a shared library path into an executable.
  20041. hardcode_action=$hardcode_action
  20042.  
  20043. # The directories searched by this compiler when creating a shared library.
  20044. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20045.  
  20046. # Dependencies to place before and after the objects being linked to
  20047. # create a shared library.
  20048. predep_objects=$lt_predep_objects
  20049. postdep_objects=$lt_postdep_objects
  20050. predeps=$lt_predeps
  20051. postdeps=$lt_postdeps
  20052.  
  20053. # The library search path used internally by the compiler when linking
  20054. # a shared library.
  20055. compiler_lib_search_path=$lt_compiler_lib_search_path
  20056.  
  20057. # ### END LIBTOOL CONFIG
  20058.  
  20059. _LT_EOF
  20060.  
  20061.   case $host_os in
  20062.   aix3*)
  20063.     cat <<\_LT_EOF >> "$cfgfile"
  20064. # AIX sometimes has problems with the GCC collect2 program.  For some
  20065. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20066. # vanish in a puff of smoke.
  20067. if test "X${COLLECT_NAMES+set}" != Xset; then
  20068.   COLLECT_NAMES=
  20069.   export COLLECT_NAMES
  20070. fi
  20071. _LT_EOF
  20072.     ;;
  20073.   esac
  20074.  
  20075.  
  20076. ltmain="$ac_aux_dir/ltmain.sh"
  20077.  
  20078.  
  20079.   # We use sed instead of cat because bash on DJGPP gets confused if
  20080.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  20081.   # text mode, it properly converts lines to CR/LF.  This bash problem
  20082.   # is reportedly fixed, but why not run on old versions too?
  20083.   sed '$q' "$ltmain" >> "$cfgfile" \
  20084.      || (rm -f "$cfgfile"; exit 1)
  20085.  
  20086.   if test x"$xsi_shell" = xyes; then
  20087.   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20088. func_dirname ()\
  20089. {\
  20090. \    case ${1} in\
  20091. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  20092. \      *  ) func_dirname_result="${3}" ;;\
  20093. \    esac\
  20094. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20095.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20096.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20097. test 0 -eq $? || _lt_function_replace_fail=:
  20098.  
  20099.  
  20100.   sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20101. func_basename ()\
  20102. {\
  20103. \    func_basename_result="${1##*/}"\
  20104. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20105.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20106.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20107. test 0 -eq $? || _lt_function_replace_fail=:
  20108.  
  20109.  
  20110.   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20111. func_dirname_and_basename ()\
  20112. {\
  20113. \    case ${1} in\
  20114. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  20115. \      *  ) func_dirname_result="${3}" ;;\
  20116. \    esac\
  20117. \    func_basename_result="${1##*/}"\
  20118. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20119.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20120.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20121. test 0 -eq $? || _lt_function_replace_fail=:
  20122.  
  20123.  
  20124.   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20125. func_stripname ()\
  20126. {\
  20127. \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20128. \    # positional parameters, so assign one to ordinary parameter first.\
  20129. \    func_stripname_result=${3}\
  20130. \    func_stripname_result=${func_stripname_result#"${1}"}\
  20131. \    func_stripname_result=${func_stripname_result%"${2}"}\
  20132. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20133.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20134.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20135. test 0 -eq $? || _lt_function_replace_fail=:
  20136.  
  20137.  
  20138.   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20139. func_split_long_opt ()\
  20140. {\
  20141. \    func_split_long_opt_name=${1%%=*}\
  20142. \    func_split_long_opt_arg=${1#*=}\
  20143. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20144.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20145.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20146. test 0 -eq $? || _lt_function_replace_fail=:
  20147.  
  20148.  
  20149.   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20150. func_split_short_opt ()\
  20151. {\
  20152. \    func_split_short_opt_arg=${1#??}\
  20153. \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20154. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20155.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20156.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20157. test 0 -eq $? || _lt_function_replace_fail=:
  20158.  
  20159.  
  20160.   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20161. func_lo2o ()\
  20162. {\
  20163. \    case ${1} in\
  20164. \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20165. \      *)    func_lo2o_result=${1} ;;\
  20166. \    esac\
  20167. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20168.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20169.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20170. test 0 -eq $? || _lt_function_replace_fail=:
  20171.  
  20172.  
  20173.   sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20174. func_xform ()\
  20175. {\
  20176.     func_xform_result=${1%.*}.lo\
  20177. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20178.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20179.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20180. test 0 -eq $? || _lt_function_replace_fail=:
  20181.  
  20182.  
  20183.   sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20184. func_arith ()\
  20185. {\
  20186.     func_arith_result=$(( $* ))\
  20187. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20188.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20189.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20190. test 0 -eq $? || _lt_function_replace_fail=:
  20191.  
  20192.  
  20193.   sed -e '/^func_len ()$/,/^} # func_len /c\
  20194. func_len ()\
  20195. {\
  20196.     func_len_result=${#1}\
  20197. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20198.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20199.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20200. test 0 -eq $? || _lt_function_replace_fail=:
  20201.  
  20202. fi
  20203.  
  20204. if test x"$lt_shell_append" = xyes; then
  20205.   sed -e '/^func_append ()$/,/^} # func_append /c\
  20206. func_append ()\
  20207. {\
  20208.     eval "${1}+=\\${2}"\
  20209. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20210.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20211.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20212. test 0 -eq $? || _lt_function_replace_fail=:
  20213.  
  20214.  
  20215.   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20216. func_append_quoted ()\
  20217. {\
  20218. \    func_quote_for_eval "${2}"\
  20219. \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20220. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20221.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  20222.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20223. test 0 -eq $? || _lt_function_replace_fail=:
  20224.  
  20225.  
  20226.   # Save a `func_append' function call where possible by direct use of '+='
  20227.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20228.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  20229.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20230.   test 0 -eq $? || _lt_function_replace_fail=:
  20231. else
  20232.   # Save a `func_append' function call even when '+=' is not available
  20233.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20234.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  20235.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20236.   test 0 -eq $? || _lt_function_replace_fail=:
  20237. fi
  20238.  
  20239. if test x"$_lt_function_replace_fail" = x":"; then
  20240.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20241. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20242. fi
  20243.  
  20244.  
  20245.    mv -f "$cfgfile" "$ofile" ||
  20246.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20247.   chmod +x "$ofile"
  20248.  
  20249.  
  20250.     cat <<_LT_EOF >> "$ofile"
  20251.  
  20252. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20253.  
  20254. # The linker used to build libraries.
  20255. LD=$lt_LD_CXX
  20256.  
  20257. # How to create reloadable object files.
  20258. reload_flag=$lt_reload_flag_CXX
  20259. reload_cmds=$lt_reload_cmds_CXX
  20260.  
  20261. # Commands used to build an old-style archive.
  20262. old_archive_cmds=$lt_old_archive_cmds_CXX
  20263.  
  20264. # A language specific compiler.
  20265. CC=$lt_compiler_CXX
  20266.  
  20267. # Is the compiler the GNU compiler?
  20268. with_gcc=$GCC_CXX
  20269.  
  20270. # Compiler flag to turn off builtin functions.
  20271. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20272.  
  20273. # Additional compiler flags for building library objects.
  20274. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20275.  
  20276. # How to pass a linker flag through the compiler.
  20277. wl=$lt_lt_prog_compiler_wl_CXX
  20278.  
  20279. # Compiler flag to prevent dynamic linking.
  20280. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20281.  
  20282. # Does compiler simultaneously support -c and -o options?
  20283. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20284.  
  20285. # Whether or not to add -lc for building shared libraries.
  20286. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20287.  
  20288. # Whether or not to disallow shared libs when runtime libs are static.
  20289. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20290.  
  20291. # Compiler flag to allow reflexive dlopens.
  20292. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20293.  
  20294. # Compiler flag to generate shared objects directly from archives.
  20295. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20296.  
  20297. # Whether the compiler copes with passing no objects directly.
  20298. compiler_needs_object=$lt_compiler_needs_object_CXX
  20299.  
  20300. # Create an old-style archive from a shared archive.
  20301. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20302.  
  20303. # Create a temporary old-style archive to link instead of a shared archive.
  20304. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20305.  
  20306. # Commands used to build a shared archive.
  20307. archive_cmds=$lt_archive_cmds_CXX
  20308. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20309.  
  20310. # Commands used to build a loadable module if different from building
  20311. # a shared archive.
  20312. module_cmds=$lt_module_cmds_CXX
  20313. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20314.  
  20315. # Whether we are building with GNU ld or not.
  20316. with_gnu_ld=$lt_with_gnu_ld_CXX
  20317.  
  20318. # Flag that allows shared libraries with undefined symbols to be built.
  20319. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20320.  
  20321. # Flag that enforces no undefined symbols.
  20322. no_undefined_flag=$lt_no_undefined_flag_CXX
  20323.  
  20324. # Flag to hardcode \$libdir into a binary during linking.
  20325. # This must work even if \$libdir does not exist
  20326. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20327.  
  20328. # Whether we need a single "-rpath" flag with a separated argument.
  20329. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20330.  
  20331. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20332. # DIR into the resulting binary.
  20333. hardcode_direct=$hardcode_direct_CXX
  20334.  
  20335. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20336. # DIR into the resulting binary and the resulting library dependency is
  20337. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20338. # library is relocated.
  20339. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20340.  
  20341. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20342. # into the resulting binary.
  20343. hardcode_minus_L=$hardcode_minus_L_CXX
  20344.  
  20345. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20346. # into the resulting binary.
  20347. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20348.  
  20349. # Set to "yes" if building a shared library automatically hardcodes DIR
  20350. # into the library and all subsequent libraries and executables linked
  20351. # against it.
  20352. hardcode_automatic=$hardcode_automatic_CXX
  20353.  
  20354. # Set to yes if linker adds runtime paths of dependent libraries
  20355. # to runtime path list.
  20356. inherit_rpath=$inherit_rpath_CXX
  20357.  
  20358. # Whether libtool must link a program against all its dependency libraries.
  20359. link_all_deplibs=$link_all_deplibs_CXX
  20360.  
  20361. # Set to "yes" if exported symbols are required.
  20362. always_export_symbols=$always_export_symbols_CXX
  20363.  
  20364. # The commands to list exported symbols.
  20365. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20366.  
  20367. # Symbols that should not be listed in the preloaded symbols.
  20368. exclude_expsyms=$lt_exclude_expsyms_CXX
  20369.  
  20370. # Symbols that must always be exported.
  20371. include_expsyms=$lt_include_expsyms_CXX
  20372.  
  20373. # Commands necessary for linking programs (against libraries) with templates.
  20374. prelink_cmds=$lt_prelink_cmds_CXX
  20375.  
  20376. # Commands necessary for finishing linking programs.
  20377. postlink_cmds=$lt_postlink_cmds_CXX
  20378.  
  20379. # Specify filename containing input files.
  20380. file_list_spec=$lt_file_list_spec_CXX
  20381.  
  20382. # How to hardcode a shared library path into an executable.
  20383. hardcode_action=$hardcode_action_CXX
  20384.  
  20385. # The directories searched by this compiler when creating a shared library.
  20386. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20387.  
  20388. # Dependencies to place before and after the objects being linked to
  20389. # create a shared library.
  20390. predep_objects=$lt_predep_objects_CXX
  20391. postdep_objects=$lt_postdep_objects_CXX
  20392. predeps=$lt_predeps_CXX
  20393. postdeps=$lt_postdeps_CXX
  20394.  
  20395. # The library search path used internally by the compiler when linking
  20396. # a shared library.
  20397. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20398.  
  20399. # ### END LIBTOOL TAG CONFIG: CXX
  20400. _LT_EOF
  20401.  
  20402.  ;;
  20403.  
  20404.   esac
  20405. done # for ac_tag
  20406.  
  20407.  
  20408. as_fn_exit 0
  20409. _ACEOF
  20410. ac_clean_files=$ac_clean_files_save
  20411.  
  20412. test $ac_write_fail = 0 ||
  20413.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20414.  
  20415.  
  20416. # configure is writing to config.log, and then calls config.status.
  20417. # config.status does its own redirection, appending to config.log.
  20418. # Unfortunately, on DOS this fails, as config.log is still kept open
  20419. # by configure, so config.status won't be able to write to it; its
  20420. # output is simply discarded.  So we exec the FD to /dev/null,
  20421. # effectively closing config.log, so it can be properly (re)opened and
  20422. # appended to by config.status.  When coming back to configure, we
  20423. # need to make the FD available again.
  20424. if test "$no_create" != yes; then
  20425.   ac_cs_success=:
  20426.   ac_config_status_args=
  20427.   test "$silent" = yes &&
  20428.     ac_config_status_args="$ac_config_status_args --quiet"
  20429.   exec 5>/dev/null
  20430.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20431.   exec 5>>config.log
  20432.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20433.   # would make configure fail if this is the last instruction.
  20434.   $ac_cs_success || as_fn_exit 1
  20435. fi
  20436. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20437.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20438. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20439. fi
  20440.  
  20441.  
  20442. # Print a small summary
  20443. BACKENDS=""
  20444. if test x$USE_DRM = xyes; then :
  20445.   BACKENDS="$BACKENDS drm"
  20446. fi
  20447. if test x$USE_X11 = xyes; then :
  20448.   BACKENDS="$BACKENDS x11"
  20449. fi
  20450. if test x$USE_GLX = xyes; then :
  20451.   BACKENDS="$BACKENDS glx"
  20452. fi
  20453. if test x$USE_EGL = xyes; then :
  20454.   BACKENDS="$BACKENDS egl"
  20455. fi
  20456. if test x$USE_WAYLAND = xyes; then :
  20457.   BACKENDS="$BACKENDS wayland"
  20458. fi
  20459.  
  20460. echo
  20461. echo "libva - ${LIBVA_VERSION} (VA-API ${VA_API_VERSION})"
  20462. echo
  20463. echo Installation prefix .............. : $prefix
  20464. echo Default driver path .............. : $LIBVA_DRIVERS_PATH
  20465. echo Extra window systems ............. : $BACKENDS
  20466. echo Build dummy driver ............... : $enable_dummy_driver
  20467. echo Build documentation .............. : $enable_docs
  20468. echo
  20469.