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.6.2.
  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.6.2'
  594. PACKAGE_STRING='libva 1.6.2'
  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. USE_WAYLAND_FALSE
  641. USE_WAYLAND_TRUE
  642. WAYLAND_SCANNER
  643. WAYLAND_LIBS
  644. WAYLAND_CFLAGS
  645. WAYLAND_API_VERSION
  646. USE_EGL_FALSE
  647. USE_EGL_TRUE
  648. EGL_LIBS
  649. EGL_CFLAGS
  650. USE_GLX_FALSE
  651. USE_GLX_TRUE
  652. GLX_LIBS
  653. GLX_CFLAGS
  654. USE_X11_FALSE
  655. USE_X11_TRUE
  656. XFIXES_LIBS
  657. XFIXES_CFLAGS
  658. XEXT_LIBS
  659. XEXT_CFLAGS
  660. X11_LIBS
  661. X11_CFLAGS
  662. USE_DRM_FALSE
  663. USE_DRM_TRUE
  664. LIBDRM_VERSION
  665. DRM_LIBS
  666. DRM_CFLAGS
  667. ENABLE_DOCS_FALSE
  668. ENABLE_DOCS_TRUE
  669. DOXYGEN
  670. PKG_CONFIG_LIBDIR
  671. PKG_CONFIG_PATH
  672. PKG_CONFIG
  673. CXXCPP
  674. am__fastdepCXX_FALSE
  675. am__fastdepCXX_TRUE
  676. CXXDEPMODE
  677. ac_ct_CXX
  678. CXXFLAGS
  679. CXX
  680. CPP
  681. OTOOL64
  682. OTOOL
  683. LIPO
  684. NMEDIT
  685. DSYMUTIL
  686. MANIFEST_TOOL
  687. RANLIB
  688. ac_ct_AR
  689. AR
  690. DLLTOOL
  691. OBJDUMP
  692. LN_S
  693. NM
  694. ac_ct_DUMPBIN
  695. DUMPBIN
  696. LD
  697. FGREP
  698. EGREP
  699. GREP
  700. SED
  701. am__fastdepCC_FALSE
  702. am__fastdepCC_TRUE
  703. CCDEPMODE
  704. am__nodep
  705. AMDEPBACKSLASH
  706. AMDEP_FALSE
  707. AMDEP_TRUE
  708. am__quote
  709. am__include
  710. DEPDIR
  711. OBJEXT
  712. EXEEXT
  713. ac_ct_CC
  714. CPPFLAGS
  715. LDFLAGS
  716. CFLAGS
  717. CC
  718. host_os
  719. host_vendor
  720. host_cpu
  721. host
  722. build_os
  723. build_vendor
  724. build_cpu
  725. build
  726. LIBTOOL
  727. LIBVA_DRIVERS_PATH
  728. BUILD_DUMMY_DRIVER_FALSE
  729. BUILD_DUMMY_DRIVER_TRUE
  730. LIBVA_LT_LDFLAGS
  731. LIBVA_LT_VERSION
  732. LIBVA_VERSION
  733. LIBVA_MICRO_VERSION
  734. LIBVA_MINOR_VERSION
  735. LIBVA_MAJOR_VERSION
  736. VA_API_VERSION
  737. VA_API_MICRO_VERSION
  738. VA_API_MINOR_VERSION
  739. VA_API_MAJOR_VERSION
  740. TODAY
  741. AM_BACKSLASH
  742. AM_DEFAULT_VERBOSITY
  743. AM_DEFAULT_V
  744. AM_V
  745. am__untar
  746. am__tar
  747. AMTAR
  748. am__leading_dot
  749. SET_MAKE
  750. AWK
  751. mkdir_p
  752. MKDIR_P
  753. INSTALL_STRIP_PROGRAM
  754. STRIP
  755. install_sh
  756. MAKEINFO
  757. AUTOHEADER
  758. AUTOMAKE
  759. AUTOCONF
  760. ACLOCAL
  761. VERSION
  762. PACKAGE
  763. CYGPATH_W
  764. am__isrc
  765. INSTALL_DATA
  766. INSTALL_SCRIPT
  767. INSTALL_PROGRAM
  768. target_alias
  769. host_alias
  770. build_alias
  771. LIBS
  772. ECHO_T
  773. ECHO_N
  774. ECHO_C
  775. DEFS
  776. mandir
  777. localedir
  778. libdir
  779. psdir
  780. pdfdir
  781. dvidir
  782. htmldir
  783. infodir
  784. docdir
  785. oldincludedir
  786. includedir
  787. localstatedir
  788. sharedstatedir
  789. sysconfdir
  790. datadir
  791. datarootdir
  792. libexecdir
  793. sbindir
  794. bindir
  795. program_transform_name
  796. prefix
  797. exec_prefix
  798. PACKAGE_URL
  799. PACKAGE_BUGREPORT
  800. PACKAGE_STRING
  801. PACKAGE_VERSION
  802. PACKAGE_TARNAME
  803. PACKAGE_NAME
  804. PATH_SEPARATOR
  805. SHELL'
  806. ac_subst_files=''
  807. ac_user_opts='
  808. enable_option_checking
  809. enable_silent_rules
  810. enable_docs
  811. enable_drm
  812. enable_x11
  813. enable_glx
  814. enable_egl
  815. enable_wayland
  816. enable_dummy_driver
  817. with_drivers_path
  818. enable_static
  819. enable_shared
  820. with_pic
  821. enable_fast_install
  822. enable_dependency_tracking
  823. with_gnu_ld
  824. with_sysroot
  825. enable_libtool_lock
  826. enable_largefile
  827. '
  828.       ac_precious_vars='build_alias
  829. host_alias
  830. target_alias
  831. CC
  832. CFLAGS
  833. LDFLAGS
  834. LIBS
  835. CPPFLAGS
  836. CPP
  837. CXX
  838. CXXFLAGS
  839. CCC
  840. CXXCPP
  841. PKG_CONFIG
  842. PKG_CONFIG_PATH
  843. PKG_CONFIG_LIBDIR
  844. DRM_CFLAGS
  845. DRM_LIBS
  846. X11_CFLAGS
  847. X11_LIBS
  848. XEXT_CFLAGS
  849. XEXT_LIBS
  850. XFIXES_CFLAGS
  851. XFIXES_LIBS
  852. GLX_CFLAGS
  853. GLX_LIBS
  854. EGL_CFLAGS
  855. EGL_LIBS
  856. WAYLAND_CFLAGS
  857. WAYLAND_LIBS'
  858.  
  859.  
  860. # Initialize some variables set by options.
  861. ac_init_help=
  862. ac_init_version=false
  863. ac_unrecognized_opts=
  864. ac_unrecognized_sep=
  865. # The variables have the same names as the options, with
  866. # dashes changed to underlines.
  867. cache_file=/dev/null
  868. exec_prefix=NONE
  869. no_create=
  870. no_recursion=
  871. prefix=NONE
  872. program_prefix=NONE
  873. program_suffix=NONE
  874. program_transform_name=s,x,x,
  875. silent=
  876. site=
  877. srcdir=
  878. verbose=
  879. x_includes=NONE
  880. x_libraries=NONE
  881.  
  882. # Installation directory options.
  883. # These are left unexpanded so users can "make install exec_prefix=/foo"
  884. # and all the variables that are supposed to be based on exec_prefix
  885. # by default will actually change.
  886. # Use braces instead of parens because sh, perl, etc. also accept them.
  887. # (The list follows the same order as the GNU Coding Standards.)
  888. bindir='${exec_prefix}/bin'
  889. sbindir='${exec_prefix}/sbin'
  890. libexecdir='${exec_prefix}/libexec'
  891. datarootdir='${prefix}/share'
  892. datadir='${datarootdir}'
  893. sysconfdir='${prefix}/etc'
  894. sharedstatedir='${prefix}/com'
  895. localstatedir='${prefix}/var'
  896. includedir='${prefix}/include'
  897. oldincludedir='/usr/include'
  898. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  899. infodir='${datarootdir}/info'
  900. htmldir='${docdir}'
  901. dvidir='${docdir}'
  902. pdfdir='${docdir}'
  903. psdir='${docdir}'
  904. libdir='${exec_prefix}/lib'
  905. localedir='${datarootdir}/locale'
  906. mandir='${datarootdir}/man'
  907.  
  908. ac_prev=
  909. ac_dashdash=
  910. for ac_option
  911. do
  912.   # If the previous option needs an argument, assign it.
  913.   if test -n "$ac_prev"; then
  914.     eval $ac_prev=\$ac_option
  915.     ac_prev=
  916.     continue
  917.   fi
  918.  
  919.   case $ac_option in
  920.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  921.   *=)   ac_optarg= ;;
  922.   *)    ac_optarg=yes ;;
  923.   esac
  924.  
  925.   # Accept the important Cygnus configure options, so we can diagnose typos.
  926.  
  927.   case $ac_dashdash$ac_option in
  928.   --)
  929.     ac_dashdash=yes ;;
  930.  
  931.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  932.     ac_prev=bindir ;;
  933.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  934.     bindir=$ac_optarg ;;
  935.  
  936.   -build | --build | --buil | --bui | --bu)
  937.     ac_prev=build_alias ;;
  938.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  939.     build_alias=$ac_optarg ;;
  940.  
  941.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  942.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  943.     ac_prev=cache_file ;;
  944.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  945.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  946.     cache_file=$ac_optarg ;;
  947.  
  948.   --config-cache | -C)
  949.     cache_file=config.cache ;;
  950.  
  951.   -datadir | --datadir | --datadi | --datad)
  952.     ac_prev=datadir ;;
  953.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  954.     datadir=$ac_optarg ;;
  955.  
  956.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  957.   | --dataroo | --dataro | --datar)
  958.     ac_prev=datarootdir ;;
  959.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  960.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  961.     datarootdir=$ac_optarg ;;
  962.  
  963.   -disable-* | --disable-*)
  964.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  965.     # Reject names that are not valid shell variable names.
  966.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  967.       as_fn_error $? "invalid feature name: $ac_useropt"
  968.     ac_useropt_orig=$ac_useropt
  969.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  970.     case $ac_user_opts in
  971.       *"
  972. "enable_$ac_useropt"
  973. "*) ;;
  974.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  975.          ac_unrecognized_sep=', ';;
  976.     esac
  977.     eval enable_$ac_useropt=no ;;
  978.  
  979.   -docdir | --docdir | --docdi | --doc | --do)
  980.     ac_prev=docdir ;;
  981.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  982.     docdir=$ac_optarg ;;
  983.  
  984.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  985.     ac_prev=dvidir ;;
  986.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  987.     dvidir=$ac_optarg ;;
  988.  
  989.   -enable-* | --enable-*)
  990.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  991.     # Reject names that are not valid shell variable names.
  992.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  993.       as_fn_error $? "invalid feature name: $ac_useropt"
  994.     ac_useropt_orig=$ac_useropt
  995.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  996.     case $ac_user_opts in
  997.       *"
  998. "enable_$ac_useropt"
  999. "*) ;;
  1000.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1001.          ac_unrecognized_sep=', ';;
  1002.     esac
  1003.     eval enable_$ac_useropt=\$ac_optarg ;;
  1004.  
  1005.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1006.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1007.   | --exec | --exe | --ex)
  1008.     ac_prev=exec_prefix ;;
  1009.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1010.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1011.   | --exec=* | --exe=* | --ex=*)
  1012.     exec_prefix=$ac_optarg ;;
  1013.  
  1014.   -gas | --gas | --ga | --g)
  1015.     # Obsolete; use --with-gas.
  1016.     with_gas=yes ;;
  1017.  
  1018.   -help | --help | --hel | --he | -h)
  1019.     ac_init_help=long ;;
  1020.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1021.     ac_init_help=recursive ;;
  1022.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1023.     ac_init_help=short ;;
  1024.  
  1025.   -host | --host | --hos | --ho)
  1026.     ac_prev=host_alias ;;
  1027.   -host=* | --host=* | --hos=* | --ho=*)
  1028.     host_alias=$ac_optarg ;;
  1029.  
  1030.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1031.     ac_prev=htmldir ;;
  1032.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1033.   | --ht=*)
  1034.     htmldir=$ac_optarg ;;
  1035.  
  1036.   -includedir | --includedir | --includedi | --included | --include \
  1037.   | --includ | --inclu | --incl | --inc)
  1038.     ac_prev=includedir ;;
  1039.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1040.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1041.     includedir=$ac_optarg ;;
  1042.  
  1043.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1044.     ac_prev=infodir ;;
  1045.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1046.     infodir=$ac_optarg ;;
  1047.  
  1048.   -libdir | --libdir | --libdi | --libd)
  1049.     ac_prev=libdir ;;
  1050.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1051.     libdir=$ac_optarg ;;
  1052.  
  1053.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1054.   | --libexe | --libex | --libe)
  1055.     ac_prev=libexecdir ;;
  1056.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1057.   | --libexe=* | --libex=* | --libe=*)
  1058.     libexecdir=$ac_optarg ;;
  1059.  
  1060.   -localedir | --localedir | --localedi | --localed | --locale)
  1061.     ac_prev=localedir ;;
  1062.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1063.     localedir=$ac_optarg ;;
  1064.  
  1065.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1066.   | --localstate | --localstat | --localsta | --localst | --locals)
  1067.     ac_prev=localstatedir ;;
  1068.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1069.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1070.     localstatedir=$ac_optarg ;;
  1071.  
  1072.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1073.     ac_prev=mandir ;;
  1074.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1075.     mandir=$ac_optarg ;;
  1076.  
  1077.   -nfp | --nfp | --nf)
  1078.     # Obsolete; use --without-fp.
  1079.     with_fp=no ;;
  1080.  
  1081.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1082.   | --no-cr | --no-c | -n)
  1083.     no_create=yes ;;
  1084.  
  1085.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1086.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1087.     no_recursion=yes ;;
  1088.  
  1089.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1090.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1091.   | --oldin | --oldi | --old | --ol | --o)
  1092.     ac_prev=oldincludedir ;;
  1093.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1094.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1095.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1096.     oldincludedir=$ac_optarg ;;
  1097.  
  1098.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1099.     ac_prev=prefix ;;
  1100.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1101.     prefix=$ac_optarg ;;
  1102.  
  1103.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1104.   | --program-pre | --program-pr | --program-p)
  1105.     ac_prev=program_prefix ;;
  1106.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1107.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1108.     program_prefix=$ac_optarg ;;
  1109.  
  1110.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1111.   | --program-suf | --program-su | --program-s)
  1112.     ac_prev=program_suffix ;;
  1113.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1114.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1115.     program_suffix=$ac_optarg ;;
  1116.  
  1117.   -program-transform-name | --program-transform-name \
  1118.   | --program-transform-nam | --program-transform-na \
  1119.   | --program-transform-n | --program-transform- \
  1120.   | --program-transform | --program-transfor \
  1121.   | --program-transfo | --program-transf \
  1122.   | --program-trans | --program-tran \
  1123.   | --progr-tra | --program-tr | --program-t)
  1124.     ac_prev=program_transform_name ;;
  1125.   -program-transform-name=* | --program-transform-name=* \
  1126.   | --program-transform-nam=* | --program-transform-na=* \
  1127.   | --program-transform-n=* | --program-transform-=* \
  1128.   | --program-transform=* | --program-transfor=* \
  1129.   | --program-transfo=* | --program-transf=* \
  1130.   | --program-trans=* | --program-tran=* \
  1131.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1132.     program_transform_name=$ac_optarg ;;
  1133.  
  1134.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1135.     ac_prev=pdfdir ;;
  1136.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1137.     pdfdir=$ac_optarg ;;
  1138.  
  1139.   -psdir | --psdir | --psdi | --psd | --ps)
  1140.     ac_prev=psdir ;;
  1141.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1142.     psdir=$ac_optarg ;;
  1143.  
  1144.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1145.   | -silent | --silent | --silen | --sile | --sil)
  1146.     silent=yes ;;
  1147.  
  1148.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1149.     ac_prev=sbindir ;;
  1150.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1151.   | --sbi=* | --sb=*)
  1152.     sbindir=$ac_optarg ;;
  1153.  
  1154.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1155.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1156.   | --sharedst | --shareds | --shared | --share | --shar \
  1157.   | --sha | --sh)
  1158.     ac_prev=sharedstatedir ;;
  1159.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1160.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1161.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1162.   | --sha=* | --sh=*)
  1163.     sharedstatedir=$ac_optarg ;;
  1164.  
  1165.   -site | --site | --sit)
  1166.     ac_prev=site ;;
  1167.   -site=* | --site=* | --sit=*)
  1168.     site=$ac_optarg ;;
  1169.  
  1170.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1171.     ac_prev=srcdir ;;
  1172.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1173.     srcdir=$ac_optarg ;;
  1174.  
  1175.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1176.   | --syscon | --sysco | --sysc | --sys | --sy)
  1177.     ac_prev=sysconfdir ;;
  1178.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1179.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1180.     sysconfdir=$ac_optarg ;;
  1181.  
  1182.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1183.     ac_prev=target_alias ;;
  1184.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1185.     target_alias=$ac_optarg ;;
  1186.  
  1187.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1188.     verbose=yes ;;
  1189.  
  1190.   -version | --version | --versio | --versi | --vers | -V)
  1191.     ac_init_version=: ;;
  1192.  
  1193.   -with-* | --with-*)
  1194.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1195.     # Reject names that are not valid shell variable names.
  1196.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1197.       as_fn_error $? "invalid package name: $ac_useropt"
  1198.     ac_useropt_orig=$ac_useropt
  1199.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1200.     case $ac_user_opts in
  1201.       *"
  1202. "with_$ac_useropt"
  1203. "*) ;;
  1204.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1205.          ac_unrecognized_sep=', ';;
  1206.     esac
  1207.     eval with_$ac_useropt=\$ac_optarg ;;
  1208.  
  1209.   -without-* | --without-*)
  1210.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1211.     # Reject names that are not valid shell variable names.
  1212.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1213.       as_fn_error $? "invalid package name: $ac_useropt"
  1214.     ac_useropt_orig=$ac_useropt
  1215.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1216.     case $ac_user_opts in
  1217.       *"
  1218. "with_$ac_useropt"
  1219. "*) ;;
  1220.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1221.          ac_unrecognized_sep=', ';;
  1222.     esac
  1223.     eval with_$ac_useropt=no ;;
  1224.  
  1225.   --x)
  1226.     # Obsolete; use --with-x.
  1227.     with_x=yes ;;
  1228.  
  1229.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1230.   | --x-incl | --x-inc | --x-in | --x-i)
  1231.     ac_prev=x_includes ;;
  1232.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1233.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1234.     x_includes=$ac_optarg ;;
  1235.  
  1236.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1237.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1238.     ac_prev=x_libraries ;;
  1239.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1240.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1241.     x_libraries=$ac_optarg ;;
  1242.  
  1243.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1244. Try \`$0 --help' for more information"
  1245.     ;;
  1246.  
  1247.   *=*)
  1248.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1249.     # Reject names that are not valid shell variable names.
  1250.     case $ac_envvar in #(
  1251.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1252.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1253.     esac
  1254.     eval $ac_envvar=\$ac_optarg
  1255.     export $ac_envvar ;;
  1256.  
  1257.   *)
  1258.     # FIXME: should be removed in autoconf 3.0.
  1259.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1260.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1261.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1262.     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1263.     ;;
  1264.  
  1265.   esac
  1266. done
  1267.  
  1268. if test -n "$ac_prev"; then
  1269.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1270.   as_fn_error $? "missing argument to $ac_option"
  1271. fi
  1272.  
  1273. if test -n "$ac_unrecognized_opts"; then
  1274.   case $enable_option_checking in
  1275.     no) ;;
  1276.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1277.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1278.   esac
  1279. fi
  1280.  
  1281. # Check all directory arguments for consistency.
  1282. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1283.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1284.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1285.                 libdir localedir mandir
  1286. do
  1287.   eval ac_val=\$$ac_var
  1288.   # Remove trailing slashes.
  1289.   case $ac_val in
  1290.     */ )
  1291.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1292.       eval $ac_var=\$ac_val;;
  1293.   esac
  1294.   # Be sure to have absolute directory names.
  1295.   case $ac_val in
  1296.     [\\/$]* | ?:[\\/]* )  continue;;
  1297.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1298.   esac
  1299.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1300. done
  1301.  
  1302. # There might be people who depend on the old broken behavior: `$host'
  1303. # used to hold the argument of --host etc.
  1304. # FIXME: To remove some day.
  1305. build=$build_alias
  1306. host=$host_alias
  1307. target=$target_alias
  1308.  
  1309. # FIXME: To remove some day.
  1310. if test "x$host_alias" != x; then
  1311.   if test "x$build_alias" = x; then
  1312.     cross_compiling=maybe
  1313.   elif test "x$build_alias" != "x$host_alias"; then
  1314.     cross_compiling=yes
  1315.   fi
  1316. fi
  1317.  
  1318. ac_tool_prefix=
  1319. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1320.  
  1321. test "$silent" = yes && exec 6>/dev/null
  1322.  
  1323.  
  1324. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1325. ac_ls_di=`ls -di .` &&
  1326. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1327.   as_fn_error $? "working directory cannot be determined"
  1328. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1329.   as_fn_error $? "pwd does not report name of working directory"
  1330.  
  1331.  
  1332. # Find the source files, if location was not specified.
  1333. if test -z "$srcdir"; then
  1334.   ac_srcdir_defaulted=yes
  1335.   # Try the directory containing this script, then the parent directory.
  1336.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1337. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1338.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1339.          X"$as_myself" : 'X\(//\)$' \| \
  1340.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1341. $as_echo X"$as_myself" |
  1342.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1343.             s//\1/
  1344.             q
  1345.           }
  1346.           /^X\(\/\/\)[^/].*/{
  1347.             s//\1/
  1348.             q
  1349.           }
  1350.           /^X\(\/\/\)$/{
  1351.             s//\1/
  1352.             q
  1353.           }
  1354.           /^X\(\/\).*/{
  1355.             s//\1/
  1356.             q
  1357.           }
  1358.           s/.*/./; q'`
  1359.   srcdir=$ac_confdir
  1360.   if test ! -r "$srcdir/$ac_unique_file"; then
  1361.     srcdir=..
  1362.   fi
  1363. else
  1364.   ac_srcdir_defaulted=no
  1365. fi
  1366. if test ! -r "$srcdir/$ac_unique_file"; then
  1367.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1368.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1369. fi
  1370. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1371. ac_abs_confdir=`(
  1372.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1373.         pwd)`
  1374. # When building in place, set srcdir=.
  1375. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1376.   srcdir=.
  1377. fi
  1378. # Remove unnecessary trailing slashes from srcdir.
  1379. # Double slashes in file names in object file debugging info
  1380. # mess up M-x gdb in Emacs.
  1381. case $srcdir in
  1382. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1383. esac
  1384. for ac_var in $ac_precious_vars; do
  1385.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1386.   eval ac_env_${ac_var}_value=\$${ac_var}
  1387.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1388.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1389. done
  1390.  
  1391. #
  1392. # Report the --help message.
  1393. #
  1394. if test "$ac_init_help" = "long"; then
  1395.   # Omit some internal or obsolete options to make the list less imposing.
  1396.   # This message is too long to be a string in the A/UX 3.1 sh.
  1397.   cat <<_ACEOF
  1398. \`configure' configures libva 1.6.2 to adapt to many kinds of systems.
  1399.  
  1400. Usage: $0 [OPTION]... [VAR=VALUE]...
  1401.  
  1402. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1403. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1404.  
  1405. Defaults for the options are specified in brackets.
  1406.  
  1407. Configuration:
  1408.   -h, --help              display this help and exit
  1409.       --help=short        display options specific to this package
  1410.       --help=recursive    display the short help of all the included packages
  1411.   -V, --version           display version information and exit
  1412.   -q, --quiet, --silent   do not print \`checking ...' messages
  1413.       --cache-file=FILE   cache test results in FILE [disabled]
  1414.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1415.   -n, --no-create         do not create output files
  1416.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1417.  
  1418. Installation directories:
  1419.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1420.                           [$ac_default_prefix]
  1421.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1422.                           [PREFIX]
  1423.  
  1424. By default, \`make install' will install all the files in
  1425. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1426. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1427. for instance \`--prefix=\$HOME'.
  1428.  
  1429. For better control, use the options below.
  1430.  
  1431. Fine tuning of the installation directories:
  1432.   --bindir=DIR            user executables [EPREFIX/bin]
  1433.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1434.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1435.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1436.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1437.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1438.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1439.   --includedir=DIR        C header files [PREFIX/include]
  1440.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1441.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1442.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1443.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1444.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1445.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1446.   --docdir=DIR            documentation root [DATAROOTDIR/doc/libva]
  1447.   --htmldir=DIR           html documentation [DOCDIR]
  1448.   --dvidir=DIR            dvi documentation [DOCDIR]
  1449.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1450.   --psdir=DIR             ps documentation [DOCDIR]
  1451. _ACEOF
  1452.  
  1453.   cat <<\_ACEOF
  1454.  
  1455. Program names:
  1456.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1457.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1458.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1459.  
  1460. System types:
  1461.   --build=BUILD     configure for building on BUILD [guessed]
  1462.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1463. _ACEOF
  1464. fi
  1465.  
  1466. if test -n "$ac_init_help"; then
  1467.   case $ac_init_help in
  1468.      short | recursive ) echo "Configuration of libva 1.6.2:";;
  1469.    esac
  1470.   cat <<\_ACEOF
  1471.  
  1472. Optional Features:
  1473.   --disable-option-checking  ignore unrecognized --enable/--with options
  1474.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1475.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1476.   --enable-silent-rules   less verbose build output (undo: "make V=1")
  1477.   --disable-silent-rules  verbose build output (undo: "make V=0")
  1478.   --enable-docs           build Doxygen documentation [default=no]
  1479.   --enable-drm            build with VA/DRM API support [default=yes]
  1480.   --enable-x11            build with VA/X11 API support [default=yes]
  1481.   --enable-glx            build with VA/GLX API support [default=yes]
  1482.   --enable-egl            build with VA/EGL API support [default=yes]
  1483.   --enable-wayland        build with VA/Wayland API support [default=yes]
  1484.   --enable-dummy-driver   build dummy video driver [default=yes]
  1485.   --enable-static[=PKGS]  build static libraries [default=no]
  1486.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  1487.   --enable-fast-install[=PKGS]
  1488.                           optimize for fast installation [default=yes]
  1489.   --enable-dependency-tracking
  1490.                           do not reject slow dependency extractors
  1491.   --disable-dependency-tracking
  1492.                           speeds up one-time build
  1493.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1494.   --disable-largefile     omit support for large files
  1495.  
  1496. Optional Packages:
  1497.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1498.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1499.   --with-drivers-path=[path]
  1500.                           drivers path
  1501.   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  1502.                           both]
  1503.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1504.   --with-sysroot=DIR Search for dependent libraries within DIR
  1505.                         (or the compiler's sysroot if not specified).
  1506.  
  1507. Some influential environment variables:
  1508.   CC          C compiler command
  1509.   CFLAGS      C compiler flags
  1510.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1511.               nonstandard directory <lib dir>
  1512.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1513.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1514.               you have headers in a nonstandard directory <include dir>
  1515.   CPP         C preprocessor
  1516.   CXX         C++ compiler command
  1517.   CXXFLAGS    C++ compiler flags
  1518.   CXXCPP      C++ preprocessor
  1519.   PKG_CONFIG  path to pkg-config utility
  1520.   PKG_CONFIG_PATH
  1521.               directories to add to pkg-config's search path
  1522.   PKG_CONFIG_LIBDIR
  1523.               path overriding pkg-config's built-in search path
  1524.   DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
  1525.   DRM_LIBS    linker flags for DRM, overriding pkg-config
  1526.   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
  1527.   X11_LIBS    linker flags for X11, overriding pkg-config
  1528.   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
  1529.   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
  1530.   XFIXES_CFLAGS
  1531.               C compiler flags for XFIXES, overriding pkg-config
  1532.   XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
  1533.   GLX_CFLAGS  C compiler flags for GLX, overriding pkg-config
  1534.   GLX_LIBS    linker flags for GLX, overriding pkg-config
  1535.   EGL_CFLAGS  C compiler flags for EGL, overriding pkg-config
  1536.   EGL_LIBS    linker flags for EGL, overriding pkg-config
  1537.   WAYLAND_CFLAGS
  1538.               C compiler flags for WAYLAND, overriding pkg-config
  1539.   WAYLAND_LIBS
  1540.               linker flags for WAYLAND, overriding pkg-config
  1541.  
  1542. Use these variables to override the choices made by `configure' or to help
  1543. it to find libraries and programs with nonstandard names/locations.
  1544.  
  1545. Report bugs to <waldo.bastian@intel.com>.
  1546. _ACEOF
  1547. ac_status=$?
  1548. fi
  1549.  
  1550. if test "$ac_init_help" = "recursive"; then
  1551.   # If there are subdirs, report their specific --help.
  1552.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1553.     test -d "$ac_dir" ||
  1554.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1555.       continue
  1556.     ac_builddir=.
  1557.  
  1558. case "$ac_dir" in
  1559. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1560. *)
  1561.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1562.   # A ".." for each directory in $ac_dir_suffix.
  1563.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1564.   case $ac_top_builddir_sub in
  1565.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1566.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1567.   esac ;;
  1568. esac
  1569. ac_abs_top_builddir=$ac_pwd
  1570. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1571. # for backward compatibility:
  1572. ac_top_builddir=$ac_top_build_prefix
  1573.  
  1574. case $srcdir in
  1575.   .)  # We are building in place.
  1576.     ac_srcdir=.
  1577.     ac_top_srcdir=$ac_top_builddir_sub
  1578.     ac_abs_top_srcdir=$ac_pwd ;;
  1579.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1580.     ac_srcdir=$srcdir$ac_dir_suffix;
  1581.     ac_top_srcdir=$srcdir
  1582.     ac_abs_top_srcdir=$srcdir ;;
  1583.   *) # Relative name.
  1584.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1585.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1586.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1587. esac
  1588. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1589.  
  1590.     cd "$ac_dir" || { ac_status=$?; continue; }
  1591.     # Check for guested configure.
  1592.     if test -f "$ac_srcdir/configure.gnu"; then
  1593.       echo &&
  1594.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1595.     elif test -f "$ac_srcdir/configure"; then
  1596.       echo &&
  1597.       $SHELL "$ac_srcdir/configure" --help=recursive
  1598.     else
  1599.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1600.     fi || ac_status=$?
  1601.     cd "$ac_pwd" || { ac_status=$?; break; }
  1602.   done
  1603. fi
  1604.  
  1605. test -n "$ac_init_help" && exit $ac_status
  1606. if $ac_init_version; then
  1607.   cat <<\_ACEOF
  1608. libva configure 1.6.2
  1609. generated by GNU Autoconf 2.69
  1610.  
  1611. Copyright (C) 2012 Free Software Foundation, Inc.
  1612. This configure script is free software; the Free Software Foundation
  1613. gives unlimited permission to copy, distribute and modify it.
  1614. _ACEOF
  1615.   exit
  1616. fi
  1617.  
  1618. ## ------------------------ ##
  1619. ## Autoconf initialization. ##
  1620. ## ------------------------ ##
  1621.  
  1622. # ac_fn_c_try_compile LINENO
  1623. # --------------------------
  1624. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1625. ac_fn_c_try_compile ()
  1626. {
  1627.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1628.   rm -f conftest.$ac_objext
  1629.   if { { ac_try="$ac_compile"
  1630. case "(($ac_try" in
  1631.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1632.   *) ac_try_echo=$ac_try;;
  1633. esac
  1634. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1635. $as_echo "$ac_try_echo"; } >&5
  1636.   (eval "$ac_compile") 2>conftest.err
  1637.   ac_status=$?
  1638.   if test -s conftest.err; then
  1639.     grep -v '^ *+' conftest.err >conftest.er1
  1640.     cat conftest.er1 >&5
  1641.     mv -f conftest.er1 conftest.err
  1642.   fi
  1643.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1644.   test $ac_status = 0; } && {
  1645.          test -z "$ac_c_werror_flag" ||
  1646.          test ! -s conftest.err
  1647.        } && test -s conftest.$ac_objext; then :
  1648.   ac_retval=0
  1649. else
  1650.   $as_echo "$as_me: failed program was:" >&5
  1651. sed 's/^/| /' conftest.$ac_ext >&5
  1652.  
  1653.         ac_retval=1
  1654. fi
  1655.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1656.   as_fn_set_status $ac_retval
  1657.  
  1658. } # ac_fn_c_try_compile
  1659.  
  1660. # ac_fn_c_try_link LINENO
  1661. # -----------------------
  1662. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1663. ac_fn_c_try_link ()
  1664. {
  1665.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1666.   rm -f conftest.$ac_objext conftest$ac_exeext
  1667.   if { { ac_try="$ac_link"
  1668. case "(($ac_try" in
  1669.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1670.   *) ac_try_echo=$ac_try;;
  1671. esac
  1672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1673. $as_echo "$ac_try_echo"; } >&5
  1674.   (eval "$ac_link") 2>conftest.err
  1675.   ac_status=$?
  1676.   if test -s conftest.err; then
  1677.     grep -v '^ *+' conftest.err >conftest.er1
  1678.     cat conftest.er1 >&5
  1679.     mv -f conftest.er1 conftest.err
  1680.   fi
  1681.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1682.   test $ac_status = 0; } && {
  1683.          test -z "$ac_c_werror_flag" ||
  1684.          test ! -s conftest.err
  1685.        } && test -s conftest$ac_exeext && {
  1686.          test "$cross_compiling" = yes ||
  1687.          test -x conftest$ac_exeext
  1688.        }; then :
  1689.   ac_retval=0
  1690. else
  1691.   $as_echo "$as_me: failed program was:" >&5
  1692. sed 's/^/| /' conftest.$ac_ext >&5
  1693.  
  1694.         ac_retval=1
  1695. fi
  1696.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1697.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1698.   # interfere with the next link command; also delete a directory that is
  1699.   # left behind by Apple's compiler.  We do this before executing the actions.
  1700.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1701.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1702.   as_fn_set_status $ac_retval
  1703.  
  1704. } # ac_fn_c_try_link
  1705.  
  1706. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1707. # -------------------------------------------------------
  1708. # Tests whether HEADER exists and can be compiled using the include files in
  1709. # INCLUDES, setting the cache variable VAR accordingly.
  1710. ac_fn_c_check_header_compile ()
  1711. {
  1712.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1713.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1714. $as_echo_n "checking for $2... " >&6; }
  1715. if eval \${$3+:} false; then :
  1716.   $as_echo_n "(cached) " >&6
  1717. else
  1718.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1719. /* end confdefs.h.  */
  1720. $4
  1721. #include <$2>
  1722. _ACEOF
  1723. if ac_fn_c_try_compile "$LINENO"; then :
  1724.   eval "$3=yes"
  1725. else
  1726.   eval "$3=no"
  1727. fi
  1728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1729. fi
  1730. eval ac_res=\$$3
  1731.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1732. $as_echo "$ac_res" >&6; }
  1733.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734.  
  1735. } # ac_fn_c_check_header_compile
  1736.  
  1737. # ac_fn_c_try_cpp LINENO
  1738. # ----------------------
  1739. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_c_try_cpp ()
  1741. {
  1742.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1744. case "(($ac_try" in
  1745.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746.   *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1751.   ac_status=$?
  1752.   if test -s conftest.err; then
  1753.     grep -v '^ *+' conftest.err >conftest.er1
  1754.     cat conftest.er1 >&5
  1755.     mv -f conftest.er1 conftest.err
  1756.   fi
  1757.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758.   test $ac_status = 0; } > conftest.i && {
  1759.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1760.          test ! -s conftest.err
  1761.        }; then :
  1762.   ac_retval=0
  1763. else
  1764.   $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766.  
  1767.     ac_retval=1
  1768. fi
  1769.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1770.   as_fn_set_status $ac_retval
  1771.  
  1772. } # ac_fn_c_try_cpp
  1773.  
  1774. # ac_fn_c_try_run LINENO
  1775. # ----------------------
  1776. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1777. # that executables *can* be run.
  1778. ac_fn_c_try_run ()
  1779. {
  1780.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1781.   if { { ac_try="$ac_link"
  1782. case "(($ac_try" in
  1783.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1784.   *) ac_try_echo=$ac_try;;
  1785. esac
  1786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1787. $as_echo "$ac_try_echo"; } >&5
  1788.   (eval "$ac_link") 2>&5
  1789.   ac_status=$?
  1790.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1791.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1792.   { { case "(($ac_try" in
  1793.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1794.   *) ac_try_echo=$ac_try;;
  1795. esac
  1796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1797. $as_echo "$ac_try_echo"; } >&5
  1798.   (eval "$ac_try") 2>&5
  1799.   ac_status=$?
  1800.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1801.   test $ac_status = 0; }; }; then :
  1802.   ac_retval=0
  1803. else
  1804.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1805.        $as_echo "$as_me: failed program was:" >&5
  1806. sed 's/^/| /' conftest.$ac_ext >&5
  1807.  
  1808.        ac_retval=$ac_status
  1809. fi
  1810.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1811.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812.   as_fn_set_status $ac_retval
  1813.  
  1814. } # ac_fn_c_try_run
  1815.  
  1816. # ac_fn_c_check_func LINENO FUNC VAR
  1817. # ----------------------------------
  1818. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1819. ac_fn_c_check_func ()
  1820. {
  1821.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1823. $as_echo_n "checking for $2... " >&6; }
  1824. if eval \${$3+:} false; then :
  1825.   $as_echo_n "(cached) " >&6
  1826. else
  1827.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1828. /* end confdefs.h.  */
  1829. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1830.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1831. #define $2 innocuous_$2
  1832.  
  1833. /* System header to define __stub macros and hopefully few prototypes,
  1834.     which can conflict with char $2 (); below.
  1835.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1836.     <limits.h> exists even on freestanding compilers.  */
  1837.  
  1838. #ifdef __STDC__
  1839. # include <limits.h>
  1840. #else
  1841. # include <assert.h>
  1842. #endif
  1843.  
  1844. #undef $2
  1845.  
  1846. /* Override any GCC internal prototype to avoid an error.
  1847.    Use char because int might match the return type of a GCC
  1848.    builtin and then its argument prototype would still apply.  */
  1849. #ifdef __cplusplus
  1850. extern "C"
  1851. #endif
  1852. char $2 ();
  1853. /* The GNU C library defines this for functions which it implements
  1854.     to always fail with ENOSYS.  Some functions are actually named
  1855.     something starting with __ and the normal name is an alias.  */
  1856. #if defined __stub_$2 || defined __stub___$2
  1857. choke me
  1858. #endif
  1859.  
  1860. int
  1861. main ()
  1862. {
  1863. return $2 ();
  1864.   ;
  1865.   return 0;
  1866. }
  1867. _ACEOF
  1868. if ac_fn_c_try_link "$LINENO"; then :
  1869.   eval "$3=yes"
  1870. else
  1871.   eval "$3=no"
  1872. fi
  1873. rm -f core conftest.err conftest.$ac_objext \
  1874.     conftest$ac_exeext conftest.$ac_ext
  1875. fi
  1876. eval ac_res=\$$3
  1877.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1878. $as_echo "$ac_res" >&6; }
  1879.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1880.  
  1881. } # ac_fn_c_check_func
  1882.  
  1883. # ac_fn_cxx_try_compile LINENO
  1884. # ----------------------------
  1885. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1886. ac_fn_cxx_try_compile ()
  1887. {
  1888.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1889.   rm -f conftest.$ac_objext
  1890.   if { { ac_try="$ac_compile"
  1891. case "(($ac_try" in
  1892.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1893.   *) ac_try_echo=$ac_try;;
  1894. esac
  1895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1896. $as_echo "$ac_try_echo"; } >&5
  1897.   (eval "$ac_compile") 2>conftest.err
  1898.   ac_status=$?
  1899.   if test -s conftest.err; then
  1900.     grep -v '^ *+' conftest.err >conftest.er1
  1901.     cat conftest.er1 >&5
  1902.     mv -f conftest.er1 conftest.err
  1903.   fi
  1904.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1905.   test $ac_status = 0; } && {
  1906.          test -z "$ac_cxx_werror_flag" ||
  1907.          test ! -s conftest.err
  1908.        } && test -s conftest.$ac_objext; then :
  1909.   ac_retval=0
  1910. else
  1911.   $as_echo "$as_me: failed program was:" >&5
  1912. sed 's/^/| /' conftest.$ac_ext >&5
  1913.  
  1914.         ac_retval=1
  1915. fi
  1916.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1917.   as_fn_set_status $ac_retval
  1918.  
  1919. } # ac_fn_cxx_try_compile
  1920.  
  1921. # ac_fn_cxx_try_cpp LINENO
  1922. # ------------------------
  1923. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1924. ac_fn_cxx_try_cpp ()
  1925. {
  1926.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1927.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1928. case "(($ac_try" in
  1929.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1930.   *) ac_try_echo=$ac_try;;
  1931. esac
  1932. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1933. $as_echo "$ac_try_echo"; } >&5
  1934.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1935.   ac_status=$?
  1936.   if test -s conftest.err; then
  1937.     grep -v '^ *+' conftest.err >conftest.er1
  1938.     cat conftest.er1 >&5
  1939.     mv -f conftest.er1 conftest.err
  1940.   fi
  1941.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1942.   test $ac_status = 0; } > conftest.i && {
  1943.          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1944.          test ! -s conftest.err
  1945.        }; then :
  1946.   ac_retval=0
  1947. else
  1948.   $as_echo "$as_me: failed program was:" >&5
  1949. sed 's/^/| /' conftest.$ac_ext >&5
  1950.  
  1951.     ac_retval=1
  1952. fi
  1953.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1954.   as_fn_set_status $ac_retval
  1955.  
  1956. } # ac_fn_cxx_try_cpp
  1957.  
  1958. # ac_fn_cxx_try_link LINENO
  1959. # -------------------------
  1960. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1961. ac_fn_cxx_try_link ()
  1962. {
  1963.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1964.   rm -f conftest.$ac_objext conftest$ac_exeext
  1965.   if { { ac_try="$ac_link"
  1966. case "(($ac_try" in
  1967.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1968.   *) ac_try_echo=$ac_try;;
  1969. esac
  1970. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1971. $as_echo "$ac_try_echo"; } >&5
  1972.   (eval "$ac_link") 2>conftest.err
  1973.   ac_status=$?
  1974.   if test -s conftest.err; then
  1975.     grep -v '^ *+' conftest.err >conftest.er1
  1976.     cat conftest.er1 >&5
  1977.     mv -f conftest.er1 conftest.err
  1978.   fi
  1979.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1980.   test $ac_status = 0; } && {
  1981.          test -z "$ac_cxx_werror_flag" ||
  1982.          test ! -s conftest.err
  1983.        } && test -s conftest$ac_exeext && {
  1984.          test "$cross_compiling" = yes ||
  1985.          test -x conftest$ac_exeext
  1986.        }; then :
  1987.   ac_retval=0
  1988. else
  1989.   $as_echo "$as_me: failed program was:" >&5
  1990. sed 's/^/| /' conftest.$ac_ext >&5
  1991.  
  1992.         ac_retval=1
  1993. fi
  1994.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1995.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1996.   # interfere with the next link command; also delete a directory that is
  1997.   # left behind by Apple's compiler.  We do this before executing the actions.
  1998.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1999.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2000.   as_fn_set_status $ac_retval
  2001.  
  2002. } # ac_fn_cxx_try_link
  2003.  
  2004. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2005. # -------------------------------------------------------
  2006. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2007. # the include files in INCLUDES and setting the cache variable VAR
  2008. # accordingly.
  2009. ac_fn_c_check_header_mongrel ()
  2010. {
  2011.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2012.   if eval \${$3+:} false; then :
  2013.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2014. $as_echo_n "checking for $2... " >&6; }
  2015. if eval \${$3+:} false; then :
  2016.   $as_echo_n "(cached) " >&6
  2017. fi
  2018. eval ac_res=\$$3
  2019.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2020. $as_echo "$ac_res" >&6; }
  2021. else
  2022.   # Is the header compilable?
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2024. $as_echo_n "checking $2 usability... " >&6; }
  2025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2026. /* end confdefs.h.  */
  2027. $4
  2028. #include <$2>
  2029. _ACEOF
  2030. if ac_fn_c_try_compile "$LINENO"; then :
  2031.   ac_header_compiler=yes
  2032. else
  2033.   ac_header_compiler=no
  2034. fi
  2035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2037. $as_echo "$ac_header_compiler" >&6; }
  2038.  
  2039. # Is the header present?
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2041. $as_echo_n "checking $2 presence... " >&6; }
  2042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2043. /* end confdefs.h.  */
  2044. #include <$2>
  2045. _ACEOF
  2046. if ac_fn_c_try_cpp "$LINENO"; then :
  2047.   ac_header_preproc=yes
  2048. else
  2049.   ac_header_preproc=no
  2050. fi
  2051. rm -f conftest.err conftest.i conftest.$ac_ext
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2053. $as_echo "$ac_header_preproc" >&6; }
  2054.  
  2055. # So?  What about this header?
  2056. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2057.   yes:no: )
  2058.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2059. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2060.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2061. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2062.     ;;
  2063.   no:yes:* )
  2064.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2065. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2066.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  2067. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  2068.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2069. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2070.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  2071. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  2072.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2073. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2074. ( $as_echo "## -------------------------------------- ##
  2075. ## Report this to waldo.bastian@intel.com ##
  2076. ## -------------------------------------- ##"
  2077.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  2078.     ;;
  2079. esac
  2080.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2081. $as_echo_n "checking for $2... " >&6; }
  2082. if eval \${$3+:} false; then :
  2083.   $as_echo_n "(cached) " >&6
  2084. else
  2085.   eval "$3=\$ac_header_compiler"
  2086. fi
  2087. eval ac_res=\$$3
  2088.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2089. $as_echo "$ac_res" >&6; }
  2090. fi
  2091.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2092.  
  2093. } # ac_fn_c_check_header_mongrel
  2094. cat >config.log <<_ACEOF
  2095. This file contains any messages produced by compilers while
  2096. running configure, to aid debugging if configure makes a mistake.
  2097.  
  2098. It was created by libva $as_me 1.6.2, which was
  2099. generated by GNU Autoconf 2.69.  Invocation command line was
  2100.  
  2101.   $ $0 $@
  2102.  
  2103. _ACEOF
  2104. exec 5>>config.log
  2105. {
  2106. cat <<_ASUNAME
  2107. ## --------- ##
  2108. ## Platform. ##
  2109. ## --------- ##
  2110.  
  2111. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2112. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2113. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2114. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2115. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2116.  
  2117. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2118. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2119.  
  2120. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2121. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2122. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2123. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2124. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2125. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2126. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2127.  
  2128. _ASUNAME
  2129.  
  2130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2131. for as_dir in $PATH
  2132. do
  2133.   IFS=$as_save_IFS
  2134.   test -z "$as_dir" && as_dir=.
  2135.     $as_echo "PATH: $as_dir"
  2136.   done
  2137. IFS=$as_save_IFS
  2138.  
  2139. } >&5
  2140.  
  2141. cat >&5 <<_ACEOF
  2142.  
  2143.  
  2144. ## ----------- ##
  2145. ## Core tests. ##
  2146. ## ----------- ##
  2147.  
  2148. _ACEOF
  2149.  
  2150.  
  2151. # Keep a trace of the command line.
  2152. # Strip out --no-create and --no-recursion so they do not pile up.
  2153. # Strip out --silent because we don't want to record it for future runs.
  2154. # Also quote any args containing shell meta-characters.
  2155. # Make two passes to allow for proper duplicate-argument suppression.
  2156. ac_configure_args=
  2157. ac_configure_args0=
  2158. ac_configure_args1=
  2159. ac_must_keep_next=false
  2160. for ac_pass in 1 2
  2161. do
  2162.   for ac_arg
  2163.   do
  2164.     case $ac_arg in
  2165.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2166.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2167.     | -silent | --silent | --silen | --sile | --sil)
  2168.       continue ;;
  2169.     *\'*)
  2170.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2171.     esac
  2172.     case $ac_pass in
  2173.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2174.     2)
  2175.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2176.       if test $ac_must_keep_next = true; then
  2177.         ac_must_keep_next=false # Got value, back to normal.
  2178.       else
  2179.         case $ac_arg in
  2180.           *=* | --config-cache | -C | -disable-* | --disable-* \
  2181.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2182.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2183.           | -with-* | --with-* | -without-* | --without-* | --x)
  2184.             case "$ac_configure_args0 " in
  2185.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2186.             esac
  2187.             ;;
  2188.           -* ) ac_must_keep_next=true ;;
  2189.         esac
  2190.       fi
  2191.       as_fn_append ac_configure_args " '$ac_arg'"
  2192.       ;;
  2193.     esac
  2194.   done
  2195. done
  2196. { ac_configure_args0=; unset ac_configure_args0;}
  2197. { ac_configure_args1=; unset ac_configure_args1;}
  2198.  
  2199. # When interrupted or exit'd, cleanup temporary files, and complete
  2200. # config.log.  We remove comments because anyway the quotes in there
  2201. # would cause problems or look ugly.
  2202. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2203. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2204. trap 'exit_status=$?
  2205.   # Save into config.log some information that might help in debugging.
  2206.   {
  2207.     echo
  2208.  
  2209.     $as_echo "## ---------------- ##
  2210. ## Cache variables. ##
  2211. ## ---------------- ##"
  2212.     echo
  2213.     # The following way of writing the cache mishandles newlines in values,
  2214. (
  2215.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2216.     eval ac_val=\$$ac_var
  2217.     case $ac_val in #(
  2218.     *${as_nl}*)
  2219.       case $ac_var in #(
  2220.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2221. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2222.       esac
  2223.       case $ac_var in #(
  2224.       _ | IFS | as_nl) ;; #(
  2225.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2226.       *) { eval $ac_var=; unset $ac_var;} ;;
  2227.       esac ;;
  2228.     esac
  2229.   done
  2230.   (set) 2>&1 |
  2231.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2232.     *${as_nl}ac_space=\ *)
  2233.       sed -n \
  2234.         "s/'\''/'\''\\\\'\'''\''/g;
  2235.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2236.       ;; #(
  2237.     *)
  2238.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2239.       ;;
  2240.     esac |
  2241.     sort
  2242. )
  2243.     echo
  2244.  
  2245.     $as_echo "## ----------------- ##
  2246. ## Output variables. ##
  2247. ## ----------------- ##"
  2248.     echo
  2249.     for ac_var in $ac_subst_vars
  2250.     do
  2251.       eval ac_val=\$$ac_var
  2252.       case $ac_val in
  2253.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2254.       esac
  2255.       $as_echo "$ac_var='\''$ac_val'\''"
  2256.     done | sort
  2257.     echo
  2258.  
  2259.     if test -n "$ac_subst_files"; then
  2260.       $as_echo "## ------------------- ##
  2261. ## File substitutions. ##
  2262. ## ------------------- ##"
  2263.       echo
  2264.       for ac_var in $ac_subst_files
  2265.       do
  2266.         eval ac_val=\$$ac_var
  2267.         case $ac_val in
  2268.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2269.         esac
  2270.         $as_echo "$ac_var='\''$ac_val'\''"
  2271.       done | sort
  2272.       echo
  2273.     fi
  2274.  
  2275.     if test -s confdefs.h; then
  2276.       $as_echo "## ----------- ##
  2277. ## confdefs.h. ##
  2278. ## ----------- ##"
  2279.       echo
  2280.       cat confdefs.h
  2281.       echo
  2282.     fi
  2283.     test "$ac_signal" != 0 &&
  2284.       $as_echo "$as_me: caught signal $ac_signal"
  2285.     $as_echo "$as_me: exit $exit_status"
  2286.   } >&5
  2287.   rm -f core *.core core.conftest.* &&
  2288.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2289.     exit $exit_status
  2290. ' 0
  2291. for ac_signal in 1 2 13 15; do
  2292.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2293. done
  2294. ac_signal=0
  2295.  
  2296. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2297. rm -f -r conftest* confdefs.h
  2298.  
  2299. $as_echo "/* confdefs.h */" > confdefs.h
  2300.  
  2301. # Predefined preprocessor variables.
  2302.  
  2303. cat >>confdefs.h <<_ACEOF
  2304. #define PACKAGE_NAME "$PACKAGE_NAME"
  2305. _ACEOF
  2306.  
  2307. cat >>confdefs.h <<_ACEOF
  2308. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2309. _ACEOF
  2310.  
  2311. cat >>confdefs.h <<_ACEOF
  2312. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2313. _ACEOF
  2314.  
  2315. cat >>confdefs.h <<_ACEOF
  2316. #define PACKAGE_STRING "$PACKAGE_STRING"
  2317. _ACEOF
  2318.  
  2319. cat >>confdefs.h <<_ACEOF
  2320. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2321. _ACEOF
  2322.  
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE_URL "$PACKAGE_URL"
  2325. _ACEOF
  2326.  
  2327.  
  2328. # Let the site file select an alternate cache file if it wants to.
  2329. # Prefer an explicitly selected file to automatically selected ones.
  2330. ac_site_file1=NONE
  2331. ac_site_file2=NONE
  2332. if test -n "$CONFIG_SITE"; then
  2333.   # We do not want a PATH search for config.site.
  2334.   case $CONFIG_SITE in #((
  2335.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2336.     */*) ac_site_file1=$CONFIG_SITE;;
  2337.     *)   ac_site_file1=./$CONFIG_SITE;;
  2338.   esac
  2339. elif test "x$prefix" != xNONE; then
  2340.   ac_site_file1=$prefix/share/config.site
  2341.   ac_site_file2=$prefix/etc/config.site
  2342. else
  2343.   ac_site_file1=$ac_default_prefix/share/config.site
  2344.   ac_site_file2=$ac_default_prefix/etc/config.site
  2345. fi
  2346. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2347. do
  2348.   test "x$ac_site_file" = xNONE && continue
  2349.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2350.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2351. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2352.     sed 's/^/| /' "$ac_site_file" >&5
  2353.     . "$ac_site_file" \
  2354.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2355. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2356. as_fn_error $? "failed to load site script $ac_site_file
  2357. See \`config.log' for more details" "$LINENO" 5; }
  2358.   fi
  2359. done
  2360.  
  2361. if test -r "$cache_file"; then
  2362.   # Some versions of bash will fail to source /dev/null (special files
  2363.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2364.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2365.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2366. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2367.     case $cache_file in
  2368.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2369.       *)                      . "./$cache_file";;
  2370.     esac
  2371.   fi
  2372. else
  2373.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2374. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2375.   >$cache_file
  2376. fi
  2377.  
  2378. # Check that the precious variables saved in the cache have kept the same
  2379. # value.
  2380. ac_cache_corrupted=false
  2381. for ac_var in $ac_precious_vars; do
  2382.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2383.   eval ac_new_set=\$ac_env_${ac_var}_set
  2384.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2385.   eval ac_new_val=\$ac_env_${ac_var}_value
  2386.   case $ac_old_set,$ac_new_set in
  2387.     set,)
  2388.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2389. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2390.       ac_cache_corrupted=: ;;
  2391.     ,set)
  2392.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2393. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2394.       ac_cache_corrupted=: ;;
  2395.     ,);;
  2396.     *)
  2397.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2398.         # differences in whitespace do not lead to failure.
  2399.         ac_old_val_w=`echo x $ac_old_val`
  2400.         ac_new_val_w=`echo x $ac_new_val`
  2401.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2402.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2403. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2404.           ac_cache_corrupted=:
  2405.         else
  2406.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2407. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2408.           eval $ac_var=\$ac_old_val
  2409.         fi
  2410.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2411. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2412.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2413. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2414.       fi;;
  2415.   esac
  2416.   # Pass precious variables to config.status.
  2417.   if test "$ac_new_set" = set; then
  2418.     case $ac_new_val in
  2419.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2420.     *) ac_arg=$ac_var=$ac_new_val ;;
  2421.     esac
  2422.     case " $ac_configure_args " in
  2423.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2424.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2425.     esac
  2426.   fi
  2427. done
  2428. if $ac_cache_corrupted; then
  2429.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2430. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2431.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2432. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2433.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2434. fi
  2435. ## -------------------- ##
  2436. ## Main body of script. ##
  2437. ## -------------------- ##
  2438.  
  2439. ac_ext=c
  2440. ac_cpp='$CPP $CPPFLAGS'
  2441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2444.  
  2445.  
  2446.  
  2447.  
  2448. am__api_version='1.14'
  2449.  
  2450. ac_aux_dir=
  2451. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2452.   if test -f "$ac_dir/install-sh"; then
  2453.     ac_aux_dir=$ac_dir
  2454.     ac_install_sh="$ac_aux_dir/install-sh -c"
  2455.     break
  2456.   elif test -f "$ac_dir/install.sh"; then
  2457.     ac_aux_dir=$ac_dir
  2458.     ac_install_sh="$ac_aux_dir/install.sh -c"
  2459.     break
  2460.   elif test -f "$ac_dir/shtool"; then
  2461.     ac_aux_dir=$ac_dir
  2462.     ac_install_sh="$ac_aux_dir/shtool install -c"
  2463.     break
  2464.   fi
  2465. done
  2466. if test -z "$ac_aux_dir"; then
  2467.   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2468. fi
  2469.  
  2470. # These three variables are undocumented and unsupported,
  2471. # and are intended to be withdrawn in a future Autoconf release.
  2472. # They can cause serious problems if a builder's source tree is in a directory
  2473. # whose full name contains unusual characters.
  2474. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2475. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2476. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2477.  
  2478.  
  2479. # Find a good install program.  We prefer a C program (faster),
  2480. # so one script is as good as another.  But avoid the broken or
  2481. # incompatible versions:
  2482. # SysV /etc/install, /usr/sbin/install
  2483. # SunOS /usr/etc/install
  2484. # IRIX /sbin/install
  2485. # AIX /bin/install
  2486. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2487. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2488. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2489. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2490. # OS/2's system install, which has a completely different semantic
  2491. # ./install, which can be erroneously created by make from ./install.sh.
  2492. # Reject install programs that cannot install multiple files.
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2494. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2495. if test -z "$INSTALL"; then
  2496. if ${ac_cv_path_install+:} false; then :
  2497.   $as_echo_n "(cached) " >&6
  2498. else
  2499.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2500. for as_dir in $PATH
  2501. do
  2502.   IFS=$as_save_IFS
  2503.   test -z "$as_dir" && as_dir=.
  2504.     # Account for people who put trailing slashes in PATH elements.
  2505. case $as_dir/ in #((
  2506.   ./ | .// | /[cC]/* | \
  2507.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2508.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2509.   /usr/ucb/* ) ;;
  2510.   *)
  2511.     # OSF1 and SCO ODT 3.0 have their own names for install.
  2512.     # Don't use installbsd from OSF since it installs stuff as root
  2513.     # by default.
  2514.     for ac_prog in ginstall scoinst install; do
  2515.       for ac_exec_ext in '' $ac_executable_extensions; do
  2516.         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2517.           if test $ac_prog = install &&
  2518.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2519.             # AIX install.  It has an incompatible calling convention.
  2520.             :
  2521.           elif test $ac_prog = install &&
  2522.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2523.             # program-specific install script used by HP pwplus--don't use.
  2524.             :
  2525.           else
  2526.             rm -rf conftest.one conftest.two conftest.dir
  2527.             echo one > conftest.one
  2528.             echo two > conftest.two
  2529.             mkdir conftest.dir
  2530.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2531.               test -s conftest.one && test -s conftest.two &&
  2532.               test -s conftest.dir/conftest.one &&
  2533.               test -s conftest.dir/conftest.two
  2534.             then
  2535.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2536.               break 3
  2537.             fi
  2538.           fi
  2539.         fi
  2540.       done
  2541.     done
  2542.     ;;
  2543. esac
  2544.  
  2545.   done
  2546. IFS=$as_save_IFS
  2547.  
  2548. rm -rf conftest.one conftest.two conftest.dir
  2549.  
  2550. fi
  2551.   if test "${ac_cv_path_install+set}" = set; then
  2552.     INSTALL=$ac_cv_path_install
  2553.   else
  2554.     # As a last resort, use the slow shell script.  Don't cache a
  2555.     # value for INSTALL within a source directory, because that will
  2556.     # break other packages using the cache if that directory is
  2557.     # removed, or if the value is a relative name.
  2558.     INSTALL=$ac_install_sh
  2559.   fi
  2560. fi
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2562. $as_echo "$INSTALL" >&6; }
  2563.  
  2564. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2565. # It thinks the first close brace ends the variable substitution.
  2566. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2567.  
  2568. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2569.  
  2570. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2571.  
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2573. $as_echo_n "checking whether build environment is sane... " >&6; }
  2574. # Reject unsafe characters in $srcdir or the absolute working directory
  2575. # name.  Accept space and tab only in the latter.
  2576. am_lf='
  2577. '
  2578. case `pwd` in
  2579.   *[\\\"\#\$\&\'\`$am_lf]*)
  2580.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2581. esac
  2582. case $srcdir in
  2583.   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
  2584.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2585. esac
  2586.  
  2587. # Do 'set' in a subshell so we don't clobber the current shell's
  2588. # arguments.  Must try -L first in case configure is actually a
  2589. # symlink; some systems play weird games with the mod time of symlinks
  2590. # (eg FreeBSD returns the mod time of the symlink's containing
  2591. # directory).
  2592. if (
  2593.    am_has_slept=no
  2594.    for am_try in 1 2; do
  2595.      echo "timestamp, slept: $am_has_slept" > conftest.file
  2596.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2597.      if test "$*" = "X"; then
  2598.         # -L didn't work.
  2599.         set X `ls -t "$srcdir/configure" conftest.file`
  2600.      fi
  2601.      if test "$*" != "X $srcdir/configure conftest.file" \
  2602.         && test "$*" != "X conftest.file $srcdir/configure"; then
  2603.  
  2604.         # If neither matched, then we have a broken ls.  This can happen
  2605.         # if, for instance, CONFIG_SHELL is bash and it inherits a
  2606.         # broken ls alias from the environment.  This has actually
  2607.         # happened.  Such a system could not be considered "sane".
  2608.         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  2609.   alias in your environment" "$LINENO" 5
  2610.      fi
  2611.      if test "$2" = conftest.file || test $am_try -eq 2; then
  2612.        break
  2613.      fi
  2614.      # Just in case.
  2615.      sleep 1
  2616.      am_has_slept=yes
  2617.    done
  2618.    test "$2" = conftest.file
  2619.    )
  2620. then
  2621.    # Ok.
  2622.    :
  2623. else
  2624.    as_fn_error $? "newly created file is older than distributed files!
  2625. Check your system clock" "$LINENO" 5
  2626. fi
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2628. $as_echo "yes" >&6; }
  2629. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2630. # generated files are strictly newer.
  2631. am_sleep_pid=
  2632. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2633.   ( sleep 1 ) &
  2634.   am_sleep_pid=$!
  2635. fi
  2636.  
  2637. rm -f conftest.file
  2638.  
  2639. test "$program_prefix" != NONE &&
  2640.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2641. # Use a double $ so make ignores it.
  2642. test "$program_suffix" != NONE &&
  2643.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2644. # Double any \ or $.
  2645. # By default was `s,x,x', remove it if useless.
  2646. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2647. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2648.  
  2649. # expand $ac_aux_dir to an absolute path
  2650. am_aux_dir=`cd $ac_aux_dir && pwd`
  2651.  
  2652. if test x"${MISSING+set}" != xset; then
  2653.   case $am_aux_dir in
  2654.   *\ * | *\     *)
  2655.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2656.   *)
  2657.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2658.   esac
  2659. fi
  2660. # Use eval to expand $SHELL
  2661. if eval "$MISSING --is-lightweight"; then
  2662.   am_missing_run="$MISSING "
  2663. else
  2664.   am_missing_run=
  2665.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2666. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2667. fi
  2668.  
  2669. if test x"${install_sh}" != xset; then
  2670.   case $am_aux_dir in
  2671.   *\ * | *\     *)
  2672.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2673.   *)
  2674.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  2675.   esac
  2676. fi
  2677.  
  2678. # Installed binaries are usually stripped using 'strip' when the user
  2679. # run "make install-strip".  However 'strip' might not be the right
  2680. # tool to use in cross-compilation environments, therefore Automake
  2681. # will honor the 'STRIP' environment variable to overrule this program.
  2682. if test "$cross_compiling" != no; then
  2683.   if test -n "$ac_tool_prefix"; then
  2684.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2685. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2687. $as_echo_n "checking for $ac_word... " >&6; }
  2688. if ${ac_cv_prog_STRIP+:} false; then :
  2689.   $as_echo_n "(cached) " >&6
  2690. else
  2691.   if test -n "$STRIP"; then
  2692.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2693. else
  2694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2695. for as_dir in $PATH
  2696. do
  2697.   IFS=$as_save_IFS
  2698.   test -z "$as_dir" && as_dir=.
  2699.     for ac_exec_ext in '' $ac_executable_extensions; do
  2700.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2701.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2702.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2703.     break 2
  2704.   fi
  2705. done
  2706.   done
  2707. IFS=$as_save_IFS
  2708.  
  2709. fi
  2710. fi
  2711. STRIP=$ac_cv_prog_STRIP
  2712. if test -n "$STRIP"; then
  2713.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2714. $as_echo "$STRIP" >&6; }
  2715. else
  2716.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2717. $as_echo "no" >&6; }
  2718. fi
  2719.  
  2720.  
  2721. fi
  2722. if test -z "$ac_cv_prog_STRIP"; then
  2723.   ac_ct_STRIP=$STRIP
  2724.   # Extract the first word of "strip", so it can be a program name with args.
  2725. set dummy strip; ac_word=$2
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2727. $as_echo_n "checking for $ac_word... " >&6; }
  2728. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2729.   $as_echo_n "(cached) " >&6
  2730. else
  2731.   if test -n "$ac_ct_STRIP"; then
  2732.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737.   IFS=$as_save_IFS
  2738.   test -z "$as_dir" && as_dir=.
  2739.     for ac_exec_ext in '' $ac_executable_extensions; do
  2740.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2741.     ac_cv_prog_ac_ct_STRIP="strip"
  2742.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2743.     break 2
  2744.   fi
  2745. done
  2746.   done
  2747. IFS=$as_save_IFS
  2748.  
  2749. fi
  2750. fi
  2751. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2752. if test -n "$ac_ct_STRIP"; then
  2753.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2754. $as_echo "$ac_ct_STRIP" >&6; }
  2755. else
  2756.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2757. $as_echo "no" >&6; }
  2758. fi
  2759.  
  2760.   if test "x$ac_ct_STRIP" = x; then
  2761.     STRIP=":"
  2762.   else
  2763.     case $cross_compiling:$ac_tool_warned in
  2764. yes:)
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2767. ac_tool_warned=yes ;;
  2768. esac
  2769.     STRIP=$ac_ct_STRIP
  2770.   fi
  2771. else
  2772.   STRIP="$ac_cv_prog_STRIP"
  2773. fi
  2774.  
  2775. fi
  2776. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2777.  
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2779. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2780. if test -z "$MKDIR_P"; then
  2781.   if ${ac_cv_path_mkdir+:} false; then :
  2782.   $as_echo_n "(cached) " >&6
  2783. else
  2784.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2785. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2786. do
  2787.   IFS=$as_save_IFS
  2788.   test -z "$as_dir" && as_dir=.
  2789.     for ac_prog in mkdir gmkdir; do
  2790.          for ac_exec_ext in '' $ac_executable_extensions; do
  2791.            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2792.            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2793.              'mkdir (GNU coreutils) '* | \
  2794.              'mkdir (coreutils) '* | \
  2795.              'mkdir (fileutils) '4.1*)
  2796.                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2797.                break 3;;
  2798.            esac
  2799.          done
  2800.        done
  2801.   done
  2802. IFS=$as_save_IFS
  2803.  
  2804. fi
  2805.  
  2806.   test -d ./--version && rmdir ./--version
  2807.   if test "${ac_cv_path_mkdir+set}" = set; then
  2808.     MKDIR_P="$ac_cv_path_mkdir -p"
  2809.   else
  2810.     # As a last resort, use the slow shell script.  Don't cache a
  2811.     # value for MKDIR_P within a source directory, because that will
  2812.     # break other packages using the cache if that directory is
  2813.     # removed, or if the value is a relative name.
  2814.     MKDIR_P="$ac_install_sh -d"
  2815.   fi
  2816. fi
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2818. $as_echo "$MKDIR_P" >&6; }
  2819.  
  2820. for ac_prog in gawk mawk nawk awk
  2821. do
  2822.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2823. set dummy $ac_prog; ac_word=$2
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2825. $as_echo_n "checking for $ac_word... " >&6; }
  2826. if ${ac_cv_prog_AWK+:} false; then :
  2827.   $as_echo_n "(cached) " >&6
  2828. else
  2829.   if test -n "$AWK"; then
  2830.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835.   IFS=$as_save_IFS
  2836.   test -z "$as_dir" && as_dir=.
  2837.     for ac_exec_ext in '' $ac_executable_extensions; do
  2838.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839.     ac_cv_prog_AWK="$ac_prog"
  2840.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841.     break 2
  2842.   fi
  2843. done
  2844.   done
  2845. IFS=$as_save_IFS
  2846.  
  2847. fi
  2848. fi
  2849. AWK=$ac_cv_prog_AWK
  2850. if test -n "$AWK"; then
  2851.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2852. $as_echo "$AWK" >&6; }
  2853. else
  2854.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2855. $as_echo "no" >&6; }
  2856. fi
  2857.  
  2858.  
  2859.   test -n "$AWK" && break
  2860. done
  2861.  
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2863. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2864. set x ${MAKE-make}
  2865. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2866. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2867.   $as_echo_n "(cached) " >&6
  2868. else
  2869.   cat >conftest.make <<\_ACEOF
  2870. SHELL = /bin/sh
  2871. all:
  2872.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  2873. _ACEOF
  2874. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2875. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2876.   *@@@%%%=?*=@@@%%%*)
  2877.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2878.   *)
  2879.     eval ac_cv_prog_make_${ac_make}_set=no;;
  2880. esac
  2881. rm -f conftest.make
  2882. fi
  2883. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2884.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2885. $as_echo "yes" >&6; }
  2886.   SET_MAKE=
  2887. else
  2888.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2889. $as_echo "no" >&6; }
  2890.   SET_MAKE="MAKE=${MAKE-make}"
  2891. fi
  2892.  
  2893. rm -rf .tst 2>/dev/null
  2894. mkdir .tst 2>/dev/null
  2895. if test -d .tst; then
  2896.   am__leading_dot=.
  2897. else
  2898.   am__leading_dot=_
  2899. fi
  2900. rmdir .tst 2>/dev/null
  2901.  
  2902. # Check whether --enable-silent-rules was given.
  2903. if test "${enable_silent_rules+set}" = set; then :
  2904.   enableval=$enable_silent_rules;
  2905. fi
  2906.  
  2907. case $enable_silent_rules in # (((
  2908.   yes) AM_DEFAULT_VERBOSITY=0;;
  2909.    no) AM_DEFAULT_VERBOSITY=1;;
  2910.     *) AM_DEFAULT_VERBOSITY=1;;
  2911. esac
  2912. am_make=${MAKE-make}
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2914. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2915. if ${am_cv_make_support_nested_variables+:} false; then :
  2916.   $as_echo_n "(cached) " >&6
  2917. else
  2918.   if $as_echo 'TRUE=$(BAR$(V))
  2919. BAR0=false
  2920. BAR1=true
  2921. V=1
  2922. am__doit:
  2923.         @$(TRUE)
  2924. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2925.   am_cv_make_support_nested_variables=yes
  2926. else
  2927.   am_cv_make_support_nested_variables=no
  2928. fi
  2929. fi
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2931. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2932. if test $am_cv_make_support_nested_variables = yes; then
  2933.     AM_V='$(V)'
  2934.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2935. else
  2936.   AM_V=$AM_DEFAULT_VERBOSITY
  2937.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2938. fi
  2939. AM_BACKSLASH='\'
  2940.  
  2941. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2942.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2943.   # is not polluted with repeated "-I."
  2944.   am__isrc=' -I$(srcdir)'
  2945.   # test to see if srcdir already configured
  2946.   if test -f $srcdir/config.status; then
  2947.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2948.   fi
  2949. fi
  2950.  
  2951. # test whether we have cygpath
  2952. if test -z "$CYGPATH_W"; then
  2953.   if (cygpath --version) >/dev/null 2>/dev/null; then
  2954.     CYGPATH_W='cygpath -w'
  2955.   else
  2956.     CYGPATH_W=echo
  2957.   fi
  2958. fi
  2959.  
  2960.  
  2961. # Define the identity of the package.
  2962.  PACKAGE='libva'
  2963.  VERSION='1.6.2'
  2964.  
  2965.  
  2966. cat >>confdefs.h <<_ACEOF
  2967. #define PACKAGE "$PACKAGE"
  2968. _ACEOF
  2969.  
  2970.  
  2971. cat >>confdefs.h <<_ACEOF
  2972. #define VERSION "$VERSION"
  2973. _ACEOF
  2974.  
  2975. # Some tools Automake needs.
  2976.  
  2977. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2978.  
  2979.  
  2980. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2981.  
  2982.  
  2983. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2984.  
  2985.  
  2986. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2987.  
  2988.  
  2989. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2990.  
  2991. # For better backward compatibility.  To be removed once Automake 1.9.x
  2992. # dies out for good.  For more background, see:
  2993. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2994. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2995. mkdir_p='$(MKDIR_P)'
  2996.  
  2997. # We need awk for the "check" target.  The system "awk" is bad on
  2998. # some platforms.
  2999. # Always define AMTAR for backward compatibility.  Yes, it's still used
  3000. # in the wild :-(  We should find a proper way to deprecate it ...
  3001. AMTAR='$${TAR-tar}'
  3002.  
  3003.  
  3004. # We'll loop over all known methods to create a tar archive until one works.
  3005. _am_tools='gnutar  pax cpio none'
  3006.  
  3007. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014. # POSIX will say in a future version that running "rm -f" with no argument
  3015. # is OK; and we want to be able to make that assumption in our Makefile
  3016. # recipes.  So use an aggressive probe to check that the usage we want is
  3017. # actually supported "in the wild" to an acceptable degree.
  3018. # See automake bug#10828.
  3019. # To make any issue more visible, cause the running configure to be aborted
  3020. # by default if the 'rm' program in use doesn't match our expectations; the
  3021. # user can still override this though.
  3022. if rm -f && rm -fr && rm -rf; then : OK; else
  3023.   cat >&2 <<'END'
  3024. Oops!
  3025.  
  3026. Your 'rm' program seems unable to run without file operands specified
  3027. on the command line, even when the '-f' option is present.  This is contrary
  3028. to the behaviour of most rm programs out there, and not conforming with
  3029. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3030.  
  3031. Please tell bug-automake@gnu.org about your system, including the value
  3032. of your $PATH and any error possibly output before this message.  This
  3033. can help us improve future automake versions.
  3034.  
  3035. END
  3036.   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3037.     echo 'Configuration will proceed anyway, since you have set the' >&2
  3038.     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3039.     echo >&2
  3040.   else
  3041.     cat >&2 <<'END'
  3042. Aborting the configuration process, to ensure you take notice of the issue.
  3043.  
  3044. You can download and install GNU coreutils to get an 'rm' implementation
  3045. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3046.  
  3047. If you want to complete the configuration process using your problematic
  3048. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3049. to "yes", and re-run configure.
  3050.  
  3051. END
  3052.     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3053.   fi
  3054. fi
  3055.  
  3056. ac_config_headers="$ac_config_headers config.h"
  3057.  
  3058. # Check whether --enable-silent-rules was given.
  3059. if test "${enable_silent_rules+set}" = set; then :
  3060.   enableval=$enable_silent_rules;
  3061. fi
  3062.  
  3063. case $enable_silent_rules in # (((
  3064.   yes) AM_DEFAULT_VERBOSITY=0;;
  3065.    no) AM_DEFAULT_VERBOSITY=1;;
  3066.     *) AM_DEFAULT_VERBOSITY=0;;
  3067. esac
  3068. am_make=${MAKE-make}
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3070. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3071. if ${am_cv_make_support_nested_variables+:} false; then :
  3072.   $as_echo_n "(cached) " >&6
  3073. else
  3074.   if $as_echo 'TRUE=$(BAR$(V))
  3075. BAR0=false
  3076. BAR1=true
  3077. V=1
  3078. am__doit:
  3079.         @$(TRUE)
  3080. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3081.   am_cv_make_support_nested_variables=yes
  3082. else
  3083.   am_cv_make_support_nested_variables=no
  3084. fi
  3085. fi
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3087. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3088. if test $am_cv_make_support_nested_variables = yes; then
  3089.     AM_V='$(V)'
  3090.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3091. else
  3092.   AM_V=$AM_DEFAULT_VERBOSITY
  3093.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3094. fi
  3095. AM_BACKSLASH='\'
  3096.  
  3097.  
  3098. TODAY="`LC_ALL=C date +'%a, %d %b %Y %X %z'`"
  3099.  
  3100.  
  3101. VA_API_MAJOR_VERSION=0
  3102. VA_API_MINOR_VERSION=38
  3103. VA_API_MICRO_VERSION=1
  3104. VA_API_VERSION=0.38.1
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110. LIBVA_MAJOR_VERSION=1
  3111. LIBVA_MINOR_VERSION=6
  3112. LIBVA_MICRO_VERSION=2
  3113. LIBVA_VERSION=1.6.2
  3114.  
  3115.  
  3116.  
  3117.  
  3118.  
  3119. LIBVA_LT_CURRENT=3802
  3120. LIBVA_LT_REV=0
  3121. LIBVA_LT_AGE=3801
  3122. LIBVA_LT_VERSION="$LIBVA_LT_CURRENT:$LIBVA_LT_REV:$LIBVA_LT_AGE"
  3123. LIBVA_LT_LDFLAGS="-version-info $LIBVA_LT_VERSION"
  3124.  
  3125.  
  3126.  
  3127. # Check whether --enable-docs was given.
  3128. if test "${enable_docs+set}" = set; then :
  3129.   enableval=$enable_docs;
  3130. else
  3131.   enable_docs="no"
  3132. fi
  3133.  
  3134.  
  3135. # Check whether --enable-drm was given.
  3136. if test "${enable_drm+set}" = set; then :
  3137.   enableval=$enable_drm;
  3138. else
  3139.   enable_drm="yes"
  3140. fi
  3141.  
  3142.  
  3143. # Check whether --enable-x11 was given.
  3144. if test "${enable_x11+set}" = set; then :
  3145.   enableval=$enable_x11;
  3146. else
  3147.   enable_x11="yes"
  3148. fi
  3149.  
  3150.  
  3151. # Check whether --enable-glx was given.
  3152. if test "${enable_glx+set}" = set; then :
  3153.   enableval=$enable_glx;
  3154. else
  3155.   enable_glx="yes"
  3156. fi
  3157.  
  3158.  
  3159. # Check whether --enable-egl was given.
  3160. if test "${enable_egl+set}" = set; then :
  3161.   enableval=$enable_egl;
  3162. else
  3163.   enable_egl="yes"
  3164. fi
  3165.  
  3166.  
  3167. # Check whether --enable-wayland was given.
  3168. if test "${enable_wayland+set}" = set; then :
  3169.   enableval=$enable_wayland;
  3170. else
  3171.   enable_wayland="yes"
  3172. fi
  3173.  
  3174.  
  3175. # Check whether --enable-dummy-driver was given.
  3176. if test "${enable_dummy_driver+set}" = set; then :
  3177.   enableval=$enable_dummy_driver;
  3178. else
  3179.   enable_dummy_driver="yes"
  3180. fi
  3181.  
  3182.  if test x$enable_dummy_driver = xyes; then
  3183.   BUILD_DUMMY_DRIVER_TRUE=
  3184.   BUILD_DUMMY_DRIVER_FALSE='#'
  3185. else
  3186.   BUILD_DUMMY_DRIVER_TRUE='#'
  3187.   BUILD_DUMMY_DRIVER_FALSE=
  3188. fi
  3189.  
  3190.  
  3191.  
  3192. # Check whether --with-drivers-path was given.
  3193. if test "${with_drivers_path+set}" = set; then :
  3194.   withval=$with_drivers_path;
  3195. else
  3196.   with_drivers_path="$libdir/dri"
  3197. fi
  3198.  
  3199.  
  3200. LIBVA_DRIVERS_PATH="$with_drivers_path"
  3201.  
  3202.  
  3203. # Check whether --enable-static was given.
  3204. if test "${enable_static+set}" = set; then :
  3205.   enableval=$enable_static; p=${PACKAGE-default}
  3206.     case $enableval in
  3207.     yes) enable_static=yes ;;
  3208.     no) enable_static=no ;;
  3209.     *)
  3210.      enable_static=no
  3211.       # Look at the argument we got.  We use all the common list separators.
  3212.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3213.       for pkg in $enableval; do
  3214.         IFS="$lt_save_ifs"
  3215.         if test "X$pkg" = "X$p"; then
  3216.           enable_static=yes
  3217.         fi
  3218.       done
  3219.       IFS="$lt_save_ifs"
  3220.       ;;
  3221.     esac
  3222. else
  3223.   enable_static=no
  3224. fi
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234. case `pwd` in
  3235.   *\ * | *\     *)
  3236.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3237. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3238. esac
  3239.  
  3240.  
  3241.  
  3242. macro_version='2.4.2'
  3243. macro_revision='1.3337'
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.  
  3250.  
  3251.  
  3252.  
  3253.  
  3254.  
  3255.  
  3256.  
  3257. ltmain="$ac_aux_dir/ltmain.sh"
  3258.  
  3259. # Make sure we can run config.sub.
  3260. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3261.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3262.  
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3264. $as_echo_n "checking build system type... " >&6; }
  3265. if ${ac_cv_build+:} false; then :
  3266.   $as_echo_n "(cached) " >&6
  3267. else
  3268.   ac_build_alias=$build_alias
  3269. test "x$ac_build_alias" = x &&
  3270.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3271. test "x$ac_build_alias" = x &&
  3272.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3273. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3274.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3275.  
  3276. fi
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3278. $as_echo "$ac_cv_build" >&6; }
  3279. case $ac_cv_build in
  3280. *-*-*) ;;
  3281. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3282. esac
  3283. build=$ac_cv_build
  3284. ac_save_IFS=$IFS; IFS='-'
  3285. set x $ac_cv_build
  3286. shift
  3287. build_cpu=$1
  3288. build_vendor=$2
  3289. shift; shift
  3290. # Remember, the first character of IFS is used to create $*,
  3291. # except with old shells:
  3292. build_os=$*
  3293. IFS=$ac_save_IFS
  3294. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3295.  
  3296.  
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3298. $as_echo_n "checking host system type... " >&6; }
  3299. if ${ac_cv_host+:} false; then :
  3300.   $as_echo_n "(cached) " >&6
  3301. else
  3302.   if test "x$host_alias" = x; then
  3303.   ac_cv_host=$ac_cv_build
  3304. else
  3305.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3306.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3307. fi
  3308.  
  3309. fi
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3311. $as_echo "$ac_cv_host" >&6; }
  3312. case $ac_cv_host in
  3313. *-*-*) ;;
  3314. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3315. esac
  3316. host=$ac_cv_host
  3317. ac_save_IFS=$IFS; IFS='-'
  3318. set x $ac_cv_host
  3319. shift
  3320. host_cpu=$1
  3321. host_vendor=$2
  3322. shift; shift
  3323. # Remember, the first character of IFS is used to create $*,
  3324. # except with old shells:
  3325. host_os=$*
  3326. IFS=$ac_save_IFS
  3327. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3328.  
  3329.  
  3330. # Backslashify metacharacters that are still active within
  3331. # double-quoted strings.
  3332. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3333.  
  3334. # Same as above, but do not quote variable references.
  3335. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3336.  
  3337. # Sed substitution to delay expansion of an escaped shell variable in a
  3338. # double_quote_subst'ed string.
  3339. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3340.  
  3341. # Sed substitution to delay expansion of an escaped single quote.
  3342. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3343.  
  3344. # Sed substitution to avoid accidental globbing in evaled expressions
  3345. no_glob_subst='s/\*/\\\*/g'
  3346.  
  3347. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3348. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3349. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3350.  
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3352. $as_echo_n "checking how to print strings... " >&6; }
  3353. # Test print first, because it will be a builtin if present.
  3354. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3355.    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3356.   ECHO='print -r --'
  3357. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3358.   ECHO='printf %s\n'
  3359. else
  3360.   # Use this function as a fallback that always works.
  3361.   func_fallback_echo ()
  3362.   {
  3363.     eval 'cat <<_LTECHO_EOF
  3364. $1
  3365. _LTECHO_EOF'
  3366.   }
  3367.   ECHO='func_fallback_echo'
  3368. fi
  3369.  
  3370. # func_echo_all arg...
  3371. # Invoke $ECHO with all args, space-separated.
  3372. func_echo_all ()
  3373. {
  3374.     $ECHO ""
  3375. }
  3376.  
  3377. case "$ECHO" in
  3378.   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3379. $as_echo "printf" >&6; } ;;
  3380.   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3381. $as_echo "print -r" >&6; } ;;
  3382.   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3383. $as_echo "cat" >&6; } ;;
  3384. esac
  3385.  
  3386.  
  3387.  
  3388.  
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399. DEPDIR="${am__leading_dot}deps"
  3400.  
  3401. ac_config_commands="$ac_config_commands depfiles"
  3402.  
  3403.  
  3404. am_make=${MAKE-make}
  3405. cat > confinc << 'END'
  3406. am__doit:
  3407.         @echo this is the am__doit target
  3408. .PHONY: am__doit
  3409. END
  3410. # If we don't find an include directive, just comment out the code.
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3412. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3413. am__include="#"
  3414. am__quote=
  3415. _am_result=none
  3416. # First try GNU make style include.
  3417. echo "include confinc" > confmf
  3418. # Ignore all kinds of additional output from 'make'.
  3419. case `$am_make -s -f confmf 2> /dev/null` in #(
  3420. *the\ am__doit\ target*)
  3421.   am__include=include
  3422.   am__quote=
  3423.   _am_result=GNU
  3424.   ;;
  3425. esac
  3426. # Now try BSD make style include.
  3427. if test "$am__include" = "#"; then
  3428.    echo '.include "confinc"' > confmf
  3429.    case `$am_make -s -f confmf 2> /dev/null` in #(
  3430.    *the\ am__doit\ target*)
  3431.      am__include=.include
  3432.      am__quote="\""
  3433.      _am_result=BSD
  3434.      ;;
  3435.    esac
  3436. fi
  3437.  
  3438.  
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3440. $as_echo "$_am_result" >&6; }
  3441. rm -f confinc confmf
  3442.  
  3443. # Check whether --enable-dependency-tracking was given.
  3444. if test "${enable_dependency_tracking+set}" = set; then :
  3445.   enableval=$enable_dependency_tracking;
  3446. fi
  3447.  
  3448. if test "x$enable_dependency_tracking" != xno; then
  3449.   am_depcomp="$ac_aux_dir/depcomp"
  3450.   AMDEPBACKSLASH='\'
  3451.   am__nodep='_no'
  3452. fi
  3453.  if test "x$enable_dependency_tracking" != xno; then
  3454.   AMDEP_TRUE=
  3455.   AMDEP_FALSE='#'
  3456. else
  3457.   AMDEP_TRUE='#'
  3458.   AMDEP_FALSE=
  3459. fi
  3460.  
  3461.  
  3462. ac_ext=c
  3463. ac_cpp='$CPP $CPPFLAGS'
  3464. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3465. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3466. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3467. if test -n "$ac_tool_prefix"; then
  3468.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3469. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3471. $as_echo_n "checking for $ac_word... " >&6; }
  3472. if ${ac_cv_prog_CC+:} false; then :
  3473.   $as_echo_n "(cached) " >&6
  3474. else
  3475.   if test -n "$CC"; then
  3476.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3477. else
  3478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3479. for as_dir in $PATH
  3480. do
  3481.   IFS=$as_save_IFS
  3482.   test -z "$as_dir" && as_dir=.
  3483.     for ac_exec_ext in '' $ac_executable_extensions; do
  3484.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3485.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3486.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3487.     break 2
  3488.   fi
  3489. done
  3490.   done
  3491. IFS=$as_save_IFS
  3492.  
  3493. fi
  3494. fi
  3495. CC=$ac_cv_prog_CC
  3496. if test -n "$CC"; then
  3497.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3498. $as_echo "$CC" >&6; }
  3499. else
  3500.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3501. $as_echo "no" >&6; }
  3502. fi
  3503.  
  3504.  
  3505. fi
  3506. if test -z "$ac_cv_prog_CC"; then
  3507.   ac_ct_CC=$CC
  3508.   # Extract the first word of "gcc", so it can be a program name with args.
  3509. set dummy gcc; ac_word=$2
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3511. $as_echo_n "checking for $ac_word... " >&6; }
  3512. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3513.   $as_echo_n "(cached) " >&6
  3514. else
  3515.   if test -n "$ac_ct_CC"; then
  3516.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3517. else
  3518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3519. for as_dir in $PATH
  3520. do
  3521.   IFS=$as_save_IFS
  3522.   test -z "$as_dir" && as_dir=.
  3523.     for ac_exec_ext in '' $ac_executable_extensions; do
  3524.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3525.     ac_cv_prog_ac_ct_CC="gcc"
  3526.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3527.     break 2
  3528.   fi
  3529. done
  3530.   done
  3531. IFS=$as_save_IFS
  3532.  
  3533. fi
  3534. fi
  3535. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3536. if test -n "$ac_ct_CC"; then
  3537.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3538. $as_echo "$ac_ct_CC" >&6; }
  3539. else
  3540.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3541. $as_echo "no" >&6; }
  3542. fi
  3543.  
  3544.   if test "x$ac_ct_CC" = x; then
  3545.     CC=""
  3546.   else
  3547.     case $cross_compiling:$ac_tool_warned in
  3548. yes:)
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3550. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3551. ac_tool_warned=yes ;;
  3552. esac
  3553.     CC=$ac_ct_CC
  3554.   fi
  3555. else
  3556.   CC="$ac_cv_prog_CC"
  3557. fi
  3558.  
  3559. if test -z "$CC"; then
  3560.           if test -n "$ac_tool_prefix"; then
  3561.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3562. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3564. $as_echo_n "checking for $ac_word... " >&6; }
  3565. if ${ac_cv_prog_CC+:} false; then :
  3566.   $as_echo_n "(cached) " >&6
  3567. else
  3568.   if test -n "$CC"; then
  3569.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3570. else
  3571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3572. for as_dir in $PATH
  3573. do
  3574.   IFS=$as_save_IFS
  3575.   test -z "$as_dir" && as_dir=.
  3576.     for ac_exec_ext in '' $ac_executable_extensions; do
  3577.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3578.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3579.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3580.     break 2
  3581.   fi
  3582. done
  3583.   done
  3584. IFS=$as_save_IFS
  3585.  
  3586. fi
  3587. fi
  3588. CC=$ac_cv_prog_CC
  3589. if test -n "$CC"; then
  3590.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3591. $as_echo "$CC" >&6; }
  3592. else
  3593.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3594. $as_echo "no" >&6; }
  3595. fi
  3596.  
  3597.  
  3598.   fi
  3599. fi
  3600. if test -z "$CC"; then
  3601.   # Extract the first word of "cc", so it can be a program name with args.
  3602. set dummy cc; ac_word=$2
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3604. $as_echo_n "checking for $ac_word... " >&6; }
  3605. if ${ac_cv_prog_CC+:} false; then :
  3606.   $as_echo_n "(cached) " >&6
  3607. else
  3608.   if test -n "$CC"; then
  3609.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3610. else
  3611.   ac_prog_rejected=no
  3612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3613. for as_dir in $PATH
  3614. do
  3615.   IFS=$as_save_IFS
  3616.   test -z "$as_dir" && as_dir=.
  3617.     for ac_exec_ext in '' $ac_executable_extensions; do
  3618.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3619.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3620.        ac_prog_rejected=yes
  3621.        continue
  3622.      fi
  3623.     ac_cv_prog_CC="cc"
  3624.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3625.     break 2
  3626.   fi
  3627. done
  3628.   done
  3629. IFS=$as_save_IFS
  3630.  
  3631. if test $ac_prog_rejected = yes; then
  3632.   # We found a bogon in the path, so make sure we never use it.
  3633.   set dummy $ac_cv_prog_CC
  3634.   shift
  3635.   if test $# != 0; then
  3636.     # We chose a different compiler from the bogus one.
  3637.     # However, it has the same basename, so the bogon will be chosen
  3638.     # first if we set CC to just the basename; use the full file name.
  3639.     shift
  3640.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3641.   fi
  3642. fi
  3643. fi
  3644. fi
  3645. CC=$ac_cv_prog_CC
  3646. if test -n "$CC"; then
  3647.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3648. $as_echo "$CC" >&6; }
  3649. else
  3650.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3651. $as_echo "no" >&6; }
  3652. fi
  3653.  
  3654.  
  3655. fi
  3656. if test -z "$CC"; then
  3657.   if test -n "$ac_tool_prefix"; then
  3658.   for ac_prog in cl.exe
  3659.   do
  3660.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3661. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3663. $as_echo_n "checking for $ac_word... " >&6; }
  3664. if ${ac_cv_prog_CC+:} false; then :
  3665.   $as_echo_n "(cached) " >&6
  3666. else
  3667.   if test -n "$CC"; then
  3668.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3669. else
  3670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3671. for as_dir in $PATH
  3672. do
  3673.   IFS=$as_save_IFS
  3674.   test -z "$as_dir" && as_dir=.
  3675.     for ac_exec_ext in '' $ac_executable_extensions; do
  3676.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3677.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3678.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3679.     break 2
  3680.   fi
  3681. done
  3682.   done
  3683. IFS=$as_save_IFS
  3684.  
  3685. fi
  3686. fi
  3687. CC=$ac_cv_prog_CC
  3688. if test -n "$CC"; then
  3689.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3690. $as_echo "$CC" >&6; }
  3691. else
  3692.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3693. $as_echo "no" >&6; }
  3694. fi
  3695.  
  3696.  
  3697.     test -n "$CC" && break
  3698.   done
  3699. fi
  3700. if test -z "$CC"; then
  3701.   ac_ct_CC=$CC
  3702.   for ac_prog in cl.exe
  3703. do
  3704.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3705. set dummy $ac_prog; ac_word=$2
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3707. $as_echo_n "checking for $ac_word... " >&6; }
  3708. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3709.   $as_echo_n "(cached) " >&6
  3710. else
  3711.   if test -n "$ac_ct_CC"; then
  3712.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3713. else
  3714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3715. for as_dir in $PATH
  3716. do
  3717.   IFS=$as_save_IFS
  3718.   test -z "$as_dir" && as_dir=.
  3719.     for ac_exec_ext in '' $ac_executable_extensions; do
  3720.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3721.     ac_cv_prog_ac_ct_CC="$ac_prog"
  3722.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3723.     break 2
  3724.   fi
  3725. done
  3726.   done
  3727. IFS=$as_save_IFS
  3728.  
  3729. fi
  3730. fi
  3731. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3732. if test -n "$ac_ct_CC"; then
  3733.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3734. $as_echo "$ac_ct_CC" >&6; }
  3735. else
  3736.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3737. $as_echo "no" >&6; }
  3738. fi
  3739.  
  3740.  
  3741.   test -n "$ac_ct_CC" && break
  3742. done
  3743.  
  3744.   if test "x$ac_ct_CC" = x; then
  3745.     CC=""
  3746.   else
  3747.     case $cross_compiling:$ac_tool_warned in
  3748. yes:)
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3750. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3751. ac_tool_warned=yes ;;
  3752. esac
  3753.     CC=$ac_ct_CC
  3754.   fi
  3755. fi
  3756.  
  3757. fi
  3758.  
  3759.  
  3760. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3761. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3762. as_fn_error $? "no acceptable C compiler found in \$PATH
  3763. See \`config.log' for more details" "$LINENO" 5; }
  3764.  
  3765. # Provide some information about the compiler.
  3766. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3767. set X $ac_compile
  3768. ac_compiler=$2
  3769. for ac_option in --version -v -V -qversion; do
  3770.   { { ac_try="$ac_compiler $ac_option >&5"
  3771. case "(($ac_try" in
  3772.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3773.   *) ac_try_echo=$ac_try;;
  3774. esac
  3775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3776. $as_echo "$ac_try_echo"; } >&5
  3777.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3778.   ac_status=$?
  3779.   if test -s conftest.err; then
  3780.     sed '10a\
  3781. ... rest of stderr output deleted ...
  3782.          10q' conftest.err >conftest.er1
  3783.     cat conftest.er1 >&5
  3784.   fi
  3785.   rm -f conftest.er1 conftest.err
  3786.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3787.   test $ac_status = 0; }
  3788. done
  3789.  
  3790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3791. /* end confdefs.h.  */
  3792.  
  3793. int
  3794. main ()
  3795. {
  3796.  
  3797.   ;
  3798.   return 0;
  3799. }
  3800. _ACEOF
  3801. ac_clean_files_save=$ac_clean_files
  3802. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3803. # Try to create an executable without -o first, disregard a.out.
  3804. # It will help us diagnose broken compilers, and finding out an intuition
  3805. # of exeext.
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3807. $as_echo_n "checking whether the C compiler works... " >&6; }
  3808. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3809.  
  3810. # The possible output files:
  3811. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3812.  
  3813. ac_rmfiles=
  3814. for ac_file in $ac_files
  3815. do
  3816.   case $ac_file in
  3817.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3818.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3819.   esac
  3820. done
  3821. rm -f $ac_rmfiles
  3822.  
  3823. if { { ac_try="$ac_link_default"
  3824. case "(($ac_try" in
  3825.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3826.   *) ac_try_echo=$ac_try;;
  3827. esac
  3828. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3829. $as_echo "$ac_try_echo"; } >&5
  3830.   (eval "$ac_link_default") 2>&5
  3831.   ac_status=$?
  3832.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3833.   test $ac_status = 0; }; then :
  3834.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3835. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3836. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3837. # so that the user can short-circuit this test for compilers unknown to
  3838. # Autoconf.
  3839. for ac_file in $ac_files ''
  3840. do
  3841.   test -f "$ac_file" || continue
  3842.   case $ac_file in
  3843.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3844.         ;;
  3845.     [ab].out )
  3846.         # We found the default executable, but exeext='' is most
  3847.         # certainly right.
  3848.         break;;
  3849.     *.* )
  3850.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3851.         then :; else
  3852.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3853.         fi
  3854.         # We set ac_cv_exeext here because the later test for it is not
  3855.         # safe: cross compilers may not add the suffix if given an `-o'
  3856.         # argument, so we may need to know it at that point already.
  3857.         # Even if this section looks crufty: it has the advantage of
  3858.         # actually working.
  3859.         break;;
  3860.     * )
  3861.         break;;
  3862.   esac
  3863. done
  3864. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3865.  
  3866. else
  3867.   ac_file=''
  3868. fi
  3869. if test -z "$ac_file"; then :
  3870.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3871. $as_echo "no" >&6; }
  3872. $as_echo "$as_me: failed program was:" >&5
  3873. sed 's/^/| /' conftest.$ac_ext >&5
  3874.  
  3875. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3876. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3877. as_fn_error 77 "C compiler cannot create executables
  3878. See \`config.log' for more details" "$LINENO" 5; }
  3879. else
  3880.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3881. $as_echo "yes" >&6; }
  3882. fi
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3884. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3886. $as_echo "$ac_file" >&6; }
  3887. ac_exeext=$ac_cv_exeext
  3888.  
  3889. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3890. ac_clean_files=$ac_clean_files_save
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3892. $as_echo_n "checking for suffix of executables... " >&6; }
  3893. if { { ac_try="$ac_link"
  3894. case "(($ac_try" in
  3895.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3896.   *) ac_try_echo=$ac_try;;
  3897. esac
  3898. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3899. $as_echo "$ac_try_echo"; } >&5
  3900.   (eval "$ac_link") 2>&5
  3901.   ac_status=$?
  3902.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3903.   test $ac_status = 0; }; then :
  3904.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3905. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3906. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3907. # `rm'.
  3908. for ac_file in conftest.exe conftest conftest.*; do
  3909.   test -f "$ac_file" || continue
  3910.   case $ac_file in
  3911.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3912.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3913.           break;;
  3914.     * ) break;;
  3915.   esac
  3916. done
  3917. else
  3918.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3919. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3920. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3921. See \`config.log' for more details" "$LINENO" 5; }
  3922. fi
  3923. rm -f conftest conftest$ac_cv_exeext
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3925. $as_echo "$ac_cv_exeext" >&6; }
  3926.  
  3927. rm -f conftest.$ac_ext
  3928. EXEEXT=$ac_cv_exeext
  3929. ac_exeext=$EXEEXT
  3930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3931. /* end confdefs.h.  */
  3932. #include <stdio.h>
  3933. int
  3934. main ()
  3935. {
  3936. FILE *f = fopen ("conftest.out", "w");
  3937.  return ferror (f) || fclose (f) != 0;
  3938.  
  3939.   ;
  3940.   return 0;
  3941. }
  3942. _ACEOF
  3943. ac_clean_files="$ac_clean_files conftest.out"
  3944. # Check that the compiler produces executables we can run.  If not, either
  3945. # the compiler is broken, or we cross compile.
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3947. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3948. if test "$cross_compiling" != yes; then
  3949.   { { ac_try="$ac_link"
  3950. case "(($ac_try" in
  3951.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3952.   *) ac_try_echo=$ac_try;;
  3953. esac
  3954. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3955. $as_echo "$ac_try_echo"; } >&5
  3956.   (eval "$ac_link") 2>&5
  3957.   ac_status=$?
  3958.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3959.   test $ac_status = 0; }
  3960.   if { ac_try='./conftest$ac_cv_exeext'
  3961.   { { case "(($ac_try" in
  3962.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3963.   *) ac_try_echo=$ac_try;;
  3964. esac
  3965. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3966. $as_echo "$ac_try_echo"; } >&5
  3967.   (eval "$ac_try") 2>&5
  3968.   ac_status=$?
  3969.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3970.   test $ac_status = 0; }; }; then
  3971.     cross_compiling=no
  3972.   else
  3973.     if test "$cross_compiling" = maybe; then
  3974.         cross_compiling=yes
  3975.     else
  3976.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3977. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3978. as_fn_error $? "cannot run C compiled programs.
  3979. If you meant to cross compile, use \`--host'.
  3980. See \`config.log' for more details" "$LINENO" 5; }
  3981.     fi
  3982.   fi
  3983. fi
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3985. $as_echo "$cross_compiling" >&6; }
  3986.  
  3987. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3988. ac_clean_files=$ac_clean_files_save
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3990. $as_echo_n "checking for suffix of object files... " >&6; }
  3991. if ${ac_cv_objext+:} false; then :
  3992.   $as_echo_n "(cached) " >&6
  3993. else
  3994.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3995. /* end confdefs.h.  */
  3996.  
  3997. int
  3998. main ()
  3999. {
  4000.  
  4001.   ;
  4002.   return 0;
  4003. }
  4004. _ACEOF
  4005. rm -f conftest.o conftest.obj
  4006. if { { ac_try="$ac_compile"
  4007. case "(($ac_try" in
  4008.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4009.   *) ac_try_echo=$ac_try;;
  4010. esac
  4011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4012. $as_echo "$ac_try_echo"; } >&5
  4013.   (eval "$ac_compile") 2>&5
  4014.   ac_status=$?
  4015.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4016.   test $ac_status = 0; }; then :
  4017.   for ac_file in conftest.o conftest.obj conftest.*; do
  4018.   test -f "$ac_file" || continue;
  4019.   case $ac_file in
  4020.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4021.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4022.        break;;
  4023.   esac
  4024. done
  4025. else
  4026.   $as_echo "$as_me: failed program was:" >&5
  4027. sed 's/^/| /' conftest.$ac_ext >&5
  4028.  
  4029. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4031. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4032. See \`config.log' for more details" "$LINENO" 5; }
  4033. fi
  4034. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4035. fi
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4037. $as_echo "$ac_cv_objext" >&6; }
  4038. OBJEXT=$ac_cv_objext
  4039. ac_objext=$OBJEXT
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4041. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4042. if ${ac_cv_c_compiler_gnu+:} false; then :
  4043.   $as_echo_n "(cached) " >&6
  4044. else
  4045.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4046. /* end confdefs.h.  */
  4047.  
  4048. int
  4049. main ()
  4050. {
  4051. #ifndef __GNUC__
  4052.        choke me
  4053. #endif
  4054.  
  4055.   ;
  4056.   return 0;
  4057. }
  4058. _ACEOF
  4059. if ac_fn_c_try_compile "$LINENO"; then :
  4060.   ac_compiler_gnu=yes
  4061. else
  4062.   ac_compiler_gnu=no
  4063. fi
  4064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4065. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4066.  
  4067. fi
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4069. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4070. if test $ac_compiler_gnu = yes; then
  4071.   GCC=yes
  4072. else
  4073.   GCC=
  4074. fi
  4075. ac_test_CFLAGS=${CFLAGS+set}
  4076. ac_save_CFLAGS=$CFLAGS
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4078. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4079. if ${ac_cv_prog_cc_g+:} false; then :
  4080.   $as_echo_n "(cached) " >&6
  4081. else
  4082.   ac_save_c_werror_flag=$ac_c_werror_flag
  4083.    ac_c_werror_flag=yes
  4084.    ac_cv_prog_cc_g=no
  4085.    CFLAGS="-g"
  4086.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4087. /* end confdefs.h.  */
  4088.  
  4089. int
  4090. main ()
  4091. {
  4092.  
  4093.   ;
  4094.   return 0;
  4095. }
  4096. _ACEOF
  4097. if ac_fn_c_try_compile "$LINENO"; then :
  4098.   ac_cv_prog_cc_g=yes
  4099. else
  4100.   CFLAGS=""
  4101.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4102. /* end confdefs.h.  */
  4103.  
  4104. int
  4105. main ()
  4106. {
  4107.  
  4108.   ;
  4109.   return 0;
  4110. }
  4111. _ACEOF
  4112. if ac_fn_c_try_compile "$LINENO"; then :
  4113.  
  4114. else
  4115.   ac_c_werror_flag=$ac_save_c_werror_flag
  4116.          CFLAGS="-g"
  4117.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4118. /* end confdefs.h.  */
  4119.  
  4120. int
  4121. main ()
  4122. {
  4123.  
  4124.   ;
  4125.   return 0;
  4126. }
  4127. _ACEOF
  4128. if ac_fn_c_try_compile "$LINENO"; then :
  4129.   ac_cv_prog_cc_g=yes
  4130. fi
  4131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4132. fi
  4133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4134. fi
  4135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4136.    ac_c_werror_flag=$ac_save_c_werror_flag
  4137. fi
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4139. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4140. if test "$ac_test_CFLAGS" = set; then
  4141.   CFLAGS=$ac_save_CFLAGS
  4142. elif test $ac_cv_prog_cc_g = yes; then
  4143.   if test "$GCC" = yes; then
  4144.     CFLAGS="-g -O2"
  4145.   else
  4146.     CFLAGS="-g"
  4147.   fi
  4148. else
  4149.   if test "$GCC" = yes; then
  4150.     CFLAGS="-O2"
  4151.   else
  4152.     CFLAGS=
  4153.   fi
  4154. fi
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4156. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4157. if ${ac_cv_prog_cc_c89+:} false; then :
  4158.   $as_echo_n "(cached) " >&6
  4159. else
  4160.   ac_cv_prog_cc_c89=no
  4161. ac_save_CC=$CC
  4162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4163. /* end confdefs.h.  */
  4164. #include <stdarg.h>
  4165. #include <stdio.h>
  4166. struct stat;
  4167. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4168. struct buf { int x; };
  4169. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4170. static char *e (p, i)
  4171.      char **p;
  4172.      int i;
  4173. {
  4174.   return p[i];
  4175. }
  4176. static char *f (char * (*g) (char **, int), char **p, ...)
  4177. {
  4178.   char *s;
  4179.   va_list v;
  4180.   va_start (v,p);
  4181.   s = g (p, va_arg (v,int));
  4182.   va_end (v);
  4183.   return s;
  4184. }
  4185.  
  4186. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4187.    function prototypes and stuff, but not '\xHH' hex character constants.
  4188.    These don't provoke an error unfortunately, instead are silently treated
  4189.    as 'x'.  The following induces an error, until -std is added to get
  4190.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4191.    array size at least.  It's necessary to write '\x00'==0 to get something
  4192.    that's true only with -std.  */
  4193. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4194.  
  4195. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4196.    inside strings and character constants.  */
  4197. #define FOO(x) 'x'
  4198. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4199.  
  4200. int test (int i, double x);
  4201. struct s1 {int (*f) (int a);};
  4202. struct s2 {int (*f) (double a);};
  4203. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4204. int argc;
  4205. char **argv;
  4206. int
  4207. main ()
  4208. {
  4209. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4210.   ;
  4211.   return 0;
  4212. }
  4213. _ACEOF
  4214. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4215.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4216. do
  4217.   CC="$ac_save_CC $ac_arg"
  4218.   if ac_fn_c_try_compile "$LINENO"; then :
  4219.   ac_cv_prog_cc_c89=$ac_arg
  4220. fi
  4221. rm -f core conftest.err conftest.$ac_objext
  4222.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4223. done
  4224. rm -f conftest.$ac_ext
  4225. CC=$ac_save_CC
  4226.  
  4227. fi
  4228. # AC_CACHE_VAL
  4229. case "x$ac_cv_prog_cc_c89" in
  4230.   x)
  4231.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4232. $as_echo "none needed" >&6; } ;;
  4233.   xno)
  4234.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4235. $as_echo "unsupported" >&6; } ;;
  4236.   *)
  4237.     CC="$CC $ac_cv_prog_cc_c89"
  4238.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4239. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4240. esac
  4241. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4242.  
  4243. fi
  4244.  
  4245. ac_ext=c
  4246. ac_cpp='$CPP $CPPFLAGS'
  4247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4250.  
  4251. ac_ext=c
  4252. ac_cpp='$CPP $CPPFLAGS'
  4253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4257. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4258. if ${am_cv_prog_cc_c_o+:} false; then :
  4259.   $as_echo_n "(cached) " >&6
  4260. else
  4261.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4262. /* end confdefs.h.  */
  4263.  
  4264. int
  4265. main ()
  4266. {
  4267.  
  4268.   ;
  4269.   return 0;
  4270. }
  4271. _ACEOF
  4272.   # Make sure it works both with $CC and with simple cc.
  4273.   # Following AC_PROG_CC_C_O, we do the test twice because some
  4274.   # compilers refuse to overwrite an existing .o file with -o,
  4275.   # though they will create one.
  4276.   am_cv_prog_cc_c_o=yes
  4277.   for am_i in 1 2; do
  4278.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4279.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4280.    ac_status=$?
  4281.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282.    (exit $ac_status); } \
  4283.          && test -f conftest2.$ac_objext; then
  4284.       : OK
  4285.     else
  4286.       am_cv_prog_cc_c_o=no
  4287.       break
  4288.     fi
  4289.   done
  4290.   rm -f core conftest*
  4291.   unset am_i
  4292. fi
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4294. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4295. if test "$am_cv_prog_cc_c_o" != yes; then
  4296.    # Losing compiler, so override with the script.
  4297.    # FIXME: It is wrong to rewrite CC.
  4298.    # But if we don't then we get into trouble of one sort or another.
  4299.    # A longer-term fix would be to have automake use am__CC in this case,
  4300.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4301.    CC="$am_aux_dir/compile $CC"
  4302. fi
  4303. ac_ext=c
  4304. ac_cpp='$CPP $CPPFLAGS'
  4305. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4306. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4307. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4308.  
  4309.  
  4310. depcc="$CC"   am_compiler_list=
  4311.  
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4313. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4314. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4315.   $as_echo_n "(cached) " >&6
  4316. else
  4317.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4318.   # We make a subdir and do the tests there.  Otherwise we can end up
  4319.   # making bogus files that we don't know about and never remove.  For
  4320.   # instance it was reported that on HP-UX the gcc test will end up
  4321.   # making a dummy file named 'D' -- because '-MD' means "put the output
  4322.   # in D".
  4323.   rm -rf conftest.dir
  4324.   mkdir conftest.dir
  4325.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4326.   # using a relative directory.
  4327.   cp "$am_depcomp" conftest.dir
  4328.   cd conftest.dir
  4329.   # We will build objects and dependencies in a subdirectory because
  4330.   # it helps to detect inapplicable dependency modes.  For instance
  4331.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4332.   # side effect of compilation, but ICC will put the dependencies in
  4333.   # the current directory while Tru64 will put them in the object
  4334.   # directory.
  4335.   mkdir sub
  4336.  
  4337.   am_cv_CC_dependencies_compiler_type=none
  4338.   if test "$am_compiler_list" = ""; then
  4339.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4340.   fi
  4341.   am__universal=false
  4342.   case " $depcc " in #(
  4343.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4344.      esac
  4345.  
  4346.   for depmode in $am_compiler_list; do
  4347.     # Setup a source with many dependencies, because some compilers
  4348.     # like to wrap large dependency lists on column 80 (with \), and
  4349.     # we should not choose a depcomp mode which is confused by this.
  4350.     #
  4351.     # We need to recreate these files for each test, as the compiler may
  4352.     # overwrite some of them when testing with obscure command lines.
  4353.     # This happens at least with the AIX C compiler.
  4354.     : > sub/conftest.c
  4355.     for i in 1 2 3 4 5 6; do
  4356.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4357.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4358.       # Solaris 10 /bin/sh.
  4359.       echo '/* dummy */' > sub/conftst$i.h
  4360.     done
  4361.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4362.  
  4363.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4364.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4365.     # handle '-M -o', and we need to detect this.  Also, some Intel
  4366.     # versions had trouble with output in subdirs.
  4367.     am__obj=sub/conftest.${OBJEXT-o}
  4368.     am__minus_obj="-o $am__obj"
  4369.     case $depmode in
  4370.     gcc)
  4371.       # This depmode causes a compiler race in universal mode.
  4372.       test "$am__universal" = false || continue
  4373.       ;;
  4374.     nosideeffect)
  4375.       # After this tag, mechanisms are not by side-effect, so they'll
  4376.       # only be used when explicitly requested.
  4377.       if test "x$enable_dependency_tracking" = xyes; then
  4378.         continue
  4379.       else
  4380.         break
  4381.       fi
  4382.       ;;
  4383.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4384.       # This compiler won't grok '-c -o', but also, the minuso test has
  4385.       # not run yet.  These depmodes are late enough in the game, and
  4386.       # so weak that their functioning should not be impacted.
  4387.       am__obj=conftest.${OBJEXT-o}
  4388.       am__minus_obj=
  4389.       ;;
  4390.     none) break ;;
  4391.     esac
  4392.     if depmode=$depmode \
  4393.        source=sub/conftest.c object=$am__obj \
  4394.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4395.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4396.          >/dev/null 2>conftest.err &&
  4397.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4398.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4399.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4400.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4401.       # icc doesn't choke on unknown options, it will just issue warnings
  4402.       # or remarks (even with -Werror).  So we grep stderr for any message
  4403.       # that says an option was ignored or not supported.
  4404.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4405.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4406.       # The diagnosis changed in icc 8.0:
  4407.       #   icc: Command line remark: option '-MP' not supported
  4408.       if (grep 'ignoring option' conftest.err ||
  4409.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4410.         am_cv_CC_dependencies_compiler_type=$depmode
  4411.         break
  4412.       fi
  4413.     fi
  4414.   done
  4415.  
  4416.   cd ..
  4417.   rm -rf conftest.dir
  4418. else
  4419.   am_cv_CC_dependencies_compiler_type=none
  4420. fi
  4421.  
  4422. fi
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4424. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4425. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4426.  
  4427.  if
  4428.   test "x$enable_dependency_tracking" != xno \
  4429.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4430.   am__fastdepCC_TRUE=
  4431.   am__fastdepCC_FALSE='#'
  4432. else
  4433.   am__fastdepCC_TRUE='#'
  4434.   am__fastdepCC_FALSE=
  4435. fi
  4436.  
  4437.  
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4439. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4440. if ${ac_cv_path_SED+:} false; then :
  4441.   $as_echo_n "(cached) " >&6
  4442. else
  4443.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4444.      for ac_i in 1 2 3 4 5 6 7; do
  4445.        ac_script="$ac_script$as_nl$ac_script"
  4446.      done
  4447.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4448.      { ac_script=; unset ac_script;}
  4449.      if test -z "$SED"; then
  4450.   ac_path_SED_found=false
  4451.   # Loop through the user's path and test for each of PROGNAME-LIST
  4452.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4453. for as_dir in $PATH
  4454. do
  4455.   IFS=$as_save_IFS
  4456.   test -z "$as_dir" && as_dir=.
  4457.     for ac_prog in sed gsed; do
  4458.     for ac_exec_ext in '' $ac_executable_extensions; do
  4459.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4460.       as_fn_executable_p "$ac_path_SED" || continue
  4461. # Check for GNU ac_path_SED and select it if it is found.
  4462.   # Check for GNU $ac_path_SED
  4463. case `"$ac_path_SED" --version 2>&1` in
  4464. *GNU*)
  4465.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4466. *)
  4467.   ac_count=0
  4468.   $as_echo_n 0123456789 >"conftest.in"
  4469.   while :
  4470.   do
  4471.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4472.     mv "conftest.tmp" "conftest.in"
  4473.     cp "conftest.in" "conftest.nl"
  4474.     $as_echo '' >> "conftest.nl"
  4475.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4476.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4477.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4478.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  4479.       # Best one so far, save it but keep looking for a better one
  4480.       ac_cv_path_SED="$ac_path_SED"
  4481.       ac_path_SED_max=$ac_count
  4482.     fi
  4483.     # 10*(2^10) chars as input seems more than enough
  4484.     test $ac_count -gt 10 && break
  4485.   done
  4486.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4487. esac
  4488.  
  4489.       $ac_path_SED_found && break 3
  4490.     done
  4491.   done
  4492.   done
  4493. IFS=$as_save_IFS
  4494.   if test -z "$ac_cv_path_SED"; then
  4495.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4496.   fi
  4497. else
  4498.   ac_cv_path_SED=$SED
  4499. fi
  4500.  
  4501. fi
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4503. $as_echo "$ac_cv_path_SED" >&6; }
  4504.  SED="$ac_cv_path_SED"
  4505.   rm -f conftest.sed
  4506.  
  4507. test -z "$SED" && SED=sed
  4508. Xsed="$SED -e 1s/^X//"
  4509.  
  4510.  
  4511.  
  4512.  
  4513.  
  4514.  
  4515.  
  4516.  
  4517.  
  4518.  
  4519.  
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4521. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4522. if ${ac_cv_path_GREP+:} false; then :
  4523.   $as_echo_n "(cached) " >&6
  4524. else
  4525.   if test -z "$GREP"; then
  4526.   ac_path_GREP_found=false
  4527.   # Loop through the user's path and test for each of PROGNAME-LIST
  4528.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4529. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4530. do
  4531.   IFS=$as_save_IFS
  4532.   test -z "$as_dir" && as_dir=.
  4533.     for ac_prog in grep ggrep; do
  4534.     for ac_exec_ext in '' $ac_executable_extensions; do
  4535.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4536.       as_fn_executable_p "$ac_path_GREP" || continue
  4537. # Check for GNU ac_path_GREP and select it if it is found.
  4538.   # Check for GNU $ac_path_GREP
  4539. case `"$ac_path_GREP" --version 2>&1` in
  4540. *GNU*)
  4541.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4542. *)
  4543.   ac_count=0
  4544.   $as_echo_n 0123456789 >"conftest.in"
  4545.   while :
  4546.   do
  4547.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4548.     mv "conftest.tmp" "conftest.in"
  4549.     cp "conftest.in" "conftest.nl"
  4550.     $as_echo 'GREP' >> "conftest.nl"
  4551.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4552.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4553.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4554.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4555.       # Best one so far, save it but keep looking for a better one
  4556.       ac_cv_path_GREP="$ac_path_GREP"
  4557.       ac_path_GREP_max=$ac_count
  4558.     fi
  4559.     # 10*(2^10) chars as input seems more than enough
  4560.     test $ac_count -gt 10 && break
  4561.   done
  4562.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4563. esac
  4564.  
  4565.       $ac_path_GREP_found && break 3
  4566.     done
  4567.   done
  4568.   done
  4569. IFS=$as_save_IFS
  4570.   if test -z "$ac_cv_path_GREP"; then
  4571.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4572.   fi
  4573. else
  4574.   ac_cv_path_GREP=$GREP
  4575. fi
  4576.  
  4577. fi
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4579. $as_echo "$ac_cv_path_GREP" >&6; }
  4580.  GREP="$ac_cv_path_GREP"
  4581.  
  4582.  
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4584. $as_echo_n "checking for egrep... " >&6; }
  4585. if ${ac_cv_path_EGREP+:} false; then :
  4586.   $as_echo_n "(cached) " >&6
  4587. else
  4588.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4589.    then ac_cv_path_EGREP="$GREP -E"
  4590.    else
  4591.      if test -z "$EGREP"; then
  4592.   ac_path_EGREP_found=false
  4593.   # Loop through the user's path and test for each of PROGNAME-LIST
  4594.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4595. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4596. do
  4597.   IFS=$as_save_IFS
  4598.   test -z "$as_dir" && as_dir=.
  4599.     for ac_prog in egrep; do
  4600.     for ac_exec_ext in '' $ac_executable_extensions; do
  4601.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4602.       as_fn_executable_p "$ac_path_EGREP" || continue
  4603. # Check for GNU ac_path_EGREP and select it if it is found.
  4604.   # Check for GNU $ac_path_EGREP
  4605. case `"$ac_path_EGREP" --version 2>&1` in
  4606. *GNU*)
  4607.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4608. *)
  4609.   ac_count=0
  4610.   $as_echo_n 0123456789 >"conftest.in"
  4611.   while :
  4612.   do
  4613.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4614.     mv "conftest.tmp" "conftest.in"
  4615.     cp "conftest.in" "conftest.nl"
  4616.     $as_echo 'EGREP' >> "conftest.nl"
  4617.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4618.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4619.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4620.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4621.       # Best one so far, save it but keep looking for a better one
  4622.       ac_cv_path_EGREP="$ac_path_EGREP"
  4623.       ac_path_EGREP_max=$ac_count
  4624.     fi
  4625.     # 10*(2^10) chars as input seems more than enough
  4626.     test $ac_count -gt 10 && break
  4627.   done
  4628.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4629. esac
  4630.  
  4631.       $ac_path_EGREP_found && break 3
  4632.     done
  4633.   done
  4634.   done
  4635. IFS=$as_save_IFS
  4636.   if test -z "$ac_cv_path_EGREP"; then
  4637.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4638.   fi
  4639. else
  4640.   ac_cv_path_EGREP=$EGREP
  4641. fi
  4642.  
  4643.    fi
  4644. fi
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4646. $as_echo "$ac_cv_path_EGREP" >&6; }
  4647.  EGREP="$ac_cv_path_EGREP"
  4648.  
  4649.  
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4651. $as_echo_n "checking for fgrep... " >&6; }
  4652. if ${ac_cv_path_FGREP+:} false; then :
  4653.   $as_echo_n "(cached) " >&6
  4654. else
  4655.   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4656.    then ac_cv_path_FGREP="$GREP -F"
  4657.    else
  4658.      if test -z "$FGREP"; then
  4659.   ac_path_FGREP_found=false
  4660.   # Loop through the user's path and test for each of PROGNAME-LIST
  4661.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4662. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4663. do
  4664.   IFS=$as_save_IFS
  4665.   test -z "$as_dir" && as_dir=.
  4666.     for ac_prog in fgrep; do
  4667.     for ac_exec_ext in '' $ac_executable_extensions; do
  4668.       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4669.       as_fn_executable_p "$ac_path_FGREP" || continue
  4670. # Check for GNU ac_path_FGREP and select it if it is found.
  4671.   # Check for GNU $ac_path_FGREP
  4672. case `"$ac_path_FGREP" --version 2>&1` in
  4673. *GNU*)
  4674.   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4675. *)
  4676.   ac_count=0
  4677.   $as_echo_n 0123456789 >"conftest.in"
  4678.   while :
  4679.   do
  4680.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4681.     mv "conftest.tmp" "conftest.in"
  4682.     cp "conftest.in" "conftest.nl"
  4683.     $as_echo 'FGREP' >> "conftest.nl"
  4684.     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4685.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4686.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4687.     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4688.       # Best one so far, save it but keep looking for a better one
  4689.       ac_cv_path_FGREP="$ac_path_FGREP"
  4690.       ac_path_FGREP_max=$ac_count
  4691.     fi
  4692.     # 10*(2^10) chars as input seems more than enough
  4693.     test $ac_count -gt 10 && break
  4694.   done
  4695.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4696. esac
  4697.  
  4698.       $ac_path_FGREP_found && break 3
  4699.     done
  4700.   done
  4701.   done
  4702. IFS=$as_save_IFS
  4703.   if test -z "$ac_cv_path_FGREP"; then
  4704.     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4705.   fi
  4706. else
  4707.   ac_cv_path_FGREP=$FGREP
  4708. fi
  4709.  
  4710.    fi
  4711. fi
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4713. $as_echo "$ac_cv_path_FGREP" >&6; }
  4714.  FGREP="$ac_cv_path_FGREP"
  4715.  
  4716.  
  4717. test -z "$GREP" && GREP=grep
  4718.  
  4719.  
  4720.  
  4721.  
  4722.  
  4723.  
  4724.  
  4725.  
  4726.  
  4727.  
  4728.  
  4729.  
  4730.  
  4731.  
  4732.  
  4733.  
  4734.  
  4735.  
  4736.  
  4737. # Check whether --with-gnu-ld was given.
  4738. if test "${with_gnu_ld+set}" = set; then :
  4739.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4740. else
  4741.   with_gnu_ld=no
  4742. fi
  4743.  
  4744. ac_prog=ld
  4745. if test "$GCC" = yes; then
  4746.   # Check if gcc -print-prog-name=ld gives a path.
  4747.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4748. $as_echo_n "checking for ld used by $CC... " >&6; }
  4749.   case $host in
  4750.   *-*-mingw*)
  4751.     # gcc leaves a trailing carriage return which upsets mingw
  4752.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4753.   *)
  4754.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4755.   esac
  4756.   case $ac_prog in
  4757.     # Accept absolute paths.
  4758.     [\\/]* | ?:[\\/]*)
  4759.       re_direlt='/[^/][^/]*/\.\./'
  4760.       # Canonicalize the pathname of ld
  4761.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4762.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4763.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4764.       done
  4765.       test -z "$LD" && LD="$ac_prog"
  4766.       ;;
  4767.   "")
  4768.     # If it fails, then pretend we aren't using GCC.
  4769.     ac_prog=ld
  4770.     ;;
  4771.   *)
  4772.     # If it is relative, then search for the first ld in PATH.
  4773.     with_gnu_ld=unknown
  4774.     ;;
  4775.   esac
  4776. elif test "$with_gnu_ld" = yes; then
  4777.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4778. $as_echo_n "checking for GNU ld... " >&6; }
  4779. else
  4780.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4781. $as_echo_n "checking for non-GNU ld... " >&6; }
  4782. fi
  4783. if ${lt_cv_path_LD+:} false; then :
  4784.   $as_echo_n "(cached) " >&6
  4785. else
  4786.   if test -z "$LD"; then
  4787.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4788.   for ac_dir in $PATH; do
  4789.     IFS="$lt_save_ifs"
  4790.     test -z "$ac_dir" && ac_dir=.
  4791.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4792.       lt_cv_path_LD="$ac_dir/$ac_prog"
  4793.       # Check to see if the program is GNU ld.  I'd rather use --version,
  4794.       # but apparently some variants of GNU ld only accept -v.
  4795.       # Break only if it was the GNU/non-GNU ld that we prefer.
  4796.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4797.       *GNU* | *'with BFD'*)
  4798.         test "$with_gnu_ld" != no && break
  4799.         ;;
  4800.       *)
  4801.         test "$with_gnu_ld" != yes && break
  4802.         ;;
  4803.       esac
  4804.     fi
  4805.   done
  4806.   IFS="$lt_save_ifs"
  4807. else
  4808.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4809. fi
  4810. fi
  4811.  
  4812. LD="$lt_cv_path_LD"
  4813. if test -n "$LD"; then
  4814.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4815. $as_echo "$LD" >&6; }
  4816. else
  4817.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4818. $as_echo "no" >&6; }
  4819. fi
  4820. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4822. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4823. if ${lt_cv_prog_gnu_ld+:} false; then :
  4824.   $as_echo_n "(cached) " >&6
  4825. else
  4826.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4827. case `$LD -v 2>&1 </dev/null` in
  4828. *GNU* | *'with BFD'*)
  4829.   lt_cv_prog_gnu_ld=yes
  4830.   ;;
  4831. *)
  4832.   lt_cv_prog_gnu_ld=no
  4833.   ;;
  4834. esac
  4835. fi
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4837. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4838. with_gnu_ld=$lt_cv_prog_gnu_ld
  4839.  
  4840.  
  4841.  
  4842.  
  4843.  
  4844.  
  4845.  
  4846.  
  4847.  
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4849. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4850. if ${lt_cv_path_NM+:} false; then :
  4851.   $as_echo_n "(cached) " >&6
  4852. else
  4853.   if test -n "$NM"; then
  4854.   # Let the user override the test.
  4855.   lt_cv_path_NM="$NM"
  4856. else
  4857.   lt_nm_to_check="${ac_tool_prefix}nm"
  4858.   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4859.     lt_nm_to_check="$lt_nm_to_check nm"
  4860.   fi
  4861.   for lt_tmp_nm in $lt_nm_to_check; do
  4862.     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4863.     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4864.       IFS="$lt_save_ifs"
  4865.       test -z "$ac_dir" && ac_dir=.
  4866.       tmp_nm="$ac_dir/$lt_tmp_nm"
  4867.       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4868.         # Check to see if the nm accepts a BSD-compat flag.
  4869.         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4870.         #   nm: unknown option "B" ignored
  4871.         # Tru64's nm complains that /dev/null is an invalid object file
  4872.         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4873.         */dev/null* | *'Invalid file or object type'*)
  4874.           lt_cv_path_NM="$tmp_nm -B"
  4875.           break
  4876.           ;;
  4877.         *)
  4878.           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4879.           */dev/null*)
  4880.             lt_cv_path_NM="$tmp_nm -p"
  4881.             break
  4882.             ;;
  4883.           *)
  4884.             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4885.             continue # so that we can try to find one that supports BSD flags
  4886.             ;;
  4887.           esac
  4888.           ;;
  4889.         esac
  4890.       fi
  4891.     done
  4892.     IFS="$lt_save_ifs"
  4893.   done
  4894.   : ${lt_cv_path_NM=no}
  4895. fi
  4896. fi
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4898. $as_echo "$lt_cv_path_NM" >&6; }
  4899. if test "$lt_cv_path_NM" != "no"; then
  4900.   NM="$lt_cv_path_NM"
  4901. else
  4902.   # Didn't find any BSD compatible name lister, look for dumpbin.
  4903.   if test -n "$DUMPBIN"; then :
  4904.     # Let the user override the test.
  4905.   else
  4906.     if test -n "$ac_tool_prefix"; then
  4907.   for ac_prog in dumpbin "link -dump"
  4908.   do
  4909.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4910. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4912. $as_echo_n "checking for $ac_word... " >&6; }
  4913. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4914.   $as_echo_n "(cached) " >&6
  4915. else
  4916.   if test -n "$DUMPBIN"; then
  4917.   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4918. else
  4919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4920. for as_dir in $PATH
  4921. do
  4922.   IFS=$as_save_IFS
  4923.   test -z "$as_dir" && as_dir=.
  4924.     for ac_exec_ext in '' $ac_executable_extensions; do
  4925.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4926.     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4927.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4928.     break 2
  4929.   fi
  4930. done
  4931.   done
  4932. IFS=$as_save_IFS
  4933.  
  4934. fi
  4935. fi
  4936. DUMPBIN=$ac_cv_prog_DUMPBIN
  4937. if test -n "$DUMPBIN"; then
  4938.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4939. $as_echo "$DUMPBIN" >&6; }
  4940. else
  4941.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944.  
  4945.  
  4946.     test -n "$DUMPBIN" && break
  4947.   done
  4948. fi
  4949. if test -z "$DUMPBIN"; then
  4950.   ac_ct_DUMPBIN=$DUMPBIN
  4951.   for ac_prog in dumpbin "link -dump"
  4952. do
  4953.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4954. set dummy $ac_prog; ac_word=$2
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4956. $as_echo_n "checking for $ac_word... " >&6; }
  4957. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4958.   $as_echo_n "(cached) " >&6
  4959. else
  4960.   if test -n "$ac_ct_DUMPBIN"; then
  4961.   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4962. else
  4963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4964. for as_dir in $PATH
  4965. do
  4966.   IFS=$as_save_IFS
  4967.   test -z "$as_dir" && as_dir=.
  4968.     for ac_exec_ext in '' $ac_executable_extensions; do
  4969.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4970.     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4971.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4972.     break 2
  4973.   fi
  4974. done
  4975.   done
  4976. IFS=$as_save_IFS
  4977.  
  4978. fi
  4979. fi
  4980. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4981. if test -n "$ac_ct_DUMPBIN"; then
  4982.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4983. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4984. else
  4985.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4986. $as_echo "no" >&6; }
  4987. fi
  4988.  
  4989.  
  4990.   test -n "$ac_ct_DUMPBIN" && break
  4991. done
  4992.  
  4993.   if test "x$ac_ct_DUMPBIN" = x; then
  4994.     DUMPBIN=":"
  4995.   else
  4996.     case $cross_compiling:$ac_tool_warned in
  4997. yes:)
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5000. ac_tool_warned=yes ;;
  5001. esac
  5002.     DUMPBIN=$ac_ct_DUMPBIN
  5003.   fi
  5004. fi
  5005.  
  5006.     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5007.     *COFF*)
  5008.       DUMPBIN="$DUMPBIN -symbols"
  5009.       ;;
  5010.     *)
  5011.       DUMPBIN=:
  5012.       ;;
  5013.     esac
  5014.   fi
  5015.  
  5016.   if test "$DUMPBIN" != ":"; then
  5017.     NM="$DUMPBIN"
  5018.   fi
  5019. fi
  5020. test -z "$NM" && NM=nm
  5021.  
  5022.  
  5023.  
  5024.  
  5025.  
  5026.  
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5028. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5029. if ${lt_cv_nm_interface+:} false; then :
  5030.   $as_echo_n "(cached) " >&6
  5031. else
  5032.   lt_cv_nm_interface="BSD nm"
  5033.   echo "int some_variable = 0;" > conftest.$ac_ext
  5034.   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5035.   (eval "$ac_compile" 2>conftest.err)
  5036.   cat conftest.err >&5
  5037.   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5038.   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5039.   cat conftest.err >&5
  5040.   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5041.   cat conftest.out >&5
  5042.   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5043.     lt_cv_nm_interface="MS dumpbin"
  5044.   fi
  5045.   rm -f conftest*
  5046. fi
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5048. $as_echo "$lt_cv_nm_interface" >&6; }
  5049.  
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5051. $as_echo_n "checking whether ln -s works... " >&6; }
  5052. LN_S=$as_ln_s
  5053. if test "$LN_S" = "ln -s"; then
  5054.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5055. $as_echo "yes" >&6; }
  5056. else
  5057.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5058. $as_echo "no, using $LN_S" >&6; }
  5059. fi
  5060.  
  5061. # find the maximum length of command line arguments
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5063. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5064. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5065.   $as_echo_n "(cached) " >&6
  5066. else
  5067.     i=0
  5068.   teststring="ABCD"
  5069.  
  5070.   case $build_os in
  5071.   msdosdjgpp*)
  5072.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  5073.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  5074.     # during glob expansion).  Even if it were fixed, the result of this
  5075.     # check would be larger than it should be.
  5076.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  5077.     ;;
  5078.  
  5079.   gnu*)
  5080.     # Under GNU Hurd, this test is not required because there is
  5081.     # no limit to the length of command line arguments.
  5082.     # Libtool will interpret -1 as no limit whatsoever
  5083.     lt_cv_sys_max_cmd_len=-1;
  5084.     ;;
  5085.  
  5086.   cygwin* | mingw* | cegcc*)
  5087.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  5088.     # about 5 minutes as the teststring grows exponentially.
  5089.     # Worse, since 9x/ME are not pre-emptively multitasking,
  5090.     # you end up with a "frozen" computer, even though with patience
  5091.     # the test eventually succeeds (with a max line length of 256k).
  5092.     # Instead, let's just punt: use the minimum linelength reported by
  5093.     # all of the supported platforms: 8192 (on NT/2K/XP).
  5094.     lt_cv_sys_max_cmd_len=8192;
  5095.     ;;
  5096.  
  5097.   mint*)
  5098.     # On MiNT this can take a long time and run out of memory.
  5099.     lt_cv_sys_max_cmd_len=8192;
  5100.     ;;
  5101.  
  5102.   amigaos*)
  5103.     # On AmigaOS with pdksh, this test takes hours, literally.
  5104.     # So we just punt and use a minimum line length of 8192.
  5105.     lt_cv_sys_max_cmd_len=8192;
  5106.     ;;
  5107.  
  5108.   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5109.     # This has been around since 386BSD, at least.  Likely further.
  5110.     if test -x /sbin/sysctl; then
  5111.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5112.     elif test -x /usr/sbin/sysctl; then
  5113.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5114.     else
  5115.       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
  5116.     fi
  5117.     # And add a safety zone
  5118.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5119.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5120.     ;;
  5121.  
  5122.   interix*)
  5123.     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5124.     lt_cv_sys_max_cmd_len=196608
  5125.     ;;
  5126.  
  5127.   os2*)
  5128.     # The test takes a long time on OS/2.
  5129.     lt_cv_sys_max_cmd_len=8192
  5130.     ;;
  5131.  
  5132.   osf*)
  5133.     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5134.     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5135.     # nice to cause kernel panics so lets avoid the loop below.
  5136.     # First set a reasonable default.
  5137.     lt_cv_sys_max_cmd_len=16384
  5138.     #
  5139.     if test -x /sbin/sysconfig; then
  5140.       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5141.         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5142.       esac
  5143.     fi
  5144.     ;;
  5145.   sco3.2v5*)
  5146.     lt_cv_sys_max_cmd_len=102400
  5147.     ;;
  5148.   sysv5* | sco5v6* | sysv4.2uw2*)
  5149.     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5150.     if test -n "$kargmax"; then
  5151.       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
  5152.     else
  5153.       lt_cv_sys_max_cmd_len=32768
  5154.     fi
  5155.     ;;
  5156.   *)
  5157.     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5158.     if test -n "$lt_cv_sys_max_cmd_len" && \
  5159.         test undefined != "$lt_cv_sys_max_cmd_len"; then
  5160.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5161.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5162.     else
  5163.       # Make teststring a little bigger before we do anything with it.
  5164.       # a 1K string should be a reasonable start.
  5165.       for i in 1 2 3 4 5 6 7 8 ; do
  5166.         teststring=$teststring$teststring
  5167.       done
  5168.       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5169.       # If test is not a shell built-in, we'll probably end up computing a
  5170.       # maximum length that is only half of the actual maximum length, but
  5171.       # we can't tell.
  5172.       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5173.                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5174.               test $i != 17 # 1/2 MB should be enough
  5175.       do
  5176.         i=`expr $i + 1`
  5177.         teststring=$teststring$teststring
  5178.       done
  5179.       # Only check the string length outside the loop.
  5180.       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5181.       teststring=
  5182.       # Add a significant safety factor because C++ compilers can tack on
  5183.       # massive amounts of additional arguments before passing them to the
  5184.       # linker.  It appears as though 1/2 is a usable value.
  5185.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5186.     fi
  5187.     ;;
  5188.   esac
  5189.  
  5190. fi
  5191.  
  5192. if test -n $lt_cv_sys_max_cmd_len ; then
  5193.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5194. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5195. else
  5196.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5197. $as_echo "none" >&6; }
  5198. fi
  5199. max_cmd_len=$lt_cv_sys_max_cmd_len
  5200.  
  5201.  
  5202.  
  5203.  
  5204.  
  5205.  
  5206. : ${CP="cp -f"}
  5207. : ${MV="mv -f"}
  5208. : ${RM="rm -f"}
  5209.  
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5211. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5212. # Try some XSI features
  5213. xsi_shell=no
  5214. ( _lt_dummy="a/b/c"
  5215.   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5216.       = c,a/b,b/c, \
  5217.     && eval 'test $(( 1 + 1 )) -eq 2 \
  5218.     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5219.   && xsi_shell=yes
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5221. $as_echo "$xsi_shell" >&6; }
  5222.  
  5223.  
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5225. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5226. lt_shell_append=no
  5227. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5228.     >/dev/null 2>&1 \
  5229.   && lt_shell_append=yes
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5231. $as_echo "$lt_shell_append" >&6; }
  5232.  
  5233.  
  5234. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5235.   lt_unset=unset
  5236. else
  5237.   lt_unset=false
  5238. fi
  5239.  
  5240.  
  5241.  
  5242.  
  5243.  
  5244. # test EBCDIC or ASCII
  5245. case `echo X|tr X '\101'` in
  5246.  A) # ASCII based system
  5247.     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5248.   lt_SP2NL='tr \040 \012'
  5249.   lt_NL2SP='tr \015\012 \040\040'
  5250.   ;;
  5251.  *) # EBCDIC based system
  5252.   lt_SP2NL='tr \100 \n'
  5253.   lt_NL2SP='tr \r\n \100\100'
  5254.   ;;
  5255. esac
  5256.  
  5257.  
  5258.  
  5259.  
  5260.  
  5261.  
  5262.  
  5263.  
  5264.  
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5266. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5267. if ${lt_cv_to_host_file_cmd+:} false; then :
  5268.   $as_echo_n "(cached) " >&6
  5269. else
  5270.   case $host in
  5271.   *-*-mingw* )
  5272.     case $build in
  5273.       *-*-mingw* ) # actually msys
  5274.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5275.         ;;
  5276.       *-*-cygwin* )
  5277.         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5278.         ;;
  5279.       * ) # otherwise, assume *nix
  5280.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5281.         ;;
  5282.     esac
  5283.     ;;
  5284.   *-*-cygwin* )
  5285.     case $build in
  5286.       *-*-mingw* ) # actually msys
  5287.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5288.         ;;
  5289.       *-*-cygwin* )
  5290.         lt_cv_to_host_file_cmd=func_convert_file_noop
  5291.         ;;
  5292.       * ) # otherwise, assume *nix
  5293.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5294.         ;;
  5295.     esac
  5296.     ;;
  5297.   * ) # unhandled hosts (and "normal" native builds)
  5298.     lt_cv_to_host_file_cmd=func_convert_file_noop
  5299.     ;;
  5300. esac
  5301.  
  5302. fi
  5303.  
  5304. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5306. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5307.  
  5308.  
  5309.  
  5310.  
  5311.  
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5313. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5314. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5315.   $as_echo_n "(cached) " >&6
  5316. else
  5317.   #assume ordinary cross tools, or native build.
  5318. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5319. case $host in
  5320.   *-*-mingw* )
  5321.     case $build in
  5322.       *-*-mingw* ) # actually msys
  5323.         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5324.         ;;
  5325.     esac
  5326.     ;;
  5327. esac
  5328.  
  5329. fi
  5330.  
  5331. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5333. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5334.  
  5335.  
  5336.  
  5337.  
  5338.  
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5340. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5341. if ${lt_cv_ld_reload_flag+:} false; then :
  5342.   $as_echo_n "(cached) " >&6
  5343. else
  5344.   lt_cv_ld_reload_flag='-r'
  5345. fi
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5347. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5348. reload_flag=$lt_cv_ld_reload_flag
  5349. case $reload_flag in
  5350. "" | " "*) ;;
  5351. *) reload_flag=" $reload_flag" ;;
  5352. esac
  5353. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5354. case $host_os in
  5355.   cygwin* | mingw* | pw32* | cegcc*)
  5356.     if test "$GCC" != yes; then
  5357.       reload_cmds=false
  5358.     fi
  5359.     ;;
  5360.   darwin*)
  5361.     if test "$GCC" = yes; then
  5362.       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5363.     else
  5364.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5365.     fi
  5366.     ;;
  5367. esac
  5368.  
  5369.  
  5370.  
  5371.  
  5372.  
  5373.  
  5374.  
  5375.  
  5376.  
  5377. if test -n "$ac_tool_prefix"; then
  5378.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5379. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5381. $as_echo_n "checking for $ac_word... " >&6; }
  5382. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5383.   $as_echo_n "(cached) " >&6
  5384. else
  5385.   if test -n "$OBJDUMP"; then
  5386.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391.   IFS=$as_save_IFS
  5392.   test -z "$as_dir" && as_dir=.
  5393.     for ac_exec_ext in '' $ac_executable_extensions; do
  5394.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5395.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5396.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5397.     break 2
  5398.   fi
  5399. done
  5400.   done
  5401. IFS=$as_save_IFS
  5402.  
  5403. fi
  5404. fi
  5405. OBJDUMP=$ac_cv_prog_OBJDUMP
  5406. if test -n "$OBJDUMP"; then
  5407.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5408. $as_echo "$OBJDUMP" >&6; }
  5409. else
  5410.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5411. $as_echo "no" >&6; }
  5412. fi
  5413.  
  5414.  
  5415. fi
  5416. if test -z "$ac_cv_prog_OBJDUMP"; then
  5417.   ac_ct_OBJDUMP=$OBJDUMP
  5418.   # Extract the first word of "objdump", so it can be a program name with args.
  5419. set dummy objdump; ac_word=$2
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5421. $as_echo_n "checking for $ac_word... " >&6; }
  5422. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5423.   $as_echo_n "(cached) " >&6
  5424. else
  5425.   if test -n "$ac_ct_OBJDUMP"; then
  5426.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5427. else
  5428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5429. for as_dir in $PATH
  5430. do
  5431.   IFS=$as_save_IFS
  5432.   test -z "$as_dir" && as_dir=.
  5433.     for ac_exec_ext in '' $ac_executable_extensions; do
  5434.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5435.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5436.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5437.     break 2
  5438.   fi
  5439. done
  5440.   done
  5441. IFS=$as_save_IFS
  5442.  
  5443. fi
  5444. fi
  5445. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5446. if test -n "$ac_ct_OBJDUMP"; then
  5447.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5448. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5449. else
  5450.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5451. $as_echo "no" >&6; }
  5452. fi
  5453.  
  5454.   if test "x$ac_ct_OBJDUMP" = x; then
  5455.     OBJDUMP="false"
  5456.   else
  5457.     case $cross_compiling:$ac_tool_warned in
  5458. yes:)
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5460. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5461. ac_tool_warned=yes ;;
  5462. esac
  5463.     OBJDUMP=$ac_ct_OBJDUMP
  5464.   fi
  5465. else
  5466.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  5467. fi
  5468.  
  5469. test -z "$OBJDUMP" && OBJDUMP=objdump
  5470.  
  5471.  
  5472.  
  5473.  
  5474.  
  5475.  
  5476.  
  5477.  
  5478.  
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5480. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5481. if ${lt_cv_deplibs_check_method+:} false; then :
  5482.   $as_echo_n "(cached) " >&6
  5483. else
  5484.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  5485. lt_cv_file_magic_test_file=
  5486. lt_cv_deplibs_check_method='unknown'
  5487. # Need to set the preceding variable on all platforms that support
  5488. # interlibrary dependencies.
  5489. # 'none' -- dependencies not supported.
  5490. # `unknown' -- same as none, but documents that we really don't know.
  5491. # 'pass_all' -- all dependencies passed with no checks.
  5492. # 'test_compile' -- check by making test program.
  5493. # 'file_magic [[regex]]' -- check by looking for files in library path
  5494. # which responds to the $file_magic_cmd with a given extended regex.
  5495. # If you have `file' or equivalent on your system and you're not sure
  5496. # whether `pass_all' will *always* work, you probably want this one.
  5497.  
  5498. case $host_os in
  5499. aix[4-9]*)
  5500.   lt_cv_deplibs_check_method=pass_all
  5501.   ;;
  5502.  
  5503. beos*)
  5504.   lt_cv_deplibs_check_method=pass_all
  5505.   ;;
  5506.  
  5507. bsdi[45]*)
  5508.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5509.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  5510.   lt_cv_file_magic_test_file=/shlib/libc.so
  5511.   ;;
  5512.  
  5513. cygwin*)
  5514.   # func_win32_libid is a shell function defined in ltmain.sh
  5515.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5516.   lt_cv_file_magic_cmd='func_win32_libid'
  5517.   ;;
  5518.  
  5519. mingw* | pw32*)
  5520.   # Base MSYS/MinGW do not provide the 'file' command needed by
  5521.   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5522.   # unless we find 'file', for example because we are cross-compiling.
  5523.   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5524.   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5525.     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5526.     lt_cv_file_magic_cmd='func_win32_libid'
  5527.   else
  5528.     # Keep this pattern in sync with the one in func_win32_libid.
  5529.     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5530.     lt_cv_file_magic_cmd='$OBJDUMP -f'
  5531.   fi
  5532.   ;;
  5533.  
  5534. cegcc*)
  5535.   # use the weaker test based on 'objdump'. See mingw*.
  5536.   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5537.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  5538.   ;;
  5539.  
  5540. darwin* | rhapsody*)
  5541.   lt_cv_deplibs_check_method=pass_all
  5542.   ;;
  5543.  
  5544. freebsd* | dragonfly*)
  5545.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5546.     case $host_cpu in
  5547.     i*86 )
  5548.       # Not sure whether the presence of OpenBSD here was a mistake.
  5549.       # Let's accept both of them until this is cleared up.
  5550.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5551.       lt_cv_file_magic_cmd=/usr/bin/file
  5552.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5553.       ;;
  5554.     esac
  5555.   else
  5556.     lt_cv_deplibs_check_method=pass_all
  5557.   fi
  5558.   ;;
  5559.  
  5560. haiku*)
  5561.   lt_cv_deplibs_check_method=pass_all
  5562.   ;;
  5563.  
  5564. hpux10.20* | hpux11*)
  5565.   lt_cv_file_magic_cmd=/usr/bin/file
  5566.   case $host_cpu in
  5567.   ia64*)
  5568.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5569.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5570.     ;;
  5571.   hppa*64*)
  5572.     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]'
  5573.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5574.     ;;
  5575.   *)
  5576.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5577.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5578.     ;;
  5579.   esac
  5580.   ;;
  5581.  
  5582. interix[3-9]*)
  5583.   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5584.   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5585.   ;;
  5586.  
  5587. irix5* | irix6* | nonstopux*)
  5588.   case $LD in
  5589.   *-32|*"-32 ") libmagic=32-bit;;
  5590.   *-n32|*"-n32 ") libmagic=N32;;
  5591.   *-64|*"-64 ") libmagic=64-bit;;
  5592.   *) libmagic=never-match;;
  5593.   esac
  5594.   lt_cv_deplibs_check_method=pass_all
  5595.   ;;
  5596.  
  5597. # This must be glibc/ELF.
  5598. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5599.   lt_cv_deplibs_check_method=pass_all
  5600.   ;;
  5601.  
  5602. netbsd* | netbsdelf*-gnu)
  5603.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5604.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5605.   else
  5606.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5607.   fi
  5608.   ;;
  5609.  
  5610. newos6*)
  5611.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5612.   lt_cv_file_magic_cmd=/usr/bin/file
  5613.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5614.   ;;
  5615.  
  5616. *nto* | *qnx*)
  5617.   lt_cv_deplibs_check_method=pass_all
  5618.   ;;
  5619.  
  5620. openbsd*)
  5621.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5622.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5623.   else
  5624.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5625.   fi
  5626.   ;;
  5627.  
  5628. osf3* | osf4* | osf5*)
  5629.   lt_cv_deplibs_check_method=pass_all
  5630.   ;;
  5631.  
  5632. rdos*)
  5633.   lt_cv_deplibs_check_method=pass_all
  5634.   ;;
  5635.  
  5636. solaris*)
  5637.   lt_cv_deplibs_check_method=pass_all
  5638.   ;;
  5639.  
  5640. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5641.   lt_cv_deplibs_check_method=pass_all
  5642.   ;;
  5643.  
  5644. sysv4 | sysv4.3*)
  5645.   case $host_vendor in
  5646.   motorola)
  5647.     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]'
  5648.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5649.     ;;
  5650.   ncr)
  5651.     lt_cv_deplibs_check_method=pass_all
  5652.     ;;
  5653.   sequent)
  5654.     lt_cv_file_magic_cmd='/bin/file'
  5655.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5656.     ;;
  5657.   sni)
  5658.     lt_cv_file_magic_cmd='/bin/file'
  5659.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5660.     lt_cv_file_magic_test_file=/lib/libc.so
  5661.     ;;
  5662.   siemens)
  5663.     lt_cv_deplibs_check_method=pass_all
  5664.     ;;
  5665.   pc)
  5666.     lt_cv_deplibs_check_method=pass_all
  5667.     ;;
  5668.   esac
  5669.   ;;
  5670.  
  5671. tpf*)
  5672.   lt_cv_deplibs_check_method=pass_all
  5673.   ;;
  5674. esac
  5675.  
  5676. fi
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5678. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5679.  
  5680. file_magic_glob=
  5681. want_nocaseglob=no
  5682. if test "$build" = "$host"; then
  5683.   case $host_os in
  5684.   mingw* | pw32*)
  5685.     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5686.       want_nocaseglob=yes
  5687.     else
  5688.       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5689.     fi
  5690.     ;;
  5691.   esac
  5692. fi
  5693.  
  5694. file_magic_cmd=$lt_cv_file_magic_cmd
  5695. deplibs_check_method=$lt_cv_deplibs_check_method
  5696. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5697.  
  5698.  
  5699.  
  5700.  
  5701.  
  5702.  
  5703.  
  5704.  
  5705.  
  5706.  
  5707.  
  5708.  
  5709.  
  5710.  
  5711.  
  5712.  
  5713.  
  5714.  
  5715.  
  5716.  
  5717.  
  5718.  
  5719. if test -n "$ac_tool_prefix"; then
  5720.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5721. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5723. $as_echo_n "checking for $ac_word... " >&6; }
  5724. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5725.   $as_echo_n "(cached) " >&6
  5726. else
  5727.   if test -n "$DLLTOOL"; then
  5728.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5729. else
  5730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5731. for as_dir in $PATH
  5732. do
  5733.   IFS=$as_save_IFS
  5734.   test -z "$as_dir" && as_dir=.
  5735.     for ac_exec_ext in '' $ac_executable_extensions; do
  5736.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5737.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5738.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5739.     break 2
  5740.   fi
  5741. done
  5742.   done
  5743. IFS=$as_save_IFS
  5744.  
  5745. fi
  5746. fi
  5747. DLLTOOL=$ac_cv_prog_DLLTOOL
  5748. if test -n "$DLLTOOL"; then
  5749.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5750. $as_echo "$DLLTOOL" >&6; }
  5751. else
  5752.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5753. $as_echo "no" >&6; }
  5754. fi
  5755.  
  5756.  
  5757. fi
  5758. if test -z "$ac_cv_prog_DLLTOOL"; then
  5759.   ac_ct_DLLTOOL=$DLLTOOL
  5760.   # Extract the first word of "dlltool", so it can be a program name with args.
  5761. set dummy dlltool; ac_word=$2
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5763. $as_echo_n "checking for $ac_word... " >&6; }
  5764. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5765.   $as_echo_n "(cached) " >&6
  5766. else
  5767.   if test -n "$ac_ct_DLLTOOL"; then
  5768.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5769. else
  5770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5771. for as_dir in $PATH
  5772. do
  5773.   IFS=$as_save_IFS
  5774.   test -z "$as_dir" && as_dir=.
  5775.     for ac_exec_ext in '' $ac_executable_extensions; do
  5776.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5777.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5778.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5779.     break 2
  5780.   fi
  5781. done
  5782.   done
  5783. IFS=$as_save_IFS
  5784.  
  5785. fi
  5786. fi
  5787. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5788. if test -n "$ac_ct_DLLTOOL"; then
  5789.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5790. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5791. else
  5792.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5793. $as_echo "no" >&6; }
  5794. fi
  5795.  
  5796.   if test "x$ac_ct_DLLTOOL" = x; then
  5797.     DLLTOOL="false"
  5798.   else
  5799.     case $cross_compiling:$ac_tool_warned in
  5800. yes:)
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5803. ac_tool_warned=yes ;;
  5804. esac
  5805.     DLLTOOL=$ac_ct_DLLTOOL
  5806.   fi
  5807. else
  5808.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  5809. fi
  5810.  
  5811. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5812.  
  5813.  
  5814.  
  5815.  
  5816.  
  5817.  
  5818.  
  5819.  
  5820.  
  5821.  
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5823. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5824. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5825.   $as_echo_n "(cached) " >&6
  5826. else
  5827.   lt_cv_sharedlib_from_linklib_cmd='unknown'
  5828.  
  5829. case $host_os in
  5830. cygwin* | mingw* | pw32* | cegcc*)
  5831.   # two different shell functions defined in ltmain.sh
  5832.   # decide which to use based on capabilities of $DLLTOOL
  5833.   case `$DLLTOOL --help 2>&1` in
  5834.   *--identify-strict*)
  5835.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5836.     ;;
  5837.   *)
  5838.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5839.     ;;
  5840.   esac
  5841.   ;;
  5842. *)
  5843.   # fallback: assume linklib IS sharedlib
  5844.   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5845.   ;;
  5846. esac
  5847.  
  5848. fi
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5850. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5851. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5852. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5853.  
  5854.  
  5855.  
  5856.  
  5857.  
  5858.  
  5859.  
  5860.  
  5861. if test -n "$ac_tool_prefix"; then
  5862.   for ac_prog in ar
  5863.   do
  5864.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5865. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5867. $as_echo_n "checking for $ac_word... " >&6; }
  5868. if ${ac_cv_prog_AR+:} false; then :
  5869.   $as_echo_n "(cached) " >&6
  5870. else
  5871.   if test -n "$AR"; then
  5872.   ac_cv_prog_AR="$AR" # Let the user override the test.
  5873. else
  5874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5875. for as_dir in $PATH
  5876. do
  5877.   IFS=$as_save_IFS
  5878.   test -z "$as_dir" && as_dir=.
  5879.     for ac_exec_ext in '' $ac_executable_extensions; do
  5880.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5881.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5882.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5883.     break 2
  5884.   fi
  5885. done
  5886.   done
  5887. IFS=$as_save_IFS
  5888.  
  5889. fi
  5890. fi
  5891. AR=$ac_cv_prog_AR
  5892. if test -n "$AR"; then
  5893.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5894. $as_echo "$AR" >&6; }
  5895. else
  5896.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5897. $as_echo "no" >&6; }
  5898. fi
  5899.  
  5900.  
  5901.     test -n "$AR" && break
  5902.   done
  5903. fi
  5904. if test -z "$AR"; then
  5905.   ac_ct_AR=$AR
  5906.   for ac_prog in ar
  5907. do
  5908.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5909. set dummy $ac_prog; ac_word=$2
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5911. $as_echo_n "checking for $ac_word... " >&6; }
  5912. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5913.   $as_echo_n "(cached) " >&6
  5914. else
  5915.   if test -n "$ac_ct_AR"; then
  5916.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5917. else
  5918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5919. for as_dir in $PATH
  5920. do
  5921.   IFS=$as_save_IFS
  5922.   test -z "$as_dir" && as_dir=.
  5923.     for ac_exec_ext in '' $ac_executable_extensions; do
  5924.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5925.     ac_cv_prog_ac_ct_AR="$ac_prog"
  5926.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5927.     break 2
  5928.   fi
  5929. done
  5930.   done
  5931. IFS=$as_save_IFS
  5932.  
  5933. fi
  5934. fi
  5935. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5936. if test -n "$ac_ct_AR"; then
  5937.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5938. $as_echo "$ac_ct_AR" >&6; }
  5939. else
  5940.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5941. $as_echo "no" >&6; }
  5942. fi
  5943.  
  5944.  
  5945.   test -n "$ac_ct_AR" && break
  5946. done
  5947.  
  5948.   if test "x$ac_ct_AR" = x; then
  5949.     AR="false"
  5950.   else
  5951.     case $cross_compiling:$ac_tool_warned in
  5952. yes:)
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5954. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5955. ac_tool_warned=yes ;;
  5956. esac
  5957.     AR=$ac_ct_AR
  5958.   fi
  5959. fi
  5960.  
  5961. : ${AR=ar}
  5962. : ${AR_FLAGS=cru}
  5963.  
  5964.  
  5965.  
  5966.  
  5967.  
  5968.  
  5969.  
  5970.  
  5971.  
  5972.  
  5973.  
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5975. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5976. if ${lt_cv_ar_at_file+:} false; then :
  5977.   $as_echo_n "(cached) " >&6
  5978. else
  5979.   lt_cv_ar_at_file=no
  5980.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5981. /* end confdefs.h.  */
  5982.  
  5983. int
  5984. main ()
  5985. {
  5986.  
  5987.   ;
  5988.   return 0;
  5989. }
  5990. _ACEOF
  5991. if ac_fn_c_try_compile "$LINENO"; then :
  5992.   echo conftest.$ac_objext > conftest.lst
  5993.       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5994.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5995.   (eval $lt_ar_try) 2>&5
  5996.   ac_status=$?
  5997.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5998.   test $ac_status = 0; }
  5999.       if test "$ac_status" -eq 0; then
  6000.         # Ensure the archiver fails upon bogus file names.
  6001.         rm -f conftest.$ac_objext libconftest.a
  6002.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6003.   (eval $lt_ar_try) 2>&5
  6004.   ac_status=$?
  6005.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6006.   test $ac_status = 0; }
  6007.         if test "$ac_status" -ne 0; then
  6008.           lt_cv_ar_at_file=@
  6009.         fi
  6010.       fi
  6011.       rm -f conftest.* libconftest.a
  6012.  
  6013. fi
  6014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6015.  
  6016. fi
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6018. $as_echo "$lt_cv_ar_at_file" >&6; }
  6019.  
  6020. if test "x$lt_cv_ar_at_file" = xno; then
  6021.   archiver_list_spec=
  6022. else
  6023.   archiver_list_spec=$lt_cv_ar_at_file
  6024. fi
  6025.  
  6026.  
  6027.  
  6028.  
  6029.  
  6030.  
  6031.  
  6032. if test -n "$ac_tool_prefix"; then
  6033.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6034. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6036. $as_echo_n "checking for $ac_word... " >&6; }
  6037. if ${ac_cv_prog_STRIP+:} false; then :
  6038.   $as_echo_n "(cached) " >&6
  6039. else
  6040.   if test -n "$STRIP"; then
  6041.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6042. else
  6043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6044. for as_dir in $PATH
  6045. do
  6046.   IFS=$as_save_IFS
  6047.   test -z "$as_dir" && as_dir=.
  6048.     for ac_exec_ext in '' $ac_executable_extensions; do
  6049.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6050.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6051.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6052.     break 2
  6053.   fi
  6054. done
  6055.   done
  6056. IFS=$as_save_IFS
  6057.  
  6058. fi
  6059. fi
  6060. STRIP=$ac_cv_prog_STRIP
  6061. if test -n "$STRIP"; then
  6062.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6063. $as_echo "$STRIP" >&6; }
  6064. else
  6065.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6066. $as_echo "no" >&6; }
  6067. fi
  6068.  
  6069.  
  6070. fi
  6071. if test -z "$ac_cv_prog_STRIP"; then
  6072.   ac_ct_STRIP=$STRIP
  6073.   # Extract the first word of "strip", so it can be a program name with args.
  6074. set dummy strip; ac_word=$2
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6076. $as_echo_n "checking for $ac_word... " >&6; }
  6077. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6078.   $as_echo_n "(cached) " >&6
  6079. else
  6080.   if test -n "$ac_ct_STRIP"; then
  6081.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6082. else
  6083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6084. for as_dir in $PATH
  6085. do
  6086.   IFS=$as_save_IFS
  6087.   test -z "$as_dir" && as_dir=.
  6088.     for ac_exec_ext in '' $ac_executable_extensions; do
  6089.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6090.     ac_cv_prog_ac_ct_STRIP="strip"
  6091.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6092.     break 2
  6093.   fi
  6094. done
  6095.   done
  6096. IFS=$as_save_IFS
  6097.  
  6098. fi
  6099. fi
  6100. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6101. if test -n "$ac_ct_STRIP"; then
  6102.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6103. $as_echo "$ac_ct_STRIP" >&6; }
  6104. else
  6105.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6106. $as_echo "no" >&6; }
  6107. fi
  6108.  
  6109.   if test "x$ac_ct_STRIP" = x; then
  6110.     STRIP=":"
  6111.   else
  6112.     case $cross_compiling:$ac_tool_warned in
  6113. yes:)
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6115. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6116. ac_tool_warned=yes ;;
  6117. esac
  6118.     STRIP=$ac_ct_STRIP
  6119.   fi
  6120. else
  6121.   STRIP="$ac_cv_prog_STRIP"
  6122. fi
  6123.  
  6124. test -z "$STRIP" && STRIP=:
  6125.  
  6126.  
  6127.  
  6128.  
  6129.  
  6130.  
  6131. if test -n "$ac_tool_prefix"; then
  6132.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6133. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6135. $as_echo_n "checking for $ac_word... " >&6; }
  6136. if ${ac_cv_prog_RANLIB+:} false; then :
  6137.   $as_echo_n "(cached) " >&6
  6138. else
  6139.   if test -n "$RANLIB"; then
  6140.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6141. else
  6142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6143. for as_dir in $PATH
  6144. do
  6145.   IFS=$as_save_IFS
  6146.   test -z "$as_dir" && as_dir=.
  6147.     for ac_exec_ext in '' $ac_executable_extensions; do
  6148.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6149.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6150.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6151.     break 2
  6152.   fi
  6153. done
  6154.   done
  6155. IFS=$as_save_IFS
  6156.  
  6157. fi
  6158. fi
  6159. RANLIB=$ac_cv_prog_RANLIB
  6160. if test -n "$RANLIB"; then
  6161.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6162. $as_echo "$RANLIB" >&6; }
  6163. else
  6164.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6165. $as_echo "no" >&6; }
  6166. fi
  6167.  
  6168.  
  6169. fi
  6170. if test -z "$ac_cv_prog_RANLIB"; then
  6171.   ac_ct_RANLIB=$RANLIB
  6172.   # Extract the first word of "ranlib", so it can be a program name with args.
  6173. set dummy ranlib; ac_word=$2
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6175. $as_echo_n "checking for $ac_word... " >&6; }
  6176. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6177.   $as_echo_n "(cached) " >&6
  6178. else
  6179.   if test -n "$ac_ct_RANLIB"; then
  6180.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6181. else
  6182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6183. for as_dir in $PATH
  6184. do
  6185.   IFS=$as_save_IFS
  6186.   test -z "$as_dir" && as_dir=.
  6187.     for ac_exec_ext in '' $ac_executable_extensions; do
  6188.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6189.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  6190.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6191.     break 2
  6192.   fi
  6193. done
  6194.   done
  6195. IFS=$as_save_IFS
  6196.  
  6197. fi
  6198. fi
  6199. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6200. if test -n "$ac_ct_RANLIB"; then
  6201.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6202. $as_echo "$ac_ct_RANLIB" >&6; }
  6203. else
  6204.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6205. $as_echo "no" >&6; }
  6206. fi
  6207.  
  6208.   if test "x$ac_ct_RANLIB" = x; then
  6209.     RANLIB=":"
  6210.   else
  6211.     case $cross_compiling:$ac_tool_warned in
  6212. yes:)
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6214. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6215. ac_tool_warned=yes ;;
  6216. esac
  6217.     RANLIB=$ac_ct_RANLIB
  6218.   fi
  6219. else
  6220.   RANLIB="$ac_cv_prog_RANLIB"
  6221. fi
  6222.  
  6223. test -z "$RANLIB" && RANLIB=:
  6224.  
  6225.  
  6226.  
  6227.  
  6228.  
  6229.  
  6230. # Determine commands to create old-style static archives.
  6231. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6232. old_postinstall_cmds='chmod 644 $oldlib'
  6233. old_postuninstall_cmds=
  6234.  
  6235. if test -n "$RANLIB"; then
  6236.   case $host_os in
  6237.   openbsd*)
  6238.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6239.     ;;
  6240.   *)
  6241.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6242.     ;;
  6243.   esac
  6244.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6245. fi
  6246.  
  6247. case $host_os in
  6248.   darwin*)
  6249.     lock_old_archive_extraction=yes ;;
  6250.   *)
  6251.     lock_old_archive_extraction=no ;;
  6252. esac
  6253.  
  6254.  
  6255.  
  6256.  
  6257.  
  6258.  
  6259.  
  6260.  
  6261.  
  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. # If no C compiler was specified, use CC.
  6293. LTCC=${LTCC-"$CC"}
  6294.  
  6295. # If no C compiler flags were specified, use CFLAGS.
  6296. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6297.  
  6298. # Allow CC to be a program name with arguments.
  6299. compiler=$CC
  6300.  
  6301.  
  6302. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6304. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6305. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6306.   $as_echo_n "(cached) " >&6
  6307. else
  6308.  
  6309. # These are sane defaults that work on at least a few old systems.
  6310. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  6311.  
  6312. # Character class describing NM global symbol codes.
  6313. symcode='[BCDEGRST]'
  6314.  
  6315. # Regexp to match symbols that can be accessed directly from C.
  6316. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6317.  
  6318. # Define system-specific variables.
  6319. case $host_os in
  6320. aix*)
  6321.   symcode='[BCDT]'
  6322.   ;;
  6323. cygwin* | mingw* | pw32* | cegcc*)
  6324.   symcode='[ABCDGISTW]'
  6325.   ;;
  6326. hpux*)
  6327.   if test "$host_cpu" = ia64; then
  6328.     symcode='[ABCDEGRST]'
  6329.   fi
  6330.   ;;
  6331. irix* | nonstopux*)
  6332.   symcode='[BCDEGRST]'
  6333.   ;;
  6334. osf*)
  6335.   symcode='[BCDEGQRST]'
  6336.   ;;
  6337. solaris*)
  6338.   symcode='[BDRT]'
  6339.   ;;
  6340. sco3.2v5*)
  6341.   symcode='[DT]'
  6342.   ;;
  6343. sysv4.2uw2*)
  6344.   symcode='[DT]'
  6345.   ;;
  6346. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6347.   symcode='[ABDT]'
  6348.   ;;
  6349. sysv4)
  6350.   symcode='[DFNSTU]'
  6351.   ;;
  6352. esac
  6353.  
  6354. # If we're using GNU nm, then use its standard symbol codes.
  6355. case `$NM -V 2>&1` in
  6356. *GNU* | *'with BFD'*)
  6357.   symcode='[ABCDGIRSTW]' ;;
  6358. esac
  6359.  
  6360. # Transform an extracted symbol line into a proper C declaration.
  6361. # Some systems (esp. on ia64) link data and code symbols differently,
  6362. # so use this general approach.
  6363. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6364.  
  6365. # Transform an extracted symbol line into symbol name and symbol address
  6366. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
  6367. 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'"
  6368.  
  6369. # Handle CRLF in mingw tool chain
  6370. opt_cr=
  6371. case $build_os in
  6372. mingw*)
  6373.   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6374.   ;;
  6375. esac
  6376.  
  6377. # Try without a prefix underscore, then with it.
  6378. for ac_symprfx in "" "_"; do
  6379.  
  6380.   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6381.   symxfrm="\\1 $ac_symprfx\\2 \\2"
  6382.  
  6383.   # Write the raw and C identifiers.
  6384.   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6385.     # Fake it for dumpbin and say T for any non-static function
  6386.     # and D for any global variable.
  6387.     # Also find C++ and __fastcall symbols from MSVC++,
  6388.     # which start with @ or ?.
  6389.     lt_cv_sys_global_symbol_pipe="$AWK '"\
  6390. "     {last_section=section; section=\$ 3};"\
  6391. "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6392. "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6393. "     \$ 0!~/External *\|/{next};"\
  6394. "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6395. "     {if(hide[section]) next};"\
  6396. "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6397. "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6398. "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6399. "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6400. "     ' prfx=^$ac_symprfx"
  6401.   else
  6402.     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6403.   fi
  6404.   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6405.  
  6406.   # Check to see that the pipe works correctly.
  6407.   pipe_works=no
  6408.  
  6409.   rm -f conftest*
  6410.   cat > conftest.$ac_ext <<_LT_EOF
  6411. #ifdef __cplusplus
  6412. extern "C" {
  6413. #endif
  6414. char nm_test_var;
  6415. void nm_test_func(void);
  6416. void nm_test_func(void){}
  6417. #ifdef __cplusplus
  6418. }
  6419. #endif
  6420. int main(){nm_test_var='a';nm_test_func();return(0);}
  6421. _LT_EOF
  6422.  
  6423.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6424.   (eval $ac_compile) 2>&5
  6425.   ac_status=$?
  6426.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6427.   test $ac_status = 0; }; then
  6428.     # Now try to grab the symbols.
  6429.     nlist=conftest.nm
  6430.     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6431.   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6432.   ac_status=$?
  6433.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6434.   test $ac_status = 0; } && test -s "$nlist"; then
  6435.       # Try sorting and uniquifying the output.
  6436.       if sort "$nlist" | uniq > "$nlist"T; then
  6437.         mv -f "$nlist"T "$nlist"
  6438.       else
  6439.         rm -f "$nlist"T
  6440.       fi
  6441.  
  6442.       # Make sure that we snagged all the symbols we need.
  6443.       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6444.         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6445.           cat <<_LT_EOF > conftest.$ac_ext
  6446. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  6447. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6448. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6449.    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  6450. # define LT_DLSYM_CONST
  6451. #elif defined(__osf__)
  6452. /* This system does not cope well with relocations in const data.  */
  6453. # define LT_DLSYM_CONST
  6454. #else
  6455. # define LT_DLSYM_CONST const
  6456. #endif
  6457.  
  6458. #ifdef __cplusplus
  6459. extern "C" {
  6460. #endif
  6461.  
  6462. _LT_EOF
  6463.           # Now generate the symbol file.
  6464.           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6465.  
  6466.           cat <<_LT_EOF >> conftest.$ac_ext
  6467.  
  6468. /* The mapping between symbol names and symbols.  */
  6469. LT_DLSYM_CONST struct {
  6470.   const char *name;
  6471.   void       *address;
  6472. }
  6473. lt__PROGRAM__LTX_preloaded_symbols[] =
  6474. {
  6475.   { "@PROGRAM@", (void *) 0 },
  6476. _LT_EOF
  6477.           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6478.           cat <<\_LT_EOF >> conftest.$ac_ext
  6479.   {0, (void *) 0}
  6480. };
  6481.  
  6482. /* This works around a problem in FreeBSD linker */
  6483. #ifdef FREEBSD_WORKAROUND
  6484. static const void *lt_preloaded_setup() {
  6485.   return lt__PROGRAM__LTX_preloaded_symbols;
  6486. }
  6487. #endif
  6488.  
  6489. #ifdef __cplusplus
  6490. }
  6491. #endif
  6492. _LT_EOF
  6493.           # Now try linking the two files.
  6494.           mv conftest.$ac_objext conftstm.$ac_objext
  6495.           lt_globsym_save_LIBS=$LIBS
  6496.           lt_globsym_save_CFLAGS=$CFLAGS
  6497.           LIBS="conftstm.$ac_objext"
  6498.           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6499.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6500.   (eval $ac_link) 2>&5
  6501.   ac_status=$?
  6502.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6503.   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6504.             pipe_works=yes
  6505.           fi
  6506.           LIBS=$lt_globsym_save_LIBS
  6507.           CFLAGS=$lt_globsym_save_CFLAGS
  6508.         else
  6509.           echo "cannot find nm_test_func in $nlist" >&5
  6510.         fi
  6511.       else
  6512.         echo "cannot find nm_test_var in $nlist" >&5
  6513.       fi
  6514.     else
  6515.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6516.     fi
  6517.   else
  6518.     echo "$progname: failed program was:" >&5
  6519.     cat conftest.$ac_ext >&5
  6520.   fi
  6521.   rm -rf conftest* conftst*
  6522.  
  6523.   # Do not use the global_symbol_pipe unless it works.
  6524.   if test "$pipe_works" = yes; then
  6525.     break
  6526.   else
  6527.     lt_cv_sys_global_symbol_pipe=
  6528.   fi
  6529. done
  6530.  
  6531. fi
  6532.  
  6533. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6534.   lt_cv_sys_global_symbol_to_cdecl=
  6535. fi
  6536. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6537.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6538. $as_echo "failed" >&6; }
  6539. else
  6540.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6541. $as_echo "ok" >&6; }
  6542. fi
  6543.  
  6544. # Response file support.
  6545. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6546.   nm_file_list_spec='@'
  6547. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6548.   nm_file_list_spec='@'
  6549. fi
  6550.  
  6551.  
  6552.  
  6553.  
  6554.  
  6555.  
  6556.  
  6557.  
  6558.  
  6559.  
  6560.  
  6561.  
  6562.  
  6563.  
  6564.  
  6565.  
  6566.  
  6567.  
  6568.  
  6569.  
  6570.  
  6571.  
  6572.  
  6573.  
  6574.  
  6575.  
  6576.  
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6578. $as_echo_n "checking for sysroot... " >&6; }
  6579.  
  6580. # Check whether --with-sysroot was given.
  6581. if test "${with_sysroot+set}" = set; then :
  6582.   withval=$with_sysroot;
  6583. else
  6584.   with_sysroot=no
  6585. fi
  6586.  
  6587.  
  6588. lt_sysroot=
  6589. case ${with_sysroot} in #(
  6590.  yes)
  6591.    if test "$GCC" = yes; then
  6592.      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6593.    fi
  6594.    ;; #(
  6595.  /*)
  6596.    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6597.    ;; #(
  6598.  no|'')
  6599.    ;; #(
  6600.  *)
  6601.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6602. $as_echo "${with_sysroot}" >&6; }
  6603.    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6604.    ;;
  6605. esac
  6606.  
  6607.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6608. $as_echo "${lt_sysroot:-no}" >&6; }
  6609.  
  6610.  
  6611.  
  6612.  
  6613.  
  6614. # Check whether --enable-libtool-lock was given.
  6615. if test "${enable_libtool_lock+set}" = set; then :
  6616.   enableval=$enable_libtool_lock;
  6617. fi
  6618.  
  6619. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6620.  
  6621. # Some flags need to be propagated to the compiler or linker for good
  6622. # libtool support.
  6623. case $host in
  6624. ia64-*-hpux*)
  6625.   # Find out which ABI we are using.
  6626.   echo 'int i;' > conftest.$ac_ext
  6627.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6628.   (eval $ac_compile) 2>&5
  6629.   ac_status=$?
  6630.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6631.   test $ac_status = 0; }; then
  6632.     case `/usr/bin/file conftest.$ac_objext` in
  6633.       *ELF-32*)
  6634.         HPUX_IA64_MODE="32"
  6635.         ;;
  6636.       *ELF-64*)
  6637.         HPUX_IA64_MODE="64"
  6638.         ;;
  6639.     esac
  6640.   fi
  6641.   rm -rf conftest*
  6642.   ;;
  6643. *-*-irix6*)
  6644.   # Find out which ABI we are using.
  6645.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6646.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6647.   (eval $ac_compile) 2>&5
  6648.   ac_status=$?
  6649.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6650.   test $ac_status = 0; }; then
  6651.     if test "$lt_cv_prog_gnu_ld" = yes; then
  6652.       case `/usr/bin/file conftest.$ac_objext` in
  6653.         *32-bit*)
  6654.           LD="${LD-ld} -melf32bsmip"
  6655.           ;;
  6656.         *N32*)
  6657.           LD="${LD-ld} -melf32bmipn32"
  6658.           ;;
  6659.         *64-bit*)
  6660.           LD="${LD-ld} -melf64bmip"
  6661.         ;;
  6662.       esac
  6663.     else
  6664.       case `/usr/bin/file conftest.$ac_objext` in
  6665.         *32-bit*)
  6666.           LD="${LD-ld} -32"
  6667.           ;;
  6668.         *N32*)
  6669.           LD="${LD-ld} -n32"
  6670.           ;;
  6671.         *64-bit*)
  6672.           LD="${LD-ld} -64"
  6673.           ;;
  6674.       esac
  6675.     fi
  6676.   fi
  6677.   rm -rf conftest*
  6678.   ;;
  6679.  
  6680. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6681. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6682.   # Find out which ABI we are using.
  6683.   echo 'int i;' > conftest.$ac_ext
  6684.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6685.   (eval $ac_compile) 2>&5
  6686.   ac_status=$?
  6687.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6688.   test $ac_status = 0; }; then
  6689.     case `/usr/bin/file conftest.o` in
  6690.       *32-bit*)
  6691.         case $host in
  6692.           x86_64-*kfreebsd*-gnu)
  6693.             LD="${LD-ld} -m elf_i386_fbsd"
  6694.             ;;
  6695.           x86_64-*linux*)
  6696.             case `/usr/bin/file conftest.o` in
  6697.               *x86-64*)
  6698.                 LD="${LD-ld} -m elf32_x86_64"
  6699.                 ;;
  6700.               *)
  6701.                 LD="${LD-ld} -m elf_i386"
  6702.                 ;;
  6703.             esac
  6704.             ;;
  6705.           powerpc64le-*)
  6706.             LD="${LD-ld} -m elf32lppclinux"
  6707.             ;;
  6708.           powerpc64-*)
  6709.             LD="${LD-ld} -m elf32ppclinux"
  6710.             ;;
  6711.           s390x-*linux*)
  6712.             LD="${LD-ld} -m elf_s390"
  6713.             ;;
  6714.           sparc64-*linux*)
  6715.             LD="${LD-ld} -m elf32_sparc"
  6716.             ;;
  6717.         esac
  6718.         ;;
  6719.       *64-bit*)
  6720.         case $host in
  6721.           x86_64-*kfreebsd*-gnu)
  6722.             LD="${LD-ld} -m elf_x86_64_fbsd"
  6723.             ;;
  6724.           x86_64-*linux*)
  6725.             LD="${LD-ld} -m elf_x86_64"
  6726.             ;;
  6727.           powerpcle-*)
  6728.             LD="${LD-ld} -m elf64lppc"
  6729.             ;;
  6730.           powerpc-*)
  6731.             LD="${LD-ld} -m elf64ppc"
  6732.             ;;
  6733.           s390*-*linux*|s390*-*tpf*)
  6734.             LD="${LD-ld} -m elf64_s390"
  6735.             ;;
  6736.           sparc*-*linux*)
  6737.             LD="${LD-ld} -m elf64_sparc"
  6738.             ;;
  6739.         esac
  6740.         ;;
  6741.     esac
  6742.   fi
  6743.   rm -rf conftest*
  6744.   ;;
  6745.  
  6746. *-*-sco3.2v5*)
  6747.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6748.   SAVE_CFLAGS="$CFLAGS"
  6749.   CFLAGS="$CFLAGS -belf"
  6750.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6751. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6752. if ${lt_cv_cc_needs_belf+:} false; then :
  6753.   $as_echo_n "(cached) " >&6
  6754. else
  6755.   ac_ext=c
  6756. ac_cpp='$CPP $CPPFLAGS'
  6757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6760.  
  6761.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6762. /* end confdefs.h.  */
  6763.  
  6764. int
  6765. main ()
  6766. {
  6767.  
  6768.   ;
  6769.   return 0;
  6770. }
  6771. _ACEOF
  6772. if ac_fn_c_try_link "$LINENO"; then :
  6773.   lt_cv_cc_needs_belf=yes
  6774. else
  6775.   lt_cv_cc_needs_belf=no
  6776. fi
  6777. rm -f core conftest.err conftest.$ac_objext \
  6778.     conftest$ac_exeext conftest.$ac_ext
  6779.      ac_ext=c
  6780. ac_cpp='$CPP $CPPFLAGS'
  6781. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6782. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6783. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6784.  
  6785. fi
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6787. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6788.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6789.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6790.     CFLAGS="$SAVE_CFLAGS"
  6791.   fi
  6792.   ;;
  6793. *-*solaris*)
  6794.   # Find out which ABI we are using.
  6795.   echo 'int i;' > conftest.$ac_ext
  6796.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6797.   (eval $ac_compile) 2>&5
  6798.   ac_status=$?
  6799.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6800.   test $ac_status = 0; }; then
  6801.     case `/usr/bin/file conftest.o` in
  6802.     *64-bit*)
  6803.       case $lt_cv_prog_gnu_ld in
  6804.       yes*)
  6805.         case $host in
  6806.         i?86-*-solaris*)
  6807.           LD="${LD-ld} -m elf_x86_64"
  6808.           ;;
  6809.         sparc*-*-solaris*)
  6810.           LD="${LD-ld} -m elf64_sparc"
  6811.           ;;
  6812.         esac
  6813.         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  6814.         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6815.           LD="${LD-ld}_sol2"
  6816.         fi
  6817.         ;;
  6818.       *)
  6819.         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6820.           LD="${LD-ld} -64"
  6821.         fi
  6822.         ;;
  6823.       esac
  6824.       ;;
  6825.     esac
  6826.   fi
  6827.   rm -rf conftest*
  6828.   ;;
  6829. esac
  6830.  
  6831. need_locks="$enable_libtool_lock"
  6832.  
  6833. if test -n "$ac_tool_prefix"; then
  6834.   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6835. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6837. $as_echo_n "checking for $ac_word... " >&6; }
  6838. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6839.   $as_echo_n "(cached) " >&6
  6840. else
  6841.   if test -n "$MANIFEST_TOOL"; then
  6842.   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6843. else
  6844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6845. for as_dir in $PATH
  6846. do
  6847.   IFS=$as_save_IFS
  6848.   test -z "$as_dir" && as_dir=.
  6849.     for ac_exec_ext in '' $ac_executable_extensions; do
  6850.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6851.     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6852.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6853.     break 2
  6854.   fi
  6855. done
  6856.   done
  6857. IFS=$as_save_IFS
  6858.  
  6859. fi
  6860. fi
  6861. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6862. if test -n "$MANIFEST_TOOL"; then
  6863.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6864. $as_echo "$MANIFEST_TOOL" >&6; }
  6865. else
  6866.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6867. $as_echo "no" >&6; }
  6868. fi
  6869.  
  6870.  
  6871. fi
  6872. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6873.   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6874.   # Extract the first word of "mt", so it can be a program name with args.
  6875. set dummy mt; ac_word=$2
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6877. $as_echo_n "checking for $ac_word... " >&6; }
  6878. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6879.   $as_echo_n "(cached) " >&6
  6880. else
  6881.   if test -n "$ac_ct_MANIFEST_TOOL"; then
  6882.   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6883. else
  6884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6885. for as_dir in $PATH
  6886. do
  6887.   IFS=$as_save_IFS
  6888.   test -z "$as_dir" && as_dir=.
  6889.     for ac_exec_ext in '' $ac_executable_extensions; do
  6890.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6891.     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6892.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6893.     break 2
  6894.   fi
  6895. done
  6896.   done
  6897. IFS=$as_save_IFS
  6898.  
  6899. fi
  6900. fi
  6901. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6902. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6903.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6904. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6905. else
  6906.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909.  
  6910.   if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6911.     MANIFEST_TOOL=":"
  6912.   else
  6913.     case $cross_compiling:$ac_tool_warned in
  6914. yes:)
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6916. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6917. ac_tool_warned=yes ;;
  6918. esac
  6919.     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6920.   fi
  6921. else
  6922.   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6923. fi
  6924.  
  6925. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6927. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6928. if ${lt_cv_path_mainfest_tool+:} false; then :
  6929.   $as_echo_n "(cached) " >&6
  6930. else
  6931.   lt_cv_path_mainfest_tool=no
  6932.   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6933.   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6934.   cat conftest.err >&5
  6935.   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6936.     lt_cv_path_mainfest_tool=yes
  6937.   fi
  6938.   rm -f conftest*
  6939. fi
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6941. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6942. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6943.   MANIFEST_TOOL=:
  6944. fi
  6945.  
  6946.  
  6947.  
  6948.  
  6949.  
  6950.  
  6951.   case $host_os in
  6952.     rhapsody* | darwin*)
  6953.     if test -n "$ac_tool_prefix"; then
  6954.   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6955. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6957. $as_echo_n "checking for $ac_word... " >&6; }
  6958. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6959.   $as_echo_n "(cached) " >&6
  6960. else
  6961.   if test -n "$DSYMUTIL"; then
  6962.   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6963. else
  6964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6965. for as_dir in $PATH
  6966. do
  6967.   IFS=$as_save_IFS
  6968.   test -z "$as_dir" && as_dir=.
  6969.     for ac_exec_ext in '' $ac_executable_extensions; do
  6970.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6971.     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6972.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6973.     break 2
  6974.   fi
  6975. done
  6976.   done
  6977. IFS=$as_save_IFS
  6978.  
  6979. fi
  6980. fi
  6981. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6982. if test -n "$DSYMUTIL"; then
  6983.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6984. $as_echo "$DSYMUTIL" >&6; }
  6985. else
  6986.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6987. $as_echo "no" >&6; }
  6988. fi
  6989.  
  6990.  
  6991. fi
  6992. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6993.   ac_ct_DSYMUTIL=$DSYMUTIL
  6994.   # Extract the first word of "dsymutil", so it can be a program name with args.
  6995. set dummy dsymutil; ac_word=$2
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6997. $as_echo_n "checking for $ac_word... " >&6; }
  6998. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6999.   $as_echo_n "(cached) " >&6
  7000. else
  7001.   if test -n "$ac_ct_DSYMUTIL"; then
  7002.   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7003. else
  7004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7005. for as_dir in $PATH
  7006. do
  7007.   IFS=$as_save_IFS
  7008.   test -z "$as_dir" && as_dir=.
  7009.     for ac_exec_ext in '' $ac_executable_extensions; do
  7010.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7011.     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7012.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7013.     break 2
  7014.   fi
  7015. done
  7016.   done
  7017. IFS=$as_save_IFS
  7018.  
  7019. fi
  7020. fi
  7021. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7022. if test -n "$ac_ct_DSYMUTIL"; then
  7023.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7024. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7025. else
  7026.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7027. $as_echo "no" >&6; }
  7028. fi
  7029.  
  7030.   if test "x$ac_ct_DSYMUTIL" = x; then
  7031.     DSYMUTIL=":"
  7032.   else
  7033.     case $cross_compiling:$ac_tool_warned in
  7034. yes:)
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7036. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7037. ac_tool_warned=yes ;;
  7038. esac
  7039.     DSYMUTIL=$ac_ct_DSYMUTIL
  7040.   fi
  7041. else
  7042.   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7043. fi
  7044.  
  7045.     if test -n "$ac_tool_prefix"; then
  7046.   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7047. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7049. $as_echo_n "checking for $ac_word... " >&6; }
  7050. if ${ac_cv_prog_NMEDIT+:} false; then :
  7051.   $as_echo_n "(cached) " >&6
  7052. else
  7053.   if test -n "$NMEDIT"; then
  7054.   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7055. else
  7056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7057. for as_dir in $PATH
  7058. do
  7059.   IFS=$as_save_IFS
  7060.   test -z "$as_dir" && as_dir=.
  7061.     for ac_exec_ext in '' $ac_executable_extensions; do
  7062.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7063.     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7064.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7065.     break 2
  7066.   fi
  7067. done
  7068.   done
  7069. IFS=$as_save_IFS
  7070.  
  7071. fi
  7072. fi
  7073. NMEDIT=$ac_cv_prog_NMEDIT
  7074. if test -n "$NMEDIT"; then
  7075.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7076. $as_echo "$NMEDIT" >&6; }
  7077. else
  7078.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7079. $as_echo "no" >&6; }
  7080. fi
  7081.  
  7082.  
  7083. fi
  7084. if test -z "$ac_cv_prog_NMEDIT"; then
  7085.   ac_ct_NMEDIT=$NMEDIT
  7086.   # Extract the first word of "nmedit", so it can be a program name with args.
  7087. set dummy nmedit; ac_word=$2
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7089. $as_echo_n "checking for $ac_word... " >&6; }
  7090. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7091.   $as_echo_n "(cached) " >&6
  7092. else
  7093.   if test -n "$ac_ct_NMEDIT"; then
  7094.   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7095. else
  7096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7097. for as_dir in $PATH
  7098. do
  7099.   IFS=$as_save_IFS
  7100.   test -z "$as_dir" && as_dir=.
  7101.     for ac_exec_ext in '' $ac_executable_extensions; do
  7102.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7103.     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7104.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7105.     break 2
  7106.   fi
  7107. done
  7108.   done
  7109. IFS=$as_save_IFS
  7110.  
  7111. fi
  7112. fi
  7113. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7114. if test -n "$ac_ct_NMEDIT"; then
  7115.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7116. $as_echo "$ac_ct_NMEDIT" >&6; }
  7117. else
  7118.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7119. $as_echo "no" >&6; }
  7120. fi
  7121.  
  7122.   if test "x$ac_ct_NMEDIT" = x; then
  7123.     NMEDIT=":"
  7124.   else
  7125.     case $cross_compiling:$ac_tool_warned in
  7126. yes:)
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7129. ac_tool_warned=yes ;;
  7130. esac
  7131.     NMEDIT=$ac_ct_NMEDIT
  7132.   fi
  7133. else
  7134.   NMEDIT="$ac_cv_prog_NMEDIT"
  7135. fi
  7136.  
  7137.     if test -n "$ac_tool_prefix"; then
  7138.   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7139. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7141. $as_echo_n "checking for $ac_word... " >&6; }
  7142. if ${ac_cv_prog_LIPO+:} false; then :
  7143.   $as_echo_n "(cached) " >&6
  7144. else
  7145.   if test -n "$LIPO"; then
  7146.   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7147. else
  7148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7149. for as_dir in $PATH
  7150. do
  7151.   IFS=$as_save_IFS
  7152.   test -z "$as_dir" && as_dir=.
  7153.     for ac_exec_ext in '' $ac_executable_extensions; do
  7154.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7155.     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7156.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7157.     break 2
  7158.   fi
  7159. done
  7160.   done
  7161. IFS=$as_save_IFS
  7162.  
  7163. fi
  7164. fi
  7165. LIPO=$ac_cv_prog_LIPO
  7166. if test -n "$LIPO"; then
  7167.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7168. $as_echo "$LIPO" >&6; }
  7169. else
  7170.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7171. $as_echo "no" >&6; }
  7172. fi
  7173.  
  7174.  
  7175. fi
  7176. if test -z "$ac_cv_prog_LIPO"; then
  7177.   ac_ct_LIPO=$LIPO
  7178.   # Extract the first word of "lipo", so it can be a program name with args.
  7179. set dummy lipo; ac_word=$2
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7181. $as_echo_n "checking for $ac_word... " >&6; }
  7182. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7183.   $as_echo_n "(cached) " >&6
  7184. else
  7185.   if test -n "$ac_ct_LIPO"; then
  7186.   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7187. else
  7188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7189. for as_dir in $PATH
  7190. do
  7191.   IFS=$as_save_IFS
  7192.   test -z "$as_dir" && as_dir=.
  7193.     for ac_exec_ext in '' $ac_executable_extensions; do
  7194.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7195.     ac_cv_prog_ac_ct_LIPO="lipo"
  7196.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7197.     break 2
  7198.   fi
  7199. done
  7200.   done
  7201. IFS=$as_save_IFS
  7202.  
  7203. fi
  7204. fi
  7205. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7206. if test -n "$ac_ct_LIPO"; then
  7207.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7208. $as_echo "$ac_ct_LIPO" >&6; }
  7209. else
  7210.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7211. $as_echo "no" >&6; }
  7212. fi
  7213.  
  7214.   if test "x$ac_ct_LIPO" = x; then
  7215.     LIPO=":"
  7216.   else
  7217.     case $cross_compiling:$ac_tool_warned in
  7218. yes:)
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7220. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7221. ac_tool_warned=yes ;;
  7222. esac
  7223.     LIPO=$ac_ct_LIPO
  7224.   fi
  7225. else
  7226.   LIPO="$ac_cv_prog_LIPO"
  7227. fi
  7228.  
  7229.     if test -n "$ac_tool_prefix"; then
  7230.   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7231. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7233. $as_echo_n "checking for $ac_word... " >&6; }
  7234. if ${ac_cv_prog_OTOOL+:} false; then :
  7235.   $as_echo_n "(cached) " >&6
  7236. else
  7237.   if test -n "$OTOOL"; then
  7238.   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7239. else
  7240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7241. for as_dir in $PATH
  7242. do
  7243.   IFS=$as_save_IFS
  7244.   test -z "$as_dir" && as_dir=.
  7245.     for ac_exec_ext in '' $ac_executable_extensions; do
  7246.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7247.     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7248.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7249.     break 2
  7250.   fi
  7251. done
  7252.   done
  7253. IFS=$as_save_IFS
  7254.  
  7255. fi
  7256. fi
  7257. OTOOL=$ac_cv_prog_OTOOL
  7258. if test -n "$OTOOL"; then
  7259.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7260. $as_echo "$OTOOL" >&6; }
  7261. else
  7262.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7263. $as_echo "no" >&6; }
  7264. fi
  7265.  
  7266.  
  7267. fi
  7268. if test -z "$ac_cv_prog_OTOOL"; then
  7269.   ac_ct_OTOOL=$OTOOL
  7270.   # Extract the first word of "otool", so it can be a program name with args.
  7271. set dummy otool; ac_word=$2
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7273. $as_echo_n "checking for $ac_word... " >&6; }
  7274. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7275.   $as_echo_n "(cached) " >&6
  7276. else
  7277.   if test -n "$ac_ct_OTOOL"; then
  7278.   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7279. else
  7280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7281. for as_dir in $PATH
  7282. do
  7283.   IFS=$as_save_IFS
  7284.   test -z "$as_dir" && as_dir=.
  7285.     for ac_exec_ext in '' $ac_executable_extensions; do
  7286.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7287.     ac_cv_prog_ac_ct_OTOOL="otool"
  7288.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7289.     break 2
  7290.   fi
  7291. done
  7292.   done
  7293. IFS=$as_save_IFS
  7294.  
  7295. fi
  7296. fi
  7297. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7298. if test -n "$ac_ct_OTOOL"; then
  7299.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7300. $as_echo "$ac_ct_OTOOL" >&6; }
  7301. else
  7302.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7303. $as_echo "no" >&6; }
  7304. fi
  7305.  
  7306.   if test "x$ac_ct_OTOOL" = x; then
  7307.     OTOOL=":"
  7308.   else
  7309.     case $cross_compiling:$ac_tool_warned in
  7310. yes:)
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7312. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7313. ac_tool_warned=yes ;;
  7314. esac
  7315.     OTOOL=$ac_ct_OTOOL
  7316.   fi
  7317. else
  7318.   OTOOL="$ac_cv_prog_OTOOL"
  7319. fi
  7320.  
  7321.     if test -n "$ac_tool_prefix"; then
  7322.   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7323. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7325. $as_echo_n "checking for $ac_word... " >&6; }
  7326. if ${ac_cv_prog_OTOOL64+:} false; then :
  7327.   $as_echo_n "(cached) " >&6
  7328. else
  7329.   if test -n "$OTOOL64"; then
  7330.   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7331. else
  7332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7333. for as_dir in $PATH
  7334. do
  7335.   IFS=$as_save_IFS
  7336.   test -z "$as_dir" && as_dir=.
  7337.     for ac_exec_ext in '' $ac_executable_extensions; do
  7338.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7339.     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7340.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7341.     break 2
  7342.   fi
  7343. done
  7344.   done
  7345. IFS=$as_save_IFS
  7346.  
  7347. fi
  7348. fi
  7349. OTOOL64=$ac_cv_prog_OTOOL64
  7350. if test -n "$OTOOL64"; then
  7351.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7352. $as_echo "$OTOOL64" >&6; }
  7353. else
  7354.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7355. $as_echo "no" >&6; }
  7356. fi
  7357.  
  7358.  
  7359. fi
  7360. if test -z "$ac_cv_prog_OTOOL64"; then
  7361.   ac_ct_OTOOL64=$OTOOL64
  7362.   # Extract the first word of "otool64", so it can be a program name with args.
  7363. set dummy otool64; ac_word=$2
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7365. $as_echo_n "checking for $ac_word... " >&6; }
  7366. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7367.   $as_echo_n "(cached) " >&6
  7368. else
  7369.   if test -n "$ac_ct_OTOOL64"; then
  7370.   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7371. else
  7372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7373. for as_dir in $PATH
  7374. do
  7375.   IFS=$as_save_IFS
  7376.   test -z "$as_dir" && as_dir=.
  7377.     for ac_exec_ext in '' $ac_executable_extensions; do
  7378.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7379.     ac_cv_prog_ac_ct_OTOOL64="otool64"
  7380.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7381.     break 2
  7382.   fi
  7383. done
  7384.   done
  7385. IFS=$as_save_IFS
  7386.  
  7387. fi
  7388. fi
  7389. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7390. if test -n "$ac_ct_OTOOL64"; then
  7391.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7392. $as_echo "$ac_ct_OTOOL64" >&6; }
  7393. else
  7394.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7395. $as_echo "no" >&6; }
  7396. fi
  7397.  
  7398.   if test "x$ac_ct_OTOOL64" = x; then
  7399.     OTOOL64=":"
  7400.   else
  7401.     case $cross_compiling:$ac_tool_warned in
  7402. yes:)
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7404. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7405. ac_tool_warned=yes ;;
  7406. esac
  7407.     OTOOL64=$ac_ct_OTOOL64
  7408.   fi
  7409. else
  7410.   OTOOL64="$ac_cv_prog_OTOOL64"
  7411. fi
  7412.  
  7413.  
  7414.  
  7415.  
  7416.  
  7417.  
  7418.  
  7419.  
  7420.  
  7421.  
  7422.  
  7423.  
  7424.  
  7425.  
  7426.  
  7427.  
  7428.  
  7429.  
  7430.  
  7431.  
  7432.  
  7433.  
  7434.  
  7435.  
  7436.  
  7437.  
  7438.  
  7439.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7440. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7441. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7442.   $as_echo_n "(cached) " >&6
  7443. else
  7444.   lt_cv_apple_cc_single_mod=no
  7445.       if test -z "${LT_MULTI_MODULE}"; then
  7446.         # By default we will add the -single_module flag. You can override
  7447.         # by either setting the environment variable LT_MULTI_MODULE
  7448.         # non-empty at configure time, or by adding -multi_module to the
  7449.         # link flags.
  7450.         rm -rf libconftest.dylib*
  7451.         echo "int foo(void){return 1;}" > conftest.c
  7452.         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7453. -dynamiclib -Wl,-single_module conftest.c" >&5
  7454.         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7455.           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7456.         _lt_result=$?
  7457.         # If there is a non-empty error log, and "single_module"
  7458.         # appears in it, assume the flag caused a linker warning
  7459.         if test -s conftest.err && $GREP single_module conftest.err; then
  7460.           cat conftest.err >&5
  7461.         # Otherwise, if the output was created with a 0 exit code from
  7462.         # the compiler, it worked.
  7463.         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7464.           lt_cv_apple_cc_single_mod=yes
  7465.         else
  7466.           cat conftest.err >&5
  7467.         fi
  7468.         rm -rf libconftest.dylib*
  7469.         rm -f conftest.*
  7470.       fi
  7471. fi
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7473. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7474.  
  7475.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7476. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7477. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7478.   $as_echo_n "(cached) " >&6
  7479. else
  7480.   lt_cv_ld_exported_symbols_list=no
  7481.       save_LDFLAGS=$LDFLAGS
  7482.       echo "_main" > conftest.sym
  7483.       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7484.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7485. /* end confdefs.h.  */
  7486.  
  7487. int
  7488. main ()
  7489. {
  7490.  
  7491.   ;
  7492.   return 0;
  7493. }
  7494. _ACEOF
  7495. if ac_fn_c_try_link "$LINENO"; then :
  7496.   lt_cv_ld_exported_symbols_list=yes
  7497. else
  7498.   lt_cv_ld_exported_symbols_list=no
  7499. fi
  7500. rm -f core conftest.err conftest.$ac_objext \
  7501.     conftest$ac_exeext conftest.$ac_ext
  7502.         LDFLAGS="$save_LDFLAGS"
  7503.  
  7504. fi
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7506. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7507.  
  7508.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7509. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7510. if ${lt_cv_ld_force_load+:} false; then :
  7511.   $as_echo_n "(cached) " >&6
  7512. else
  7513.   lt_cv_ld_force_load=no
  7514.       cat > conftest.c << _LT_EOF
  7515. int forced_loaded() { return 2;}
  7516. _LT_EOF
  7517.       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7518.       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7519.       echo "$AR cru libconftest.a conftest.o" >&5
  7520.       $AR cru libconftest.a conftest.o 2>&5
  7521.       echo "$RANLIB libconftest.a" >&5
  7522.       $RANLIB libconftest.a 2>&5
  7523.       cat > conftest.c << _LT_EOF
  7524. int main() { return 0;}
  7525. _LT_EOF
  7526.       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7527.       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7528.       _lt_result=$?
  7529.       if test -s conftest.err && $GREP force_load conftest.err; then
  7530.         cat conftest.err >&5
  7531.       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7532.         lt_cv_ld_force_load=yes
  7533.       else
  7534.         cat conftest.err >&5
  7535.       fi
  7536.         rm -f conftest.err libconftest.a conftest conftest.c
  7537.         rm -rf conftest.dSYM
  7538.  
  7539. fi
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7541. $as_echo "$lt_cv_ld_force_load" >&6; }
  7542.     case $host_os in
  7543.     rhapsody* | darwin1.[012])
  7544.       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7545.     darwin1.*)
  7546.       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7547.     darwin*) # darwin 5.x on
  7548.       # if running on 10.5 or later, the deployment target defaults
  7549.       # to the OS version, if on x86, and 10.4, the deployment
  7550.       # target defaults to 10.4. Don't you love it?
  7551.       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7552.         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7553.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7554.         10.[012]*)
  7555.           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7556.         10.*)
  7557.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7558.       esac
  7559.     ;;
  7560.   esac
  7561.     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7562.       _lt_dar_single_mod='$single_module'
  7563.     fi
  7564.     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7565.       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7566.     else
  7567.       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7568.     fi
  7569.     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7570.       _lt_dsymutil='~$DSYMUTIL $lib || :'
  7571.     else
  7572.       _lt_dsymutil=
  7573.     fi
  7574.     ;;
  7575.   esac
  7576.  
  7577. ac_ext=c
  7578. ac_cpp='$CPP $CPPFLAGS'
  7579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7583. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7584. # On Suns, sometimes $CPP names a directory.
  7585. if test -n "$CPP" && test -d "$CPP"; then
  7586.   CPP=
  7587. fi
  7588. if test -z "$CPP"; then
  7589.   if ${ac_cv_prog_CPP+:} false; then :
  7590.   $as_echo_n "(cached) " >&6
  7591. else
  7592.       # Double quotes because CPP needs to be expanded
  7593.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7594.     do
  7595.       ac_preproc_ok=false
  7596. for ac_c_preproc_warn_flag in '' yes
  7597. do
  7598.   # Use a header file that comes with gcc, so configuring glibc
  7599.   # with a fresh cross-compiler works.
  7600.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7601.   # <limits.h> exists even on freestanding compilers.
  7602.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7603.   # not just through cpp. "Syntax error" is here to catch this case.
  7604.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7605. /* end confdefs.h.  */
  7606. #ifdef __STDC__
  7607. # include <limits.h>
  7608. #else
  7609. # include <assert.h>
  7610. #endif
  7611.                      Syntax error
  7612. _ACEOF
  7613. if ac_fn_c_try_cpp "$LINENO"; then :
  7614.  
  7615. else
  7616.   # Broken: fails on valid input.
  7617. continue
  7618. fi
  7619. rm -f conftest.err conftest.i conftest.$ac_ext
  7620.  
  7621.   # OK, works on sane cases.  Now check whether nonexistent headers
  7622.   # can be detected and how.
  7623.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7624. /* end confdefs.h.  */
  7625. #include <ac_nonexistent.h>
  7626. _ACEOF
  7627. if ac_fn_c_try_cpp "$LINENO"; then :
  7628.   # Broken: success on invalid input.
  7629. continue
  7630. else
  7631.   # Passes both tests.
  7632. ac_preproc_ok=:
  7633. break
  7634. fi
  7635. rm -f conftest.err conftest.i conftest.$ac_ext
  7636.  
  7637. done
  7638. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7639. rm -f conftest.i conftest.err conftest.$ac_ext
  7640. if $ac_preproc_ok; then :
  7641.   break
  7642. fi
  7643.  
  7644.     done
  7645.     ac_cv_prog_CPP=$CPP
  7646.  
  7647. fi
  7648.   CPP=$ac_cv_prog_CPP
  7649. else
  7650.   ac_cv_prog_CPP=$CPP
  7651. fi
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7653. $as_echo "$CPP" >&6; }
  7654. ac_preproc_ok=false
  7655. for ac_c_preproc_warn_flag in '' yes
  7656. do
  7657.   # Use a header file that comes with gcc, so configuring glibc
  7658.   # with a fresh cross-compiler works.
  7659.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7660.   # <limits.h> exists even on freestanding compilers.
  7661.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7662.   # not just through cpp. "Syntax error" is here to catch this case.
  7663.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7664. /* end confdefs.h.  */
  7665. #ifdef __STDC__
  7666. # include <limits.h>
  7667. #else
  7668. # include <assert.h>
  7669. #endif
  7670.                      Syntax error
  7671. _ACEOF
  7672. if ac_fn_c_try_cpp "$LINENO"; then :
  7673.  
  7674. else
  7675.   # Broken: fails on valid input.
  7676. continue
  7677. fi
  7678. rm -f conftest.err conftest.i conftest.$ac_ext
  7679.  
  7680.   # OK, works on sane cases.  Now check whether nonexistent headers
  7681.   # can be detected and how.
  7682.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7683. /* end confdefs.h.  */
  7684. #include <ac_nonexistent.h>
  7685. _ACEOF
  7686. if ac_fn_c_try_cpp "$LINENO"; then :
  7687.   # Broken: success on invalid input.
  7688. continue
  7689. else
  7690.   # Passes both tests.
  7691. ac_preproc_ok=:
  7692. break
  7693. fi
  7694. rm -f conftest.err conftest.i conftest.$ac_ext
  7695.  
  7696. done
  7697. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7698. rm -f conftest.i conftest.err conftest.$ac_ext
  7699. if $ac_preproc_ok; then :
  7700.  
  7701. else
  7702.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7703. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7704. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7705. See \`config.log' for more details" "$LINENO" 5; }
  7706. fi
  7707.  
  7708. ac_ext=c
  7709. ac_cpp='$CPP $CPPFLAGS'
  7710. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7711. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7712. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7713.  
  7714.  
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7716. $as_echo_n "checking for ANSI C header files... " >&6; }
  7717. if ${ac_cv_header_stdc+:} false; then :
  7718.   $as_echo_n "(cached) " >&6
  7719. else
  7720.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7721. /* end confdefs.h.  */
  7722. #include <stdlib.h>
  7723. #include <stdarg.h>
  7724. #include <string.h>
  7725. #include <float.h>
  7726.  
  7727. int
  7728. main ()
  7729. {
  7730.  
  7731.   ;
  7732.   return 0;
  7733. }
  7734. _ACEOF
  7735. if ac_fn_c_try_compile "$LINENO"; then :
  7736.   ac_cv_header_stdc=yes
  7737. else
  7738.   ac_cv_header_stdc=no
  7739. fi
  7740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7741.  
  7742. if test $ac_cv_header_stdc = yes; then
  7743.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7744.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7745. /* end confdefs.h.  */
  7746. #include <string.h>
  7747.  
  7748. _ACEOF
  7749. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7750.   $EGREP "memchr" >/dev/null 2>&1; then :
  7751.  
  7752. else
  7753.   ac_cv_header_stdc=no
  7754. fi
  7755. rm -f conftest*
  7756.  
  7757. fi
  7758.  
  7759. if test $ac_cv_header_stdc = yes; then
  7760.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7761.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7762. /* end confdefs.h.  */
  7763. #include <stdlib.h>
  7764.  
  7765. _ACEOF
  7766. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7767.   $EGREP "free" >/dev/null 2>&1; then :
  7768.  
  7769. else
  7770.   ac_cv_header_stdc=no
  7771. fi
  7772. rm -f conftest*
  7773.  
  7774. fi
  7775.  
  7776. if test $ac_cv_header_stdc = yes; then
  7777.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7778.   if test "$cross_compiling" = yes; then :
  7779.   :
  7780. else
  7781.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7782. /* end confdefs.h.  */
  7783. #include <ctype.h>
  7784. #include <stdlib.h>
  7785. #if ((' ' & 0x0FF) == 0x020)
  7786. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7787. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7788. #else
  7789. # define ISLOWER(c) \
  7790.                    (('a' <= (c) && (c) <= 'i') \
  7791.                      || ('j' <= (c) && (c) <= 'r') \
  7792.                      || ('s' <= (c) && (c) <= 'z'))
  7793. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7794. #endif
  7795.  
  7796. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7797. int
  7798. main ()
  7799. {
  7800.   int i;
  7801.   for (i = 0; i < 256; i++)
  7802.     if (XOR (islower (i), ISLOWER (i))
  7803.         || toupper (i) != TOUPPER (i))
  7804.       return 2;
  7805.   return 0;
  7806. }
  7807. _ACEOF
  7808. if ac_fn_c_try_run "$LINENO"; then :
  7809.  
  7810. else
  7811.   ac_cv_header_stdc=no
  7812. fi
  7813. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7814.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  7815. fi
  7816.  
  7817. fi
  7818. fi
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7820. $as_echo "$ac_cv_header_stdc" >&6; }
  7821. if test $ac_cv_header_stdc = yes; then
  7822.  
  7823. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7824.  
  7825. fi
  7826.  
  7827. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7828. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7829.                   inttypes.h stdint.h unistd.h
  7830. do :
  7831.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7832. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7833. "
  7834. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7835.   cat >>confdefs.h <<_ACEOF
  7836. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7837. _ACEOF
  7838.  
  7839. fi
  7840.  
  7841. done
  7842.  
  7843.  
  7844. for ac_header in dlfcn.h
  7845. do :
  7846.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7847. "
  7848. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7849.   cat >>confdefs.h <<_ACEOF
  7850. #define HAVE_DLFCN_H 1
  7851. _ACEOF
  7852.  
  7853. fi
  7854.  
  7855. done
  7856.  
  7857.  
  7858.  
  7859.  
  7860.  
  7861. # Set options
  7862.  
  7863.  
  7864.  
  7865.         enable_dlopen=no
  7866.  
  7867.  
  7868.   enable_win32_dll=no
  7869.  
  7870.  
  7871.             # Check whether --enable-shared was given.
  7872. if test "${enable_shared+set}" = set; then :
  7873.   enableval=$enable_shared; p=${PACKAGE-default}
  7874.     case $enableval in
  7875.     yes) enable_shared=yes ;;
  7876.     no) enable_shared=no ;;
  7877.     *)
  7878.       enable_shared=no
  7879.       # Look at the argument we got.  We use all the common list separators.
  7880.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7881.       for pkg in $enableval; do
  7882.         IFS="$lt_save_ifs"
  7883.         if test "X$pkg" = "X$p"; then
  7884.           enable_shared=yes
  7885.         fi
  7886.       done
  7887.       IFS="$lt_save_ifs"
  7888.       ;;
  7889.     esac
  7890. else
  7891.   enable_shared=yes
  7892. fi
  7893.  
  7894.  
  7895.  
  7896.  
  7897.  
  7898.  
  7899.  
  7900.  
  7901.  
  7902.  
  7903.  
  7904. # Check whether --with-pic was given.
  7905. if test "${with_pic+set}" = set; then :
  7906.   withval=$with_pic; lt_p=${PACKAGE-default}
  7907.     case $withval in
  7908.     yes|no) pic_mode=$withval ;;
  7909.     *)
  7910.       pic_mode=default
  7911.       # Look at the argument we got.  We use all the common list separators.
  7912.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7913.       for lt_pkg in $withval; do
  7914.         IFS="$lt_save_ifs"
  7915.         if test "X$lt_pkg" = "X$lt_p"; then
  7916.           pic_mode=yes
  7917.         fi
  7918.       done
  7919.       IFS="$lt_save_ifs"
  7920.       ;;
  7921.     esac
  7922. else
  7923.   pic_mode=default
  7924. fi
  7925.  
  7926.  
  7927. test -z "$pic_mode" && pic_mode=default
  7928.  
  7929.  
  7930.  
  7931.  
  7932.  
  7933.  
  7934.  
  7935.   # Check whether --enable-fast-install was given.
  7936. if test "${enable_fast_install+set}" = set; then :
  7937.   enableval=$enable_fast_install; p=${PACKAGE-default}
  7938.     case $enableval in
  7939.     yes) enable_fast_install=yes ;;
  7940.     no) enable_fast_install=no ;;
  7941.     *)
  7942.       enable_fast_install=no
  7943.       # Look at the argument we got.  We use all the common list separators.
  7944.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7945.       for pkg in $enableval; do
  7946.         IFS="$lt_save_ifs"
  7947.         if test "X$pkg" = "X$p"; then
  7948.           enable_fast_install=yes
  7949.         fi
  7950.       done
  7951.       IFS="$lt_save_ifs"
  7952.       ;;
  7953.     esac
  7954. else
  7955.   enable_fast_install=yes
  7956. fi
  7957.  
  7958.  
  7959.  
  7960.  
  7961.  
  7962.  
  7963.  
  7964.  
  7965.  
  7966.  
  7967.  
  7968. # This can be used to rebuild libtool when needed
  7969. LIBTOOL_DEPS="$ltmain"
  7970.  
  7971. # Always use our own libtool.
  7972. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7973.  
  7974.  
  7975.  
  7976.  
  7977.  
  7978.  
  7979.  
  7980.  
  7981.  
  7982.  
  7983.  
  7984.  
  7985.  
  7986.  
  7987.  
  7988.  
  7989.  
  7990.  
  7991.  
  7992.  
  7993.  
  7994.  
  7995.  
  7996.  
  7997.  
  7998.  
  7999.  
  8000.  
  8001.  
  8002.  
  8003. test -z "$LN_S" && LN_S="ln -s"
  8004.  
  8005.  
  8006.  
  8007.  
  8008.  
  8009.  
  8010.  
  8011.  
  8012.  
  8013.  
  8014.  
  8015.  
  8016.  
  8017.  
  8018. if test -n "${ZSH_VERSION+set}" ; then
  8019.    setopt NO_GLOB_SUBST
  8020. fi
  8021.  
  8022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8023. $as_echo_n "checking for objdir... " >&6; }
  8024. if ${lt_cv_objdir+:} false; then :
  8025.   $as_echo_n "(cached) " >&6
  8026. else
  8027.   rm -f .libs 2>/dev/null
  8028. mkdir .libs 2>/dev/null
  8029. if test -d .libs; then
  8030.   lt_cv_objdir=.libs
  8031. else
  8032.   # MS-DOS does not allow filenames that begin with a dot.
  8033.   lt_cv_objdir=_libs
  8034. fi
  8035. rmdir .libs 2>/dev/null
  8036. fi
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8038. $as_echo "$lt_cv_objdir" >&6; }
  8039. objdir=$lt_cv_objdir
  8040.  
  8041.  
  8042.  
  8043.  
  8044.  
  8045. cat >>confdefs.h <<_ACEOF
  8046. #define LT_OBJDIR "$lt_cv_objdir/"
  8047. _ACEOF
  8048.  
  8049.  
  8050.  
  8051.  
  8052. case $host_os in
  8053. aix3*)
  8054.   # AIX sometimes has problems with the GCC collect2 program.  For some
  8055.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  8056.   # vanish in a puff of smoke.
  8057.   if test "X${COLLECT_NAMES+set}" != Xset; then
  8058.     COLLECT_NAMES=
  8059.     export COLLECT_NAMES
  8060.   fi
  8061.   ;;
  8062. esac
  8063.  
  8064. # Global variables:
  8065. ofile=libtool
  8066. can_build_shared=yes
  8067.  
  8068. # All known linkers require a `.a' archive for static linking (except MSVC,
  8069. # which needs '.lib').
  8070. libext=a
  8071.  
  8072. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8073.  
  8074. old_CC="$CC"
  8075. old_CFLAGS="$CFLAGS"
  8076.  
  8077. # Set sane defaults for various variables
  8078. test -z "$CC" && CC=cc
  8079. test -z "$LTCC" && LTCC=$CC
  8080. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8081. test -z "$LD" && LD=ld
  8082. test -z "$ac_objext" && ac_objext=o
  8083.  
  8084. for cc_temp in $compiler""; do
  8085.   case $cc_temp in
  8086.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8087.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8088.     \-*) ;;
  8089.     *) break;;
  8090.   esac
  8091. done
  8092. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8093.  
  8094.  
  8095. # Only perform the check for file, if the check method requires it
  8096. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8097. case $deplibs_check_method in
  8098. file_magic*)
  8099.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8100.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8101. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8102. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8103.   $as_echo_n "(cached) " >&6
  8104. else
  8105.   case $MAGIC_CMD in
  8106. [\\/*] |  ?:[\\/]*)
  8107.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8108.   ;;
  8109. *)
  8110.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8111.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8112.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8113.   for ac_dir in $ac_dummy; do
  8114.     IFS="$lt_save_ifs"
  8115.     test -z "$ac_dir" && ac_dir=.
  8116.     if test -f $ac_dir/${ac_tool_prefix}file; then
  8117.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8118.       if test -n "$file_magic_test_file"; then
  8119.         case $deplibs_check_method in
  8120.         "file_magic "*)
  8121.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8122.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8123.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8124.             $EGREP "$file_magic_regex" > /dev/null; then
  8125.             :
  8126.           else
  8127.             cat <<_LT_EOF 1>&2
  8128.  
  8129. *** Warning: the command libtool uses to detect shared libraries,
  8130. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8131. *** The result is that libtool may fail to recognize shared libraries
  8132. *** as such.  This will affect the creation of libtool libraries that
  8133. *** depend on shared libraries, but programs linked with such libtool
  8134. *** libraries will work regardless of this problem.  Nevertheless, you
  8135. *** may want to report the problem to your system manager and/or to
  8136. *** bug-libtool@gnu.org
  8137.  
  8138. _LT_EOF
  8139.           fi ;;
  8140.         esac
  8141.       fi
  8142.       break
  8143.     fi
  8144.   done
  8145.   IFS="$lt_save_ifs"
  8146.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8147.   ;;
  8148. esac
  8149. fi
  8150.  
  8151. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8152. if test -n "$MAGIC_CMD"; then
  8153.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8154. $as_echo "$MAGIC_CMD" >&6; }
  8155. else
  8156.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8157. $as_echo "no" >&6; }
  8158. fi
  8159.  
  8160.  
  8161.  
  8162.  
  8163.  
  8164. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8165.   if test -n "$ac_tool_prefix"; then
  8166.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8167. $as_echo_n "checking for file... " >&6; }
  8168. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8169.   $as_echo_n "(cached) " >&6
  8170. else
  8171.   case $MAGIC_CMD in
  8172. [\\/*] |  ?:[\\/]*)
  8173.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8174.   ;;
  8175. *)
  8176.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8177.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8178.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8179.   for ac_dir in $ac_dummy; do
  8180.     IFS="$lt_save_ifs"
  8181.     test -z "$ac_dir" && ac_dir=.
  8182.     if test -f $ac_dir/file; then
  8183.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8184.       if test -n "$file_magic_test_file"; then
  8185.         case $deplibs_check_method in
  8186.         "file_magic "*)
  8187.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8188.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8189.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8190.             $EGREP "$file_magic_regex" > /dev/null; then
  8191.             :
  8192.           else
  8193.             cat <<_LT_EOF 1>&2
  8194.  
  8195. *** Warning: the command libtool uses to detect shared libraries,
  8196. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8197. *** The result is that libtool may fail to recognize shared libraries
  8198. *** as such.  This will affect the creation of libtool libraries that
  8199. *** depend on shared libraries, but programs linked with such libtool
  8200. *** libraries will work regardless of this problem.  Nevertheless, you
  8201. *** may want to report the problem to your system manager and/or to
  8202. *** bug-libtool@gnu.org
  8203.  
  8204. _LT_EOF
  8205.           fi ;;
  8206.         esac
  8207.       fi
  8208.       break
  8209.     fi
  8210.   done
  8211.   IFS="$lt_save_ifs"
  8212.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8213.   ;;
  8214. esac
  8215. fi
  8216.  
  8217. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8218. if test -n "$MAGIC_CMD"; then
  8219.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8220. $as_echo "$MAGIC_CMD" >&6; }
  8221. else
  8222.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8223. $as_echo "no" >&6; }
  8224. fi
  8225.  
  8226.  
  8227.   else
  8228.     MAGIC_CMD=:
  8229.   fi
  8230. fi
  8231.  
  8232.   fi
  8233.   ;;
  8234. esac
  8235.  
  8236. # Use C for the default configuration in the libtool script
  8237.  
  8238. lt_save_CC="$CC"
  8239. ac_ext=c
  8240. ac_cpp='$CPP $CPPFLAGS'
  8241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8244.  
  8245.  
  8246. # Source file extension for C test sources.
  8247. ac_ext=c
  8248.  
  8249. # Object file extension for compiled C test sources.
  8250. objext=o
  8251. objext=$objext
  8252.  
  8253. # Code to be used in simple compile tests
  8254. lt_simple_compile_test_code="int some_variable = 0;"
  8255.  
  8256. # Code to be used in simple link tests
  8257. lt_simple_link_test_code='int main(){return(0);}'
  8258.  
  8259.  
  8260.  
  8261.  
  8262.  
  8263.  
  8264.  
  8265. # If no C compiler was specified, use CC.
  8266. LTCC=${LTCC-"$CC"}
  8267.  
  8268. # If no C compiler flags were specified, use CFLAGS.
  8269. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8270.  
  8271. # Allow CC to be a program name with arguments.
  8272. compiler=$CC
  8273.  
  8274. # Save the default compiler, since it gets overwritten when the other
  8275. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8276. compiler_DEFAULT=$CC
  8277.  
  8278. # save warnings/boilerplate of simple test code
  8279. ac_outfile=conftest.$ac_objext
  8280. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8281. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8282. _lt_compiler_boilerplate=`cat conftest.err`
  8283. $RM conftest*
  8284.  
  8285. ac_outfile=conftest.$ac_objext
  8286. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8287. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8288. _lt_linker_boilerplate=`cat conftest.err`
  8289. $RM -r conftest*
  8290.  
  8291.  
  8292. if test -n "$compiler"; then
  8293.  
  8294. lt_prog_compiler_no_builtin_flag=
  8295.  
  8296. if test "$GCC" = yes; then
  8297.   case $cc_basename in
  8298.   nvcc*)
  8299.     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8300.   *)
  8301.     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8302.   esac
  8303.  
  8304.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8305. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8306. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8307.   $as_echo_n "(cached) " >&6
  8308. else
  8309.   lt_cv_prog_compiler_rtti_exceptions=no
  8310.    ac_outfile=conftest.$ac_objext
  8311.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8312.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  8313.    # Insert the option either (1) after the last *FLAGS variable, or
  8314.    # (2) before a word containing "conftest.", or (3) at the end.
  8315.    # Note that $ac_compile itself does not contain backslashes and begins
  8316.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8317.    # The option is referenced via a variable to avoid confusing sed.
  8318.    lt_compile=`echo "$ac_compile" | $SED \
  8319.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8320.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8321.    -e 's:$: $lt_compiler_flag:'`
  8322.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8323.    (eval "$lt_compile" 2>conftest.err)
  8324.    ac_status=$?
  8325.    cat conftest.err >&5
  8326.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8327.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8328.      # The compiler can only warn and ignore the option if not recognized
  8329.      # So say no if there are warnings other than the usual output.
  8330.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8331.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8332.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8333.        lt_cv_prog_compiler_rtti_exceptions=yes
  8334.      fi
  8335.    fi
  8336.    $RM conftest*
  8337.  
  8338. fi
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8340. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8341.  
  8342. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8343.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8344. else
  8345.     :
  8346. fi
  8347.  
  8348. fi
  8349.  
  8350.  
  8351.  
  8352.  
  8353.  
  8354.  
  8355.   lt_prog_compiler_wl=
  8356. lt_prog_compiler_pic=
  8357. lt_prog_compiler_static=
  8358.  
  8359.  
  8360.   if test "$GCC" = yes; then
  8361.     lt_prog_compiler_wl='-Wl,'
  8362.     lt_prog_compiler_static='-static'
  8363.  
  8364.     case $host_os in
  8365.       aix*)
  8366.       # All AIX code is PIC.
  8367.       if test "$host_cpu" = ia64; then
  8368.         # AIX 5 now supports IA64 processor
  8369.         lt_prog_compiler_static='-Bstatic'
  8370.       fi
  8371.       ;;
  8372.  
  8373.     amigaos*)
  8374.       case $host_cpu in
  8375.       powerpc)
  8376.             # see comment about AmigaOS4 .so support
  8377.             lt_prog_compiler_pic='-fPIC'
  8378.         ;;
  8379.       m68k)
  8380.             # FIXME: we need at least 68020 code to build shared libraries, but
  8381.             # adding the `-m68020' flag to GCC prevents building anything better,
  8382.             # like `-m68040'.
  8383.             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8384.         ;;
  8385.       esac
  8386.       ;;
  8387.  
  8388.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8389.       # PIC is the default for these OSes.
  8390.       ;;
  8391.  
  8392.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8393.       # This hack is so that the source file can tell whether it is being
  8394.       # built for inclusion in a dll (and should export symbols for example).
  8395.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8396.       # (--disable-auto-import) libraries
  8397.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8398.       ;;
  8399.  
  8400.     darwin* | rhapsody*)
  8401.       # PIC is the default on this platform
  8402.       # Common symbols not allowed in MH_DYLIB files
  8403.       lt_prog_compiler_pic='-fno-common'
  8404.       ;;
  8405.  
  8406.     haiku*)
  8407.       # PIC is the default for Haiku.
  8408.       # The "-static" flag exists, but is broken.
  8409.       lt_prog_compiler_static=
  8410.       ;;
  8411.  
  8412.     hpux*)
  8413.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8414.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  8415.       # sets the default TLS model and affects inlining.
  8416.       case $host_cpu in
  8417.       hppa*64*)
  8418.         # +Z the default
  8419.         ;;
  8420.       *)
  8421.         lt_prog_compiler_pic='-fPIC'
  8422.         ;;
  8423.       esac
  8424.       ;;
  8425.  
  8426.     interix[3-9]*)
  8427.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8428.       # Instead, we relocate shared libraries at runtime.
  8429.       ;;
  8430.  
  8431.     msdosdjgpp*)
  8432.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  8433.       # on systems that don't support them.
  8434.       lt_prog_compiler_can_build_shared=no
  8435.       enable_shared=no
  8436.       ;;
  8437.  
  8438.     *nto* | *qnx*)
  8439.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8440.       # it will coredump.
  8441.       lt_prog_compiler_pic='-fPIC -shared'
  8442.       ;;
  8443.  
  8444.     sysv4*MP*)
  8445.       if test -d /usr/nec; then
  8446.         lt_prog_compiler_pic=-Kconform_pic
  8447.       fi
  8448.       ;;
  8449.  
  8450.     *)
  8451.       lt_prog_compiler_pic='-fPIC'
  8452.       ;;
  8453.     esac
  8454.  
  8455.     case $cc_basename in
  8456.     nvcc*) # Cuda Compiler Driver 2.2
  8457.       lt_prog_compiler_wl='-Xlinker '
  8458.       if test -n "$lt_prog_compiler_pic"; then
  8459.         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8460.       fi
  8461.       ;;
  8462.     esac
  8463.   else
  8464.     # PORTME Check for flag to pass linker flags through the system compiler.
  8465.     case $host_os in
  8466.     aix*)
  8467.       lt_prog_compiler_wl='-Wl,'
  8468.       if test "$host_cpu" = ia64; then
  8469.         # AIX 5 now supports IA64 processor
  8470.         lt_prog_compiler_static='-Bstatic'
  8471.       else
  8472.         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8473.       fi
  8474.       ;;
  8475.  
  8476.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8477.       # This hack is so that the source file can tell whether it is being
  8478.       # built for inclusion in a dll (and should export symbols for example).
  8479.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8480.       ;;
  8481.  
  8482.     hpux9* | hpux10* | hpux11*)
  8483.       lt_prog_compiler_wl='-Wl,'
  8484.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8485.       # not for PA HP-UX.
  8486.       case $host_cpu in
  8487.       hppa*64*|ia64*)
  8488.         # +Z the default
  8489.         ;;
  8490.       *)
  8491.         lt_prog_compiler_pic='+Z'
  8492.         ;;
  8493.       esac
  8494.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8495.       lt_prog_compiler_static='${wl}-a ${wl}archive'
  8496.       ;;
  8497.  
  8498.     irix5* | irix6* | nonstopux*)
  8499.       lt_prog_compiler_wl='-Wl,'
  8500.       # PIC (with -KPIC) is the default.
  8501.       lt_prog_compiler_static='-non_shared'
  8502.       ;;
  8503.  
  8504.     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8505.       case $cc_basename in
  8506.       # old Intel for x86_64 which still supported -KPIC.
  8507.       ecc*)
  8508.         lt_prog_compiler_wl='-Wl,'
  8509.         lt_prog_compiler_pic='-KPIC'
  8510.         lt_prog_compiler_static='-static'
  8511.         ;;
  8512.       # icc used to be incompatible with GCC.
  8513.       # ICC 10 doesn't accept -KPIC any more.
  8514.       icc* | ifort*)
  8515.         lt_prog_compiler_wl='-Wl,'
  8516.         lt_prog_compiler_pic='-fPIC'
  8517.         lt_prog_compiler_static='-static'
  8518.         ;;
  8519.       # Lahey Fortran 8.1.
  8520.       lf95*)
  8521.         lt_prog_compiler_wl='-Wl,'
  8522.         lt_prog_compiler_pic='--shared'
  8523.         lt_prog_compiler_static='--static'
  8524.         ;;
  8525.       nagfor*)
  8526.         # NAG Fortran compiler
  8527.         lt_prog_compiler_wl='-Wl,-Wl,,'
  8528.         lt_prog_compiler_pic='-PIC'
  8529.         lt_prog_compiler_static='-Bstatic'
  8530.         ;;
  8531.       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8532.         # Portland Group compilers (*not* the Pentium gcc compiler,
  8533.         # which looks to be a dead project)
  8534.         lt_prog_compiler_wl='-Wl,'
  8535.         lt_prog_compiler_pic='-fpic'
  8536.         lt_prog_compiler_static='-Bstatic'
  8537.         ;;
  8538.       ccc*)
  8539.         lt_prog_compiler_wl='-Wl,'
  8540.         # All Alpha code is PIC.
  8541.         lt_prog_compiler_static='-non_shared'
  8542.         ;;
  8543.       xl* | bgxl* | bgf* | mpixl*)
  8544.         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8545.         lt_prog_compiler_wl='-Wl,'
  8546.         lt_prog_compiler_pic='-qpic'
  8547.         lt_prog_compiler_static='-qstaticlink'
  8548.         ;;
  8549.       *)
  8550.         case `$CC -V 2>&1 | sed 5q` in
  8551.         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8552.           # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8553.           lt_prog_compiler_pic='-KPIC'
  8554.           lt_prog_compiler_static='-Bstatic'
  8555.           lt_prog_compiler_wl=''
  8556.           ;;
  8557.         *Sun\ F* | *Sun*Fortran*)
  8558.           lt_prog_compiler_pic='-KPIC'
  8559.           lt_prog_compiler_static='-Bstatic'
  8560.           lt_prog_compiler_wl='-Qoption ld '
  8561.           ;;
  8562.         *Sun\ C*)
  8563.           # Sun C 5.9
  8564.           lt_prog_compiler_pic='-KPIC'
  8565.           lt_prog_compiler_static='-Bstatic'
  8566.           lt_prog_compiler_wl='-Wl,'
  8567.           ;;
  8568.         *Intel*\ [CF]*Compiler*)
  8569.           lt_prog_compiler_wl='-Wl,'
  8570.           lt_prog_compiler_pic='-fPIC'
  8571.           lt_prog_compiler_static='-static'
  8572.           ;;
  8573.         *Portland\ Group*)
  8574.           lt_prog_compiler_wl='-Wl,'
  8575.           lt_prog_compiler_pic='-fpic'
  8576.           lt_prog_compiler_static='-Bstatic'
  8577.           ;;
  8578.         esac
  8579.         ;;
  8580.       esac
  8581.       ;;
  8582.  
  8583.     newsos6)
  8584.       lt_prog_compiler_pic='-KPIC'
  8585.       lt_prog_compiler_static='-Bstatic'
  8586.       ;;
  8587.  
  8588.     *nto* | *qnx*)
  8589.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8590.       # it will coredump.
  8591.       lt_prog_compiler_pic='-fPIC -shared'
  8592.       ;;
  8593.  
  8594.     osf3* | osf4* | osf5*)
  8595.       lt_prog_compiler_wl='-Wl,'
  8596.       # All OSF/1 code is PIC.
  8597.       lt_prog_compiler_static='-non_shared'
  8598.       ;;
  8599.  
  8600.     rdos*)
  8601.       lt_prog_compiler_static='-non_shared'
  8602.       ;;
  8603.  
  8604.     solaris*)
  8605.       lt_prog_compiler_pic='-KPIC'
  8606.       lt_prog_compiler_static='-Bstatic'
  8607.       case $cc_basename in
  8608.       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8609.         lt_prog_compiler_wl='-Qoption ld ';;
  8610.       *)
  8611.         lt_prog_compiler_wl='-Wl,';;
  8612.       esac
  8613.       ;;
  8614.  
  8615.     sunos4*)
  8616.       lt_prog_compiler_wl='-Qoption ld '
  8617.       lt_prog_compiler_pic='-PIC'
  8618.       lt_prog_compiler_static='-Bstatic'
  8619.       ;;
  8620.  
  8621.     sysv4 | sysv4.2uw2* | sysv4.3*)
  8622.       lt_prog_compiler_wl='-Wl,'
  8623.       lt_prog_compiler_pic='-KPIC'
  8624.       lt_prog_compiler_static='-Bstatic'
  8625.       ;;
  8626.  
  8627.     sysv4*MP*)
  8628.       if test -d /usr/nec ;then
  8629.         lt_prog_compiler_pic='-Kconform_pic'
  8630.         lt_prog_compiler_static='-Bstatic'
  8631.       fi
  8632.       ;;
  8633.  
  8634.     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8635.       lt_prog_compiler_wl='-Wl,'
  8636.       lt_prog_compiler_pic='-KPIC'
  8637.       lt_prog_compiler_static='-Bstatic'
  8638.       ;;
  8639.  
  8640.     unicos*)
  8641.       lt_prog_compiler_wl='-Wl,'
  8642.       lt_prog_compiler_can_build_shared=no
  8643.       ;;
  8644.  
  8645.     uts4*)
  8646.       lt_prog_compiler_pic='-pic'
  8647.       lt_prog_compiler_static='-Bstatic'
  8648.       ;;
  8649.  
  8650.     *)
  8651.       lt_prog_compiler_can_build_shared=no
  8652.       ;;
  8653.     esac
  8654.   fi
  8655.  
  8656. case $host_os in
  8657.   # For platforms which do not support PIC, -DPIC is meaningless:
  8658.   *djgpp*)
  8659.     lt_prog_compiler_pic=
  8660.     ;;
  8661.   *)
  8662.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8663.     ;;
  8664. esac
  8665.  
  8666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8667. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8668. if ${lt_cv_prog_compiler_pic+:} false; then :
  8669.   $as_echo_n "(cached) " >&6
  8670. else
  8671.   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8672. fi
  8673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8674. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8675. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8676.  
  8677. #
  8678. # Check to make sure the PIC flag actually works.
  8679. #
  8680. if test -n "$lt_prog_compiler_pic"; then
  8681.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8682. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8683. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8684.   $as_echo_n "(cached) " >&6
  8685. else
  8686.   lt_cv_prog_compiler_pic_works=no
  8687.    ac_outfile=conftest.$ac_objext
  8688.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8689.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8690.    # Insert the option either (1) after the last *FLAGS variable, or
  8691.    # (2) before a word containing "conftest.", or (3) at the end.
  8692.    # Note that $ac_compile itself does not contain backslashes and begins
  8693.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8694.    # The option is referenced via a variable to avoid confusing sed.
  8695.    lt_compile=`echo "$ac_compile" | $SED \
  8696.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8697.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8698.    -e 's:$: $lt_compiler_flag:'`
  8699.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8700.    (eval "$lt_compile" 2>conftest.err)
  8701.    ac_status=$?
  8702.    cat conftest.err >&5
  8703.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8704.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8705.      # The compiler can only warn and ignore the option if not recognized
  8706.      # So say no if there are warnings other than the usual output.
  8707.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8708.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8709.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8710.        lt_cv_prog_compiler_pic_works=yes
  8711.      fi
  8712.    fi
  8713.    $RM conftest*
  8714.  
  8715. fi
  8716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8717. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8718.  
  8719. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8720.     case $lt_prog_compiler_pic in
  8721.      "" | " "*) ;;
  8722.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8723.      esac
  8724. else
  8725.     lt_prog_compiler_pic=
  8726.      lt_prog_compiler_can_build_shared=no
  8727. fi
  8728.  
  8729. fi
  8730.  
  8731.  
  8732.  
  8733.  
  8734.  
  8735.  
  8736.  
  8737.  
  8738.  
  8739.  
  8740.  
  8741. #
  8742. # Check to make sure the static flag actually works.
  8743. #
  8744. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8746. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8747. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8748.   $as_echo_n "(cached) " >&6
  8749. else
  8750.   lt_cv_prog_compiler_static_works=no
  8751.    save_LDFLAGS="$LDFLAGS"
  8752.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8753.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8754.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8755.      # The linker can only warn and ignore the option if not recognized
  8756.      # So say no if there are warnings
  8757.      if test -s conftest.err; then
  8758.        # Append any errors to the config.log.
  8759.        cat conftest.err 1>&5
  8760.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8761.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8762.        if diff conftest.exp conftest.er2 >/dev/null; then
  8763.          lt_cv_prog_compiler_static_works=yes
  8764.        fi
  8765.      else
  8766.        lt_cv_prog_compiler_static_works=yes
  8767.      fi
  8768.    fi
  8769.    $RM -r conftest*
  8770.    LDFLAGS="$save_LDFLAGS"
  8771.  
  8772. fi
  8773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8774. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8775.  
  8776. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8777.     :
  8778. else
  8779.     lt_prog_compiler_static=
  8780. fi
  8781.  
  8782.  
  8783.  
  8784.  
  8785.  
  8786.  
  8787.  
  8788.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8789. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8790. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8791.   $as_echo_n "(cached) " >&6
  8792. else
  8793.   lt_cv_prog_compiler_c_o=no
  8794.    $RM -r conftest 2>/dev/null
  8795.    mkdir conftest
  8796.    cd conftest
  8797.    mkdir out
  8798.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8799.  
  8800.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  8801.    # Insert the option either (1) after the last *FLAGS variable, or
  8802.    # (2) before a word containing "conftest.", or (3) at the end.
  8803.    # Note that $ac_compile itself does not contain backslashes and begins
  8804.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8805.    lt_compile=`echo "$ac_compile" | $SED \
  8806.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8807.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8808.    -e 's:$: $lt_compiler_flag:'`
  8809.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8810.    (eval "$lt_compile" 2>out/conftest.err)
  8811.    ac_status=$?
  8812.    cat out/conftest.err >&5
  8813.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8814.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8815.    then
  8816.      # The compiler can only warn and ignore the option if not recognized
  8817.      # So say no if there are warnings
  8818.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8819.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8820.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8821.        lt_cv_prog_compiler_c_o=yes
  8822.      fi
  8823.    fi
  8824.    chmod u+w . 2>&5
  8825.    $RM conftest*
  8826.    # SGI C++ compiler will create directory out/ii_files/ for
  8827.    # template instantiation
  8828.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8829.    $RM out/* && rmdir out
  8830.    cd ..
  8831.    $RM -r conftest
  8832.    $RM conftest*
  8833.  
  8834. fi
  8835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8836. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8837.  
  8838.  
  8839.  
  8840.  
  8841.  
  8842.  
  8843.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8844. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8845. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8846.   $as_echo_n "(cached) " >&6
  8847. else
  8848.   lt_cv_prog_compiler_c_o=no
  8849.    $RM -r conftest 2>/dev/null
  8850.    mkdir conftest
  8851.    cd conftest
  8852.    mkdir out
  8853.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8854.  
  8855.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  8856.    # Insert the option either (1) after the last *FLAGS variable, or
  8857.    # (2) before a word containing "conftest.", or (3) at the end.
  8858.    # Note that $ac_compile itself does not contain backslashes and begins
  8859.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8860.    lt_compile=`echo "$ac_compile" | $SED \
  8861.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8862.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8863.    -e 's:$: $lt_compiler_flag:'`
  8864.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8865.    (eval "$lt_compile" 2>out/conftest.err)
  8866.    ac_status=$?
  8867.    cat out/conftest.err >&5
  8868.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8869.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8870.    then
  8871.      # The compiler can only warn and ignore the option if not recognized
  8872.      # So say no if there are warnings
  8873.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8874.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8875.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8876.        lt_cv_prog_compiler_c_o=yes
  8877.      fi
  8878.    fi
  8879.    chmod u+w . 2>&5
  8880.    $RM conftest*
  8881.    # SGI C++ compiler will create directory out/ii_files/ for
  8882.    # template instantiation
  8883.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8884.    $RM out/* && rmdir out
  8885.    cd ..
  8886.    $RM -r conftest
  8887.    $RM conftest*
  8888.  
  8889. fi
  8890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8891. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8892.  
  8893.  
  8894.  
  8895.  
  8896. hard_links="nottested"
  8897. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8898.   # do not overwrite the value of need_locks provided by the user
  8899.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8900. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8901.   hard_links=yes
  8902.   $RM conftest*
  8903.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8904.   touch conftest.a
  8905.   ln conftest.a conftest.b 2>&5 || hard_links=no
  8906.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8907.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8908. $as_echo "$hard_links" >&6; }
  8909.   if test "$hard_links" = no; then
  8910.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8911. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8912.     need_locks=warn
  8913.   fi
  8914. else
  8915.   need_locks=no
  8916. fi
  8917.  
  8918.  
  8919.  
  8920.  
  8921.  
  8922.  
  8923.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8924. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8925.  
  8926.   runpath_var=
  8927.   allow_undefined_flag=
  8928.   always_export_symbols=no
  8929.   archive_cmds=
  8930.   archive_expsym_cmds=
  8931.   compiler_needs_object=no
  8932.   enable_shared_with_static_runtimes=no
  8933.   export_dynamic_flag_spec=
  8934.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8935.   hardcode_automatic=no
  8936.   hardcode_direct=no
  8937.   hardcode_direct_absolute=no
  8938.   hardcode_libdir_flag_spec=
  8939.   hardcode_libdir_separator=
  8940.   hardcode_minus_L=no
  8941.   hardcode_shlibpath_var=unsupported
  8942.   inherit_rpath=no
  8943.   link_all_deplibs=unknown
  8944.   module_cmds=
  8945.   module_expsym_cmds=
  8946.   old_archive_from_new_cmds=
  8947.   old_archive_from_expsyms_cmds=
  8948.   thread_safe_flag_spec=
  8949.   whole_archive_flag_spec=
  8950.   # include_expsyms should be a list of space-separated symbols to be *always*
  8951.   # included in the symbol list
  8952.   include_expsyms=
  8953.   # exclude_expsyms can be an extended regexp of symbols to exclude
  8954.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8955.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8956.   # as well as any symbol that contains `d'.
  8957.   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8958.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8959.   # platforms (ab)use it in PIC code, but their linkers get confused if
  8960.   # the symbol is explicitly referenced.  Since portable code cannot
  8961.   # rely on this symbol name, it's probably fine to never include it in
  8962.   # preloaded symbol tables.
  8963.   # Exclude shared library initialization/finalization symbols.
  8964.   extract_expsyms_cmds=
  8965.  
  8966.   case $host_os in
  8967.   cygwin* | mingw* | pw32* | cegcc*)
  8968.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8969.     # When not using gcc, we currently assume that we are using
  8970.     # Microsoft Visual C++.
  8971.     if test "$GCC" != yes; then
  8972.       with_gnu_ld=no
  8973.     fi
  8974.     ;;
  8975.   interix*)
  8976.     # we just hope/assume this is gcc and not c89 (= MSVC++)
  8977.     with_gnu_ld=yes
  8978.     ;;
  8979.   openbsd*)
  8980.     with_gnu_ld=no
  8981.     ;;
  8982.   linux* | k*bsd*-gnu | gnu*)
  8983.     link_all_deplibs=no
  8984.     ;;
  8985.   esac
  8986.  
  8987.   ld_shlibs=yes
  8988.  
  8989.   # On some targets, GNU ld is compatible enough with the native linker
  8990.   # that we're better off using the native interface for both.
  8991.   lt_use_gnu_ld_interface=no
  8992.   if test "$with_gnu_ld" = yes; then
  8993.     case $host_os in
  8994.       aix*)
  8995.         # The AIX port of GNU ld has always aspired to compatibility
  8996.         # with the native linker.  However, as the warning in the GNU ld
  8997.         # block says, versions before 2.19.5* couldn't really create working
  8998.         # shared libraries, regardless of the interface used.
  8999.         case `$LD -v 2>&1` in
  9000.           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9001.           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9002.           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9003.           *)
  9004.             lt_use_gnu_ld_interface=yes
  9005.             ;;
  9006.         esac
  9007.         ;;
  9008.       *)
  9009.         lt_use_gnu_ld_interface=yes
  9010.         ;;
  9011.     esac
  9012.   fi
  9013.  
  9014.   if test "$lt_use_gnu_ld_interface" = yes; then
  9015.     # If archive_cmds runs LD, not CC, wlarc should be empty
  9016.     wlarc='${wl}'
  9017.  
  9018.     # Set some defaults for GNU ld with shared library support. These
  9019.     # are reset later if shared libraries are not supported. Putting them
  9020.     # here allows them to be overridden if necessary.
  9021.     runpath_var=LD_RUN_PATH
  9022.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9023.     export_dynamic_flag_spec='${wl}--export-dynamic'
  9024.     # ancient GNU ld didn't support --whole-archive et. al.
  9025.     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9026.       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9027.     else
  9028.       whole_archive_flag_spec=
  9029.     fi
  9030.     supports_anon_versioning=no
  9031.     case `$LD -v 2>&1` in
  9032.       *GNU\ gold*) supports_anon_versioning=yes ;;
  9033.       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9034.       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9035.       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9036.       *\ 2.11.*) ;; # other 2.11 versions
  9037.       *) supports_anon_versioning=yes ;;
  9038.     esac
  9039.  
  9040.     # See if GNU ld supports shared libraries.
  9041.     case $host_os in
  9042.     aix[3-9]*)
  9043.       # On AIX/PPC, the GNU linker is very broken
  9044.       if test "$host_cpu" != ia64; then
  9045.         ld_shlibs=no
  9046.         cat <<_LT_EOF 1>&2
  9047.  
  9048. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9049. *** to be unable to reliably create shared libraries on AIX.
  9050. *** Therefore, libtool is disabling shared libraries support.  If you
  9051. *** really care for shared libraries, you may want to install binutils
  9052. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9053. *** You will then need to restart the configuration process.
  9054.  
  9055. _LT_EOF
  9056.       fi
  9057.       ;;
  9058.  
  9059.     amigaos*)
  9060.       case $host_cpu in
  9061.       powerpc)
  9062.             # see comment about AmigaOS4 .so support
  9063.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9064.             archive_expsym_cmds=''
  9065.         ;;
  9066.       m68k)
  9067.             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)'
  9068.             hardcode_libdir_flag_spec='-L$libdir'
  9069.             hardcode_minus_L=yes
  9070.         ;;
  9071.       esac
  9072.       ;;
  9073.  
  9074.     beos*)
  9075.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9076.         allow_undefined_flag=unsupported
  9077.         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9078.         # support --undefined.  This deserves some investigation.  FIXME
  9079.         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9080.       else
  9081.         ld_shlibs=no
  9082.       fi
  9083.       ;;
  9084.  
  9085.     cygwin* | mingw* | pw32* | cegcc*)
  9086.       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9087.       # as there is no search path for DLLs.
  9088.       hardcode_libdir_flag_spec='-L$libdir'
  9089.       export_dynamic_flag_spec='${wl}--export-all-symbols'
  9090.       allow_undefined_flag=unsupported
  9091.       always_export_symbols=no
  9092.       enable_shared_with_static_runtimes=yes
  9093.       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'
  9094.       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9095.  
  9096.       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9097.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9098.         # If the export-symbols file already is a .def file (1st line
  9099.         # is EXPORTS), use it as is; otherwise, prepend...
  9100.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9101.           cp $export_symbols $output_objdir/$soname.def;
  9102.         else
  9103.           echo EXPORTS > $output_objdir/$soname.def;
  9104.           cat $export_symbols >> $output_objdir/$soname.def;
  9105.         fi~
  9106.         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9107.       else
  9108.         ld_shlibs=no
  9109.       fi
  9110.       ;;
  9111.  
  9112.     haiku*)
  9113.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9114.       link_all_deplibs=yes
  9115.       ;;
  9116.  
  9117.     interix[3-9]*)
  9118.       hardcode_direct=no
  9119.       hardcode_shlibpath_var=no
  9120.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9121.       export_dynamic_flag_spec='${wl}-E'
  9122.       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9123.       # Instead, shared libraries are loaded at an image base (0x10000000 by
  9124.       # default) and relocated if they conflict, which is a slow very memory
  9125.       # consuming and fragmenting process.  To avoid this, we pick a random,
  9126.       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9127.       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  9128.       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9129.       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'
  9130.       ;;
  9131.  
  9132.     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9133.       tmp_diet=no
  9134.       if test "$host_os" = linux-dietlibc; then
  9135.         case $cc_basename in
  9136.           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
  9137.         esac
  9138.       fi
  9139.       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9140.          && test "$tmp_diet" = no
  9141.       then
  9142.         tmp_addflag=' $pic_flag'
  9143.         tmp_sharedflag='-shared'
  9144.         case $cc_basename,$host_cpu in
  9145.         pgcc*)                          # Portland Group C compiler
  9146.           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'
  9147.           tmp_addflag=' $pic_flag'
  9148.           ;;
  9149.         pgf77* | pgf90* | pgf95* | pgfortran*)
  9150.                                         # Portland Group f77 and f90 compilers
  9151.           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'
  9152.           tmp_addflag=' $pic_flag -Mnomain' ;;
  9153.         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
  9154.           tmp_addflag=' -i_dynamic' ;;
  9155.         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
  9156.           tmp_addflag=' -i_dynamic -nofor_main' ;;
  9157.         ifc* | ifort*)                  # Intel Fortran compiler
  9158.           tmp_addflag=' -nofor_main' ;;
  9159.         lf95*)                          # Lahey Fortran 8.1
  9160.           whole_archive_flag_spec=
  9161.           tmp_sharedflag='--shared' ;;
  9162.         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9163.           tmp_sharedflag='-qmkshrobj'
  9164.           tmp_addflag= ;;
  9165.         nvcc*)  # Cuda Compiler Driver 2.2
  9166.           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'
  9167.           compiler_needs_object=yes
  9168.           ;;
  9169.         esac
  9170.         case `$CC -V 2>&1 | sed 5q` in
  9171.         *Sun\ C*)                       # Sun C 5.9
  9172.           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'
  9173.           compiler_needs_object=yes
  9174.           tmp_sharedflag='-G' ;;
  9175.         *Sun\ F*)                       # Sun Fortran 8.3
  9176.           tmp_sharedflag='-G' ;;
  9177.         esac
  9178.         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9179.  
  9180.         if test "x$supports_anon_versioning" = xyes; then
  9181.           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9182.             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9183.             echo "local: *; };" >> $output_objdir/$libname.ver~
  9184.             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9185.         fi
  9186.  
  9187.         case $cc_basename in
  9188.         xlf* | bgf* | bgxlf* | mpixlf*)
  9189.           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9190.           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9191.           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9192.           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9193.           if test "x$supports_anon_versioning" = xyes; then
  9194.             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9195.               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9196.               echo "local: *; };" >> $output_objdir/$libname.ver~
  9197.               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9198.           fi
  9199.           ;;
  9200.         esac
  9201.       else
  9202.         ld_shlibs=no
  9203.       fi
  9204.       ;;
  9205.  
  9206.     netbsd* | netbsdelf*-gnu)
  9207.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9208.         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9209.         wlarc=
  9210.       else
  9211.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9212.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9213.       fi
  9214.       ;;
  9215.  
  9216.     solaris*)
  9217.       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9218.         ld_shlibs=no
  9219.         cat <<_LT_EOF 1>&2
  9220.  
  9221. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9222. *** create shared libraries on Solaris systems.  Therefore, libtool
  9223. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9224. *** binutils to release 2.9.1 or newer.  Another option is to modify
  9225. *** your PATH or compiler configuration so that the native linker is
  9226. *** used, and then restart.
  9227.  
  9228. _LT_EOF
  9229.       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9230.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9231.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9232.       else
  9233.         ld_shlibs=no
  9234.       fi
  9235.       ;;
  9236.  
  9237.     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9238.       case `$LD -v 2>&1` in
  9239.         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9240.         ld_shlibs=no
  9241.         cat <<_LT_EOF 1>&2
  9242.  
  9243. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9244. *** reliably create shared libraries on SCO systems.  Therefore, libtool
  9245. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9246. *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  9247. *** your PATH or compiler configuration so that the native linker is
  9248. *** used, and then restart.
  9249.  
  9250. _LT_EOF
  9251.         ;;
  9252.         *)
  9253.           # For security reasons, it is highly recommended that you always
  9254.           # use absolute paths for naming shared libraries, and exclude the
  9255.           # DT_RUNPATH tag from executables and libraries.  But doing so
  9256.           # requires that you compile everything twice, which is a pain.
  9257.           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9258.             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9259.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9260.             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9261.           else
  9262.             ld_shlibs=no
  9263.           fi
  9264.         ;;
  9265.       esac
  9266.       ;;
  9267.  
  9268.     sunos4*)
  9269.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9270.       wlarc=
  9271.       hardcode_direct=yes
  9272.       hardcode_shlibpath_var=no
  9273.       ;;
  9274.  
  9275.     *)
  9276.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9277.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9278.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9279.       else
  9280.         ld_shlibs=no
  9281.       fi
  9282.       ;;
  9283.     esac
  9284.  
  9285.     if test "$ld_shlibs" = no; then
  9286.       runpath_var=
  9287.       hardcode_libdir_flag_spec=
  9288.       export_dynamic_flag_spec=
  9289.       whole_archive_flag_spec=
  9290.     fi
  9291.   else
  9292.     # PORTME fill in a description of your system's linker (not GNU ld)
  9293.     case $host_os in
  9294.     aix3*)
  9295.       allow_undefined_flag=unsupported
  9296.       always_export_symbols=yes
  9297.       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'
  9298.       # Note: this linker hardcodes the directories in LIBPATH if there
  9299.       # are no directories specified by -L.
  9300.       hardcode_minus_L=yes
  9301.       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9302.         # Neither direct hardcoding nor static linking is supported with a
  9303.         # broken collect2.
  9304.         hardcode_direct=unsupported
  9305.       fi
  9306.       ;;
  9307.  
  9308.     aix[4-9]*)
  9309.       if test "$host_cpu" = ia64; then
  9310.         # On IA64, the linker does run time linking by default, so we don't
  9311.         # have to do anything special.
  9312.         aix_use_runtimelinking=no
  9313.         exp_sym_flag='-Bexport'
  9314.         no_entry_flag=""
  9315.       else
  9316.         # If we're using GNU nm, then we don't want the "-C" option.
  9317.         # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9318.         # Also, AIX nm treats weak defined symbols like other global
  9319.         # defined symbols, whereas GNU nm marks them as "W".
  9320.         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9321.           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'
  9322.         else
  9323.           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'
  9324.         fi
  9325.         aix_use_runtimelinking=no
  9326.  
  9327.         # Test if we are trying to use run time linking or normal
  9328.         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9329.         # need to do runtime linking.
  9330.         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9331.           for ld_flag in $LDFLAGS; do
  9332.           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9333.             aix_use_runtimelinking=yes
  9334.             break
  9335.           fi
  9336.           done
  9337.           ;;
  9338.         esac
  9339.  
  9340.         exp_sym_flag='-bexport'
  9341.         no_entry_flag='-bnoentry'
  9342.       fi
  9343.  
  9344.       # When large executables or shared objects are built, AIX ld can
  9345.       # have problems creating the table of contents.  If linking a library
  9346.       # or program results in "error TOC overflow" add -mminimal-toc to
  9347.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  9348.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9349.  
  9350.       archive_cmds=''
  9351.       hardcode_direct=yes
  9352.       hardcode_direct_absolute=yes
  9353.       hardcode_libdir_separator=':'
  9354.       link_all_deplibs=yes
  9355.       file_list_spec='${wl}-f,'
  9356.  
  9357.       if test "$GCC" = yes; then
  9358.         case $host_os in aix4.[012]|aix4.[012].*)
  9359.         # We only want to do this on AIX 4.2 and lower, the check
  9360.         # below for broken collect2 doesn't work under 4.3+
  9361.           collect2name=`${CC} -print-prog-name=collect2`
  9362.           if test -f "$collect2name" &&
  9363.            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9364.           then
  9365.           # We have reworked collect2
  9366.           :
  9367.           else
  9368.           # We have old collect2
  9369.           hardcode_direct=unsupported
  9370.           # It fails to find uninstalled libraries when the uninstalled
  9371.           # path is not listed in the libpath.  Setting hardcode_minus_L
  9372.           # to unsupported forces relinking
  9373.           hardcode_minus_L=yes
  9374.           hardcode_libdir_flag_spec='-L$libdir'
  9375.           hardcode_libdir_separator=
  9376.           fi
  9377.           ;;
  9378.         esac
  9379.         shared_flag='-shared'
  9380.         if test "$aix_use_runtimelinking" = yes; then
  9381.           shared_flag="$shared_flag "'${wl}-G'
  9382.         fi
  9383.         link_all_deplibs=no
  9384.       else
  9385.         # not using gcc
  9386.         if test "$host_cpu" = ia64; then
  9387.         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9388.         # chokes on -Wl,-G. The following line is correct:
  9389.           shared_flag='-G'
  9390.         else
  9391.           if test "$aix_use_runtimelinking" = yes; then
  9392.             shared_flag='${wl}-G'
  9393.           else
  9394.             shared_flag='${wl}-bM:SRE'
  9395.           fi
  9396.         fi
  9397.       fi
  9398.  
  9399.       export_dynamic_flag_spec='${wl}-bexpall'
  9400.       # It seems that -bexpall does not export symbols beginning with
  9401.       # underscore (_), so it is better to generate a list of symbols to export.
  9402.       always_export_symbols=yes
  9403.       if test "$aix_use_runtimelinking" = yes; then
  9404.         # Warning - without using the other runtime loading flags (-brtl),
  9405.         # -berok will link without error, but may produce a broken library.
  9406.         allow_undefined_flag='-berok'
  9407.         # Determine the default libpath from the value encoded in an
  9408.         # empty executable.
  9409.         if test "${lt_cv_aix_libpath+set}" = set; then
  9410.   aix_libpath=$lt_cv_aix_libpath
  9411. else
  9412.   if ${lt_cv_aix_libpath_+:} false; then :
  9413.   $as_echo_n "(cached) " >&6
  9414. else
  9415.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9416. /* end confdefs.h.  */
  9417.  
  9418. int
  9419. main ()
  9420. {
  9421.  
  9422.   ;
  9423.   return 0;
  9424. }
  9425. _ACEOF
  9426. if ac_fn_c_try_link "$LINENO"; then :
  9427.  
  9428.   lt_aix_libpath_sed='
  9429.       /Import File Strings/,/^$/ {
  9430.           /^0/ {
  9431.               s/^0  *\([^ ]*\) *$/\1/
  9432.               p
  9433.           }
  9434.       }'
  9435.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9436.   # Check for a 64-bit object if we didn't find anything.
  9437.   if test -z "$lt_cv_aix_libpath_"; then
  9438.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9439.   fi
  9440. fi
  9441. rm -f core conftest.err conftest.$ac_objext \
  9442.     conftest$ac_exeext conftest.$ac_ext
  9443.   if test -z "$lt_cv_aix_libpath_"; then
  9444.     lt_cv_aix_libpath_="/usr/lib:/lib"
  9445.   fi
  9446.  
  9447. fi
  9448.  
  9449.   aix_libpath=$lt_cv_aix_libpath_
  9450. fi
  9451.  
  9452.         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9453.         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"
  9454.       else
  9455.         if test "$host_cpu" = ia64; then
  9456.           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9457.           allow_undefined_flag="-z nodefs"
  9458.           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"
  9459.         else
  9460.          # Determine the default libpath from the value encoded in an
  9461.          # empty executable.
  9462.          if test "${lt_cv_aix_libpath+set}" = set; then
  9463.   aix_libpath=$lt_cv_aix_libpath
  9464. else
  9465.   if ${lt_cv_aix_libpath_+:} false; then :
  9466.   $as_echo_n "(cached) " >&6
  9467. else
  9468.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9469. /* end confdefs.h.  */
  9470.  
  9471. int
  9472. main ()
  9473. {
  9474.  
  9475.   ;
  9476.   return 0;
  9477. }
  9478. _ACEOF
  9479. if ac_fn_c_try_link "$LINENO"; then :
  9480.  
  9481.   lt_aix_libpath_sed='
  9482.       /Import File Strings/,/^$/ {
  9483.           /^0/ {
  9484.               s/^0  *\([^ ]*\) *$/\1/
  9485.               p
  9486.           }
  9487.       }'
  9488.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9489.   # Check for a 64-bit object if we didn't find anything.
  9490.   if test -z "$lt_cv_aix_libpath_"; then
  9491.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9492.   fi
  9493. fi
  9494. rm -f core conftest.err conftest.$ac_objext \
  9495.     conftest$ac_exeext conftest.$ac_ext
  9496.   if test -z "$lt_cv_aix_libpath_"; then
  9497.     lt_cv_aix_libpath_="/usr/lib:/lib"
  9498.   fi
  9499.  
  9500. fi
  9501.  
  9502.   aix_libpath=$lt_cv_aix_libpath_
  9503. fi
  9504.  
  9505.          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9506.           # Warning - without using the other run time loading flags,
  9507.           # -berok will link without error, but may produce a broken library.
  9508.           no_undefined_flag=' ${wl}-bernotok'
  9509.           allow_undefined_flag=' ${wl}-berok'
  9510.           if test "$with_gnu_ld" = yes; then
  9511.             # We only use this code for GNU lds that support --whole-archive.
  9512.             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9513.           else
  9514.             # Exported symbols can be pulled into shared objects from archives
  9515.             whole_archive_flag_spec='$convenience'
  9516.           fi
  9517.           archive_cmds_need_lc=yes
  9518.           # This is similar to how AIX traditionally builds its shared libraries.
  9519.           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'
  9520.         fi
  9521.       fi
  9522.       ;;
  9523.  
  9524.     amigaos*)
  9525.       case $host_cpu in
  9526.       powerpc)
  9527.             # see comment about AmigaOS4 .so support
  9528.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9529.             archive_expsym_cmds=''
  9530.         ;;
  9531.       m68k)
  9532.             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)'
  9533.             hardcode_libdir_flag_spec='-L$libdir'
  9534.             hardcode_minus_L=yes
  9535.         ;;
  9536.       esac
  9537.       ;;
  9538.  
  9539.     bsdi[45]*)
  9540.       export_dynamic_flag_spec=-rdynamic
  9541.       ;;
  9542.  
  9543.     cygwin* | mingw* | pw32* | cegcc*)
  9544.       # When not using gcc, we currently assume that we are using
  9545.       # Microsoft Visual C++.
  9546.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  9547.       # no search path for DLLs.
  9548.       case $cc_basename in
  9549.       cl*)
  9550.         # Native MSVC
  9551.         hardcode_libdir_flag_spec=' '
  9552.         allow_undefined_flag=unsupported
  9553.         always_export_symbols=yes
  9554.         file_list_spec='@'
  9555.         # Tell ltmain to make .lib files, not .a files.
  9556.         libext=lib
  9557.         # Tell ltmain to make .dll files, not .so files.
  9558.         shrext_cmds=".dll"
  9559.         # FIXME: Setting linknames here is a bad hack.
  9560.         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9561.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9562.             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9563.           else
  9564.             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9565.           fi~
  9566.           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9567.           linknames='
  9568.         # The linker will not automatically build a static lib if we build a DLL.
  9569.         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9570.         enable_shared_with_static_runtimes=yes
  9571.         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9572.         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9573.         # Don't use ranlib
  9574.         old_postinstall_cmds='chmod 644 $oldlib'
  9575.         postlink_cmds='lt_outputfile="@OUTPUT@"~
  9576.           lt_tool_outputfile="@TOOL_OUTPUT@"~
  9577.           case $lt_outputfile in
  9578.             *.exe|*.EXE) ;;
  9579.             *)
  9580.               lt_outputfile="$lt_outputfile.exe"
  9581.               lt_tool_outputfile="$lt_tool_outputfile.exe"
  9582.               ;;
  9583.           esac~
  9584.           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9585.             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9586.             $RM "$lt_outputfile.manifest";
  9587.           fi'
  9588.         ;;
  9589.       *)
  9590.         # Assume MSVC wrapper
  9591.         hardcode_libdir_flag_spec=' '
  9592.         allow_undefined_flag=unsupported
  9593.         # Tell ltmain to make .lib files, not .a files.
  9594.         libext=lib
  9595.         # Tell ltmain to make .dll files, not .so files.
  9596.         shrext_cmds=".dll"
  9597.         # FIXME: Setting linknames here is a bad hack.
  9598.         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9599.         # The linker will automatically build a .lib file if we build a DLL.
  9600.         old_archive_from_new_cmds='true'
  9601.         # FIXME: Should let the user specify the lib program.
  9602.         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9603.         enable_shared_with_static_runtimes=yes
  9604.         ;;
  9605.       esac
  9606.       ;;
  9607.  
  9608.     darwin* | rhapsody*)
  9609.  
  9610.  
  9611.   archive_cmds_need_lc=no
  9612.   hardcode_direct=no
  9613.   hardcode_automatic=yes
  9614.   hardcode_shlibpath_var=unsupported
  9615.   if test "$lt_cv_ld_force_load" = "yes"; then
  9616.     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\"`'
  9617.  
  9618.   else
  9619.     whole_archive_flag_spec=''
  9620.   fi
  9621.   link_all_deplibs=yes
  9622.   allow_undefined_flag="$_lt_dar_allow_undefined"
  9623.   case $cc_basename in
  9624.      ifort*) _lt_dar_can_shared=yes ;;
  9625.      *) _lt_dar_can_shared=$GCC ;;
  9626.   esac
  9627.   if test "$_lt_dar_can_shared" = "yes"; then
  9628.     output_verbose_link_cmd=func_echo_all
  9629.     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9630.     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9631.     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}"
  9632.     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}"
  9633.  
  9634.   else
  9635.   ld_shlibs=no
  9636.   fi
  9637.  
  9638.       ;;
  9639.  
  9640.     dgux*)
  9641.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9642.       hardcode_libdir_flag_spec='-L$libdir'
  9643.       hardcode_shlibpath_var=no
  9644.       ;;
  9645.  
  9646.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9647.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  9648.     # does not break anything, and helps significantly (at the cost of a little
  9649.     # extra space).
  9650.     freebsd2.2*)
  9651.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9652.       hardcode_libdir_flag_spec='-R$libdir'
  9653.       hardcode_direct=yes
  9654.       hardcode_shlibpath_var=no
  9655.       ;;
  9656.  
  9657.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9658.     freebsd2.*)
  9659.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9660.       hardcode_direct=yes
  9661.       hardcode_minus_L=yes
  9662.       hardcode_shlibpath_var=no
  9663.       ;;
  9664.  
  9665.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9666.     freebsd* | dragonfly*)
  9667.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9668.       hardcode_libdir_flag_spec='-R$libdir'
  9669.       hardcode_direct=yes
  9670.       hardcode_shlibpath_var=no
  9671.       ;;
  9672.  
  9673.     hpux9*)
  9674.       if test "$GCC" = yes; then
  9675.         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'
  9676.       else
  9677.         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'
  9678.       fi
  9679.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9680.       hardcode_libdir_separator=:
  9681.       hardcode_direct=yes
  9682.  
  9683.       # hardcode_minus_L: Not really in the search PATH,
  9684.       # but as the default location of the library.
  9685.       hardcode_minus_L=yes
  9686.       export_dynamic_flag_spec='${wl}-E'
  9687.       ;;
  9688.  
  9689.     hpux10*)
  9690.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9691.         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9692.       else
  9693.         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9694.       fi
  9695.       if test "$with_gnu_ld" = no; then
  9696.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9697.         hardcode_libdir_separator=:
  9698.         hardcode_direct=yes
  9699.         hardcode_direct_absolute=yes
  9700.         export_dynamic_flag_spec='${wl}-E'
  9701.         # hardcode_minus_L: Not really in the search PATH,
  9702.         # but as the default location of the library.
  9703.         hardcode_minus_L=yes
  9704.       fi
  9705.       ;;
  9706.  
  9707.     hpux11*)
  9708.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9709.         case $host_cpu in
  9710.         hppa*64*)
  9711.           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9712.           ;;
  9713.         ia64*)
  9714.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9715.           ;;
  9716.         *)
  9717.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9718.           ;;
  9719.         esac
  9720.       else
  9721.         case $host_cpu in
  9722.         hppa*64*)
  9723.           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9724.           ;;
  9725.         ia64*)
  9726.           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9727.           ;;
  9728.         *)
  9729.  
  9730.           # Older versions of the 11.00 compiler do not understand -b yet
  9731.           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9732.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9733. $as_echo_n "checking if $CC understands -b... " >&6; }
  9734. if ${lt_cv_prog_compiler__b+:} false; then :
  9735.   $as_echo_n "(cached) " >&6
  9736. else
  9737.   lt_cv_prog_compiler__b=no
  9738.    save_LDFLAGS="$LDFLAGS"
  9739.    LDFLAGS="$LDFLAGS -b"
  9740.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9741.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9742.      # The linker can only warn and ignore the option if not recognized
  9743.      # So say no if there are warnings
  9744.      if test -s conftest.err; then
  9745.        # Append any errors to the config.log.
  9746.        cat conftest.err 1>&5
  9747.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9748.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9749.        if diff conftest.exp conftest.er2 >/dev/null; then
  9750.          lt_cv_prog_compiler__b=yes
  9751.        fi
  9752.      else
  9753.        lt_cv_prog_compiler__b=yes
  9754.      fi
  9755.    fi
  9756.    $RM -r conftest*
  9757.    LDFLAGS="$save_LDFLAGS"
  9758.  
  9759. fi
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9761. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9762.  
  9763. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9764.     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9765. else
  9766.     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9767. fi
  9768.  
  9769.           ;;
  9770.         esac
  9771.       fi
  9772.       if test "$with_gnu_ld" = no; then
  9773.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9774.         hardcode_libdir_separator=:
  9775.  
  9776.         case $host_cpu in
  9777.         hppa*64*|ia64*)
  9778.           hardcode_direct=no
  9779.           hardcode_shlibpath_var=no
  9780.           ;;
  9781.         *)
  9782.           hardcode_direct=yes
  9783.           hardcode_direct_absolute=yes
  9784.           export_dynamic_flag_spec='${wl}-E'
  9785.  
  9786.           # hardcode_minus_L: Not really in the search PATH,
  9787.           # but as the default location of the library.
  9788.           hardcode_minus_L=yes
  9789.           ;;
  9790.         esac
  9791.       fi
  9792.       ;;
  9793.  
  9794.     irix5* | irix6* | nonstopux*)
  9795.       if test "$GCC" = yes; then
  9796.         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'
  9797.         # Try to use the -exported_symbol ld option, if it does not
  9798.         # work, assume that -exports_file does not work either and
  9799.         # implicitly export all symbols.
  9800.         # This should be the same for all languages, so no per-tag cache variable.
  9801.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9802. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9803. if ${lt_cv_irix_exported_symbol+:} false; then :
  9804.   $as_echo_n "(cached) " >&6
  9805. else
  9806.   save_LDFLAGS="$LDFLAGS"
  9807.            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9808.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9809. /* end confdefs.h.  */
  9810. int foo (void) { return 0; }
  9811. _ACEOF
  9812. if ac_fn_c_try_link "$LINENO"; then :
  9813.   lt_cv_irix_exported_symbol=yes
  9814. else
  9815.   lt_cv_irix_exported_symbol=no
  9816. fi
  9817. rm -f core conftest.err conftest.$ac_objext \
  9818.     conftest$ac_exeext conftest.$ac_ext
  9819.            LDFLAGS="$save_LDFLAGS"
  9820. fi
  9821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9822. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9823.         if test "$lt_cv_irix_exported_symbol" = yes; then
  9824.           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'
  9825.         fi
  9826.       else
  9827.         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'
  9828.         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'
  9829.       fi
  9830.       archive_cmds_need_lc='no'
  9831.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9832.       hardcode_libdir_separator=:
  9833.       inherit_rpath=yes
  9834.       link_all_deplibs=yes
  9835.       ;;
  9836.  
  9837.     netbsd* | netbsdelf*-gnu)
  9838.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9839.         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  9840.       else
  9841.         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  9842.       fi
  9843.       hardcode_libdir_flag_spec='-R$libdir'
  9844.       hardcode_direct=yes
  9845.       hardcode_shlibpath_var=no
  9846.       ;;
  9847.  
  9848.     newsos6)
  9849.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9850.       hardcode_direct=yes
  9851.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9852.       hardcode_libdir_separator=:
  9853.       hardcode_shlibpath_var=no
  9854.       ;;
  9855.  
  9856.     *nto* | *qnx*)
  9857.       ;;
  9858.  
  9859.     openbsd*)
  9860.       if test -f /usr/libexec/ld.so; then
  9861.         hardcode_direct=yes
  9862.         hardcode_shlibpath_var=no
  9863.         hardcode_direct_absolute=yes
  9864.         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9865.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9866.           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9867.           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9868.           export_dynamic_flag_spec='${wl}-E'
  9869.         else
  9870.           case $host_os in
  9871.            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9872.              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9873.              hardcode_libdir_flag_spec='-R$libdir'
  9874.              ;;
  9875.            *)
  9876.              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9877.              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9878.              ;;
  9879.           esac
  9880.         fi
  9881.       else
  9882.         ld_shlibs=no
  9883.       fi
  9884.       ;;
  9885.  
  9886.     os2*)
  9887.       hardcode_libdir_flag_spec='-L$libdir'
  9888.       hardcode_minus_L=yes
  9889.       allow_undefined_flag=unsupported
  9890.       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'
  9891.       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9892.       ;;
  9893.  
  9894.     osf3*)
  9895.       if test "$GCC" = yes; then
  9896.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9897.         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'
  9898.       else
  9899.         allow_undefined_flag=' -expect_unresolved \*'
  9900.         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'
  9901.       fi
  9902.       archive_cmds_need_lc='no'
  9903.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9904.       hardcode_libdir_separator=:
  9905.       ;;
  9906.  
  9907.     osf4* | osf5*)      # as osf3* with the addition of -msym flag
  9908.       if test "$GCC" = yes; then
  9909.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9910.         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'
  9911.         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9912.       else
  9913.         allow_undefined_flag=' -expect_unresolved \*'
  9914.         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'
  9915.         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~
  9916.         $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'
  9917.  
  9918.         # Both c and cxx compiler support -rpath directly
  9919.         hardcode_libdir_flag_spec='-rpath $libdir'
  9920.       fi
  9921.       archive_cmds_need_lc='no'
  9922.       hardcode_libdir_separator=:
  9923.       ;;
  9924.  
  9925.     solaris*)
  9926.       no_undefined_flag=' -z defs'
  9927.       if test "$GCC" = yes; then
  9928.         wlarc='${wl}'
  9929.         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9930.         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9931.           $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'
  9932.       else
  9933.         case `$CC -V 2>&1` in
  9934.         *"Compilers 5.0"*)
  9935.           wlarc=''
  9936.           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9937.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9938.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9939.           ;;
  9940.         *)
  9941.           wlarc='${wl}'
  9942.           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9943.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9944.           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9945.           ;;
  9946.         esac
  9947.       fi
  9948.       hardcode_libdir_flag_spec='-R$libdir'
  9949.       hardcode_shlibpath_var=no
  9950.       case $host_os in
  9951.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  9952.       *)
  9953.         # The compiler driver will combine and reorder linker options,
  9954.         # but understands `-z linker_flag'.  GCC discards it without `$wl',
  9955.         # but is careful enough not to reorder.
  9956.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  9957.         if test "$GCC" = yes; then
  9958.           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9959.         else
  9960.           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9961.         fi
  9962.         ;;
  9963.       esac
  9964.       link_all_deplibs=yes
  9965.       ;;
  9966.  
  9967.     sunos4*)
  9968.       if test "x$host_vendor" = xsequent; then
  9969.         # Use $CC to link under sequent, because it throws in some extra .o
  9970.         # files that make .init and .fini sections work.
  9971.         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9972.       else
  9973.         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9974.       fi
  9975.       hardcode_libdir_flag_spec='-L$libdir'
  9976.       hardcode_direct=yes
  9977.       hardcode_minus_L=yes
  9978.       hardcode_shlibpath_var=no
  9979.       ;;
  9980.  
  9981.     sysv4)
  9982.       case $host_vendor in
  9983.         sni)
  9984.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9985.           hardcode_direct=yes # is this really true???
  9986.         ;;
  9987.         siemens)
  9988.           ## LD is ld it makes a PLAMLIB
  9989.           ## CC just makes a GrossModule.
  9990.           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9991.           reload_cmds='$CC -r -o $output$reload_objs'
  9992.           hardcode_direct=no
  9993.         ;;
  9994.         motorola)
  9995.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9996.           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9997.         ;;
  9998.       esac
  9999.       runpath_var='LD_RUN_PATH'
  10000.       hardcode_shlibpath_var=no
  10001.       ;;
  10002.  
  10003.     sysv4.3*)
  10004.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10005.       hardcode_shlibpath_var=no
  10006.       export_dynamic_flag_spec='-Bexport'
  10007.       ;;
  10008.  
  10009.     sysv4*MP*)
  10010.       if test -d /usr/nec; then
  10011.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10012.         hardcode_shlibpath_var=no
  10013.         runpath_var=LD_RUN_PATH
  10014.         hardcode_runpath_var=yes
  10015.         ld_shlibs=yes
  10016.       fi
  10017.       ;;
  10018.  
  10019.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10020.       no_undefined_flag='${wl}-z,text'
  10021.       archive_cmds_need_lc=no
  10022.       hardcode_shlibpath_var=no
  10023.       runpath_var='LD_RUN_PATH'
  10024.  
  10025.       if test "$GCC" = yes; then
  10026.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10027.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10028.       else
  10029.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10030.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10031.       fi
  10032.       ;;
  10033.  
  10034.     sysv5* | sco3.2v5* | sco5v6*)
  10035.       # Note: We can NOT use -z defs as we might desire, because we do not
  10036.       # link with -lc, and that would cause any symbols used from libc to
  10037.       # always be unresolved, which means just about no library would
  10038.       # ever link correctly.  If we're not using GNU ld we use -z text
  10039.       # though, which does catch some bad symbols but isn't as heavy-handed
  10040.       # as -z defs.
  10041.       no_undefined_flag='${wl}-z,text'
  10042.       allow_undefined_flag='${wl}-z,nodefs'
  10043.       archive_cmds_need_lc=no
  10044.       hardcode_shlibpath_var=no
  10045.       hardcode_libdir_flag_spec='${wl}-R,$libdir'
  10046.       hardcode_libdir_separator=':'
  10047.       link_all_deplibs=yes
  10048.       export_dynamic_flag_spec='${wl}-Bexport'
  10049.       runpath_var='LD_RUN_PATH'
  10050.  
  10051.       if test "$GCC" = yes; then
  10052.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10053.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10054.       else
  10055.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10056.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10057.       fi
  10058.       ;;
  10059.  
  10060.     uts4*)
  10061.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10062.       hardcode_libdir_flag_spec='-L$libdir'
  10063.       hardcode_shlibpath_var=no
  10064.       ;;
  10065.  
  10066.     *)
  10067.       ld_shlibs=no
  10068.       ;;
  10069.     esac
  10070.  
  10071.     if test x$host_vendor = xsni; then
  10072.       case $host in
  10073.       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10074.         export_dynamic_flag_spec='${wl}-Blargedynsym'
  10075.         ;;
  10076.       esac
  10077.     fi
  10078.   fi
  10079.  
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10081. $as_echo "$ld_shlibs" >&6; }
  10082. test "$ld_shlibs" = no && can_build_shared=no
  10083.  
  10084. with_gnu_ld=$with_gnu_ld
  10085.  
  10086.  
  10087.  
  10088.  
  10089.  
  10090.  
  10091.  
  10092.  
  10093.  
  10094.  
  10095.  
  10096.  
  10097.  
  10098.  
  10099.  
  10100. #
  10101. # Do we need to explicitly link libc?
  10102. #
  10103. case "x$archive_cmds_need_lc" in
  10104. x|xyes)
  10105.   # Assume -lc should be added
  10106.   archive_cmds_need_lc=yes
  10107.  
  10108.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  10109.     case $archive_cmds in
  10110.     *'~'*)
  10111.       # FIXME: we may have to deal with multi-command sequences.
  10112.       ;;
  10113.     '$CC '*)
  10114.       # Test whether the compiler implicitly links with -lc since on some
  10115.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10116.       # to ld, don't add -lc before -lgcc.
  10117.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10118. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10119. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10120.   $as_echo_n "(cached) " >&6
  10121. else
  10122.   $RM conftest*
  10123.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10124.  
  10125.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10126.   (eval $ac_compile) 2>&5
  10127.   ac_status=$?
  10128.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10129.   test $ac_status = 0; } 2>conftest.err; then
  10130.           soname=conftest
  10131.           lib=conftest
  10132.           libobjs=conftest.$ac_objext
  10133.           deplibs=
  10134.           wl=$lt_prog_compiler_wl
  10135.           pic_flag=$lt_prog_compiler_pic
  10136.           compiler_flags=-v
  10137.           linker_flags=-v
  10138.           verstring=
  10139.           output_objdir=.
  10140.           libname=conftest
  10141.           lt_save_allow_undefined_flag=$allow_undefined_flag
  10142.           allow_undefined_flag=
  10143.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10144.   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10145.   ac_status=$?
  10146.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10147.   test $ac_status = 0; }
  10148.           then
  10149.             lt_cv_archive_cmds_need_lc=no
  10150.           else
  10151.             lt_cv_archive_cmds_need_lc=yes
  10152.           fi
  10153.           allow_undefined_flag=$lt_save_allow_undefined_flag
  10154.         else
  10155.           cat conftest.err 1>&5
  10156.         fi
  10157.         $RM conftest*
  10158.  
  10159. fi
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10161. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10162.       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10163.       ;;
  10164.     esac
  10165.   fi
  10166.   ;;
  10167. esac
  10168.  
  10169.  
  10170.  
  10171.  
  10172.  
  10173.  
  10174.  
  10175.  
  10176.  
  10177.  
  10178.  
  10179.  
  10180.  
  10181.  
  10182.  
  10183.  
  10184.  
  10185.  
  10186.  
  10187.  
  10188.  
  10189.  
  10190.  
  10191.  
  10192.  
  10193.  
  10194.  
  10195.  
  10196.  
  10197.  
  10198.  
  10199.  
  10200.  
  10201.  
  10202.  
  10203.  
  10204.  
  10205.  
  10206.  
  10207.  
  10208.  
  10209.  
  10210.  
  10211.  
  10212.  
  10213.  
  10214.  
  10215.  
  10216.  
  10217.  
  10218.  
  10219.  
  10220.  
  10221.  
  10222.  
  10223.  
  10224.  
  10225.  
  10226.  
  10227.  
  10228.  
  10229.  
  10230.  
  10231.  
  10232.  
  10233.  
  10234.  
  10235.  
  10236.  
  10237.  
  10238.  
  10239.  
  10240.  
  10241.  
  10242.  
  10243.  
  10244.  
  10245.  
  10246.  
  10247.  
  10248.  
  10249.  
  10250.  
  10251.  
  10252.  
  10253.  
  10254.  
  10255.  
  10256.  
  10257.  
  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.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10321. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10322.  
  10323. if test "$GCC" = yes; then
  10324.   case $host_os in
  10325.     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10326.     *) lt_awk_arg="/^libraries:/" ;;
  10327.   esac
  10328.   case $host_os in
  10329.     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  10330.     *) lt_sed_strip_eq="s,=/,/,g" ;;
  10331.   esac
  10332.   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10333.   case $lt_search_path_spec in
  10334.   *\;*)
  10335.     # if the path contains ";" then we assume it to be the separator
  10336.     # otherwise default to the standard path separator (i.e. ":") - it is
  10337.     # assumed that no part of a normal pathname contains ";" but that should
  10338.     # okay in the real world where ";" in dirpaths is itself problematic.
  10339.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10340.     ;;
  10341.   *)
  10342.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10343.     ;;
  10344.   esac
  10345.   # Ok, now we have the path, separated by spaces, we can step through it
  10346.   # and add multilib dir if necessary.
  10347.   lt_tmp_lt_search_path_spec=
  10348.   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10349.   for lt_sys_path in $lt_search_path_spec; do
  10350.     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10351.       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10352.     else
  10353.       test -d "$lt_sys_path" && \
  10354.         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10355.     fi
  10356.   done
  10357.   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10358. BEGIN {RS=" "; FS="/|\n";} {
  10359.   lt_foo="";
  10360.   lt_count=0;
  10361.   for (lt_i = NF; lt_i > 0; lt_i--) {
  10362.     if ($lt_i != "" && $lt_i != ".") {
  10363.       if ($lt_i == "..") {
  10364.         lt_count++;
  10365.       } else {
  10366.         if (lt_count == 0) {
  10367.           lt_foo="/" $lt_i lt_foo;
  10368.         } else {
  10369.           lt_count--;
  10370.         }
  10371.       }
  10372.     }
  10373.   }
  10374.   if (lt_foo != "") { lt_freq[lt_foo]++; }
  10375.   if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10376. }'`
  10377.   # AWK program above erroneously prepends '/' to C:/dos/paths
  10378.   # for these hosts.
  10379.   case $host_os in
  10380.     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10381.       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  10382.   esac
  10383.   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10384. else
  10385.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10386. fi
  10387. library_names_spec=
  10388. libname_spec='lib$name'
  10389. soname_spec=
  10390. shrext_cmds=".so"
  10391. postinstall_cmds=
  10392. postuninstall_cmds=
  10393. finish_cmds=
  10394. finish_eval=
  10395. shlibpath_var=
  10396. shlibpath_overrides_runpath=unknown
  10397. version_type=none
  10398. dynamic_linker="$host_os ld.so"
  10399. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10400. need_lib_prefix=unknown
  10401. hardcode_into_libs=no
  10402.  
  10403. # when you set need_version to no, make sure it does not cause -set_version
  10404. # flags to be left without arguments
  10405. need_version=unknown
  10406.  
  10407. case $host_os in
  10408. aix3*)
  10409.   version_type=linux # correct to gnu/linux during the next big refactor
  10410.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10411.   shlibpath_var=LIBPATH
  10412.  
  10413.   # AIX 3 has no versioning support, so we append a major version to the name.
  10414.   soname_spec='${libname}${release}${shared_ext}$major'
  10415.   ;;
  10416.  
  10417. aix[4-9]*)
  10418.   version_type=linux # correct to gnu/linux during the next big refactor
  10419.   need_lib_prefix=no
  10420.   need_version=no
  10421.   hardcode_into_libs=yes
  10422.   if test "$host_cpu" = ia64; then
  10423.     # AIX 5 supports IA64
  10424.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10425.     shlibpath_var=LD_LIBRARY_PATH
  10426.   else
  10427.     # With GCC up to 2.95.x, collect2 would create an import file
  10428.     # for dependence libraries.  The import file would start with
  10429.     # the line `#! .'.  This would cause the generated library to
  10430.     # depend on `.', always an invalid library.  This was fixed in
  10431.     # development snapshots of GCC prior to 3.0.
  10432.     case $host_os in
  10433.       aix4 | aix4.[01] | aix4.[01].*)
  10434.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10435.            echo ' yes '
  10436.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10437.         :
  10438.       else
  10439.         can_build_shared=no
  10440.       fi
  10441.       ;;
  10442.     esac
  10443.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10444.     # soname into executable. Probably we can add versioning support to
  10445.     # collect2, so additional links can be useful in future.
  10446.     if test "$aix_use_runtimelinking" = yes; then
  10447.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10448.       # instead of lib<name>.a to let people know that these are not
  10449.       # typical AIX shared libraries.
  10450.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10451.     else
  10452.       # We preserve .a as extension for shared libraries through AIX4.2
  10453.       # and later when we are not doing run time linking.
  10454.       library_names_spec='${libname}${release}.a $libname.a'
  10455.       soname_spec='${libname}${release}${shared_ext}$major'
  10456.     fi
  10457.     shlibpath_var=LIBPATH
  10458.   fi
  10459.   ;;
  10460.  
  10461. amigaos*)
  10462.   case $host_cpu in
  10463.   powerpc)
  10464.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  10465.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10466.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10467.     ;;
  10468.   m68k)
  10469.     library_names_spec='$libname.ixlibrary $libname.a'
  10470.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10471.     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'
  10472.     ;;
  10473.   esac
  10474.   ;;
  10475.  
  10476. beos*)
  10477.   library_names_spec='${libname}${shared_ext}'
  10478.   dynamic_linker="$host_os ld.so"
  10479.   shlibpath_var=LIBRARY_PATH
  10480.   ;;
  10481.  
  10482. bsdi[45]*)
  10483.   version_type=linux # correct to gnu/linux during the next big refactor
  10484.   need_version=no
  10485.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10486.   soname_spec='${libname}${release}${shared_ext}$major'
  10487.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10488.   shlibpath_var=LD_LIBRARY_PATH
  10489.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10490.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10491.   # the default ld.so.conf also contains /usr/contrib/lib and
  10492.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10493.   # libtool to hard-code these into programs
  10494.   ;;
  10495.  
  10496. cygwin* | mingw* | pw32* | cegcc*)
  10497.   version_type=windows
  10498.   shrext_cmds=".dll"
  10499.   need_version=no
  10500.   need_lib_prefix=no
  10501.  
  10502.   case $GCC,$cc_basename in
  10503.   yes,*)
  10504.     # gcc
  10505.     library_names_spec='$libname.dll.a'
  10506.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10507.     postinstall_cmds='base_file=`basename \${file}`~
  10508.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10509.       dldir=$destdir/`dirname \$dlpath`~
  10510.       test -d \$dldir || mkdir -p \$dldir~
  10511.       $install_prog $dir/$dlname \$dldir/$dlname~
  10512.       chmod a+x \$dldir/$dlname~
  10513.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10514.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10515.       fi'
  10516.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10517.       dlpath=$dir/\$dldll~
  10518.        $RM \$dlpath'
  10519.     shlibpath_overrides_runpath=yes
  10520.  
  10521.     case $host_os in
  10522.     cygwin*)
  10523.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10524.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10525.  
  10526.       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10527.       ;;
  10528.     mingw* | cegcc*)
  10529.       # MinGW DLLs use traditional 'lib' prefix
  10530.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10531.       ;;
  10532.     pw32*)
  10533.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  10534.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10535.       ;;
  10536.     esac
  10537.     dynamic_linker='Win32 ld.exe'
  10538.     ;;
  10539.  
  10540.   *,cl*)
  10541.     # Native MSVC
  10542.     libname_spec='$name'
  10543.     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10544.     library_names_spec='${libname}.dll.lib'
  10545.  
  10546.     case $build_os in
  10547.     mingw*)
  10548.       sys_lib_search_path_spec=
  10549.       lt_save_ifs=$IFS
  10550.       IFS=';'
  10551.       for lt_path in $LIB
  10552.       do
  10553.         IFS=$lt_save_ifs
  10554.         # Let DOS variable expansion print the short 8.3 style file name.
  10555.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10556.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10557.       done
  10558.       IFS=$lt_save_ifs
  10559.       # Convert to MSYS style.
  10560.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10561.       ;;
  10562.     cygwin*)
  10563.       # Convert to unix form, then to dos form, then back to unix form
  10564.       # but this time dos style (no spaces!) so that the unix form looks
  10565.       # like /cygdrive/c/PROGRA~1:/cygdr...
  10566.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10567.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10568.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10569.       ;;
  10570.     *)
  10571.       sys_lib_search_path_spec="$LIB"
  10572.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10573.         # It is most probably a Windows format PATH.
  10574.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10575.       else
  10576.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10577.       fi
  10578.       # FIXME: find the short name or the path components, as spaces are
  10579.       # common. (e.g. "Program Files" -> "PROGRA~1")
  10580.       ;;
  10581.     esac
  10582.  
  10583.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10584.     postinstall_cmds='base_file=`basename \${file}`~
  10585.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10586.       dldir=$destdir/`dirname \$dlpath`~
  10587.       test -d \$dldir || mkdir -p \$dldir~
  10588.       $install_prog $dir/$dlname \$dldir/$dlname'
  10589.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10590.       dlpath=$dir/\$dldll~
  10591.        $RM \$dlpath'
  10592.     shlibpath_overrides_runpath=yes
  10593.     dynamic_linker='Win32 link.exe'
  10594.     ;;
  10595.  
  10596.   *)
  10597.     # Assume MSVC wrapper
  10598.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10599.     dynamic_linker='Win32 ld.exe'
  10600.     ;;
  10601.   esac
  10602.   # FIXME: first we should search . and the directory the executable is in
  10603.   shlibpath_var=PATH
  10604.   ;;
  10605.  
  10606. darwin* | rhapsody*)
  10607.   dynamic_linker="$host_os dyld"
  10608.   version_type=darwin
  10609.   need_lib_prefix=no
  10610.   need_version=no
  10611.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10612.   soname_spec='${libname}${release}${major}$shared_ext'
  10613.   shlibpath_overrides_runpath=yes
  10614.   shlibpath_var=DYLD_LIBRARY_PATH
  10615.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10616.  
  10617.   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10618.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10619.   ;;
  10620.  
  10621. dgux*)
  10622.   version_type=linux # correct to gnu/linux during the next big refactor
  10623.   need_lib_prefix=no
  10624.   need_version=no
  10625.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10626.   soname_spec='${libname}${release}${shared_ext}$major'
  10627.   shlibpath_var=LD_LIBRARY_PATH
  10628.   ;;
  10629.  
  10630. freebsd* | dragonfly*)
  10631.   # DragonFly does not have aout.  When/if they implement a new
  10632.   # versioning mechanism, adjust this.
  10633.   if test -x /usr/bin/objformat; then
  10634.     objformat=`/usr/bin/objformat`
  10635.   else
  10636.     case $host_os in
  10637.     freebsd[23].*) objformat=aout ;;
  10638.     *) objformat=elf ;;
  10639.     esac
  10640.   fi
  10641.   version_type=freebsd-$objformat
  10642.   case $version_type in
  10643.     freebsd-elf*)
  10644.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10645.       need_version=no
  10646.       need_lib_prefix=no
  10647.       ;;
  10648.     freebsd-*)
  10649.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10650.       need_version=yes
  10651.       ;;
  10652.   esac
  10653.   shlibpath_var=LD_LIBRARY_PATH
  10654.   case $host_os in
  10655.   freebsd2.*)
  10656.     shlibpath_overrides_runpath=yes
  10657.     ;;
  10658.   freebsd3.[01]* | freebsdelf3.[01]*)
  10659.     shlibpath_overrides_runpath=yes
  10660.     hardcode_into_libs=yes
  10661.     ;;
  10662.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10663.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10664.     shlibpath_overrides_runpath=no
  10665.     hardcode_into_libs=yes
  10666.     ;;
  10667.   *) # from 4.6 on, and DragonFly
  10668.     shlibpath_overrides_runpath=yes
  10669.     hardcode_into_libs=yes
  10670.     ;;
  10671.   esac
  10672.   ;;
  10673.  
  10674. haiku*)
  10675.   version_type=linux # correct to gnu/linux during the next big refactor
  10676.   need_lib_prefix=no
  10677.   need_version=no
  10678.   dynamic_linker="$host_os runtime_loader"
  10679.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10680.   soname_spec='${libname}${release}${shared_ext}$major'
  10681.   shlibpath_var=LIBRARY_PATH
  10682.   shlibpath_overrides_runpath=yes
  10683.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10684.   hardcode_into_libs=yes
  10685.   ;;
  10686.  
  10687. hpux9* | hpux10* | hpux11*)
  10688.   # Give a soname corresponding to the major version so that dld.sl refuses to
  10689.   # link against other versions.
  10690.   version_type=sunos
  10691.   need_lib_prefix=no
  10692.   need_version=no
  10693.   case $host_cpu in
  10694.   ia64*)
  10695.     shrext_cmds='.so'
  10696.     hardcode_into_libs=yes
  10697.     dynamic_linker="$host_os dld.so"
  10698.     shlibpath_var=LD_LIBRARY_PATH
  10699.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10700.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10701.     soname_spec='${libname}${release}${shared_ext}$major'
  10702.     if test "X$HPUX_IA64_MODE" = X32; then
  10703.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10704.     else
  10705.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10706.     fi
  10707.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10708.     ;;
  10709.   hppa*64*)
  10710.     shrext_cmds='.sl'
  10711.     hardcode_into_libs=yes
  10712.     dynamic_linker="$host_os dld.sl"
  10713.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10714.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10715.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10716.     soname_spec='${libname}${release}${shared_ext}$major'
  10717.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10718.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10719.     ;;
  10720.   *)
  10721.     shrext_cmds='.sl'
  10722.     dynamic_linker="$host_os dld.sl"
  10723.     shlibpath_var=SHLIB_PATH
  10724.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10725.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10726.     soname_spec='${libname}${release}${shared_ext}$major'
  10727.     ;;
  10728.   esac
  10729.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10730.   postinstall_cmds='chmod 555 $lib'
  10731.   # or fails outright, so override atomically:
  10732.   install_override_mode=555
  10733.   ;;
  10734.  
  10735. interix[3-9]*)
  10736.   version_type=linux # correct to gnu/linux during the next big refactor
  10737.   need_lib_prefix=no
  10738.   need_version=no
  10739.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10740.   soname_spec='${libname}${release}${shared_ext}$major'
  10741.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10742.   shlibpath_var=LD_LIBRARY_PATH
  10743.   shlibpath_overrides_runpath=no
  10744.   hardcode_into_libs=yes
  10745.   ;;
  10746.  
  10747. irix5* | irix6* | nonstopux*)
  10748.   case $host_os in
  10749.     nonstopux*) version_type=nonstopux ;;
  10750.     *)
  10751.         if test "$lt_cv_prog_gnu_ld" = yes; then
  10752.                 version_type=linux # correct to gnu/linux during the next big refactor
  10753.         else
  10754.                 version_type=irix
  10755.         fi ;;
  10756.   esac
  10757.   need_lib_prefix=no
  10758.   need_version=no
  10759.   soname_spec='${libname}${release}${shared_ext}$major'
  10760.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10761.   case $host_os in
  10762.   irix5* | nonstopux*)
  10763.     libsuff= shlibsuff=
  10764.     ;;
  10765.   *)
  10766.     case $LD in # libtool.m4 will add one of these switches to LD
  10767.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10768.       libsuff= shlibsuff= libmagic=32-bit;;
  10769.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10770.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  10771.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10772.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10773.     *) libsuff= shlibsuff= libmagic=never-match;;
  10774.     esac
  10775.     ;;
  10776.   esac
  10777.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10778.   shlibpath_overrides_runpath=no
  10779.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10780.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10781.   hardcode_into_libs=yes
  10782.   ;;
  10783.  
  10784. # No shared lib support for Linux oldld, aout, or coff.
  10785. linux*oldld* | linux*aout* | linux*coff*)
  10786.   dynamic_linker=no
  10787.   ;;
  10788.  
  10789. # This must be glibc/ELF.
  10790. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10791.   version_type=linux # correct to gnu/linux during the next big refactor
  10792.   need_lib_prefix=no
  10793.   need_version=no
  10794.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10795.   soname_spec='${libname}${release}${shared_ext}$major'
  10796.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10797.   shlibpath_var=LD_LIBRARY_PATH
  10798.   shlibpath_overrides_runpath=no
  10799.  
  10800.   # Some binutils ld are patched to set DT_RUNPATH
  10801.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10802.   $as_echo_n "(cached) " >&6
  10803. else
  10804.   lt_cv_shlibpath_overrides_runpath=no
  10805.     save_LDFLAGS=$LDFLAGS
  10806.     save_libdir=$libdir
  10807.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10808.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10809.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10810. /* end confdefs.h.  */
  10811.  
  10812. int
  10813. main ()
  10814. {
  10815.  
  10816.   ;
  10817.   return 0;
  10818. }
  10819. _ACEOF
  10820. if ac_fn_c_try_link "$LINENO"; then :
  10821.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10822.   lt_cv_shlibpath_overrides_runpath=yes
  10823. fi
  10824. fi
  10825. rm -f core conftest.err conftest.$ac_objext \
  10826.     conftest$ac_exeext conftest.$ac_ext
  10827.     LDFLAGS=$save_LDFLAGS
  10828.     libdir=$save_libdir
  10829.  
  10830. fi
  10831.  
  10832.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10833.  
  10834.   # This implies no fast_install, which is unacceptable.
  10835.   # Some rework will be needed to allow for fast_install
  10836.   # before this can be enabled.
  10837.   hardcode_into_libs=yes
  10838.  
  10839.   # Append ld.so.conf contents to the search path
  10840.   if test -f /etc/ld.so.conf; then
  10841.     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' ' '`
  10842.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10843.   fi
  10844.  
  10845.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  10846.   # powerpc, because MkLinux only supported shared libraries with the
  10847.   # GNU dynamic linker.  Since this was broken with cross compilers,
  10848.   # most powerpc-linux boxes support dynamic linking these days and
  10849.   # people can always --disable-shared, the test was removed, and we
  10850.   # assume the GNU/Linux dynamic linker is in use.
  10851.   dynamic_linker='GNU/Linux ld.so'
  10852.   ;;
  10853.  
  10854. netbsdelf*-gnu)
  10855.   version_type=linux
  10856.   need_lib_prefix=no
  10857.   need_version=no
  10858.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10859.   soname_spec='${libname}${release}${shared_ext}$major'
  10860.   shlibpath_var=LD_LIBRARY_PATH
  10861.   shlibpath_overrides_runpath=no
  10862.   hardcode_into_libs=yes
  10863.   dynamic_linker='NetBSD ld.elf_so'
  10864.   ;;
  10865.  
  10866. netbsd*)
  10867.   version_type=sunos
  10868.   need_lib_prefix=no
  10869.   need_version=no
  10870.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10871.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10872.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10873.     dynamic_linker='NetBSD (a.out) ld.so'
  10874.   else
  10875.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10876.     soname_spec='${libname}${release}${shared_ext}$major'
  10877.     dynamic_linker='NetBSD ld.elf_so'
  10878.   fi
  10879.   shlibpath_var=LD_LIBRARY_PATH
  10880.   shlibpath_overrides_runpath=yes
  10881.   hardcode_into_libs=yes
  10882.   ;;
  10883.  
  10884. newsos6)
  10885.   version_type=linux # correct to gnu/linux during the next big refactor
  10886.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10887.   shlibpath_var=LD_LIBRARY_PATH
  10888.   shlibpath_overrides_runpath=yes
  10889.   ;;
  10890.  
  10891. *nto* | *qnx*)
  10892.   version_type=qnx
  10893.   need_lib_prefix=no
  10894.   need_version=no
  10895.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10896.   soname_spec='${libname}${release}${shared_ext}$major'
  10897.   shlibpath_var=LD_LIBRARY_PATH
  10898.   shlibpath_overrides_runpath=no
  10899.   hardcode_into_libs=yes
  10900.   dynamic_linker='ldqnx.so'
  10901.   ;;
  10902.  
  10903. openbsd*)
  10904.   version_type=sunos
  10905.   sys_lib_dlsearch_path_spec="/usr/lib"
  10906.   need_lib_prefix=no
  10907.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10908.   case $host_os in
  10909.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  10910.     *)                          need_version=no  ;;
  10911.   esac
  10912.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10913.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10914.   shlibpath_var=LD_LIBRARY_PATH
  10915.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10916.     case $host_os in
  10917.       openbsd2.[89] | openbsd2.[89].*)
  10918.         shlibpath_overrides_runpath=no
  10919.         ;;
  10920.       *)
  10921.         shlibpath_overrides_runpath=yes
  10922.         ;;
  10923.       esac
  10924.   else
  10925.     shlibpath_overrides_runpath=yes
  10926.   fi
  10927.   ;;
  10928.  
  10929. os2*)
  10930.   libname_spec='$name'
  10931.   shrext_cmds=".dll"
  10932.   need_lib_prefix=no
  10933.   library_names_spec='$libname${shared_ext} $libname.a'
  10934.   dynamic_linker='OS/2 ld.exe'
  10935.   shlibpath_var=LIBPATH
  10936.   ;;
  10937.  
  10938. osf3* | osf4* | osf5*)
  10939.   version_type=osf
  10940.   need_lib_prefix=no
  10941.   need_version=no
  10942.   soname_spec='${libname}${release}${shared_ext}$major'
  10943.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10944.   shlibpath_var=LD_LIBRARY_PATH
  10945.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10946.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10947.   ;;
  10948.  
  10949. rdos*)
  10950.   dynamic_linker=no
  10951.   ;;
  10952.  
  10953. solaris*)
  10954.   version_type=linux # correct to gnu/linux during the next big refactor
  10955.   need_lib_prefix=no
  10956.   need_version=no
  10957.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10958.   soname_spec='${libname}${release}${shared_ext}$major'
  10959.   shlibpath_var=LD_LIBRARY_PATH
  10960.   shlibpath_overrides_runpath=yes
  10961.   hardcode_into_libs=yes
  10962.   # ldd complains unless libraries are executable
  10963.   postinstall_cmds='chmod +x $lib'
  10964.   ;;
  10965.  
  10966. sunos4*)
  10967.   version_type=sunos
  10968.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10969.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10970.   shlibpath_var=LD_LIBRARY_PATH
  10971.   shlibpath_overrides_runpath=yes
  10972.   if test "$with_gnu_ld" = yes; then
  10973.     need_lib_prefix=no
  10974.   fi
  10975.   need_version=yes
  10976.   ;;
  10977.  
  10978. sysv4 | sysv4.3*)
  10979.   version_type=linux # correct to gnu/linux during the next big refactor
  10980.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10981.   soname_spec='${libname}${release}${shared_ext}$major'
  10982.   shlibpath_var=LD_LIBRARY_PATH
  10983.   case $host_vendor in
  10984.     sni)
  10985.       shlibpath_overrides_runpath=no
  10986.       need_lib_prefix=no
  10987.       runpath_var=LD_RUN_PATH
  10988.       ;;
  10989.     siemens)
  10990.       need_lib_prefix=no
  10991.       ;;
  10992.     motorola)
  10993.       need_lib_prefix=no
  10994.       need_version=no
  10995.       shlibpath_overrides_runpath=no
  10996.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10997.       ;;
  10998.   esac
  10999.   ;;
  11000.  
  11001. sysv4*MP*)
  11002.   if test -d /usr/nec ;then
  11003.     version_type=linux # correct to gnu/linux during the next big refactor
  11004.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11005.     soname_spec='$libname${shared_ext}.$major'
  11006.     shlibpath_var=LD_LIBRARY_PATH
  11007.   fi
  11008.   ;;
  11009.  
  11010. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11011.   version_type=freebsd-elf
  11012.   need_lib_prefix=no
  11013.   need_version=no
  11014.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11015.   soname_spec='${libname}${release}${shared_ext}$major'
  11016.   shlibpath_var=LD_LIBRARY_PATH
  11017.   shlibpath_overrides_runpath=yes
  11018.   hardcode_into_libs=yes
  11019.   if test "$with_gnu_ld" = yes; then
  11020.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11021.   else
  11022.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11023.     case $host_os in
  11024.       sco3.2v5*)
  11025.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11026.         ;;
  11027.     esac
  11028.   fi
  11029.   sys_lib_dlsearch_path_spec='/usr/lib'
  11030.   ;;
  11031.  
  11032. tpf*)
  11033.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  11034.   version_type=linux # correct to gnu/linux during the next big refactor
  11035.   need_lib_prefix=no
  11036.   need_version=no
  11037.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11038.   shlibpath_var=LD_LIBRARY_PATH
  11039.   shlibpath_overrides_runpath=no
  11040.   hardcode_into_libs=yes
  11041.   ;;
  11042.  
  11043. uts4*)
  11044.   version_type=linux # correct to gnu/linux during the next big refactor
  11045.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11046.   soname_spec='${libname}${release}${shared_ext}$major'
  11047.   shlibpath_var=LD_LIBRARY_PATH
  11048.   ;;
  11049.  
  11050. *)
  11051.   dynamic_linker=no
  11052.   ;;
  11053. esac
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11055. $as_echo "$dynamic_linker" >&6; }
  11056. test "$dynamic_linker" = no && can_build_shared=no
  11057.  
  11058. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11059. if test "$GCC" = yes; then
  11060.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11061. fi
  11062.  
  11063. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11064.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11065. fi
  11066. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11067.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11068. fi
  11069.  
  11070.  
  11071.  
  11072.  
  11073.  
  11074.  
  11075.  
  11076.  
  11077.  
  11078.  
  11079.  
  11080.  
  11081.  
  11082.  
  11083.  
  11084.  
  11085.  
  11086.  
  11087.  
  11088.  
  11089.  
  11090.  
  11091.  
  11092.  
  11093.  
  11094.  
  11095.  
  11096.  
  11097.  
  11098.  
  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.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11162. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11163. hardcode_action=
  11164. if test -n "$hardcode_libdir_flag_spec" ||
  11165.    test -n "$runpath_var" ||
  11166.    test "X$hardcode_automatic" = "Xyes" ; then
  11167.  
  11168.   # We can hardcode non-existent directories.
  11169.   if test "$hardcode_direct" != no &&
  11170.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11171.      # have to relink, otherwise we might link with an installed library
  11172.      # when we should be linking with a yet-to-be-installed one
  11173.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11174.      test "$hardcode_minus_L" != no; then
  11175.     # Linking always hardcodes the temporary library directory.
  11176.     hardcode_action=relink
  11177.   else
  11178.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11179.     hardcode_action=immediate
  11180.   fi
  11181. else
  11182.   # We cannot hardcode anything, or else we can only hardcode existing
  11183.   # directories.
  11184.   hardcode_action=unsupported
  11185. fi
  11186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11187. $as_echo "$hardcode_action" >&6; }
  11188.  
  11189. if test "$hardcode_action" = relink ||
  11190.    test "$inherit_rpath" = yes; then
  11191.   # Fast installation is not supported
  11192.   enable_fast_install=no
  11193. elif test "$shlibpath_overrides_runpath" = yes ||
  11194.      test "$enable_shared" = no; then
  11195.   # Fast installation is not necessary
  11196.   enable_fast_install=needless
  11197. fi
  11198.  
  11199.  
  11200.  
  11201.  
  11202.  
  11203.  
  11204.   if test "x$enable_dlopen" != xyes; then
  11205.   enable_dlopen=unknown
  11206.   enable_dlopen_self=unknown
  11207.   enable_dlopen_self_static=unknown
  11208. else
  11209.   lt_cv_dlopen=no
  11210.   lt_cv_dlopen_libs=
  11211.  
  11212.   case $host_os in
  11213.   beos*)
  11214.     lt_cv_dlopen="load_add_on"
  11215.     lt_cv_dlopen_libs=
  11216.     lt_cv_dlopen_self=yes
  11217.     ;;
  11218.  
  11219.   mingw* | pw32* | cegcc*)
  11220.     lt_cv_dlopen="LoadLibrary"
  11221.     lt_cv_dlopen_libs=
  11222.     ;;
  11223.  
  11224.   cygwin*)
  11225.     lt_cv_dlopen="dlopen"
  11226.     lt_cv_dlopen_libs=
  11227.     ;;
  11228.  
  11229.   darwin*)
  11230.   # if libdl is installed we need to link against it
  11231.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11232. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11233. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11234.   $as_echo_n "(cached) " >&6
  11235. else
  11236.   ac_check_lib_save_LIBS=$LIBS
  11237. LIBS="-ldl  $LIBS"
  11238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11239. /* end confdefs.h.  */
  11240.  
  11241. /* Override any GCC internal prototype to avoid an error.
  11242.    Use char because int might match the return type of a GCC
  11243.    builtin and then its argument prototype would still apply.  */
  11244. #ifdef __cplusplus
  11245. extern "C"
  11246. #endif
  11247. char dlopen ();
  11248. int
  11249. main ()
  11250. {
  11251. return dlopen ();
  11252.   ;
  11253.   return 0;
  11254. }
  11255. _ACEOF
  11256. if ac_fn_c_try_link "$LINENO"; then :
  11257.   ac_cv_lib_dl_dlopen=yes
  11258. else
  11259.   ac_cv_lib_dl_dlopen=no
  11260. fi
  11261. rm -f core conftest.err conftest.$ac_objext \
  11262.     conftest$ac_exeext conftest.$ac_ext
  11263. LIBS=$ac_check_lib_save_LIBS
  11264. fi
  11265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11266. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11267. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11268.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11269. else
  11270.  
  11271.     lt_cv_dlopen="dyld"
  11272.     lt_cv_dlopen_libs=
  11273.     lt_cv_dlopen_self=yes
  11274.  
  11275. fi
  11276.  
  11277.     ;;
  11278.  
  11279.   *)
  11280.     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11281. if test "x$ac_cv_func_shl_load" = xyes; then :
  11282.   lt_cv_dlopen="shl_load"
  11283. else
  11284.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11285. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11286. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11287.   $as_echo_n "(cached) " >&6
  11288. else
  11289.   ac_check_lib_save_LIBS=$LIBS
  11290. LIBS="-ldld  $LIBS"
  11291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11292. /* end confdefs.h.  */
  11293.  
  11294. /* Override any GCC internal prototype to avoid an error.
  11295.    Use char because int might match the return type of a GCC
  11296.    builtin and then its argument prototype would still apply.  */
  11297. #ifdef __cplusplus
  11298. extern "C"
  11299. #endif
  11300. char shl_load ();
  11301. int
  11302. main ()
  11303. {
  11304. return shl_load ();
  11305.   ;
  11306.   return 0;
  11307. }
  11308. _ACEOF
  11309. if ac_fn_c_try_link "$LINENO"; then :
  11310.   ac_cv_lib_dld_shl_load=yes
  11311. else
  11312.   ac_cv_lib_dld_shl_load=no
  11313. fi
  11314. rm -f core conftest.err conftest.$ac_objext \
  11315.     conftest$ac_exeext conftest.$ac_ext
  11316. LIBS=$ac_check_lib_save_LIBS
  11317. fi
  11318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11319. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11320. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11321.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11322. else
  11323.   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11324. if test "x$ac_cv_func_dlopen" = xyes; then :
  11325.   lt_cv_dlopen="dlopen"
  11326. else
  11327.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11328. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11329. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11330.   $as_echo_n "(cached) " >&6
  11331. else
  11332.   ac_check_lib_save_LIBS=$LIBS
  11333. LIBS="-ldl  $LIBS"
  11334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11335. /* end confdefs.h.  */
  11336.  
  11337. /* Override any GCC internal prototype to avoid an error.
  11338.    Use char because int might match the return type of a GCC
  11339.    builtin and then its argument prototype would still apply.  */
  11340. #ifdef __cplusplus
  11341. extern "C"
  11342. #endif
  11343. char dlopen ();
  11344. int
  11345. main ()
  11346. {
  11347. return dlopen ();
  11348.   ;
  11349.   return 0;
  11350. }
  11351. _ACEOF
  11352. if ac_fn_c_try_link "$LINENO"; then :
  11353.   ac_cv_lib_dl_dlopen=yes
  11354. else
  11355.   ac_cv_lib_dl_dlopen=no
  11356. fi
  11357. rm -f core conftest.err conftest.$ac_objext \
  11358.     conftest$ac_exeext conftest.$ac_ext
  11359. LIBS=$ac_check_lib_save_LIBS
  11360. fi
  11361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11362. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11363. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11364.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11365. else
  11366.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11367. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11368. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11369.   $as_echo_n "(cached) " >&6
  11370. else
  11371.   ac_check_lib_save_LIBS=$LIBS
  11372. LIBS="-lsvld  $LIBS"
  11373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11374. /* end confdefs.h.  */
  11375.  
  11376. /* Override any GCC internal prototype to avoid an error.
  11377.    Use char because int might match the return type of a GCC
  11378.    builtin and then its argument prototype would still apply.  */
  11379. #ifdef __cplusplus
  11380. extern "C"
  11381. #endif
  11382. char dlopen ();
  11383. int
  11384. main ()
  11385. {
  11386. return dlopen ();
  11387.   ;
  11388.   return 0;
  11389. }
  11390. _ACEOF
  11391. if ac_fn_c_try_link "$LINENO"; then :
  11392.   ac_cv_lib_svld_dlopen=yes
  11393. else
  11394.   ac_cv_lib_svld_dlopen=no
  11395. fi
  11396. rm -f core conftest.err conftest.$ac_objext \
  11397.     conftest$ac_exeext conftest.$ac_ext
  11398. LIBS=$ac_check_lib_save_LIBS
  11399. fi
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11401. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11402. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11403.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11404. else
  11405.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11406. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11407. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11408.   $as_echo_n "(cached) " >&6
  11409. else
  11410.   ac_check_lib_save_LIBS=$LIBS
  11411. LIBS="-ldld  $LIBS"
  11412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11413. /* end confdefs.h.  */
  11414.  
  11415. /* Override any GCC internal prototype to avoid an error.
  11416.    Use char because int might match the return type of a GCC
  11417.    builtin and then its argument prototype would still apply.  */
  11418. #ifdef __cplusplus
  11419. extern "C"
  11420. #endif
  11421. char dld_link ();
  11422. int
  11423. main ()
  11424. {
  11425. return dld_link ();
  11426.   ;
  11427.   return 0;
  11428. }
  11429. _ACEOF
  11430. if ac_fn_c_try_link "$LINENO"; then :
  11431.   ac_cv_lib_dld_dld_link=yes
  11432. else
  11433.   ac_cv_lib_dld_dld_link=no
  11434. fi
  11435. rm -f core conftest.err conftest.$ac_objext \
  11436.     conftest$ac_exeext conftest.$ac_ext
  11437. LIBS=$ac_check_lib_save_LIBS
  11438. fi
  11439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11440. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11441. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11442.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11443. fi
  11444.  
  11445.  
  11446. fi
  11447.  
  11448.  
  11449. fi
  11450.  
  11451.  
  11452. fi
  11453.  
  11454.  
  11455. fi
  11456.  
  11457.  
  11458. fi
  11459.  
  11460.     ;;
  11461.   esac
  11462.  
  11463.   if test "x$lt_cv_dlopen" != xno; then
  11464.     enable_dlopen=yes
  11465.   else
  11466.     enable_dlopen=no
  11467.   fi
  11468.  
  11469.   case $lt_cv_dlopen in
  11470.   dlopen)
  11471.     save_CPPFLAGS="$CPPFLAGS"
  11472.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11473.  
  11474.     save_LDFLAGS="$LDFLAGS"
  11475.     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11476.  
  11477.     save_LIBS="$LIBS"
  11478.     LIBS="$lt_cv_dlopen_libs $LIBS"
  11479.  
  11480.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11481. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11482. if ${lt_cv_dlopen_self+:} false; then :
  11483.   $as_echo_n "(cached) " >&6
  11484. else
  11485.           if test "$cross_compiling" = yes; then :
  11486.   lt_cv_dlopen_self=cross
  11487. else
  11488.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11489.   lt_status=$lt_dlunknown
  11490.   cat > conftest.$ac_ext <<_LT_EOF
  11491. #line $LINENO "configure"
  11492. #include "confdefs.h"
  11493.  
  11494. #if HAVE_DLFCN_H
  11495. #include <dlfcn.h>
  11496. #endif
  11497.  
  11498. #include <stdio.h>
  11499.  
  11500. #ifdef RTLD_GLOBAL
  11501. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11502. #else
  11503. #  ifdef DL_GLOBAL
  11504. #    define LT_DLGLOBAL         DL_GLOBAL
  11505. #  else
  11506. #    define LT_DLGLOBAL         0
  11507. #  endif
  11508. #endif
  11509.  
  11510. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11511.    find out it does not work in some platform. */
  11512. #ifndef LT_DLLAZY_OR_NOW
  11513. #  ifdef RTLD_LAZY
  11514. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11515. #  else
  11516. #    ifdef DL_LAZY
  11517. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11518. #    else
  11519. #      ifdef RTLD_NOW
  11520. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11521. #      else
  11522. #        ifdef DL_NOW
  11523. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11524. #        else
  11525. #          define LT_DLLAZY_OR_NOW      0
  11526. #        endif
  11527. #      endif
  11528. #    endif
  11529. #  endif
  11530. #endif
  11531.  
  11532. /* When -fvisbility=hidden is used, assume the code has been annotated
  11533.    correspondingly for the symbols needed.  */
  11534. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11535. int fnord () __attribute__((visibility("default")));
  11536. #endif
  11537.  
  11538. int fnord () { return 42; }
  11539. int main ()
  11540. {
  11541.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11542.   int status = $lt_dlunknown;
  11543.  
  11544.   if (self)
  11545.     {
  11546.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11547.       else
  11548.         {
  11549.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11550.           else puts (dlerror ());
  11551.         }
  11552.       /* dlclose (self); */
  11553.     }
  11554.   else
  11555.     puts (dlerror ());
  11556.  
  11557.   return status;
  11558. }
  11559. _LT_EOF
  11560.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11561.   (eval $ac_link) 2>&5
  11562.   ac_status=$?
  11563.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11564.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11565.     (./conftest; exit; ) >&5 2>/dev/null
  11566.     lt_status=$?
  11567.     case x$lt_status in
  11568.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11569.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11570.       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11571.     esac
  11572.   else :
  11573.     # compilation failed
  11574.     lt_cv_dlopen_self=no
  11575.   fi
  11576. fi
  11577. rm -fr conftest*
  11578.  
  11579.  
  11580. fi
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11582. $as_echo "$lt_cv_dlopen_self" >&6; }
  11583.  
  11584.     if test "x$lt_cv_dlopen_self" = xyes; then
  11585.       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11586.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11587. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11588. if ${lt_cv_dlopen_self_static+:} false; then :
  11589.   $as_echo_n "(cached) " >&6
  11590. else
  11591.           if test "$cross_compiling" = yes; then :
  11592.   lt_cv_dlopen_self_static=cross
  11593. else
  11594.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11595.   lt_status=$lt_dlunknown
  11596.   cat > conftest.$ac_ext <<_LT_EOF
  11597. #line $LINENO "configure"
  11598. #include "confdefs.h"
  11599.  
  11600. #if HAVE_DLFCN_H
  11601. #include <dlfcn.h>
  11602. #endif
  11603.  
  11604. #include <stdio.h>
  11605.  
  11606. #ifdef RTLD_GLOBAL
  11607. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11608. #else
  11609. #  ifdef DL_GLOBAL
  11610. #    define LT_DLGLOBAL         DL_GLOBAL
  11611. #  else
  11612. #    define LT_DLGLOBAL         0
  11613. #  endif
  11614. #endif
  11615.  
  11616. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11617.    find out it does not work in some platform. */
  11618. #ifndef LT_DLLAZY_OR_NOW
  11619. #  ifdef RTLD_LAZY
  11620. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11621. #  else
  11622. #    ifdef DL_LAZY
  11623. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11624. #    else
  11625. #      ifdef RTLD_NOW
  11626. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11627. #      else
  11628. #        ifdef DL_NOW
  11629. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11630. #        else
  11631. #          define LT_DLLAZY_OR_NOW      0
  11632. #        endif
  11633. #      endif
  11634. #    endif
  11635. #  endif
  11636. #endif
  11637.  
  11638. /* When -fvisbility=hidden is used, assume the code has been annotated
  11639.    correspondingly for the symbols needed.  */
  11640. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11641. int fnord () __attribute__((visibility("default")));
  11642. #endif
  11643.  
  11644. int fnord () { return 42; }
  11645. int main ()
  11646. {
  11647.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11648.   int status = $lt_dlunknown;
  11649.  
  11650.   if (self)
  11651.     {
  11652.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11653.       else
  11654.         {
  11655.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11656.           else puts (dlerror ());
  11657.         }
  11658.       /* dlclose (self); */
  11659.     }
  11660.   else
  11661.     puts (dlerror ());
  11662.  
  11663.   return status;
  11664. }
  11665. _LT_EOF
  11666.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11667.   (eval $ac_link) 2>&5
  11668.   ac_status=$?
  11669.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11670.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11671.     (./conftest; exit; ) >&5 2>/dev/null
  11672.     lt_status=$?
  11673.     case x$lt_status in
  11674.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11675.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11676.       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11677.     esac
  11678.   else :
  11679.     # compilation failed
  11680.     lt_cv_dlopen_self_static=no
  11681.   fi
  11682. fi
  11683. rm -fr conftest*
  11684.  
  11685.  
  11686. fi
  11687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11688. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11689.     fi
  11690.  
  11691.     CPPFLAGS="$save_CPPFLAGS"
  11692.     LDFLAGS="$save_LDFLAGS"
  11693.     LIBS="$save_LIBS"
  11694.     ;;
  11695.   esac
  11696.  
  11697.   case $lt_cv_dlopen_self in
  11698.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11699.   *) enable_dlopen_self=unknown ;;
  11700.   esac
  11701.  
  11702.   case $lt_cv_dlopen_self_static in
  11703.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11704.   *) enable_dlopen_self_static=unknown ;;
  11705.   esac
  11706. fi
  11707.  
  11708.  
  11709.  
  11710.  
  11711.  
  11712.  
  11713.  
  11714.  
  11715.  
  11716.  
  11717.  
  11718.  
  11719.  
  11720.  
  11721.  
  11722.  
  11723.  
  11724. striplib=
  11725. old_striplib=
  11726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11727. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11728. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11729.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11730.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11731.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11732. $as_echo "yes" >&6; }
  11733. else
  11734. # FIXME - insert some real tests, host_os isn't really good enough
  11735.   case $host_os in
  11736.   darwin*)
  11737.     if test -n "$STRIP" ; then
  11738.       striplib="$STRIP -x"
  11739.       old_striplib="$STRIP -S"
  11740.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11741. $as_echo "yes" >&6; }
  11742.     else
  11743.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11744. $as_echo "no" >&6; }
  11745.     fi
  11746.     ;;
  11747.   *)
  11748.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11749. $as_echo "no" >&6; }
  11750.     ;;
  11751.   esac
  11752. fi
  11753.  
  11754.  
  11755.  
  11756.  
  11757.  
  11758.  
  11759.  
  11760.  
  11761.  
  11762.  
  11763.  
  11764.  
  11765.   # Report which library types will actually be built
  11766.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11767. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11768.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11769. $as_echo "$can_build_shared" >&6; }
  11770.  
  11771.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11772. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11773.   test "$can_build_shared" = "no" && enable_shared=no
  11774.  
  11775.   # On AIX, shared libraries and static libraries use the same namespace, and
  11776.   # are all built from PIC.
  11777.   case $host_os in
  11778.   aix3*)
  11779.     test "$enable_shared" = yes && enable_static=no
  11780.     if test -n "$RANLIB"; then
  11781.       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11782.       postinstall_cmds='$RANLIB $lib'
  11783.     fi
  11784.     ;;
  11785.  
  11786.   aix[4-9]*)
  11787.     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11788.       test "$enable_shared" = yes && enable_static=no
  11789.     fi
  11790.     ;;
  11791.   esac
  11792.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11793. $as_echo "$enable_shared" >&6; }
  11794.  
  11795.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11796. $as_echo_n "checking whether to build static libraries... " >&6; }
  11797.   # Make sure either enable_shared or enable_static is yes.
  11798.   test "$enable_shared" = yes || enable_static=yes
  11799.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11800. $as_echo "$enable_static" >&6; }
  11801.  
  11802.  
  11803.  
  11804.  
  11805. fi
  11806. ac_ext=c
  11807. ac_cpp='$CPP $CPPFLAGS'
  11808. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11809. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11810. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11811.  
  11812. CC="$lt_save_CC"
  11813.  
  11814.  
  11815.  
  11816.  
  11817.  
  11818.  
  11819.  
  11820.  
  11821.  
  11822.  
  11823.  
  11824.  
  11825.  
  11826.  
  11827.  
  11828.         ac_config_commands="$ac_config_commands libtool"
  11829.  
  11830.  
  11831.  
  11832.  
  11833. # Only expand once:
  11834.  
  11835.  
  11836. ac_ext=c
  11837. ac_cpp='$CPP $CPPFLAGS'
  11838. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11839. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11840. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11841. if test -n "$ac_tool_prefix"; then
  11842.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11843. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11845. $as_echo_n "checking for $ac_word... " >&6; }
  11846. if ${ac_cv_prog_CC+:} false; then :
  11847.   $as_echo_n "(cached) " >&6
  11848. else
  11849.   if test -n "$CC"; then
  11850.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11851. else
  11852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11853. for as_dir in $PATH
  11854. do
  11855.   IFS=$as_save_IFS
  11856.   test -z "$as_dir" && as_dir=.
  11857.     for ac_exec_ext in '' $ac_executable_extensions; do
  11858.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11859.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11860.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11861.     break 2
  11862.   fi
  11863. done
  11864.   done
  11865. IFS=$as_save_IFS
  11866.  
  11867. fi
  11868. fi
  11869. CC=$ac_cv_prog_CC
  11870. if test -n "$CC"; then
  11871.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11872. $as_echo "$CC" >&6; }
  11873. else
  11874.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11875. $as_echo "no" >&6; }
  11876. fi
  11877.  
  11878.  
  11879. fi
  11880. if test -z "$ac_cv_prog_CC"; then
  11881.   ac_ct_CC=$CC
  11882.   # Extract the first word of "gcc", so it can be a program name with args.
  11883. set dummy gcc; ac_word=$2
  11884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11885. $as_echo_n "checking for $ac_word... " >&6; }
  11886. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11887.   $as_echo_n "(cached) " >&6
  11888. else
  11889.   if test -n "$ac_ct_CC"; then
  11890.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11891. else
  11892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11893. for as_dir in $PATH
  11894. do
  11895.   IFS=$as_save_IFS
  11896.   test -z "$as_dir" && as_dir=.
  11897.     for ac_exec_ext in '' $ac_executable_extensions; do
  11898.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11899.     ac_cv_prog_ac_ct_CC="gcc"
  11900.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11901.     break 2
  11902.   fi
  11903. done
  11904.   done
  11905. IFS=$as_save_IFS
  11906.  
  11907. fi
  11908. fi
  11909. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11910. if test -n "$ac_ct_CC"; then
  11911.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11912. $as_echo "$ac_ct_CC" >&6; }
  11913. else
  11914.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11915. $as_echo "no" >&6; }
  11916. fi
  11917.  
  11918.   if test "x$ac_ct_CC" = x; then
  11919.     CC=""
  11920.   else
  11921.     case $cross_compiling:$ac_tool_warned in
  11922. yes:)
  11923. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11924. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11925. ac_tool_warned=yes ;;
  11926. esac
  11927.     CC=$ac_ct_CC
  11928.   fi
  11929. else
  11930.   CC="$ac_cv_prog_CC"
  11931. fi
  11932.  
  11933. if test -z "$CC"; then
  11934.           if test -n "$ac_tool_prefix"; then
  11935.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11936. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11938. $as_echo_n "checking for $ac_word... " >&6; }
  11939. if ${ac_cv_prog_CC+:} false; then :
  11940.   $as_echo_n "(cached) " >&6
  11941. else
  11942.   if test -n "$CC"; then
  11943.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11944. else
  11945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11946. for as_dir in $PATH
  11947. do
  11948.   IFS=$as_save_IFS
  11949.   test -z "$as_dir" && as_dir=.
  11950.     for ac_exec_ext in '' $ac_executable_extensions; do
  11951.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11952.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  11953.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11954.     break 2
  11955.   fi
  11956. done
  11957.   done
  11958. IFS=$as_save_IFS
  11959.  
  11960. fi
  11961. fi
  11962. CC=$ac_cv_prog_CC
  11963. if test -n "$CC"; then
  11964.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11965. $as_echo "$CC" >&6; }
  11966. else
  11967.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11968. $as_echo "no" >&6; }
  11969. fi
  11970.  
  11971.  
  11972.   fi
  11973. fi
  11974. if test -z "$CC"; then
  11975.   # Extract the first word of "cc", so it can be a program name with args.
  11976. set dummy cc; ac_word=$2
  11977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11978. $as_echo_n "checking for $ac_word... " >&6; }
  11979. if ${ac_cv_prog_CC+:} false; then :
  11980.   $as_echo_n "(cached) " >&6
  11981. else
  11982.   if test -n "$CC"; then
  11983.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11984. else
  11985.   ac_prog_rejected=no
  11986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11987. for as_dir in $PATH
  11988. do
  11989.   IFS=$as_save_IFS
  11990.   test -z "$as_dir" && as_dir=.
  11991.     for ac_exec_ext in '' $ac_executable_extensions; do
  11992.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11993.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11994.        ac_prog_rejected=yes
  11995.        continue
  11996.      fi
  11997.     ac_cv_prog_CC="cc"
  11998.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11999.     break 2
  12000.   fi
  12001. done
  12002.   done
  12003. IFS=$as_save_IFS
  12004.  
  12005. if test $ac_prog_rejected = yes; then
  12006.   # We found a bogon in the path, so make sure we never use it.
  12007.   set dummy $ac_cv_prog_CC
  12008.   shift
  12009.   if test $# != 0; then
  12010.     # We chose a different compiler from the bogus one.
  12011.     # However, it has the same basename, so the bogon will be chosen
  12012.     # first if we set CC to just the basename; use the full file name.
  12013.     shift
  12014.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  12015.   fi
  12016. fi
  12017. fi
  12018. fi
  12019. CC=$ac_cv_prog_CC
  12020. if test -n "$CC"; then
  12021.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12022. $as_echo "$CC" >&6; }
  12023. else
  12024.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12025. $as_echo "no" >&6; }
  12026. fi
  12027.  
  12028.  
  12029. fi
  12030. if test -z "$CC"; then
  12031.   if test -n "$ac_tool_prefix"; then
  12032.   for ac_prog in cl.exe
  12033.   do
  12034.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12035. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12037. $as_echo_n "checking for $ac_word... " >&6; }
  12038. if ${ac_cv_prog_CC+:} false; then :
  12039.   $as_echo_n "(cached) " >&6
  12040. else
  12041.   if test -n "$CC"; then
  12042.   ac_cv_prog_CC="$CC" # Let the user override the test.
  12043. else
  12044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12045. for as_dir in $PATH
  12046. do
  12047.   IFS=$as_save_IFS
  12048.   test -z "$as_dir" && as_dir=.
  12049.     for ac_exec_ext in '' $ac_executable_extensions; do
  12050.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12051.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  12052.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12053.     break 2
  12054.   fi
  12055. done
  12056.   done
  12057. IFS=$as_save_IFS
  12058.  
  12059. fi
  12060. fi
  12061. CC=$ac_cv_prog_CC
  12062. if test -n "$CC"; then
  12063.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12064. $as_echo "$CC" >&6; }
  12065. else
  12066.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12067. $as_echo "no" >&6; }
  12068. fi
  12069.  
  12070.  
  12071.     test -n "$CC" && break
  12072.   done
  12073. fi
  12074. if test -z "$CC"; then
  12075.   ac_ct_CC=$CC
  12076.   for ac_prog in cl.exe
  12077. do
  12078.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  12079. set dummy $ac_prog; ac_word=$2
  12080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12081. $as_echo_n "checking for $ac_word... " >&6; }
  12082. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  12083.   $as_echo_n "(cached) " >&6
  12084. else
  12085.   if test -n "$ac_ct_CC"; then
  12086.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  12087. else
  12088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12089. for as_dir in $PATH
  12090. do
  12091.   IFS=$as_save_IFS
  12092.   test -z "$as_dir" && as_dir=.
  12093.     for ac_exec_ext in '' $ac_executable_extensions; do
  12094.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12095.     ac_cv_prog_ac_ct_CC="$ac_prog"
  12096.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12097.     break 2
  12098.   fi
  12099. done
  12100.   done
  12101. IFS=$as_save_IFS
  12102.  
  12103. fi
  12104. fi
  12105. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  12106. if test -n "$ac_ct_CC"; then
  12107.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  12108. $as_echo "$ac_ct_CC" >&6; }
  12109. else
  12110.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12111. $as_echo "no" >&6; }
  12112. fi
  12113.  
  12114.  
  12115.   test -n "$ac_ct_CC" && break
  12116. done
  12117.  
  12118.   if test "x$ac_ct_CC" = x; then
  12119.     CC=""
  12120.   else
  12121.     case $cross_compiling:$ac_tool_warned in
  12122. yes:)
  12123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12124. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12125. ac_tool_warned=yes ;;
  12126. esac
  12127.     CC=$ac_ct_CC
  12128.   fi
  12129. fi
  12130.  
  12131. fi
  12132.  
  12133.  
  12134. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12135. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12136. as_fn_error $? "no acceptable C compiler found in \$PATH
  12137. See \`config.log' for more details" "$LINENO" 5; }
  12138.  
  12139. # Provide some information about the compiler.
  12140. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  12141. set X $ac_compile
  12142. ac_compiler=$2
  12143. for ac_option in --version -v -V -qversion; do
  12144.   { { ac_try="$ac_compiler $ac_option >&5"
  12145. case "(($ac_try" in
  12146.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12147.   *) ac_try_echo=$ac_try;;
  12148. esac
  12149. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12150. $as_echo "$ac_try_echo"; } >&5
  12151.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12152.   ac_status=$?
  12153.   if test -s conftest.err; then
  12154.     sed '10a\
  12155. ... rest of stderr output deleted ...
  12156.          10q' conftest.err >conftest.er1
  12157.     cat conftest.er1 >&5
  12158.   fi
  12159.   rm -f conftest.er1 conftest.err
  12160.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12161.   test $ac_status = 0; }
  12162. done
  12163.  
  12164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  12165. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  12166. if ${ac_cv_c_compiler_gnu+:} false; then :
  12167.   $as_echo_n "(cached) " >&6
  12168. else
  12169.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12170. /* end confdefs.h.  */
  12171.  
  12172. int
  12173. main ()
  12174. {
  12175. #ifndef __GNUC__
  12176.        choke me
  12177. #endif
  12178.  
  12179.   ;
  12180.   return 0;
  12181. }
  12182. _ACEOF
  12183. if ac_fn_c_try_compile "$LINENO"; then :
  12184.   ac_compiler_gnu=yes
  12185. else
  12186.   ac_compiler_gnu=no
  12187. fi
  12188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12189. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  12190.  
  12191. fi
  12192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  12193. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  12194. if test $ac_compiler_gnu = yes; then
  12195.   GCC=yes
  12196. else
  12197.   GCC=
  12198. fi
  12199. ac_test_CFLAGS=${CFLAGS+set}
  12200. ac_save_CFLAGS=$CFLAGS
  12201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  12202. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  12203. if ${ac_cv_prog_cc_g+:} false; then :
  12204.   $as_echo_n "(cached) " >&6
  12205. else
  12206.   ac_save_c_werror_flag=$ac_c_werror_flag
  12207.    ac_c_werror_flag=yes
  12208.    ac_cv_prog_cc_g=no
  12209.    CFLAGS="-g"
  12210.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12211. /* end confdefs.h.  */
  12212.  
  12213. int
  12214. main ()
  12215. {
  12216.  
  12217.   ;
  12218.   return 0;
  12219. }
  12220. _ACEOF
  12221. if ac_fn_c_try_compile "$LINENO"; then :
  12222.   ac_cv_prog_cc_g=yes
  12223. else
  12224.   CFLAGS=""
  12225.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12226. /* end confdefs.h.  */
  12227.  
  12228. int
  12229. main ()
  12230. {
  12231.  
  12232.   ;
  12233.   return 0;
  12234. }
  12235. _ACEOF
  12236. if ac_fn_c_try_compile "$LINENO"; then :
  12237.  
  12238. else
  12239.   ac_c_werror_flag=$ac_save_c_werror_flag
  12240.          CFLAGS="-g"
  12241.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12242. /* end confdefs.h.  */
  12243.  
  12244. int
  12245. main ()
  12246. {
  12247.  
  12248.   ;
  12249.   return 0;
  12250. }
  12251. _ACEOF
  12252. if ac_fn_c_try_compile "$LINENO"; then :
  12253.   ac_cv_prog_cc_g=yes
  12254. fi
  12255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12256. fi
  12257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12258. fi
  12259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12260.    ac_c_werror_flag=$ac_save_c_werror_flag
  12261. fi
  12262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  12263. $as_echo "$ac_cv_prog_cc_g" >&6; }
  12264. if test "$ac_test_CFLAGS" = set; then
  12265.   CFLAGS=$ac_save_CFLAGS
  12266. elif test $ac_cv_prog_cc_g = yes; then
  12267.   if test "$GCC" = yes; then
  12268.     CFLAGS="-g -O2"
  12269.   else
  12270.     CFLAGS="-g"
  12271.   fi
  12272. else
  12273.   if test "$GCC" = yes; then
  12274.     CFLAGS="-O2"
  12275.   else
  12276.     CFLAGS=
  12277.   fi
  12278. fi
  12279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  12280. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  12281. if ${ac_cv_prog_cc_c89+:} false; then :
  12282.   $as_echo_n "(cached) " >&6
  12283. else
  12284.   ac_cv_prog_cc_c89=no
  12285. ac_save_CC=$CC
  12286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12287. /* end confdefs.h.  */
  12288. #include <stdarg.h>
  12289. #include <stdio.h>
  12290. struct stat;
  12291. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  12292. struct buf { int x; };
  12293. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  12294. static char *e (p, i)
  12295.      char **p;
  12296.      int i;
  12297. {
  12298.   return p[i];
  12299. }
  12300. static char *f (char * (*g) (char **, int), char **p, ...)
  12301. {
  12302.   char *s;
  12303.   va_list v;
  12304.   va_start (v,p);
  12305.   s = g (p, va_arg (v,int));
  12306.   va_end (v);
  12307.   return s;
  12308. }
  12309.  
  12310. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  12311.    function prototypes and stuff, but not '\xHH' hex character constants.
  12312.    These don't provoke an error unfortunately, instead are silently treated
  12313.    as 'x'.  The following induces an error, until -std is added to get
  12314.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  12315.    array size at least.  It's necessary to write '\x00'==0 to get something
  12316.    that's true only with -std.  */
  12317. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  12318.  
  12319. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  12320.    inside strings and character constants.  */
  12321. #define FOO(x) 'x'
  12322. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  12323.  
  12324. int test (int i, double x);
  12325. struct s1 {int (*f) (int a);};
  12326. struct s2 {int (*f) (double a);};
  12327. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  12328. int argc;
  12329. char **argv;
  12330. int
  12331. main ()
  12332. {
  12333. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  12334.   ;
  12335.   return 0;
  12336. }
  12337. _ACEOF
  12338. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  12339.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12340. do
  12341.   CC="$ac_save_CC $ac_arg"
  12342.   if ac_fn_c_try_compile "$LINENO"; then :
  12343.   ac_cv_prog_cc_c89=$ac_arg
  12344. fi
  12345. rm -f core conftest.err conftest.$ac_objext
  12346.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  12347. done
  12348. rm -f conftest.$ac_ext
  12349. CC=$ac_save_CC
  12350.  
  12351. fi
  12352. # AC_CACHE_VAL
  12353. case "x$ac_cv_prog_cc_c89" in
  12354.   x)
  12355.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12356. $as_echo "none needed" >&6; } ;;
  12357.   xno)
  12358.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12359. $as_echo "unsupported" >&6; } ;;
  12360.   *)
  12361.     CC="$CC $ac_cv_prog_cc_c89"
  12362.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12363. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  12364. esac
  12365. if test "x$ac_cv_prog_cc_c89" != xno; then :
  12366.  
  12367. fi
  12368.  
  12369. ac_ext=c
  12370. ac_cpp='$CPP $CPPFLAGS'
  12371. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12372. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12373. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12374.  
  12375. ac_ext=c
  12376. ac_cpp='$CPP $CPPFLAGS'
  12377. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12378. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12379. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  12381. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  12382. if ${am_cv_prog_cc_c_o+:} false; then :
  12383.   $as_echo_n "(cached) " >&6
  12384. else
  12385.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12386. /* end confdefs.h.  */
  12387.  
  12388. int
  12389. main ()
  12390. {
  12391.  
  12392.   ;
  12393.   return 0;
  12394. }
  12395. _ACEOF
  12396.   # Make sure it works both with $CC and with simple cc.
  12397.   # Following AC_PROG_CC_C_O, we do the test twice because some
  12398.   # compilers refuse to overwrite an existing .o file with -o,
  12399.   # though they will create one.
  12400.   am_cv_prog_cc_c_o=yes
  12401.   for am_i in 1 2; do
  12402.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  12403.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  12404.    ac_status=$?
  12405.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12406.    (exit $ac_status); } \
  12407.          && test -f conftest2.$ac_objext; then
  12408.       : OK
  12409.     else
  12410.       am_cv_prog_cc_c_o=no
  12411.       break
  12412.     fi
  12413.   done
  12414.   rm -f core conftest*
  12415.   unset am_i
  12416. fi
  12417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  12418. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  12419. if test "$am_cv_prog_cc_c_o" != yes; then
  12420.    # Losing compiler, so override with the script.
  12421.    # FIXME: It is wrong to rewrite CC.
  12422.    # But if we don't then we get into trouble of one sort or another.
  12423.    # A longer-term fix would be to have automake use am__CC in this case,
  12424.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  12425.    CC="$am_aux_dir/compile $CC"
  12426. fi
  12427. ac_ext=c
  12428. ac_cpp='$CPP $CPPFLAGS'
  12429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12432.  
  12433.  
  12434. depcc="$CC"   am_compiler_list=
  12435.  
  12436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12437. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12438. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  12439.   $as_echo_n "(cached) " >&6
  12440. else
  12441.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12442.   # We make a subdir and do the tests there.  Otherwise we can end up
  12443.   # making bogus files that we don't know about and never remove.  For
  12444.   # instance it was reported that on HP-UX the gcc test will end up
  12445.   # making a dummy file named 'D' -- because '-MD' means "put the output
  12446.   # in D".
  12447.   rm -rf conftest.dir
  12448.   mkdir conftest.dir
  12449.   # Copy depcomp to subdir because otherwise we won't find it if we're
  12450.   # using a relative directory.
  12451.   cp "$am_depcomp" conftest.dir
  12452.   cd conftest.dir
  12453.   # We will build objects and dependencies in a subdirectory because
  12454.   # it helps to detect inapplicable dependency modes.  For instance
  12455.   # both Tru64's cc and ICC support -MD to output dependencies as a
  12456.   # side effect of compilation, but ICC will put the dependencies in
  12457.   # the current directory while Tru64 will put them in the object
  12458.   # directory.
  12459.   mkdir sub
  12460.  
  12461.   am_cv_CC_dependencies_compiler_type=none
  12462.   if test "$am_compiler_list" = ""; then
  12463.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12464.   fi
  12465.   am__universal=false
  12466.   case " $depcc " in #(
  12467.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12468.      esac
  12469.  
  12470.   for depmode in $am_compiler_list; do
  12471.     # Setup a source with many dependencies, because some compilers
  12472.     # like to wrap large dependency lists on column 80 (with \), and
  12473.     # we should not choose a depcomp mode which is confused by this.
  12474.     #
  12475.     # We need to recreate these files for each test, as the compiler may
  12476.     # overwrite some of them when testing with obscure command lines.
  12477.     # This happens at least with the AIX C compiler.
  12478.     : > sub/conftest.c
  12479.     for i in 1 2 3 4 5 6; do
  12480.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12481.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12482.       # Solaris 10 /bin/sh.
  12483.       echo '/* dummy */' > sub/conftst$i.h
  12484.     done
  12485.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12486.  
  12487.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12488.     # mode.  It turns out that the SunPro C++ compiler does not properly
  12489.     # handle '-M -o', and we need to detect this.  Also, some Intel
  12490.     # versions had trouble with output in subdirs.
  12491.     am__obj=sub/conftest.${OBJEXT-o}
  12492.     am__minus_obj="-o $am__obj"
  12493.     case $depmode in
  12494.     gcc)
  12495.       # This depmode causes a compiler race in universal mode.
  12496.       test "$am__universal" = false || continue
  12497.       ;;
  12498.     nosideeffect)
  12499.       # After this tag, mechanisms are not by side-effect, so they'll
  12500.       # only be used when explicitly requested.
  12501.       if test "x$enable_dependency_tracking" = xyes; then
  12502.         continue
  12503.       else
  12504.         break
  12505.       fi
  12506.       ;;
  12507.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12508.       # This compiler won't grok '-c -o', but also, the minuso test has
  12509.       # not run yet.  These depmodes are late enough in the game, and
  12510.       # so weak that their functioning should not be impacted.
  12511.       am__obj=conftest.${OBJEXT-o}
  12512.       am__minus_obj=
  12513.       ;;
  12514.     none) break ;;
  12515.     esac
  12516.     if depmode=$depmode \
  12517.        source=sub/conftest.c object=$am__obj \
  12518.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12519.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12520.          >/dev/null 2>conftest.err &&
  12521.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12522.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12523.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12524.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12525.       # icc doesn't choke on unknown options, it will just issue warnings
  12526.       # or remarks (even with -Werror).  So we grep stderr for any message
  12527.       # that says an option was ignored or not supported.
  12528.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  12529.       #   icc: Command line warning: ignoring option '-M'; no argument required
  12530.       # The diagnosis changed in icc 8.0:
  12531.       #   icc: Command line remark: option '-MP' not supported
  12532.       if (grep 'ignoring option' conftest.err ||
  12533.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12534.         am_cv_CC_dependencies_compiler_type=$depmode
  12535.         break
  12536.       fi
  12537.     fi
  12538.   done
  12539.  
  12540.   cd ..
  12541.   rm -rf conftest.dir
  12542. else
  12543.   am_cv_CC_dependencies_compiler_type=none
  12544. fi
  12545.  
  12546. fi
  12547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12548. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12549. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12550.  
  12551.  if
  12552.   test "x$enable_dependency_tracking" != xno \
  12553.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12554.   am__fastdepCC_TRUE=
  12555.   am__fastdepCC_FALSE='#'
  12556. else
  12557.   am__fastdepCC_TRUE='#'
  12558.   am__fastdepCC_FALSE=
  12559. fi
  12560.  
  12561.  
  12562. ac_ext=cpp
  12563. ac_cpp='$CXXCPP $CPPFLAGS'
  12564. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12565. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12566. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12567. if test -z "$CXX"; then
  12568.   if test -n "$CCC"; then
  12569.     CXX=$CCC
  12570.   else
  12571.     if test -n "$ac_tool_prefix"; then
  12572.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12573.   do
  12574.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12575. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12577. $as_echo_n "checking for $ac_word... " >&6; }
  12578. if ${ac_cv_prog_CXX+:} false; then :
  12579.   $as_echo_n "(cached) " >&6
  12580. else
  12581.   if test -n "$CXX"; then
  12582.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12583. else
  12584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12585. for as_dir in $PATH
  12586. do
  12587.   IFS=$as_save_IFS
  12588.   test -z "$as_dir" && as_dir=.
  12589.     for ac_exec_ext in '' $ac_executable_extensions; do
  12590.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12591.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12592.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12593.     break 2
  12594.   fi
  12595. done
  12596.   done
  12597. IFS=$as_save_IFS
  12598.  
  12599. fi
  12600. fi
  12601. CXX=$ac_cv_prog_CXX
  12602. if test -n "$CXX"; then
  12603.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12604. $as_echo "$CXX" >&6; }
  12605. else
  12606.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12607. $as_echo "no" >&6; }
  12608. fi
  12609.  
  12610.  
  12611.     test -n "$CXX" && break
  12612.   done
  12613. fi
  12614. if test -z "$CXX"; then
  12615.   ac_ct_CXX=$CXX
  12616.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12617. do
  12618.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  12619. set dummy $ac_prog; ac_word=$2
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12621. $as_echo_n "checking for $ac_word... " >&6; }
  12622. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12623.   $as_echo_n "(cached) " >&6
  12624. else
  12625.   if test -n "$ac_ct_CXX"; then
  12626.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12627. else
  12628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12629. for as_dir in $PATH
  12630. do
  12631.   IFS=$as_save_IFS
  12632.   test -z "$as_dir" && as_dir=.
  12633.     for ac_exec_ext in '' $ac_executable_extensions; do
  12634.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12635.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  12636.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12637.     break 2
  12638.   fi
  12639. done
  12640.   done
  12641. IFS=$as_save_IFS
  12642.  
  12643. fi
  12644. fi
  12645. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12646. if test -n "$ac_ct_CXX"; then
  12647.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12648. $as_echo "$ac_ct_CXX" >&6; }
  12649. else
  12650.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12651. $as_echo "no" >&6; }
  12652. fi
  12653.  
  12654.  
  12655.   test -n "$ac_ct_CXX" && break
  12656. done
  12657.  
  12658.   if test "x$ac_ct_CXX" = x; then
  12659.     CXX="g++"
  12660.   else
  12661.     case $cross_compiling:$ac_tool_warned in
  12662. yes:)
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12664. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12665. ac_tool_warned=yes ;;
  12666. esac
  12667.     CXX=$ac_ct_CXX
  12668.   fi
  12669. fi
  12670.  
  12671.   fi
  12672. fi
  12673. # Provide some information about the compiler.
  12674. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12675. set X $ac_compile
  12676. ac_compiler=$2
  12677. for ac_option in --version -v -V -qversion; do
  12678.   { { ac_try="$ac_compiler $ac_option >&5"
  12679. case "(($ac_try" in
  12680.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12681.   *) ac_try_echo=$ac_try;;
  12682. esac
  12683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12684. $as_echo "$ac_try_echo"; } >&5
  12685.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12686.   ac_status=$?
  12687.   if test -s conftest.err; then
  12688.     sed '10a\
  12689. ... rest of stderr output deleted ...
  12690.          10q' conftest.err >conftest.er1
  12691.     cat conftest.er1 >&5
  12692.   fi
  12693.   rm -f conftest.er1 conftest.err
  12694.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12695.   test $ac_status = 0; }
  12696. done
  12697.  
  12698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12699. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12700. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12701.   $as_echo_n "(cached) " >&6
  12702. else
  12703.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12704. /* end confdefs.h.  */
  12705.  
  12706. int
  12707. main ()
  12708. {
  12709. #ifndef __GNUC__
  12710.        choke me
  12711. #endif
  12712.  
  12713.   ;
  12714.   return 0;
  12715. }
  12716. _ACEOF
  12717. if ac_fn_cxx_try_compile "$LINENO"; then :
  12718.   ac_compiler_gnu=yes
  12719. else
  12720.   ac_compiler_gnu=no
  12721. fi
  12722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12723. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12724.  
  12725. fi
  12726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12727. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12728. if test $ac_compiler_gnu = yes; then
  12729.   GXX=yes
  12730. else
  12731.   GXX=
  12732. fi
  12733. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12734. ac_save_CXXFLAGS=$CXXFLAGS
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12736. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12737. if ${ac_cv_prog_cxx_g+:} false; then :
  12738.   $as_echo_n "(cached) " >&6
  12739. else
  12740.   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12741.    ac_cxx_werror_flag=yes
  12742.    ac_cv_prog_cxx_g=no
  12743.    CXXFLAGS="-g"
  12744.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12745. /* end confdefs.h.  */
  12746.  
  12747. int
  12748. main ()
  12749. {
  12750.  
  12751.   ;
  12752.   return 0;
  12753. }
  12754. _ACEOF
  12755. if ac_fn_cxx_try_compile "$LINENO"; then :
  12756.   ac_cv_prog_cxx_g=yes
  12757. else
  12758.   CXXFLAGS=""
  12759.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12760. /* end confdefs.h.  */
  12761.  
  12762. int
  12763. main ()
  12764. {
  12765.  
  12766.   ;
  12767.   return 0;
  12768. }
  12769. _ACEOF
  12770. if ac_fn_cxx_try_compile "$LINENO"; then :
  12771.  
  12772. else
  12773.   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12774.          CXXFLAGS="-g"
  12775.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12776. /* end confdefs.h.  */
  12777.  
  12778. int
  12779. main ()
  12780. {
  12781.  
  12782.   ;
  12783.   return 0;
  12784. }
  12785. _ACEOF
  12786. if ac_fn_cxx_try_compile "$LINENO"; then :
  12787.   ac_cv_prog_cxx_g=yes
  12788. fi
  12789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12790. fi
  12791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12792. fi
  12793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12794.    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12795. fi
  12796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12797. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12798. if test "$ac_test_CXXFLAGS" = set; then
  12799.   CXXFLAGS=$ac_save_CXXFLAGS
  12800. elif test $ac_cv_prog_cxx_g = yes; then
  12801.   if test "$GXX" = yes; then
  12802.     CXXFLAGS="-g -O2"
  12803.   else
  12804.     CXXFLAGS="-g"
  12805.   fi
  12806. else
  12807.   if test "$GXX" = yes; then
  12808.     CXXFLAGS="-O2"
  12809.   else
  12810.     CXXFLAGS=
  12811.   fi
  12812. fi
  12813. ac_ext=c
  12814. ac_cpp='$CPP $CPPFLAGS'
  12815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12818.  
  12819. depcc="$CXX"  am_compiler_list=
  12820.  
  12821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12822. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12823. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12824.   $as_echo_n "(cached) " >&6
  12825. else
  12826.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12827.   # We make a subdir and do the tests there.  Otherwise we can end up
  12828.   # making bogus files that we don't know about and never remove.  For
  12829.   # instance it was reported that on HP-UX the gcc test will end up
  12830.   # making a dummy file named 'D' -- because '-MD' means "put the output
  12831.   # in D".
  12832.   rm -rf conftest.dir
  12833.   mkdir conftest.dir
  12834.   # Copy depcomp to subdir because otherwise we won't find it if we're
  12835.   # using a relative directory.
  12836.   cp "$am_depcomp" conftest.dir
  12837.   cd conftest.dir
  12838.   # We will build objects and dependencies in a subdirectory because
  12839.   # it helps to detect inapplicable dependency modes.  For instance
  12840.   # both Tru64's cc and ICC support -MD to output dependencies as a
  12841.   # side effect of compilation, but ICC will put the dependencies in
  12842.   # the current directory while Tru64 will put them in the object
  12843.   # directory.
  12844.   mkdir sub
  12845.  
  12846.   am_cv_CXX_dependencies_compiler_type=none
  12847.   if test "$am_compiler_list" = ""; then
  12848.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12849.   fi
  12850.   am__universal=false
  12851.   case " $depcc " in #(
  12852.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12853.      esac
  12854.  
  12855.   for depmode in $am_compiler_list; do
  12856.     # Setup a source with many dependencies, because some compilers
  12857.     # like to wrap large dependency lists on column 80 (with \), and
  12858.     # we should not choose a depcomp mode which is confused by this.
  12859.     #
  12860.     # We need to recreate these files for each test, as the compiler may
  12861.     # overwrite some of them when testing with obscure command lines.
  12862.     # This happens at least with the AIX C compiler.
  12863.     : > sub/conftest.c
  12864.     for i in 1 2 3 4 5 6; do
  12865.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12866.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12867.       # Solaris 10 /bin/sh.
  12868.       echo '/* dummy */' > sub/conftst$i.h
  12869.     done
  12870.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12871.  
  12872.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12873.     # mode.  It turns out that the SunPro C++ compiler does not properly
  12874.     # handle '-M -o', and we need to detect this.  Also, some Intel
  12875.     # versions had trouble with output in subdirs.
  12876.     am__obj=sub/conftest.${OBJEXT-o}
  12877.     am__minus_obj="-o $am__obj"
  12878.     case $depmode in
  12879.     gcc)
  12880.       # This depmode causes a compiler race in universal mode.
  12881.       test "$am__universal" = false || continue
  12882.       ;;
  12883.     nosideeffect)
  12884.       # After this tag, mechanisms are not by side-effect, so they'll
  12885.       # only be used when explicitly requested.
  12886.       if test "x$enable_dependency_tracking" = xyes; then
  12887.         continue
  12888.       else
  12889.         break
  12890.       fi
  12891.       ;;
  12892.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12893.       # This compiler won't grok '-c -o', but also, the minuso test has
  12894.       # not run yet.  These depmodes are late enough in the game, and
  12895.       # so weak that their functioning should not be impacted.
  12896.       am__obj=conftest.${OBJEXT-o}
  12897.       am__minus_obj=
  12898.       ;;
  12899.     none) break ;;
  12900.     esac
  12901.     if depmode=$depmode \
  12902.        source=sub/conftest.c object=$am__obj \
  12903.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12904.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12905.          >/dev/null 2>conftest.err &&
  12906.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12907.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12908.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12909.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12910.       # icc doesn't choke on unknown options, it will just issue warnings
  12911.       # or remarks (even with -Werror).  So we grep stderr for any message
  12912.       # that says an option was ignored or not supported.
  12913.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  12914.       #   icc: Command line warning: ignoring option '-M'; no argument required
  12915.       # The diagnosis changed in icc 8.0:
  12916.       #   icc: Command line remark: option '-MP' not supported
  12917.       if (grep 'ignoring option' conftest.err ||
  12918.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12919.         am_cv_CXX_dependencies_compiler_type=$depmode
  12920.         break
  12921.       fi
  12922.     fi
  12923.   done
  12924.  
  12925.   cd ..
  12926.   rm -rf conftest.dir
  12927. else
  12928.   am_cv_CXX_dependencies_compiler_type=none
  12929. fi
  12930.  
  12931. fi
  12932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12933. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12934. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12935.  
  12936.  if
  12937.   test "x$enable_dependency_tracking" != xno \
  12938.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12939.   am__fastdepCXX_TRUE=
  12940.   am__fastdepCXX_FALSE='#'
  12941. else
  12942.   am__fastdepCXX_TRUE='#'
  12943.   am__fastdepCXX_FALSE=
  12944. fi
  12945.  
  12946.  
  12947.  
  12948.  
  12949. func_stripname_cnf ()
  12950. {
  12951.   case ${2} in
  12952.   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12953.   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12954.   esac
  12955. } # func_stripname_cnf
  12956.  
  12957.       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  12958.     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  12959.     (test "X$CXX" != "Xg++"))) ; then
  12960.   ac_ext=cpp
  12961. ac_cpp='$CXXCPP $CPPFLAGS'
  12962. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12963. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12964. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12966. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12967. if test -z "$CXXCPP"; then
  12968.   if ${ac_cv_prog_CXXCPP+:} false; then :
  12969.   $as_echo_n "(cached) " >&6
  12970. else
  12971.       # Double quotes because CXXCPP needs to be expanded
  12972.     for CXXCPP in "$CXX -E" "/lib/cpp"
  12973.     do
  12974.       ac_preproc_ok=false
  12975. for ac_cxx_preproc_warn_flag in '' yes
  12976. do
  12977.   # Use a header file that comes with gcc, so configuring glibc
  12978.   # with a fresh cross-compiler works.
  12979.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12980.   # <limits.h> exists even on freestanding compilers.
  12981.   # On the NeXT, cc -E runs the code through the compiler's parser,
  12982.   # not just through cpp. "Syntax error" is here to catch this case.
  12983.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12984. /* end confdefs.h.  */
  12985. #ifdef __STDC__
  12986. # include <limits.h>
  12987. #else
  12988. # include <assert.h>
  12989. #endif
  12990.                      Syntax error
  12991. _ACEOF
  12992. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12993.  
  12994. else
  12995.   # Broken: fails on valid input.
  12996. continue
  12997. fi
  12998. rm -f conftest.err conftest.i conftest.$ac_ext
  12999.  
  13000.   # OK, works on sane cases.  Now check whether nonexistent headers
  13001.   # can be detected and how.
  13002.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13003. /* end confdefs.h.  */
  13004. #include <ac_nonexistent.h>
  13005. _ACEOF
  13006. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13007.   # Broken: success on invalid input.
  13008. continue
  13009. else
  13010.   # Passes both tests.
  13011. ac_preproc_ok=:
  13012. break
  13013. fi
  13014. rm -f conftest.err conftest.i conftest.$ac_ext
  13015.  
  13016. done
  13017. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13018. rm -f conftest.i conftest.err conftest.$ac_ext
  13019. if $ac_preproc_ok; then :
  13020.   break
  13021. fi
  13022.  
  13023.     done
  13024.     ac_cv_prog_CXXCPP=$CXXCPP
  13025.  
  13026. fi
  13027.   CXXCPP=$ac_cv_prog_CXXCPP
  13028. else
  13029.   ac_cv_prog_CXXCPP=$CXXCPP
  13030. fi
  13031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  13032. $as_echo "$CXXCPP" >&6; }
  13033. ac_preproc_ok=false
  13034. for ac_cxx_preproc_warn_flag in '' yes
  13035. do
  13036.   # Use a header file that comes with gcc, so configuring glibc
  13037.   # with a fresh cross-compiler works.
  13038.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13039.   # <limits.h> exists even on freestanding compilers.
  13040.   # On the NeXT, cc -E runs the code through the compiler's parser,
  13041.   # not just through cpp. "Syntax error" is here to catch this case.
  13042.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13043. /* end confdefs.h.  */
  13044. #ifdef __STDC__
  13045. # include <limits.h>
  13046. #else
  13047. # include <assert.h>
  13048. #endif
  13049.                      Syntax error
  13050. _ACEOF
  13051. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13052.  
  13053. else
  13054.   # Broken: fails on valid input.
  13055. continue
  13056. fi
  13057. rm -f conftest.err conftest.i conftest.$ac_ext
  13058.  
  13059.   # OK, works on sane cases.  Now check whether nonexistent headers
  13060.   # can be detected and how.
  13061.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13062. /* end confdefs.h.  */
  13063. #include <ac_nonexistent.h>
  13064. _ACEOF
  13065. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13066.   # Broken: success on invalid input.
  13067. continue
  13068. else
  13069.   # Passes both tests.
  13070. ac_preproc_ok=:
  13071. break
  13072. fi
  13073. rm -f conftest.err conftest.i conftest.$ac_ext
  13074.  
  13075. done
  13076. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13077. rm -f conftest.i conftest.err conftest.$ac_ext
  13078. if $ac_preproc_ok; then :
  13079.  
  13080. else
  13081.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13082. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13083. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  13084. See \`config.log' for more details" "$LINENO" 5; }
  13085. fi
  13086.  
  13087. ac_ext=c
  13088. ac_cpp='$CPP $CPPFLAGS'
  13089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13092.  
  13093. else
  13094.   _lt_caught_CXX_error=yes
  13095. fi
  13096.  
  13097. ac_ext=cpp
  13098. ac_cpp='$CXXCPP $CPPFLAGS'
  13099. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13100. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13101. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13102.  
  13103. archive_cmds_need_lc_CXX=no
  13104. allow_undefined_flag_CXX=
  13105. always_export_symbols_CXX=no
  13106. archive_expsym_cmds_CXX=
  13107. compiler_needs_object_CXX=no
  13108. export_dynamic_flag_spec_CXX=
  13109. hardcode_direct_CXX=no
  13110. hardcode_direct_absolute_CXX=no
  13111. hardcode_libdir_flag_spec_CXX=
  13112. hardcode_libdir_separator_CXX=
  13113. hardcode_minus_L_CXX=no
  13114. hardcode_shlibpath_var_CXX=unsupported
  13115. hardcode_automatic_CXX=no
  13116. inherit_rpath_CXX=no
  13117. module_cmds_CXX=
  13118. module_expsym_cmds_CXX=
  13119. link_all_deplibs_CXX=unknown
  13120. old_archive_cmds_CXX=$old_archive_cmds
  13121. reload_flag_CXX=$reload_flag
  13122. reload_cmds_CXX=$reload_cmds
  13123. no_undefined_flag_CXX=
  13124. whole_archive_flag_spec_CXX=
  13125. enable_shared_with_static_runtimes_CXX=no
  13126.  
  13127. # Source file extension for C++ test sources.
  13128. ac_ext=cpp
  13129.  
  13130. # Object file extension for compiled C++ test sources.
  13131. objext=o
  13132. objext_CXX=$objext
  13133.  
  13134. # No sense in running all these tests if we already determined that
  13135. # the CXX compiler isn't working.  Some variables (like enable_shared)
  13136. # are currently assumed to apply to all compilers on this platform,
  13137. # and will be corrupted by setting them based on a non-working compiler.
  13138. if test "$_lt_caught_CXX_error" != yes; then
  13139.   # Code to be used in simple compile tests
  13140.   lt_simple_compile_test_code="int some_variable = 0;"
  13141.  
  13142.   # Code to be used in simple link tests
  13143.   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  13144.  
  13145.   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13146.  
  13147.  
  13148.  
  13149.  
  13150.  
  13151.  
  13152. # If no C compiler was specified, use CC.
  13153. LTCC=${LTCC-"$CC"}
  13154.  
  13155. # If no C compiler flags were specified, use CFLAGS.
  13156. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13157.  
  13158. # Allow CC to be a program name with arguments.
  13159. compiler=$CC
  13160.  
  13161.  
  13162.   # save warnings/boilerplate of simple test code
  13163.   ac_outfile=conftest.$ac_objext
  13164. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13165. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13166. _lt_compiler_boilerplate=`cat conftest.err`
  13167. $RM conftest*
  13168.  
  13169.   ac_outfile=conftest.$ac_objext
  13170. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13171. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13172. _lt_linker_boilerplate=`cat conftest.err`
  13173. $RM -r conftest*
  13174.  
  13175.  
  13176.   # Allow CC to be a program name with arguments.
  13177.   lt_save_CC=$CC
  13178.   lt_save_CFLAGS=$CFLAGS
  13179.   lt_save_LD=$LD
  13180.   lt_save_GCC=$GCC
  13181.   GCC=$GXX
  13182.   lt_save_with_gnu_ld=$with_gnu_ld
  13183.   lt_save_path_LD=$lt_cv_path_LD
  13184.   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  13185.     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  13186.   else
  13187.     $as_unset lt_cv_prog_gnu_ld
  13188.   fi
  13189.   if test -n "${lt_cv_path_LDCXX+set}"; then
  13190.     lt_cv_path_LD=$lt_cv_path_LDCXX
  13191.   else
  13192.     $as_unset lt_cv_path_LD
  13193.   fi
  13194.   test -z "${LDCXX+set}" || LD=$LDCXX
  13195.   CC=${CXX-"c++"}
  13196.   CFLAGS=$CXXFLAGS
  13197.   compiler=$CC
  13198.   compiler_CXX=$CC
  13199.   for cc_temp in $compiler""; do
  13200.   case $cc_temp in
  13201.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13202.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13203.     \-*) ;;
  13204.     *) break;;
  13205.   esac
  13206. done
  13207. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13208.  
  13209.  
  13210.   if test -n "$compiler"; then
  13211.     # We don't want -fno-exception when compiling C++ code, so set the
  13212.     # no_builtin_flag separately
  13213.     if test "$GXX" = yes; then
  13214.       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  13215.     else
  13216.       lt_prog_compiler_no_builtin_flag_CXX=
  13217.     fi
  13218.  
  13219.     if test "$GXX" = yes; then
  13220.       # Set up default GNU C++ configuration
  13221.  
  13222.  
  13223.  
  13224. # Check whether --with-gnu-ld was given.
  13225. if test "${with_gnu_ld+set}" = set; then :
  13226.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  13227. else
  13228.   with_gnu_ld=no
  13229. fi
  13230.  
  13231. ac_prog=ld
  13232. if test "$GCC" = yes; then
  13233.   # Check if gcc -print-prog-name=ld gives a path.
  13234.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13235. $as_echo_n "checking for ld used by $CC... " >&6; }
  13236.   case $host in
  13237.   *-*-mingw*)
  13238.     # gcc leaves a trailing carriage return which upsets mingw
  13239.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13240.   *)
  13241.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13242.   esac
  13243.   case $ac_prog in
  13244.     # Accept absolute paths.
  13245.     [\\/]* | ?:[\\/]*)
  13246.       re_direlt='/[^/][^/]*/\.\./'
  13247.       # Canonicalize the pathname of ld
  13248.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13249.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13250.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13251.       done
  13252.       test -z "$LD" && LD="$ac_prog"
  13253.       ;;
  13254.   "")
  13255.     # If it fails, then pretend we aren't using GCC.
  13256.     ac_prog=ld
  13257.     ;;
  13258.   *)
  13259.     # If it is relative, then search for the first ld in PATH.
  13260.     with_gnu_ld=unknown
  13261.     ;;
  13262.   esac
  13263. elif test "$with_gnu_ld" = yes; then
  13264.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13265. $as_echo_n "checking for GNU ld... " >&6; }
  13266. else
  13267.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13268. $as_echo_n "checking for non-GNU ld... " >&6; }
  13269. fi
  13270. if ${lt_cv_path_LD+:} false; then :
  13271.   $as_echo_n "(cached) " >&6
  13272. else
  13273.   if test -z "$LD"; then
  13274.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13275.   for ac_dir in $PATH; do
  13276.     IFS="$lt_save_ifs"
  13277.     test -z "$ac_dir" && ac_dir=.
  13278.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13279.       lt_cv_path_LD="$ac_dir/$ac_prog"
  13280.       # Check to see if the program is GNU ld.  I'd rather use --version,
  13281.       # but apparently some variants of GNU ld only accept -v.
  13282.       # Break only if it was the GNU/non-GNU ld that we prefer.
  13283.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13284.       *GNU* | *'with BFD'*)
  13285.         test "$with_gnu_ld" != no && break
  13286.         ;;
  13287.       *)
  13288.         test "$with_gnu_ld" != yes && break
  13289.         ;;
  13290.       esac
  13291.     fi
  13292.   done
  13293.   IFS="$lt_save_ifs"
  13294. else
  13295.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  13296. fi
  13297. fi
  13298.  
  13299. LD="$lt_cv_path_LD"
  13300. if test -n "$LD"; then
  13301.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13302. $as_echo "$LD" >&6; }
  13303. else
  13304.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13305. $as_echo "no" >&6; }
  13306. fi
  13307. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13309. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  13310. if ${lt_cv_prog_gnu_ld+:} false; then :
  13311.   $as_echo_n "(cached) " >&6
  13312. else
  13313.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13314. case `$LD -v 2>&1 </dev/null` in
  13315. *GNU* | *'with BFD'*)
  13316.   lt_cv_prog_gnu_ld=yes
  13317.   ;;
  13318. *)
  13319.   lt_cv_prog_gnu_ld=no
  13320.   ;;
  13321. esac
  13322. fi
  13323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13324. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  13325. with_gnu_ld=$lt_cv_prog_gnu_ld
  13326.  
  13327.  
  13328.  
  13329.  
  13330.  
  13331.  
  13332.  
  13333.       # Check if GNU C++ uses GNU ld as the underlying linker, since the
  13334.       # archiving commands below assume that GNU ld is being used.
  13335.       if test "$with_gnu_ld" = yes; then
  13336.         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13337.         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'
  13338.  
  13339.         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13340.         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13341.  
  13342.         # If archive_cmds runs LD, not CC, wlarc should be empty
  13343.         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  13344.         #     investigate it a little bit more. (MM)
  13345.         wlarc='${wl}'
  13346.  
  13347.         # ancient GNU ld didn't support --whole-archive et. al.
  13348.         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  13349.           $GREP 'no-whole-archive' > /dev/null; then
  13350.           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13351.         else
  13352.           whole_archive_flag_spec_CXX=
  13353.         fi
  13354.       else
  13355.         with_gnu_ld=no
  13356.         wlarc=
  13357.  
  13358.         # A generic and very simple default shared library creation
  13359.         # command for GNU C++ for the case where it uses the native
  13360.         # linker, instead of GNU ld.  If possible, this setting should
  13361.         # overridden to take advantage of the native linker features on
  13362.         # the platform it is being used on.
  13363.         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13364.       fi
  13365.  
  13366.       # Commands to make compiler produce verbose output that lists
  13367.       # what "hidden" libraries, object files and flags are used when
  13368.       # linking a shared library.
  13369.       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13370.  
  13371.     else
  13372.       GXX=no
  13373.       with_gnu_ld=no
  13374.       wlarc=
  13375.     fi
  13376.  
  13377.     # PORTME: fill in a description of your system's C++ link characteristics
  13378.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13379. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13380.     ld_shlibs_CXX=yes
  13381.     case $host_os in
  13382.       aix3*)
  13383.         # FIXME: insert proper C++ library support
  13384.         ld_shlibs_CXX=no
  13385.         ;;
  13386.       aix[4-9]*)
  13387.         if test "$host_cpu" = ia64; then
  13388.           # On IA64, the linker does run time linking by default, so we don't
  13389.           # have to do anything special.
  13390.           aix_use_runtimelinking=no
  13391.           exp_sym_flag='-Bexport'
  13392.           no_entry_flag=""
  13393.         else
  13394.           aix_use_runtimelinking=no
  13395.  
  13396.           # Test if we are trying to use run time linking or normal
  13397.           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13398.           # need to do runtime linking.
  13399.           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13400.             for ld_flag in $LDFLAGS; do
  13401.               case $ld_flag in
  13402.               *-brtl*)
  13403.                 aix_use_runtimelinking=yes
  13404.                 break
  13405.                 ;;
  13406.               esac
  13407.             done
  13408.             ;;
  13409.           esac
  13410.  
  13411.           exp_sym_flag='-bexport'
  13412.           no_entry_flag='-bnoentry'
  13413.         fi
  13414.  
  13415.         # When large executables or shared objects are built, AIX ld can
  13416.         # have problems creating the table of contents.  If linking a library
  13417.         # or program results in "error TOC overflow" add -mminimal-toc to
  13418.         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  13419.         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13420.  
  13421.         archive_cmds_CXX=''
  13422.         hardcode_direct_CXX=yes
  13423.         hardcode_direct_absolute_CXX=yes
  13424.         hardcode_libdir_separator_CXX=':'
  13425.         link_all_deplibs_CXX=yes
  13426.         file_list_spec_CXX='${wl}-f,'
  13427.  
  13428.         if test "$GXX" = yes; then
  13429.           case $host_os in aix4.[012]|aix4.[012].*)
  13430.           # We only want to do this on AIX 4.2 and lower, the check
  13431.           # below for broken collect2 doesn't work under 4.3+
  13432.           collect2name=`${CC} -print-prog-name=collect2`
  13433.           if test -f "$collect2name" &&
  13434.              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13435.           then
  13436.             # We have reworked collect2
  13437.             :
  13438.           else
  13439.             # We have old collect2
  13440.             hardcode_direct_CXX=unsupported
  13441.             # It fails to find uninstalled libraries when the uninstalled
  13442.             # path is not listed in the libpath.  Setting hardcode_minus_L
  13443.             # to unsupported forces relinking
  13444.             hardcode_minus_L_CXX=yes
  13445.             hardcode_libdir_flag_spec_CXX='-L$libdir'
  13446.             hardcode_libdir_separator_CXX=
  13447.           fi
  13448.           esac
  13449.           shared_flag='-shared'
  13450.           if test "$aix_use_runtimelinking" = yes; then
  13451.             shared_flag="$shared_flag "'${wl}-G'
  13452.           fi
  13453.         else
  13454.           # not using gcc
  13455.           if test "$host_cpu" = ia64; then
  13456.           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13457.           # chokes on -Wl,-G. The following line is correct:
  13458.           shared_flag='-G'
  13459.           else
  13460.             if test "$aix_use_runtimelinking" = yes; then
  13461.               shared_flag='${wl}-G'
  13462.             else
  13463.               shared_flag='${wl}-bM:SRE'
  13464.             fi
  13465.           fi
  13466.         fi
  13467.  
  13468.         export_dynamic_flag_spec_CXX='${wl}-bexpall'
  13469.         # It seems that -bexpall does not export symbols beginning with
  13470.         # underscore (_), so it is better to generate a list of symbols to
  13471.         # export.
  13472.         always_export_symbols_CXX=yes
  13473.         if test "$aix_use_runtimelinking" = yes; then
  13474.           # Warning - without using the other runtime loading flags (-brtl),
  13475.           # -berok will link without error, but may produce a broken library.
  13476.           allow_undefined_flag_CXX='-berok'
  13477.           # Determine the default libpath from the value encoded in an empty
  13478.           # executable.
  13479.           if test "${lt_cv_aix_libpath+set}" = set; then
  13480.   aix_libpath=$lt_cv_aix_libpath
  13481. else
  13482.   if ${lt_cv_aix_libpath__CXX+:} false; then :
  13483.   $as_echo_n "(cached) " >&6
  13484. else
  13485.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13486. /* end confdefs.h.  */
  13487.  
  13488. int
  13489. main ()
  13490. {
  13491.  
  13492.   ;
  13493.   return 0;
  13494. }
  13495. _ACEOF
  13496. if ac_fn_cxx_try_link "$LINENO"; then :
  13497.  
  13498.   lt_aix_libpath_sed='
  13499.       /Import File Strings/,/^$/ {
  13500.           /^0/ {
  13501.               s/^0  *\([^ ]*\) *$/\1/
  13502.               p
  13503.           }
  13504.       }'
  13505.   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13506.   # Check for a 64-bit object if we didn't find anything.
  13507.   if test -z "$lt_cv_aix_libpath__CXX"; then
  13508.     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13509.   fi
  13510. fi
  13511. rm -f core conftest.err conftest.$ac_objext \
  13512.     conftest$ac_exeext conftest.$ac_ext
  13513.   if test -z "$lt_cv_aix_libpath__CXX"; then
  13514.     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  13515.   fi
  13516.  
  13517. fi
  13518.  
  13519.   aix_libpath=$lt_cv_aix_libpath__CXX
  13520. fi
  13521.  
  13522.           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13523.  
  13524.           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"
  13525.         else
  13526.           if test "$host_cpu" = ia64; then
  13527.             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  13528.             allow_undefined_flag_CXX="-z nodefs"
  13529.             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"
  13530.           else
  13531.             # Determine the default libpath from the value encoded in an
  13532.             # empty executable.
  13533.             if test "${lt_cv_aix_libpath+set}" = set; then
  13534.   aix_libpath=$lt_cv_aix_libpath
  13535. else
  13536.   if ${lt_cv_aix_libpath__CXX+:} false; then :
  13537.   $as_echo_n "(cached) " >&6
  13538. else
  13539.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13540. /* end confdefs.h.  */
  13541.  
  13542. int
  13543. main ()
  13544. {
  13545.  
  13546.   ;
  13547.   return 0;
  13548. }
  13549. _ACEOF
  13550. if ac_fn_cxx_try_link "$LINENO"; then :
  13551.  
  13552.   lt_aix_libpath_sed='
  13553.       /Import File Strings/,/^$/ {
  13554.           /^0/ {
  13555.               s/^0  *\([^ ]*\) *$/\1/
  13556.               p
  13557.           }
  13558.       }'
  13559.   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13560.   # Check for a 64-bit object if we didn't find anything.
  13561.   if test -z "$lt_cv_aix_libpath__CXX"; then
  13562.     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13563.   fi
  13564. fi
  13565. rm -f core conftest.err conftest.$ac_objext \
  13566.     conftest$ac_exeext conftest.$ac_ext
  13567.   if test -z "$lt_cv_aix_libpath__CXX"; then
  13568.     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  13569.   fi
  13570.  
  13571. fi
  13572.  
  13573.   aix_libpath=$lt_cv_aix_libpath__CXX
  13574. fi
  13575.  
  13576.             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13577.             # Warning - without using the other run time loading flags,
  13578.             # -berok will link without error, but may produce a broken library.
  13579.             no_undefined_flag_CXX=' ${wl}-bernotok'
  13580.             allow_undefined_flag_CXX=' ${wl}-berok'
  13581.             if test "$with_gnu_ld" = yes; then
  13582.               # We only use this code for GNU lds that support --whole-archive.
  13583.               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13584.             else
  13585.               # Exported symbols can be pulled into shared objects from archives
  13586.               whole_archive_flag_spec_CXX='$convenience'
  13587.             fi
  13588.             archive_cmds_need_lc_CXX=yes
  13589.             # This is similar to how AIX traditionally builds its shared
  13590.             # libraries.
  13591.             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'
  13592.           fi
  13593.         fi
  13594.         ;;
  13595.  
  13596.       beos*)
  13597.         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13598.           allow_undefined_flag_CXX=unsupported
  13599.           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13600.           # support --undefined.  This deserves some investigation.  FIXME
  13601.           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13602.         else
  13603.           ld_shlibs_CXX=no
  13604.         fi
  13605.         ;;
  13606.  
  13607.       chorus*)
  13608.         case $cc_basename in
  13609.           *)
  13610.           # FIXME: insert proper C++ library support
  13611.           ld_shlibs_CXX=no
  13612.           ;;
  13613.         esac
  13614.         ;;
  13615.  
  13616.       cygwin* | mingw* | pw32* | cegcc*)
  13617.         case $GXX,$cc_basename in
  13618.         ,cl* | no,cl*)
  13619.           # Native MSVC
  13620.           # hardcode_libdir_flag_spec is actually meaningless, as there is
  13621.           # no search path for DLLs.
  13622.           hardcode_libdir_flag_spec_CXX=' '
  13623.           allow_undefined_flag_CXX=unsupported
  13624.           always_export_symbols_CXX=yes
  13625.           file_list_spec_CXX='@'
  13626.           # Tell ltmain to make .lib files, not .a files.
  13627.           libext=lib
  13628.           # Tell ltmain to make .dll files, not .so files.
  13629.           shrext_cmds=".dll"
  13630.           # FIXME: Setting linknames here is a bad hack.
  13631.           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  13632.           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13633.               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  13634.             else
  13635.               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  13636.             fi~
  13637.             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13638.             linknames='
  13639.           # The linker will not automatically build a static lib if we build a DLL.
  13640.           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13641.           enable_shared_with_static_runtimes_CXX=yes
  13642.           # Don't use ranlib
  13643.           old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13644.           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13645.             lt_tool_outputfile="@TOOL_OUTPUT@"~
  13646.             case $lt_outputfile in
  13647.               *.exe|*.EXE) ;;
  13648.               *)
  13649.                 lt_outputfile="$lt_outputfile.exe"
  13650.                 lt_tool_outputfile="$lt_tool_outputfile.exe"
  13651.                 ;;
  13652.             esac~
  13653.             func_to_tool_file "$lt_outputfile"~
  13654.             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  13655.               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13656.               $RM "$lt_outputfile.manifest";
  13657.             fi'
  13658.           ;;
  13659.         *)
  13660.           # g++
  13661.           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13662.           # as there is no search path for DLLs.
  13663.           hardcode_libdir_flag_spec_CXX='-L$libdir'
  13664.           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  13665.           allow_undefined_flag_CXX=unsupported
  13666.           always_export_symbols_CXX=no
  13667.           enable_shared_with_static_runtimes_CXX=yes
  13668.  
  13669.           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13670.             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'
  13671.             # If the export-symbols file already is a .def file (1st line
  13672.             # is EXPORTS), use it as is; otherwise, prepend...
  13673.             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13674.               cp $export_symbols $output_objdir/$soname.def;
  13675.             else
  13676.               echo EXPORTS > $output_objdir/$soname.def;
  13677.               cat $export_symbols >> $output_objdir/$soname.def;
  13678.             fi~
  13679.             $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'
  13680.           else
  13681.             ld_shlibs_CXX=no
  13682.           fi
  13683.           ;;
  13684.         esac
  13685.         ;;
  13686.       darwin* | rhapsody*)
  13687.  
  13688.  
  13689.   archive_cmds_need_lc_CXX=no
  13690.   hardcode_direct_CXX=no
  13691.   hardcode_automatic_CXX=yes
  13692.   hardcode_shlibpath_var_CXX=unsupported
  13693.   if test "$lt_cv_ld_force_load" = "yes"; then
  13694.     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\"`'
  13695.  
  13696.   else
  13697.     whole_archive_flag_spec_CXX=''
  13698.   fi
  13699.   link_all_deplibs_CXX=yes
  13700.   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  13701.   case $cc_basename in
  13702.      ifort*) _lt_dar_can_shared=yes ;;
  13703.      *) _lt_dar_can_shared=$GCC ;;
  13704.   esac
  13705.   if test "$_lt_dar_can_shared" = "yes"; then
  13706.     output_verbose_link_cmd=func_echo_all
  13707.     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}"
  13708.     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13709.     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}"
  13710.     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}"
  13711.        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  13712.       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}"
  13713.       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}"
  13714.     fi
  13715.  
  13716.   else
  13717.   ld_shlibs_CXX=no
  13718.   fi
  13719.  
  13720.         ;;
  13721.  
  13722.       dgux*)
  13723.         case $cc_basename in
  13724.           ec++*)
  13725.             # FIXME: insert proper C++ library support
  13726.             ld_shlibs_CXX=no
  13727.             ;;
  13728.           ghcx*)
  13729.             # Green Hills C++ Compiler
  13730.             # FIXME: insert proper C++ library support
  13731.             ld_shlibs_CXX=no
  13732.             ;;
  13733.           *)
  13734.             # FIXME: insert proper C++ library support
  13735.             ld_shlibs_CXX=no
  13736.             ;;
  13737.         esac
  13738.         ;;
  13739.  
  13740.       freebsd2.*)
  13741.         # C++ shared libraries reported to be fairly broken before
  13742.         # switch to ELF
  13743.         ld_shlibs_CXX=no
  13744.         ;;
  13745.  
  13746.       freebsd-elf*)
  13747.         archive_cmds_need_lc_CXX=no
  13748.         ;;
  13749.  
  13750.       freebsd* | dragonfly*)
  13751.         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13752.         # conventions
  13753.         ld_shlibs_CXX=yes
  13754.         ;;
  13755.  
  13756.       haiku*)
  13757.         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13758.         link_all_deplibs_CXX=yes
  13759.         ;;
  13760.  
  13761.       hpux9*)
  13762.         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13763.         hardcode_libdir_separator_CXX=:
  13764.         export_dynamic_flag_spec_CXX='${wl}-E'
  13765.         hardcode_direct_CXX=yes
  13766.         hardcode_minus_L_CXX=yes # Not in the search PATH,
  13767.                                              # but as the default
  13768.                                              # location of the library.
  13769.  
  13770.         case $cc_basename in
  13771.           CC*)
  13772.             # FIXME: insert proper C++ library support
  13773.             ld_shlibs_CXX=no
  13774.             ;;
  13775.           aCC*)
  13776.             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'
  13777.             # Commands to make compiler produce verbose output that lists
  13778.             # what "hidden" libraries, object files and flags are used when
  13779.             # linking a shared library.
  13780.             #
  13781.             # There doesn't appear to be a way to prevent this compiler from
  13782.             # explicitly linking system object files so we need to strip them
  13783.             # from the output so that they don't get included in the library
  13784.             # dependencies.
  13785.             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"'
  13786.             ;;
  13787.           *)
  13788.             if test "$GXX" = yes; then
  13789.               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'
  13790.             else
  13791.               # FIXME: insert proper C++ library support
  13792.               ld_shlibs_CXX=no
  13793.             fi
  13794.             ;;
  13795.         esac
  13796.         ;;
  13797.  
  13798.       hpux10*|hpux11*)
  13799.         if test $with_gnu_ld = no; then
  13800.           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13801.           hardcode_libdir_separator_CXX=:
  13802.  
  13803.           case $host_cpu in
  13804.             hppa*64*|ia64*)
  13805.               ;;
  13806.             *)
  13807.               export_dynamic_flag_spec_CXX='${wl}-E'
  13808.               ;;
  13809.           esac
  13810.         fi
  13811.         case $host_cpu in
  13812.           hppa*64*|ia64*)
  13813.             hardcode_direct_CXX=no
  13814.             hardcode_shlibpath_var_CXX=no
  13815.             ;;
  13816.           *)
  13817.             hardcode_direct_CXX=yes
  13818.             hardcode_direct_absolute_CXX=yes
  13819.             hardcode_minus_L_CXX=yes # Not in the search PATH,
  13820.                                                  # but as the default
  13821.                                                  # location of the library.
  13822.             ;;
  13823.         esac
  13824.  
  13825.         case $cc_basename in
  13826.           CC*)
  13827.             # FIXME: insert proper C++ library support
  13828.             ld_shlibs_CXX=no
  13829.             ;;
  13830.           aCC*)
  13831.             case $host_cpu in
  13832.               hppa*64*)
  13833.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13834.                 ;;
  13835.               ia64*)
  13836.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13837.                 ;;
  13838.               *)
  13839.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13840.                 ;;
  13841.             esac
  13842.             # Commands to make compiler produce verbose output that lists
  13843.             # what "hidden" libraries, object files and flags are used when
  13844.             # linking a shared library.
  13845.             #
  13846.             # There doesn't appear to be a way to prevent this compiler from
  13847.             # explicitly linking system object files so we need to strip them
  13848.             # from the output so that they don't get included in the library
  13849.             # dependencies.
  13850.             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"'
  13851.             ;;
  13852.           *)
  13853.             if test "$GXX" = yes; then
  13854.               if test $with_gnu_ld = no; then
  13855.                 case $host_cpu in
  13856.                   hppa*64*)
  13857.                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13858.                     ;;
  13859.                   ia64*)
  13860.                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13861.                     ;;
  13862.                   *)
  13863.                     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'
  13864.                     ;;
  13865.                 esac
  13866.               fi
  13867.             else
  13868.               # FIXME: insert proper C++ library support
  13869.               ld_shlibs_CXX=no
  13870.             fi
  13871.             ;;
  13872.         esac
  13873.         ;;
  13874.  
  13875.       interix[3-9]*)
  13876.         hardcode_direct_CXX=no
  13877.         hardcode_shlibpath_var_CXX=no
  13878.         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13879.         export_dynamic_flag_spec_CXX='${wl}-E'
  13880.         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13881.         # Instead, shared libraries are loaded at an image base (0x10000000 by
  13882.         # default) and relocated if they conflict, which is a slow very memory
  13883.         # consuming and fragmenting process.  To avoid this, we pick a random,
  13884.         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13885.         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  13886.         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'
  13887.         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'
  13888.         ;;
  13889.       irix5* | irix6*)
  13890.         case $cc_basename in
  13891.           CC*)
  13892.             # SGI C++
  13893.             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'
  13894.  
  13895.             # Archives containing C++ object files must be created using
  13896.             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  13897.             # necessary to make sure instantiated templates are included
  13898.             # in the archive.
  13899.             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13900.             ;;
  13901.           *)
  13902.             if test "$GXX" = yes; then
  13903.               if test "$with_gnu_ld" = no; then
  13904.                 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'
  13905.               else
  13906.                 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'
  13907.               fi
  13908.             fi
  13909.             link_all_deplibs_CXX=yes
  13910.             ;;
  13911.         esac
  13912.         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13913.         hardcode_libdir_separator_CXX=:
  13914.         inherit_rpath_CXX=yes
  13915.         ;;
  13916.  
  13917.       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13918.         case $cc_basename in
  13919.           KCC*)
  13920.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  13921.  
  13922.             # KCC will only create a shared library if the output file
  13923.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13924.             # to its proper name (with version) after linking.
  13925.             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'
  13926.             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'
  13927.             # Commands to make compiler produce verbose output that lists
  13928.             # what "hidden" libraries, object files and flags are used when
  13929.             # linking a shared library.
  13930.             #
  13931.             # There doesn't appear to be a way to prevent this compiler from
  13932.             # explicitly linking system object files so we need to strip them
  13933.             # from the output so that they don't get included in the library
  13934.             # dependencies.
  13935.             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"'
  13936.  
  13937.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13938.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13939.  
  13940.             # Archives containing C++ object files must be created using
  13941.             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13942.             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13943.             ;;
  13944.           icpc* | ecpc* )
  13945.             # Intel C++
  13946.             with_gnu_ld=yes
  13947.             # version 8.0 and above of icpc choke on multiply defined symbols
  13948.             # if we add $predep_objects and $postdep_objects, however 7.1 and
  13949.             # earlier do not add the objects themselves.
  13950.             case `$CC -V 2>&1` in
  13951.               *"Version 7."*)
  13952.                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13953.                 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'
  13954.                 ;;
  13955.               *)  # Version 8.0 or newer
  13956.                 tmp_idyn=
  13957.                 case $host_cpu in
  13958.                   ia64*) tmp_idyn=' -i_dynamic';;
  13959.                 esac
  13960.                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13961.                 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'
  13962.                 ;;
  13963.             esac
  13964.             archive_cmds_need_lc_CXX=no
  13965.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13966.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13967.             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13968.             ;;
  13969.           pgCC* | pgcpp*)
  13970.             # Portland Group C++ compiler
  13971.             case `$CC -V` in
  13972.             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13973.               prelink_cmds_CXX='tpldir=Template.dir~
  13974.                 rm -rf $tpldir~
  13975.                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13976.                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13977.               old_archive_cmds_CXX='tpldir=Template.dir~
  13978.                 rm -rf $tpldir~
  13979.                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13980.                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13981.                 $RANLIB $oldlib'
  13982.               archive_cmds_CXX='tpldir=Template.dir~
  13983.                 rm -rf $tpldir~
  13984.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13985.                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  13986.               archive_expsym_cmds_CXX='tpldir=Template.dir~
  13987.                 rm -rf $tpldir~
  13988.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13989.                 $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'
  13990.               ;;
  13991.             *) # Version 6 and above use weak symbols
  13992.               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  13993.               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'
  13994.               ;;
  13995.             esac
  13996.  
  13997.             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  13998.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13999.             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'
  14000.             ;;
  14001.           cxx*)
  14002.             # Compaq C++
  14003.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14004.             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'
  14005.  
  14006.             runpath_var=LD_RUN_PATH
  14007.             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14008.             hardcode_libdir_separator_CXX=:
  14009.  
  14010.             # Commands to make compiler produce verbose output that lists
  14011.             # what "hidden" libraries, object files and flags are used when
  14012.             # linking a shared library.
  14013.             #
  14014.             # There doesn't appear to be a way to prevent this compiler from
  14015.             # explicitly linking system object files so we need to strip them
  14016.             # from the output so that they don't get included in the library
  14017.             # dependencies.
  14018.             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'
  14019.             ;;
  14020.           xl* | mpixl* | bgxl*)
  14021.             # IBM XL 8.0 on PPC, with GNU ld
  14022.             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14023.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14024.             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14025.             if test "x$supports_anon_versioning" = xyes; then
  14026.               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  14027.                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14028.                 echo "local: *; };" >> $output_objdir/$libname.ver~
  14029.                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14030.             fi
  14031.             ;;
  14032.           *)
  14033.             case `$CC -V 2>&1 | sed 5q` in
  14034.             *Sun\ C*)
  14035.               # Sun C++ 5.9
  14036.               no_undefined_flag_CXX=' -zdefs'
  14037.               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14038.               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'
  14039.               hardcode_libdir_flag_spec_CXX='-R$libdir'
  14040.               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'
  14041.               compiler_needs_object_CXX=yes
  14042.  
  14043.               # Not sure whether something based on
  14044.               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  14045.               # would be better.
  14046.               output_verbose_link_cmd='func_echo_all'
  14047.  
  14048.               # Archives containing C++ object files must be created using
  14049.               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  14050.               # necessary to make sure instantiated templates are included
  14051.               # in the archive.
  14052.               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14053.               ;;
  14054.             esac
  14055.             ;;
  14056.         esac
  14057.         ;;
  14058.  
  14059.       lynxos*)
  14060.         # FIXME: insert proper C++ library support
  14061.         ld_shlibs_CXX=no
  14062.         ;;
  14063.  
  14064.       m88k*)
  14065.         # FIXME: insert proper C++ library support
  14066.         ld_shlibs_CXX=no
  14067.         ;;
  14068.  
  14069.       mvs*)
  14070.         case $cc_basename in
  14071.           cxx*)
  14072.             # FIXME: insert proper C++ library support
  14073.             ld_shlibs_CXX=no
  14074.             ;;
  14075.           *)
  14076.             # FIXME: insert proper C++ library support
  14077.             ld_shlibs_CXX=no
  14078.             ;;
  14079.         esac
  14080.         ;;
  14081.  
  14082.       netbsd*)
  14083.         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14084.           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  14085.           wlarc=
  14086.           hardcode_libdir_flag_spec_CXX='-R$libdir'
  14087.           hardcode_direct_CXX=yes
  14088.           hardcode_shlibpath_var_CXX=no
  14089.         fi
  14090.         # Workaround some broken pre-1.5 toolchains
  14091.         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  14092.         ;;
  14093.  
  14094.       *nto* | *qnx*)
  14095.         ld_shlibs_CXX=yes
  14096.         ;;
  14097.  
  14098.       openbsd2*)
  14099.         # C++ shared libraries are fairly broken
  14100.         ld_shlibs_CXX=no
  14101.         ;;
  14102.  
  14103.       openbsd*)
  14104.         if test -f /usr/libexec/ld.so; then
  14105.           hardcode_direct_CXX=yes
  14106.           hardcode_shlibpath_var_CXX=no
  14107.           hardcode_direct_absolute_CXX=yes
  14108.           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14109.           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14110.           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14111.             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  14112.             export_dynamic_flag_spec_CXX='${wl}-E'
  14113.             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14114.           fi
  14115.           output_verbose_link_cmd=func_echo_all
  14116.         else
  14117.           ld_shlibs_CXX=no
  14118.         fi
  14119.         ;;
  14120.  
  14121.       osf3* | osf4* | osf5*)
  14122.         case $cc_basename in
  14123.           KCC*)
  14124.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  14125.  
  14126.             # KCC will only create a shared library if the output file
  14127.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14128.             # to its proper name (with version) after linking.
  14129.             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'
  14130.  
  14131.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14132.             hardcode_libdir_separator_CXX=:
  14133.  
  14134.             # Archives containing C++ object files must be created using
  14135.             # the KAI C++ compiler.
  14136.             case $host in
  14137.               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  14138.               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  14139.             esac
  14140.             ;;
  14141.           RCC*)
  14142.             # Rational C++ 2.4.1
  14143.             # FIXME: insert proper C++ library support
  14144.             ld_shlibs_CXX=no
  14145.             ;;
  14146.           cxx*)
  14147.             case $host in
  14148.               osf3*)
  14149.                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  14150.                 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'
  14151.                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14152.                 ;;
  14153.               *)
  14154.                 allow_undefined_flag_CXX=' -expect_unresolved \*'
  14155.                 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'
  14156.                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  14157.                   echo "-hidden">> $lib.exp~
  14158.                   $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~
  14159.                   $RM $lib.exp'
  14160.                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14161.                 ;;
  14162.             esac
  14163.  
  14164.             hardcode_libdir_separator_CXX=:
  14165.  
  14166.             # Commands to make compiler produce verbose output that lists
  14167.             # what "hidden" libraries, object files and flags are used when
  14168.             # linking a shared library.
  14169.             #
  14170.             # There doesn't appear to be a way to prevent this compiler from
  14171.             # explicitly linking system object files so we need to strip them
  14172.             # from the output so that they don't get included in the library
  14173.             # dependencies.
  14174.             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"'
  14175.             ;;
  14176.           *)
  14177.             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  14178.               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  14179.               case $host in
  14180.                 osf3*)
  14181.                   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'
  14182.                   ;;
  14183.                 *)
  14184.                   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'
  14185.                   ;;
  14186.               esac
  14187.  
  14188.               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14189.               hardcode_libdir_separator_CXX=:
  14190.  
  14191.               # Commands to make compiler produce verbose output that lists
  14192.               # what "hidden" libraries, object files and flags are used when
  14193.               # linking a shared library.
  14194.               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14195.  
  14196.             else
  14197.               # FIXME: insert proper C++ library support
  14198.               ld_shlibs_CXX=no
  14199.             fi
  14200.             ;;
  14201.         esac
  14202.         ;;
  14203.  
  14204.       psos*)
  14205.         # FIXME: insert proper C++ library support
  14206.         ld_shlibs_CXX=no
  14207.         ;;
  14208.  
  14209.       sunos4*)
  14210.         case $cc_basename in
  14211.           CC*)
  14212.             # Sun C++ 4.x
  14213.             # FIXME: insert proper C++ library support
  14214.             ld_shlibs_CXX=no
  14215.             ;;
  14216.           lcc*)
  14217.             # Lucid
  14218.             # FIXME: insert proper C++ library support
  14219.             ld_shlibs_CXX=no
  14220.             ;;
  14221.           *)
  14222.             # FIXME: insert proper C++ library support
  14223.             ld_shlibs_CXX=no
  14224.             ;;
  14225.         esac
  14226.         ;;
  14227.  
  14228.       solaris*)
  14229.         case $cc_basename in
  14230.           CC* | sunCC*)
  14231.             # Sun C++ 4.2, 5.x and Centerline C++
  14232.             archive_cmds_need_lc_CXX=yes
  14233.             no_undefined_flag_CXX=' -zdefs'
  14234.             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14235.             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14236.               $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'
  14237.  
  14238.             hardcode_libdir_flag_spec_CXX='-R$libdir'
  14239.             hardcode_shlibpath_var_CXX=no
  14240.             case $host_os in
  14241.               solaris2.[0-5] | solaris2.[0-5].*) ;;
  14242.               *)
  14243.                 # The compiler driver will combine and reorder linker options,
  14244.                 # but understands `-z linker_flag'.
  14245.                 # Supported since Solaris 2.6 (maybe 2.5.1?)
  14246.                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  14247.                 ;;
  14248.             esac
  14249.             link_all_deplibs_CXX=yes
  14250.  
  14251.             output_verbose_link_cmd='func_echo_all'
  14252.  
  14253.             # Archives containing C++ object files must be created using
  14254.             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  14255.             # necessary to make sure instantiated templates are included
  14256.             # in the archive.
  14257.             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14258.             ;;
  14259.           gcx*)
  14260.             # Green Hills C++ Compiler
  14261.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14262.  
  14263.             # The C++ compiler must be used to create the archive.
  14264.             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  14265.             ;;
  14266.           *)
  14267.             # GNU C++ compiler with Solaris linker
  14268.             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  14269.               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  14270.               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  14271.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14272.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14273.                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14274.  
  14275.                 # Commands to make compiler produce verbose output that lists
  14276.                 # what "hidden" libraries, object files and flags are used when
  14277.                 # linking a shared library.
  14278.                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14279.               else
  14280.                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
  14281.                 # platform.
  14282.                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14283.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14284.                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14285.  
  14286.                 # Commands to make compiler produce verbose output that lists
  14287.                 # what "hidden" libraries, object files and flags are used when
  14288.                 # linking a shared library.
  14289.                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14290.               fi
  14291.  
  14292.               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  14293.               case $host_os in
  14294.                 solaris2.[0-5] | solaris2.[0-5].*) ;;
  14295.                 *)
  14296.                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14297.                   ;;
  14298.               esac
  14299.             fi
  14300.             ;;
  14301.         esac
  14302.         ;;
  14303.  
  14304.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14305.       no_undefined_flag_CXX='${wl}-z,text'
  14306.       archive_cmds_need_lc_CXX=no
  14307.       hardcode_shlibpath_var_CXX=no
  14308.       runpath_var='LD_RUN_PATH'
  14309.  
  14310.       case $cc_basename in
  14311.         CC*)
  14312.           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14313.           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14314.           ;;
  14315.         *)
  14316.           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14317.           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14318.           ;;
  14319.       esac
  14320.       ;;
  14321.  
  14322.       sysv5* | sco3.2v5* | sco5v6*)
  14323.         # Note: We can NOT use -z defs as we might desire, because we do not
  14324.         # link with -lc, and that would cause any symbols used from libc to
  14325.         # always be unresolved, which means just about no library would
  14326.         # ever link correctly.  If we're not using GNU ld we use -z text
  14327.         # though, which does catch some bad symbols but isn't as heavy-handed
  14328.         # as -z defs.
  14329.         no_undefined_flag_CXX='${wl}-z,text'
  14330.         allow_undefined_flag_CXX='${wl}-z,nodefs'
  14331.         archive_cmds_need_lc_CXX=no
  14332.         hardcode_shlibpath_var_CXX=no
  14333.         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  14334.         hardcode_libdir_separator_CXX=':'
  14335.         link_all_deplibs_CXX=yes
  14336.         export_dynamic_flag_spec_CXX='${wl}-Bexport'
  14337.         runpath_var='LD_RUN_PATH'
  14338.  
  14339.         case $cc_basename in
  14340.           CC*)
  14341.             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14342.             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14343.             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  14344.               '"$old_archive_cmds_CXX"
  14345.             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  14346.               '"$reload_cmds_CXX"
  14347.             ;;
  14348.           *)
  14349.             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14350.             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14351.             ;;
  14352.         esac
  14353.       ;;
  14354.  
  14355.       tandem*)
  14356.         case $cc_basename in
  14357.           NCC*)
  14358.             # NonStop-UX NCC 3.20
  14359.             # FIXME: insert proper C++ library support
  14360.             ld_shlibs_CXX=no
  14361.             ;;
  14362.           *)
  14363.             # FIXME: insert proper C++ library support
  14364.             ld_shlibs_CXX=no
  14365.             ;;
  14366.         esac
  14367.         ;;
  14368.  
  14369.       vxworks*)
  14370.         # FIXME: insert proper C++ library support
  14371.         ld_shlibs_CXX=no
  14372.         ;;
  14373.  
  14374.       *)
  14375.         # FIXME: insert proper C++ library support
  14376.         ld_shlibs_CXX=no
  14377.         ;;
  14378.     esac
  14379.  
  14380.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14381. $as_echo "$ld_shlibs_CXX" >&6; }
  14382.     test "$ld_shlibs_CXX" = no && can_build_shared=no
  14383.  
  14384.     GCC_CXX="$GXX"
  14385.     LD_CXX="$LD"
  14386.  
  14387.     ## CAVEAT EMPTOR:
  14388.     ## There is no encapsulation within the following macros, do not change
  14389.     ## the running order or otherwise move them around unless you know exactly
  14390.     ## what you are doing...
  14391.     # Dependencies to place before and after the object being linked:
  14392. predep_objects_CXX=
  14393. postdep_objects_CXX=
  14394. predeps_CXX=
  14395. postdeps_CXX=
  14396. compiler_lib_search_path_CXX=
  14397.  
  14398. cat > conftest.$ac_ext <<_LT_EOF
  14399. class Foo
  14400. {
  14401. public:
  14402.   Foo (void) { a = 0; }
  14403. private:
  14404.   int a;
  14405. };
  14406. _LT_EOF
  14407.  
  14408.  
  14409. _lt_libdeps_save_CFLAGS=$CFLAGS
  14410. case "$CC $CFLAGS " in #(
  14411. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14412. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14413. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14414. esac
  14415.  
  14416. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14417.   (eval $ac_compile) 2>&5
  14418.   ac_status=$?
  14419.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14420.   test $ac_status = 0; }; then
  14421.   # Parse the compiler output and extract the necessary
  14422.   # objects, libraries and library flags.
  14423.  
  14424.   # Sentinel used to keep track of whether or not we are before
  14425.   # the conftest object file.
  14426.   pre_test_object_deps_done=no
  14427.  
  14428.   for p in `eval "$output_verbose_link_cmd"`; do
  14429.     case ${prev}${p} in
  14430.  
  14431.     -L* | -R* | -l*)
  14432.        # Some compilers place space between "-{L,R}" and the path.
  14433.        # Remove the space.
  14434.        if test $p = "-L" ||
  14435.           test $p = "-R"; then
  14436.          prev=$p
  14437.          continue
  14438.        fi
  14439.  
  14440.        # Expand the sysroot to ease extracting the directories later.
  14441.        if test -z "$prev"; then
  14442.          case $p in
  14443.          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14444.          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14445.          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14446.          esac
  14447.        fi
  14448.        case $p in
  14449.        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14450.        esac
  14451.        if test "$pre_test_object_deps_done" = no; then
  14452.          case ${prev} in
  14453.          -L | -R)
  14454.            # Internal compiler library paths should come after those
  14455.            # provided the user.  The postdeps already come after the
  14456.            # user supplied libs so there is no need to process them.
  14457.            if test -z "$compiler_lib_search_path_CXX"; then
  14458.              compiler_lib_search_path_CXX="${prev}${p}"
  14459.            else
  14460.              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  14461.            fi
  14462.            ;;
  14463.          # The "-l" case would never come before the object being
  14464.          # linked, so don't bother handling this case.
  14465.          esac
  14466.        else
  14467.          if test -z "$postdeps_CXX"; then
  14468.            postdeps_CXX="${prev}${p}"
  14469.          else
  14470.            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  14471.          fi
  14472.        fi
  14473.        prev=
  14474.        ;;
  14475.  
  14476.     *.lto.$objext) ;; # Ignore GCC LTO objects
  14477.     *.$objext)
  14478.        # This assumes that the test object file only shows up
  14479.        # once in the compiler output.
  14480.        if test "$p" = "conftest.$objext"; then
  14481.          pre_test_object_deps_done=yes
  14482.          continue
  14483.        fi
  14484.  
  14485.        if test "$pre_test_object_deps_done" = no; then
  14486.          if test -z "$predep_objects_CXX"; then
  14487.            predep_objects_CXX="$p"
  14488.          else
  14489.            predep_objects_CXX="$predep_objects_CXX $p"
  14490.          fi
  14491.        else
  14492.          if test -z "$postdep_objects_CXX"; then
  14493.            postdep_objects_CXX="$p"
  14494.          else
  14495.            postdep_objects_CXX="$postdep_objects_CXX $p"
  14496.          fi
  14497.        fi
  14498.        ;;
  14499.  
  14500.     *) ;; # Ignore the rest.
  14501.  
  14502.     esac
  14503.   done
  14504.  
  14505.   # Clean up.
  14506.   rm -f a.out a.exe
  14507. else
  14508.   echo "libtool.m4: error: problem compiling CXX test program"
  14509. fi
  14510.  
  14511. $RM -f confest.$objext
  14512. CFLAGS=$_lt_libdeps_save_CFLAGS
  14513.  
  14514. # PORTME: override above test on systems where it is broken
  14515. case $host_os in
  14516. interix[3-9]*)
  14517.   # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14518.   # hack all around it, let's just trust "g++" to DTRT.
  14519.   predep_objects_CXX=
  14520.   postdep_objects_CXX=
  14521.   postdeps_CXX=
  14522.   ;;
  14523.  
  14524. linux*)
  14525.   case `$CC -V 2>&1 | sed 5q` in
  14526.   *Sun\ C*)
  14527.     # Sun C++ 5.9
  14528.  
  14529.     # The more standards-conforming stlport4 library is
  14530.     # incompatible with the Cstd library. Avoid specifying
  14531.     # it if it's in CXXFLAGS. Ignore libCrun as
  14532.     # -library=stlport4 depends on it.
  14533.     case " $CXX $CXXFLAGS " in
  14534.     *" -library=stlport4 "*)
  14535.       solaris_use_stlport4=yes
  14536.       ;;
  14537.     esac
  14538.  
  14539.     if test "$solaris_use_stlport4" != yes; then
  14540.       postdeps_CXX='-library=Cstd -library=Crun'
  14541.     fi
  14542.     ;;
  14543.   esac
  14544.   ;;
  14545.  
  14546. solaris*)
  14547.   case $cc_basename in
  14548.   CC* | sunCC*)
  14549.     # The more standards-conforming stlport4 library is
  14550.     # incompatible with the Cstd library. Avoid specifying
  14551.     # it if it's in CXXFLAGS. Ignore libCrun as
  14552.     # -library=stlport4 depends on it.
  14553.     case " $CXX $CXXFLAGS " in
  14554.     *" -library=stlport4 "*)
  14555.       solaris_use_stlport4=yes
  14556.       ;;
  14557.     esac
  14558.  
  14559.     # Adding this requires a known-good setup of shared libraries for
  14560.     # Sun compiler versions before 5.6, else PIC objects from an old
  14561.     # archive will be linked into the output, leading to subtle bugs.
  14562.     if test "$solaris_use_stlport4" != yes; then
  14563.       postdeps_CXX='-library=Cstd -library=Crun'
  14564.     fi
  14565.     ;;
  14566.   esac
  14567.   ;;
  14568. esac
  14569.  
  14570.  
  14571. case " $postdeps_CXX " in
  14572. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14573. esac
  14574.  compiler_lib_search_dirs_CXX=
  14575. if test -n "${compiler_lib_search_path_CXX}"; then
  14576.  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  14577. fi
  14578.  
  14579.  
  14580.  
  14581.  
  14582.  
  14583.  
  14584.  
  14585.  
  14586.  
  14587.  
  14588.  
  14589.  
  14590.  
  14591.  
  14592.  
  14593.  
  14594.  
  14595.  
  14596.  
  14597.  
  14598.  
  14599.  
  14600.  
  14601.  
  14602.  
  14603.  
  14604.  
  14605.  
  14606.  
  14607.  
  14608.  
  14609.     lt_prog_compiler_wl_CXX=
  14610. lt_prog_compiler_pic_CXX=
  14611. lt_prog_compiler_static_CXX=
  14612.  
  14613.  
  14614.   # C++ specific cases for pic, static, wl, etc.
  14615.   if test "$GXX" = yes; then
  14616.     lt_prog_compiler_wl_CXX='-Wl,'
  14617.     lt_prog_compiler_static_CXX='-static'
  14618.  
  14619.     case $host_os in
  14620.     aix*)
  14621.       # All AIX code is PIC.
  14622.       if test "$host_cpu" = ia64; then
  14623.         # AIX 5 now supports IA64 processor
  14624.         lt_prog_compiler_static_CXX='-Bstatic'
  14625.       fi
  14626.       ;;
  14627.  
  14628.     amigaos*)
  14629.       case $host_cpu in
  14630.       powerpc)
  14631.             # see comment about AmigaOS4 .so support
  14632.             lt_prog_compiler_pic_CXX='-fPIC'
  14633.         ;;
  14634.       m68k)
  14635.             # FIXME: we need at least 68020 code to build shared libraries, but
  14636.             # adding the `-m68020' flag to GCC prevents building anything better,
  14637.             # like `-m68040'.
  14638.             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14639.         ;;
  14640.       esac
  14641.       ;;
  14642.  
  14643.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14644.       # PIC is the default for these OSes.
  14645.       ;;
  14646.     mingw* | cygwin* | os2* | pw32* | cegcc*)
  14647.       # This hack is so that the source file can tell whether it is being
  14648.       # built for inclusion in a dll (and should export symbols for example).
  14649.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14650.       # (--disable-auto-import) libraries
  14651.       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14652.       ;;
  14653.     darwin* | rhapsody*)
  14654.       # PIC is the default on this platform
  14655.       # Common symbols not allowed in MH_DYLIB files
  14656.       lt_prog_compiler_pic_CXX='-fno-common'
  14657.       ;;
  14658.     *djgpp*)
  14659.       # DJGPP does not support shared libraries at all
  14660.       lt_prog_compiler_pic_CXX=
  14661.       ;;
  14662.     haiku*)
  14663.       # PIC is the default for Haiku.
  14664.       # The "-static" flag exists, but is broken.
  14665.       lt_prog_compiler_static_CXX=
  14666.       ;;
  14667.     interix[3-9]*)
  14668.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14669.       # Instead, we relocate shared libraries at runtime.
  14670.       ;;
  14671.     sysv4*MP*)
  14672.       if test -d /usr/nec; then
  14673.         lt_prog_compiler_pic_CXX=-Kconform_pic
  14674.       fi
  14675.       ;;
  14676.     hpux*)
  14677.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14678.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  14679.       # sets the default TLS model and affects inlining.
  14680.       case $host_cpu in
  14681.       hppa*64*)
  14682.         ;;
  14683.       *)
  14684.         lt_prog_compiler_pic_CXX='-fPIC'
  14685.         ;;
  14686.       esac
  14687.       ;;
  14688.     *qnx* | *nto*)
  14689.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  14690.       # it will coredump.
  14691.       lt_prog_compiler_pic_CXX='-fPIC -shared'
  14692.       ;;
  14693.     *)
  14694.       lt_prog_compiler_pic_CXX='-fPIC'
  14695.       ;;
  14696.     esac
  14697.   else
  14698.     case $host_os in
  14699.       aix[4-9]*)
  14700.         # All AIX code is PIC.
  14701.         if test "$host_cpu" = ia64; then
  14702.           # AIX 5 now supports IA64 processor
  14703.           lt_prog_compiler_static_CXX='-Bstatic'
  14704.         else
  14705.           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14706.         fi
  14707.         ;;
  14708.       chorus*)
  14709.         case $cc_basename in
  14710.         cxch68*)
  14711.           # Green Hills C++ Compiler
  14712.           # _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"
  14713.           ;;
  14714.         esac
  14715.         ;;
  14716.       mingw* | cygwin* | os2* | pw32* | cegcc*)
  14717.         # This hack is so that the source file can tell whether it is being
  14718.         # built for inclusion in a dll (and should export symbols for example).
  14719.         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14720.         ;;
  14721.       dgux*)
  14722.         case $cc_basename in
  14723.           ec++*)
  14724.             lt_prog_compiler_pic_CXX='-KPIC'
  14725.             ;;
  14726.           ghcx*)
  14727.             # Green Hills C++ Compiler
  14728.             lt_prog_compiler_pic_CXX='-pic'
  14729.             ;;
  14730.           *)
  14731.             ;;
  14732.         esac
  14733.         ;;
  14734.       freebsd* | dragonfly*)
  14735.         # FreeBSD uses GNU C++
  14736.         ;;
  14737.       hpux9* | hpux10* | hpux11*)
  14738.         case $cc_basename in
  14739.           CC*)
  14740.             lt_prog_compiler_wl_CXX='-Wl,'
  14741.             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  14742.             if test "$host_cpu" != ia64; then
  14743.               lt_prog_compiler_pic_CXX='+Z'
  14744.             fi
  14745.             ;;
  14746.           aCC*)
  14747.             lt_prog_compiler_wl_CXX='-Wl,'
  14748.             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  14749.             case $host_cpu in
  14750.             hppa*64*|ia64*)
  14751.               # +Z the default
  14752.               ;;
  14753.             *)
  14754.               lt_prog_compiler_pic_CXX='+Z'
  14755.               ;;
  14756.             esac
  14757.             ;;
  14758.           *)
  14759.             ;;
  14760.         esac
  14761.         ;;
  14762.       interix*)
  14763.         # This is c89, which is MS Visual C++ (no shared libs)
  14764.         # Anyone wants to do a port?
  14765.         ;;
  14766.       irix5* | irix6* | nonstopux*)
  14767.         case $cc_basename in
  14768.           CC*)
  14769.             lt_prog_compiler_wl_CXX='-Wl,'
  14770.             lt_prog_compiler_static_CXX='-non_shared'
  14771.             # CC pic flag -KPIC is the default.
  14772.             ;;
  14773.           *)
  14774.             ;;
  14775.         esac
  14776.         ;;
  14777.       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14778.         case $cc_basename in
  14779.           KCC*)
  14780.             # KAI C++ Compiler
  14781.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  14782.             lt_prog_compiler_pic_CXX='-fPIC'
  14783.             ;;
  14784.           ecpc* )
  14785.             # old Intel C++ for x86_64 which still supported -KPIC.
  14786.             lt_prog_compiler_wl_CXX='-Wl,'
  14787.             lt_prog_compiler_pic_CXX='-KPIC'
  14788.             lt_prog_compiler_static_CXX='-static'
  14789.             ;;
  14790.           icpc* )
  14791.             # Intel C++, used to be incompatible with GCC.
  14792.             # ICC 10 doesn't accept -KPIC any more.
  14793.             lt_prog_compiler_wl_CXX='-Wl,'
  14794.             lt_prog_compiler_pic_CXX='-fPIC'
  14795.             lt_prog_compiler_static_CXX='-static'
  14796.             ;;
  14797.           pgCC* | pgcpp*)
  14798.             # Portland Group C++ compiler
  14799.             lt_prog_compiler_wl_CXX='-Wl,'
  14800.             lt_prog_compiler_pic_CXX='-fpic'
  14801.             lt_prog_compiler_static_CXX='-Bstatic'
  14802.             ;;
  14803.           cxx*)
  14804.             # Compaq C++
  14805.             # Make sure the PIC flag is empty.  It appears that all Alpha
  14806.             # Linux and Compaq Tru64 Unix objects are PIC.
  14807.             lt_prog_compiler_pic_CXX=
  14808.             lt_prog_compiler_static_CXX='-non_shared'
  14809.             ;;
  14810.           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14811.             # IBM XL 8.0, 9.0 on PPC and BlueGene
  14812.             lt_prog_compiler_wl_CXX='-Wl,'
  14813.             lt_prog_compiler_pic_CXX='-qpic'
  14814.             lt_prog_compiler_static_CXX='-qstaticlink'
  14815.             ;;
  14816.           *)
  14817.             case `$CC -V 2>&1 | sed 5q` in
  14818.             *Sun\ C*)
  14819.               # Sun C++ 5.9
  14820.               lt_prog_compiler_pic_CXX='-KPIC'
  14821.               lt_prog_compiler_static_CXX='-Bstatic'
  14822.               lt_prog_compiler_wl_CXX='-Qoption ld '
  14823.               ;;
  14824.             esac
  14825.             ;;
  14826.         esac
  14827.         ;;
  14828.       lynxos*)
  14829.         ;;
  14830.       m88k*)
  14831.         ;;
  14832.       mvs*)
  14833.         case $cc_basename in
  14834.           cxx*)
  14835.             lt_prog_compiler_pic_CXX='-W c,exportall'
  14836.             ;;
  14837.           *)
  14838.             ;;
  14839.         esac
  14840.         ;;
  14841.       netbsd* | netbsdelf*-gnu)
  14842.         ;;
  14843.       *qnx* | *nto*)
  14844.         # QNX uses GNU C++, but need to define -shared option too, otherwise
  14845.         # it will coredump.
  14846.         lt_prog_compiler_pic_CXX='-fPIC -shared'
  14847.         ;;
  14848.       osf3* | osf4* | osf5*)
  14849.         case $cc_basename in
  14850.           KCC*)
  14851.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  14852.             ;;
  14853.           RCC*)
  14854.             # Rational C++ 2.4.1
  14855.             lt_prog_compiler_pic_CXX='-pic'
  14856.             ;;
  14857.           cxx*)
  14858.             # Digital/Compaq C++
  14859.             lt_prog_compiler_wl_CXX='-Wl,'
  14860.             # Make sure the PIC flag is empty.  It appears that all Alpha
  14861.             # Linux and Compaq Tru64 Unix objects are PIC.
  14862.             lt_prog_compiler_pic_CXX=
  14863.             lt_prog_compiler_static_CXX='-non_shared'
  14864.             ;;
  14865.           *)
  14866.             ;;
  14867.         esac
  14868.         ;;
  14869.       psos*)
  14870.         ;;
  14871.       solaris*)
  14872.         case $cc_basename in
  14873.           CC* | sunCC*)
  14874.             # Sun C++ 4.2, 5.x and Centerline C++
  14875.             lt_prog_compiler_pic_CXX='-KPIC'
  14876.             lt_prog_compiler_static_CXX='-Bstatic'
  14877.             lt_prog_compiler_wl_CXX='-Qoption ld '
  14878.             ;;
  14879.           gcx*)
  14880.             # Green Hills C++ Compiler
  14881.             lt_prog_compiler_pic_CXX='-PIC'
  14882.             ;;
  14883.           *)
  14884.             ;;
  14885.         esac
  14886.         ;;
  14887.       sunos4*)
  14888.         case $cc_basename in
  14889.           CC*)
  14890.             # Sun C++ 4.x
  14891.             lt_prog_compiler_pic_CXX='-pic'
  14892.             lt_prog_compiler_static_CXX='-Bstatic'
  14893.             ;;
  14894.           lcc*)
  14895.             # Lucid
  14896.             lt_prog_compiler_pic_CXX='-pic'
  14897.             ;;
  14898.           *)
  14899.             ;;
  14900.         esac
  14901.         ;;
  14902.       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14903.         case $cc_basename in
  14904.           CC*)
  14905.             lt_prog_compiler_wl_CXX='-Wl,'
  14906.             lt_prog_compiler_pic_CXX='-KPIC'
  14907.             lt_prog_compiler_static_CXX='-Bstatic'
  14908.             ;;
  14909.         esac
  14910.         ;;
  14911.       tandem*)
  14912.         case $cc_basename in
  14913.           NCC*)
  14914.             # NonStop-UX NCC 3.20
  14915.             lt_prog_compiler_pic_CXX='-KPIC'
  14916.             ;;
  14917.           *)
  14918.             ;;
  14919.         esac
  14920.         ;;
  14921.       vxworks*)
  14922.         ;;
  14923.       *)
  14924.         lt_prog_compiler_can_build_shared_CXX=no
  14925.         ;;
  14926.     esac
  14927.   fi
  14928.  
  14929. case $host_os in
  14930.   # For platforms which do not support PIC, -DPIC is meaningless:
  14931.   *djgpp*)
  14932.     lt_prog_compiler_pic_CXX=
  14933.     ;;
  14934.   *)
  14935.     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14936.     ;;
  14937. esac
  14938.  
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14940. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14941. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14942.   $as_echo_n "(cached) " >&6
  14943. else
  14944.   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14945. fi
  14946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14947. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14948. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14949.  
  14950. #
  14951. # Check to make sure the PIC flag actually works.
  14952. #
  14953. if test -n "$lt_prog_compiler_pic_CXX"; then
  14954.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14955. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14956. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14957.   $as_echo_n "(cached) " >&6
  14958. else
  14959.   lt_cv_prog_compiler_pic_works_CXX=no
  14960.    ac_outfile=conftest.$ac_objext
  14961.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14962.    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  14963.    # Insert the option either (1) after the last *FLAGS variable, or
  14964.    # (2) before a word containing "conftest.", or (3) at the end.
  14965.    # Note that $ac_compile itself does not contain backslashes and begins
  14966.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  14967.    # The option is referenced via a variable to avoid confusing sed.
  14968.    lt_compile=`echo "$ac_compile" | $SED \
  14969.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14970.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14971.    -e 's:$: $lt_compiler_flag:'`
  14972.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14973.    (eval "$lt_compile" 2>conftest.err)
  14974.    ac_status=$?
  14975.    cat conftest.err >&5
  14976.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14977.    if (exit $ac_status) && test -s "$ac_outfile"; then
  14978.      # The compiler can only warn and ignore the option if not recognized
  14979.      # So say no if there are warnings other than the usual output.
  14980.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14981.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14982.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14983.        lt_cv_prog_compiler_pic_works_CXX=yes
  14984.      fi
  14985.    fi
  14986.    $RM conftest*
  14987.  
  14988. fi
  14989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14990. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14991.  
  14992. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  14993.     case $lt_prog_compiler_pic_CXX in
  14994.      "" | " "*) ;;
  14995.      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14996.      esac
  14997. else
  14998.     lt_prog_compiler_pic_CXX=
  14999.      lt_prog_compiler_can_build_shared_CXX=no
  15000. fi
  15001.  
  15002. fi
  15003.  
  15004.  
  15005.  
  15006.  
  15007.  
  15008. #
  15009. # Check to make sure the static flag actually works.
  15010. #
  15011. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  15012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15013. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15014. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  15015.   $as_echo_n "(cached) " >&6
  15016. else
  15017.   lt_cv_prog_compiler_static_works_CXX=no
  15018.    save_LDFLAGS="$LDFLAGS"
  15019.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15020.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15021.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15022.      # The linker can only warn and ignore the option if not recognized
  15023.      # So say no if there are warnings
  15024.      if test -s conftest.err; then
  15025.        # Append any errors to the config.log.
  15026.        cat conftest.err 1>&5
  15027.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15028.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15029.        if diff conftest.exp conftest.er2 >/dev/null; then
  15030.          lt_cv_prog_compiler_static_works_CXX=yes
  15031.        fi
  15032.      else
  15033.        lt_cv_prog_compiler_static_works_CXX=yes
  15034.      fi
  15035.    fi
  15036.    $RM -r conftest*
  15037.    LDFLAGS="$save_LDFLAGS"
  15038.  
  15039. fi
  15040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  15041. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  15042.  
  15043. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  15044.     :
  15045. else
  15046.     lt_prog_compiler_static_CXX=
  15047. fi
  15048.  
  15049.  
  15050.  
  15051.  
  15052.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15053. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15054. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  15055.   $as_echo_n "(cached) " >&6
  15056. else
  15057.   lt_cv_prog_compiler_c_o_CXX=no
  15058.    $RM -r conftest 2>/dev/null
  15059.    mkdir conftest
  15060.    cd conftest
  15061.    mkdir out
  15062.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15063.  
  15064.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  15065.    # Insert the option either (1) after the last *FLAGS variable, or
  15066.    # (2) before a word containing "conftest.", or (3) at the end.
  15067.    # Note that $ac_compile itself does not contain backslashes and begins
  15068.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  15069.    lt_compile=`echo "$ac_compile" | $SED \
  15070.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15071.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15072.    -e 's:$: $lt_compiler_flag:'`
  15073.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15074.    (eval "$lt_compile" 2>out/conftest.err)
  15075.    ac_status=$?
  15076.    cat out/conftest.err >&5
  15077.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15078.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15079.    then
  15080.      # The compiler can only warn and ignore the option if not recognized
  15081.      # So say no if there are warnings
  15082.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15083.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15084.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15085.        lt_cv_prog_compiler_c_o_CXX=yes
  15086.      fi
  15087.    fi
  15088.    chmod u+w . 2>&5
  15089.    $RM conftest*
  15090.    # SGI C++ compiler will create directory out/ii_files/ for
  15091.    # template instantiation
  15092.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15093.    $RM out/* && rmdir out
  15094.    cd ..
  15095.    $RM -r conftest
  15096.    $RM conftest*
  15097.  
  15098. fi
  15099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15100. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15101.  
  15102.  
  15103.  
  15104.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15105. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15106. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  15107.   $as_echo_n "(cached) " >&6
  15108. else
  15109.   lt_cv_prog_compiler_c_o_CXX=no
  15110.    $RM -r conftest 2>/dev/null
  15111.    mkdir conftest
  15112.    cd conftest
  15113.    mkdir out
  15114.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15115.  
  15116.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  15117.    # Insert the option either (1) after the last *FLAGS variable, or
  15118.    # (2) before a word containing "conftest.", or (3) at the end.
  15119.    # Note that $ac_compile itself does not contain backslashes and begins
  15120.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  15121.    lt_compile=`echo "$ac_compile" | $SED \
  15122.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15123.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15124.    -e 's:$: $lt_compiler_flag:'`
  15125.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15126.    (eval "$lt_compile" 2>out/conftest.err)
  15127.    ac_status=$?
  15128.    cat out/conftest.err >&5
  15129.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15130.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15131.    then
  15132.      # The compiler can only warn and ignore the option if not recognized
  15133.      # So say no if there are warnings
  15134.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15135.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15136.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15137.        lt_cv_prog_compiler_c_o_CXX=yes
  15138.      fi
  15139.    fi
  15140.    chmod u+w . 2>&5
  15141.    $RM conftest*
  15142.    # SGI C++ compiler will create directory out/ii_files/ for
  15143.    # template instantiation
  15144.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15145.    $RM out/* && rmdir out
  15146.    cd ..
  15147.    $RM -r conftest
  15148.    $RM conftest*
  15149.  
  15150. fi
  15151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15152. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15153.  
  15154.  
  15155.  
  15156.  
  15157. hard_links="nottested"
  15158. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  15159.   # do not overwrite the value of need_locks provided by the user
  15160.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  15161. $as_echo_n "checking if we can lock with hard links... " >&6; }
  15162.   hard_links=yes
  15163.   $RM conftest*
  15164.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15165.   touch conftest.a
  15166.   ln conftest.a conftest.b 2>&5 || hard_links=no
  15167.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15168.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  15169. $as_echo "$hard_links" >&6; }
  15170.   if test "$hard_links" = no; then
  15171.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15172. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15173.     need_locks=warn
  15174.   fi
  15175. else
  15176.   need_locks=no
  15177. fi
  15178.  
  15179.  
  15180.  
  15181.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15182. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15183.  
  15184.   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15185.   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15186.   case $host_os in
  15187.   aix[4-9]*)
  15188.     # If we're using GNU nm, then we don't want the "-C" option.
  15189.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15190.     # Also, AIX nm treats weak defined symbols like other global defined
  15191.     # symbols, whereas GNU nm marks them as "W".
  15192.     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  15193.       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'
  15194.     else
  15195.       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'
  15196.     fi
  15197.     ;;
  15198.   pw32*)
  15199.     export_symbols_cmds_CXX="$ltdll_cmds"
  15200.     ;;
  15201.   cygwin* | mingw* | cegcc*)
  15202.     case $cc_basename in
  15203.     cl*)
  15204.       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  15205.       ;;
  15206.     *)
  15207.       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'
  15208.       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  15209.       ;;
  15210.     esac
  15211.     ;;
  15212.   linux* | k*bsd*-gnu | gnu*)
  15213.     link_all_deplibs_CXX=no
  15214.     ;;
  15215.   *)
  15216.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15217.     ;;
  15218.   esac
  15219.  
  15220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  15221. $as_echo "$ld_shlibs_CXX" >&6; }
  15222. test "$ld_shlibs_CXX" = no && can_build_shared=no
  15223.  
  15224. with_gnu_ld_CXX=$with_gnu_ld
  15225.  
  15226.  
  15227.  
  15228.  
  15229.  
  15230.  
  15231. #
  15232. # Do we need to explicitly link libc?
  15233. #
  15234. case "x$archive_cmds_need_lc_CXX" in
  15235. x|xyes)
  15236.   # Assume -lc should be added
  15237.   archive_cmds_need_lc_CXX=yes
  15238.  
  15239.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  15240.     case $archive_cmds_CXX in
  15241.     *'~'*)
  15242.       # FIXME: we may have to deal with multi-command sequences.
  15243.       ;;
  15244.     '$CC '*)
  15245.       # Test whether the compiler implicitly links with -lc since on some
  15246.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15247.       # to ld, don't add -lc before -lgcc.
  15248.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  15249. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  15250. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  15251.   $as_echo_n "(cached) " >&6
  15252. else
  15253.   $RM conftest*
  15254.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15255.  
  15256.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15257.   (eval $ac_compile) 2>&5
  15258.   ac_status=$?
  15259.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15260.   test $ac_status = 0; } 2>conftest.err; then
  15261.           soname=conftest
  15262.           lib=conftest
  15263.           libobjs=conftest.$ac_objext
  15264.           deplibs=
  15265.           wl=$lt_prog_compiler_wl_CXX
  15266.           pic_flag=$lt_prog_compiler_pic_CXX
  15267.           compiler_flags=-v
  15268.           linker_flags=-v
  15269.           verstring=
  15270.           output_objdir=.
  15271.           libname=conftest
  15272.           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  15273.           allow_undefined_flag_CXX=
  15274.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  15275.   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15276.   ac_status=$?
  15277.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15278.   test $ac_status = 0; }
  15279.           then
  15280.             lt_cv_archive_cmds_need_lc_CXX=no
  15281.           else
  15282.             lt_cv_archive_cmds_need_lc_CXX=yes
  15283.           fi
  15284.           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  15285.         else
  15286.           cat conftest.err 1>&5
  15287.         fi
  15288.         $RM conftest*
  15289.  
  15290. fi
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  15292. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  15293.       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  15294.       ;;
  15295.     esac
  15296.   fi
  15297.   ;;
  15298. esac
  15299.  
  15300.  
  15301.  
  15302.  
  15303.  
  15304.  
  15305.  
  15306.  
  15307.  
  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.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  15362. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  15363.  
  15364. library_names_spec=
  15365. libname_spec='lib$name'
  15366. soname_spec=
  15367. shrext_cmds=".so"
  15368. postinstall_cmds=
  15369. postuninstall_cmds=
  15370. finish_cmds=
  15371. finish_eval=
  15372. shlibpath_var=
  15373. shlibpath_overrides_runpath=unknown
  15374. version_type=none
  15375. dynamic_linker="$host_os ld.so"
  15376. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15377. need_lib_prefix=unknown
  15378. hardcode_into_libs=no
  15379.  
  15380. # when you set need_version to no, make sure it does not cause -set_version
  15381. # flags to be left without arguments
  15382. need_version=unknown
  15383.  
  15384. case $host_os in
  15385. aix3*)
  15386.   version_type=linux # correct to gnu/linux during the next big refactor
  15387.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15388.   shlibpath_var=LIBPATH
  15389.  
  15390.   # AIX 3 has no versioning support, so we append a major version to the name.
  15391.   soname_spec='${libname}${release}${shared_ext}$major'
  15392.   ;;
  15393.  
  15394. aix[4-9]*)
  15395.   version_type=linux # correct to gnu/linux during the next big refactor
  15396.   need_lib_prefix=no
  15397.   need_version=no
  15398.   hardcode_into_libs=yes
  15399.   if test "$host_cpu" = ia64; then
  15400.     # AIX 5 supports IA64
  15401.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15402.     shlibpath_var=LD_LIBRARY_PATH
  15403.   else
  15404.     # With GCC up to 2.95.x, collect2 would create an import file
  15405.     # for dependence libraries.  The import file would start with
  15406.     # the line `#! .'.  This would cause the generated library to
  15407.     # depend on `.', always an invalid library.  This was fixed in
  15408.     # development snapshots of GCC prior to 3.0.
  15409.     case $host_os in
  15410.       aix4 | aix4.[01] | aix4.[01].*)
  15411.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15412.            echo ' yes '
  15413.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  15414.         :
  15415.       else
  15416.         can_build_shared=no
  15417.       fi
  15418.       ;;
  15419.     esac
  15420.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15421.     # soname into executable. Probably we can add versioning support to
  15422.     # collect2, so additional links can be useful in future.
  15423.     if test "$aix_use_runtimelinking" = yes; then
  15424.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15425.       # instead of lib<name>.a to let people know that these are not
  15426.       # typical AIX shared libraries.
  15427.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15428.     else
  15429.       # We preserve .a as extension for shared libraries through AIX4.2
  15430.       # and later when we are not doing run time linking.
  15431.       library_names_spec='${libname}${release}.a $libname.a'
  15432.       soname_spec='${libname}${release}${shared_ext}$major'
  15433.     fi
  15434.     shlibpath_var=LIBPATH
  15435.   fi
  15436.   ;;
  15437.  
  15438. amigaos*)
  15439.   case $host_cpu in
  15440.   powerpc)
  15441.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  15442.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  15443.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15444.     ;;
  15445.   m68k)
  15446.     library_names_spec='$libname.ixlibrary $libname.a'
  15447.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15448.     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'
  15449.     ;;
  15450.   esac
  15451.   ;;
  15452.  
  15453. beos*)
  15454.   library_names_spec='${libname}${shared_ext}'
  15455.   dynamic_linker="$host_os ld.so"
  15456.   shlibpath_var=LIBRARY_PATH
  15457.   ;;
  15458.  
  15459. bsdi[45]*)
  15460.   version_type=linux # correct to gnu/linux during the next big refactor
  15461.   need_version=no
  15462.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15463.   soname_spec='${libname}${release}${shared_ext}$major'
  15464.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15465.   shlibpath_var=LD_LIBRARY_PATH
  15466.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15467.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15468.   # the default ld.so.conf also contains /usr/contrib/lib and
  15469.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15470.   # libtool to hard-code these into programs
  15471.   ;;
  15472.  
  15473. cygwin* | mingw* | pw32* | cegcc*)
  15474.   version_type=windows
  15475.   shrext_cmds=".dll"
  15476.   need_version=no
  15477.   need_lib_prefix=no
  15478.  
  15479.   case $GCC,$cc_basename in
  15480.   yes,*)
  15481.     # gcc
  15482.     library_names_spec='$libname.dll.a'
  15483.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15484.     postinstall_cmds='base_file=`basename \${file}`~
  15485.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  15486.       dldir=$destdir/`dirname \$dlpath`~
  15487.       test -d \$dldir || mkdir -p \$dldir~
  15488.       $install_prog $dir/$dlname \$dldir/$dlname~
  15489.       chmod a+x \$dldir/$dlname~
  15490.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15491.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15492.       fi'
  15493.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15494.       dlpath=$dir/\$dldll~
  15495.        $RM \$dlpath'
  15496.     shlibpath_overrides_runpath=yes
  15497.  
  15498.     case $host_os in
  15499.     cygwin*)
  15500.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15501.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15502.  
  15503.       ;;
  15504.     mingw* | cegcc*)
  15505.       # MinGW DLLs use traditional 'lib' prefix
  15506.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15507.       ;;
  15508.     pw32*)
  15509.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  15510.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15511.       ;;
  15512.     esac
  15513.     dynamic_linker='Win32 ld.exe'
  15514.     ;;
  15515.  
  15516.   *,cl*)
  15517.     # Native MSVC
  15518.     libname_spec='$name'
  15519.     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15520.     library_names_spec='${libname}.dll.lib'
  15521.  
  15522.     case $build_os in
  15523.     mingw*)
  15524.       sys_lib_search_path_spec=
  15525.       lt_save_ifs=$IFS
  15526.       IFS=';'
  15527.       for lt_path in $LIB
  15528.       do
  15529.         IFS=$lt_save_ifs
  15530.         # Let DOS variable expansion print the short 8.3 style file name.
  15531.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15532.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15533.       done
  15534.       IFS=$lt_save_ifs
  15535.       # Convert to MSYS style.
  15536.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  15537.       ;;
  15538.     cygwin*)
  15539.       # Convert to unix form, then to dos form, then back to unix form
  15540.       # but this time dos style (no spaces!) so that the unix form looks
  15541.       # like /cygdrive/c/PROGRA~1:/cygdr...
  15542.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15543.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15544.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15545.       ;;
  15546.     *)
  15547.       sys_lib_search_path_spec="$LIB"
  15548.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  15549.         # It is most probably a Windows format PATH.
  15550.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15551.       else
  15552.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15553.       fi
  15554.       # FIXME: find the short name or the path components, as spaces are
  15555.       # common. (e.g. "Program Files" -> "PROGRA~1")
  15556.       ;;
  15557.     esac
  15558.  
  15559.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15560.     postinstall_cmds='base_file=`basename \${file}`~
  15561.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  15562.       dldir=$destdir/`dirname \$dlpath`~
  15563.       test -d \$dldir || mkdir -p \$dldir~
  15564.       $install_prog $dir/$dlname \$dldir/$dlname'
  15565.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15566.       dlpath=$dir/\$dldll~
  15567.        $RM \$dlpath'
  15568.     shlibpath_overrides_runpath=yes
  15569.     dynamic_linker='Win32 link.exe'
  15570.     ;;
  15571.  
  15572.   *)
  15573.     # Assume MSVC wrapper
  15574.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15575.     dynamic_linker='Win32 ld.exe'
  15576.     ;;
  15577.   esac
  15578.   # FIXME: first we should search . and the directory the executable is in
  15579.   shlibpath_var=PATH
  15580.   ;;
  15581.  
  15582. darwin* | rhapsody*)
  15583.   dynamic_linker="$host_os dyld"
  15584.   version_type=darwin
  15585.   need_lib_prefix=no
  15586.   need_version=no
  15587.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15588.   soname_spec='${libname}${release}${major}$shared_ext'
  15589.   shlibpath_overrides_runpath=yes
  15590.   shlibpath_var=DYLD_LIBRARY_PATH
  15591.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15592.  
  15593.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15594.   ;;
  15595.  
  15596. dgux*)
  15597.   version_type=linux # correct to gnu/linux during the next big refactor
  15598.   need_lib_prefix=no
  15599.   need_version=no
  15600.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15601.   soname_spec='${libname}${release}${shared_ext}$major'
  15602.   shlibpath_var=LD_LIBRARY_PATH
  15603.   ;;
  15604.  
  15605. freebsd* | dragonfly*)
  15606.   # DragonFly does not have aout.  When/if they implement a new
  15607.   # versioning mechanism, adjust this.
  15608.   if test -x /usr/bin/objformat; then
  15609.     objformat=`/usr/bin/objformat`
  15610.   else
  15611.     case $host_os in
  15612.     freebsd[23].*) objformat=aout ;;
  15613.     *) objformat=elf ;;
  15614.     esac
  15615.   fi
  15616.   version_type=freebsd-$objformat
  15617.   case $version_type in
  15618.     freebsd-elf*)
  15619.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15620.       need_version=no
  15621.       need_lib_prefix=no
  15622.       ;;
  15623.     freebsd-*)
  15624.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15625.       need_version=yes
  15626.       ;;
  15627.   esac
  15628.   shlibpath_var=LD_LIBRARY_PATH
  15629.   case $host_os in
  15630.   freebsd2.*)
  15631.     shlibpath_overrides_runpath=yes
  15632.     ;;
  15633.   freebsd3.[01]* | freebsdelf3.[01]*)
  15634.     shlibpath_overrides_runpath=yes
  15635.     hardcode_into_libs=yes
  15636.     ;;
  15637.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15638.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15639.     shlibpath_overrides_runpath=no
  15640.     hardcode_into_libs=yes
  15641.     ;;
  15642.   *) # from 4.6 on, and DragonFly
  15643.     shlibpath_overrides_runpath=yes
  15644.     hardcode_into_libs=yes
  15645.     ;;
  15646.   esac
  15647.   ;;
  15648.  
  15649. haiku*)
  15650.   version_type=linux # correct to gnu/linux during the next big refactor
  15651.   need_lib_prefix=no
  15652.   need_version=no
  15653.   dynamic_linker="$host_os runtime_loader"
  15654.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15655.   soname_spec='${libname}${release}${shared_ext}$major'
  15656.   shlibpath_var=LIBRARY_PATH
  15657.   shlibpath_overrides_runpath=yes
  15658.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15659.   hardcode_into_libs=yes
  15660.   ;;
  15661.  
  15662. hpux9* | hpux10* | hpux11*)
  15663.   # Give a soname corresponding to the major version so that dld.sl refuses to
  15664.   # link against other versions.
  15665.   version_type=sunos
  15666.   need_lib_prefix=no
  15667.   need_version=no
  15668.   case $host_cpu in
  15669.   ia64*)
  15670.     shrext_cmds='.so'
  15671.     hardcode_into_libs=yes
  15672.     dynamic_linker="$host_os dld.so"
  15673.     shlibpath_var=LD_LIBRARY_PATH
  15674.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15675.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15676.     soname_spec='${libname}${release}${shared_ext}$major'
  15677.     if test "X$HPUX_IA64_MODE" = X32; then
  15678.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15679.     else
  15680.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15681.     fi
  15682.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15683.     ;;
  15684.   hppa*64*)
  15685.     shrext_cmds='.sl'
  15686.     hardcode_into_libs=yes
  15687.     dynamic_linker="$host_os dld.sl"
  15688.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15689.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15690.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15691.     soname_spec='${libname}${release}${shared_ext}$major'
  15692.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15693.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15694.     ;;
  15695.   *)
  15696.     shrext_cmds='.sl'
  15697.     dynamic_linker="$host_os dld.sl"
  15698.     shlibpath_var=SHLIB_PATH
  15699.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15700.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15701.     soname_spec='${libname}${release}${shared_ext}$major'
  15702.     ;;
  15703.   esac
  15704.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15705.   postinstall_cmds='chmod 555 $lib'
  15706.   # or fails outright, so override atomically:
  15707.   install_override_mode=555
  15708.   ;;
  15709.  
  15710. interix[3-9]*)
  15711.   version_type=linux # correct to gnu/linux during the next big refactor
  15712.   need_lib_prefix=no
  15713.   need_version=no
  15714.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15715.   soname_spec='${libname}${release}${shared_ext}$major'
  15716.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15717.   shlibpath_var=LD_LIBRARY_PATH
  15718.   shlibpath_overrides_runpath=no
  15719.   hardcode_into_libs=yes
  15720.   ;;
  15721.  
  15722. irix5* | irix6* | nonstopux*)
  15723.   case $host_os in
  15724.     nonstopux*) version_type=nonstopux ;;
  15725.     *)
  15726.         if test "$lt_cv_prog_gnu_ld" = yes; then
  15727.                 version_type=linux # correct to gnu/linux during the next big refactor
  15728.         else
  15729.                 version_type=irix
  15730.         fi ;;
  15731.   esac
  15732.   need_lib_prefix=no
  15733.   need_version=no
  15734.   soname_spec='${libname}${release}${shared_ext}$major'
  15735.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15736.   case $host_os in
  15737.   irix5* | nonstopux*)
  15738.     libsuff= shlibsuff=
  15739.     ;;
  15740.   *)
  15741.     case $LD in # libtool.m4 will add one of these switches to LD
  15742.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15743.       libsuff= shlibsuff= libmagic=32-bit;;
  15744.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15745.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  15746.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15747.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15748.     *) libsuff= shlibsuff= libmagic=never-match;;
  15749.     esac
  15750.     ;;
  15751.   esac
  15752.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15753.   shlibpath_overrides_runpath=no
  15754.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15755.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15756.   hardcode_into_libs=yes
  15757.   ;;
  15758.  
  15759. # No shared lib support for Linux oldld, aout, or coff.
  15760. linux*oldld* | linux*aout* | linux*coff*)
  15761.   dynamic_linker=no
  15762.   ;;
  15763.  
  15764. # This must be glibc/ELF.
  15765. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15766.   version_type=linux # correct to gnu/linux during the next big refactor
  15767.   need_lib_prefix=no
  15768.   need_version=no
  15769.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15770.   soname_spec='${libname}${release}${shared_ext}$major'
  15771.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15772.   shlibpath_var=LD_LIBRARY_PATH
  15773.   shlibpath_overrides_runpath=no
  15774.  
  15775.   # Some binutils ld are patched to set DT_RUNPATH
  15776.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  15777.   $as_echo_n "(cached) " >&6
  15778. else
  15779.   lt_cv_shlibpath_overrides_runpath=no
  15780.     save_LDFLAGS=$LDFLAGS
  15781.     save_libdir=$libdir
  15782.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15783.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15784.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15785. /* end confdefs.h.  */
  15786.  
  15787. int
  15788. main ()
  15789. {
  15790.  
  15791.   ;
  15792.   return 0;
  15793. }
  15794. _ACEOF
  15795. if ac_fn_cxx_try_link "$LINENO"; then :
  15796.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  15797.   lt_cv_shlibpath_overrides_runpath=yes
  15798. fi
  15799. fi
  15800. rm -f core conftest.err conftest.$ac_objext \
  15801.     conftest$ac_exeext conftest.$ac_ext
  15802.     LDFLAGS=$save_LDFLAGS
  15803.     libdir=$save_libdir
  15804.  
  15805. fi
  15806.  
  15807.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15808.  
  15809.   # This implies no fast_install, which is unacceptable.
  15810.   # Some rework will be needed to allow for fast_install
  15811.   # before this can be enabled.
  15812.   hardcode_into_libs=yes
  15813.  
  15814.   # Append ld.so.conf contents to the search path
  15815.   if test -f /etc/ld.so.conf; then
  15816.     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' ' '`
  15817.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15818.   fi
  15819.  
  15820.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  15821.   # powerpc, because MkLinux only supported shared libraries with the
  15822.   # GNU dynamic linker.  Since this was broken with cross compilers,
  15823.   # most powerpc-linux boxes support dynamic linking these days and
  15824.   # people can always --disable-shared, the test was removed, and we
  15825.   # assume the GNU/Linux dynamic linker is in use.
  15826.   dynamic_linker='GNU/Linux ld.so'
  15827.   ;;
  15828.  
  15829. netbsdelf*-gnu)
  15830.   version_type=linux
  15831.   need_lib_prefix=no
  15832.   need_version=no
  15833.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15834.   soname_spec='${libname}${release}${shared_ext}$major'
  15835.   shlibpath_var=LD_LIBRARY_PATH
  15836.   shlibpath_overrides_runpath=no
  15837.   hardcode_into_libs=yes
  15838.   dynamic_linker='NetBSD ld.elf_so'
  15839.   ;;
  15840.  
  15841. netbsd*)
  15842.   version_type=sunos
  15843.   need_lib_prefix=no
  15844.   need_version=no
  15845.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15846.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15847.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15848.     dynamic_linker='NetBSD (a.out) ld.so'
  15849.   else
  15850.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15851.     soname_spec='${libname}${release}${shared_ext}$major'
  15852.     dynamic_linker='NetBSD ld.elf_so'
  15853.   fi
  15854.   shlibpath_var=LD_LIBRARY_PATH
  15855.   shlibpath_overrides_runpath=yes
  15856.   hardcode_into_libs=yes
  15857.   ;;
  15858.  
  15859. newsos6)
  15860.   version_type=linux # correct to gnu/linux during the next big refactor
  15861.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15862.   shlibpath_var=LD_LIBRARY_PATH
  15863.   shlibpath_overrides_runpath=yes
  15864.   ;;
  15865.  
  15866. *nto* | *qnx*)
  15867.   version_type=qnx
  15868.   need_lib_prefix=no
  15869.   need_version=no
  15870.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15871.   soname_spec='${libname}${release}${shared_ext}$major'
  15872.   shlibpath_var=LD_LIBRARY_PATH
  15873.   shlibpath_overrides_runpath=no
  15874.   hardcode_into_libs=yes
  15875.   dynamic_linker='ldqnx.so'
  15876.   ;;
  15877.  
  15878. openbsd*)
  15879.   version_type=sunos
  15880.   sys_lib_dlsearch_path_spec="/usr/lib"
  15881.   need_lib_prefix=no
  15882.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15883.   case $host_os in
  15884.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  15885.     *)                          need_version=no  ;;
  15886.   esac
  15887.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15888.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15889.   shlibpath_var=LD_LIBRARY_PATH
  15890.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15891.     case $host_os in
  15892.       openbsd2.[89] | openbsd2.[89].*)
  15893.         shlibpath_overrides_runpath=no
  15894.         ;;
  15895.       *)
  15896.         shlibpath_overrides_runpath=yes
  15897.         ;;
  15898.       esac
  15899.   else
  15900.     shlibpath_overrides_runpath=yes
  15901.   fi
  15902.   ;;
  15903.  
  15904. os2*)
  15905.   libname_spec='$name'
  15906.   shrext_cmds=".dll"
  15907.   need_lib_prefix=no
  15908.   library_names_spec='$libname${shared_ext} $libname.a'
  15909.   dynamic_linker='OS/2 ld.exe'
  15910.   shlibpath_var=LIBPATH
  15911.   ;;
  15912.  
  15913. osf3* | osf4* | osf5*)
  15914.   version_type=osf
  15915.   need_lib_prefix=no
  15916.   need_version=no
  15917.   soname_spec='${libname}${release}${shared_ext}$major'
  15918.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15919.   shlibpath_var=LD_LIBRARY_PATH
  15920.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15921.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15922.   ;;
  15923.  
  15924. rdos*)
  15925.   dynamic_linker=no
  15926.   ;;
  15927.  
  15928. solaris*)
  15929.   version_type=linux # correct to gnu/linux during the next big refactor
  15930.   need_lib_prefix=no
  15931.   need_version=no
  15932.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15933.   soname_spec='${libname}${release}${shared_ext}$major'
  15934.   shlibpath_var=LD_LIBRARY_PATH
  15935.   shlibpath_overrides_runpath=yes
  15936.   hardcode_into_libs=yes
  15937.   # ldd complains unless libraries are executable
  15938.   postinstall_cmds='chmod +x $lib'
  15939.   ;;
  15940.  
  15941. sunos4*)
  15942.   version_type=sunos
  15943.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15944.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15945.   shlibpath_var=LD_LIBRARY_PATH
  15946.   shlibpath_overrides_runpath=yes
  15947.   if test "$with_gnu_ld" = yes; then
  15948.     need_lib_prefix=no
  15949.   fi
  15950.   need_version=yes
  15951.   ;;
  15952.  
  15953. sysv4 | sysv4.3*)
  15954.   version_type=linux # correct to gnu/linux during the next big refactor
  15955.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15956.   soname_spec='${libname}${release}${shared_ext}$major'
  15957.   shlibpath_var=LD_LIBRARY_PATH
  15958.   case $host_vendor in
  15959.     sni)
  15960.       shlibpath_overrides_runpath=no
  15961.       need_lib_prefix=no
  15962.       runpath_var=LD_RUN_PATH
  15963.       ;;
  15964.     siemens)
  15965.       need_lib_prefix=no
  15966.       ;;
  15967.     motorola)
  15968.       need_lib_prefix=no
  15969.       need_version=no
  15970.       shlibpath_overrides_runpath=no
  15971.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15972.       ;;
  15973.   esac
  15974.   ;;
  15975.  
  15976. sysv4*MP*)
  15977.   if test -d /usr/nec ;then
  15978.     version_type=linux # correct to gnu/linux during the next big refactor
  15979.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15980.     soname_spec='$libname${shared_ext}.$major'
  15981.     shlibpath_var=LD_LIBRARY_PATH
  15982.   fi
  15983.   ;;
  15984.  
  15985. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15986.   version_type=freebsd-elf
  15987.   need_lib_prefix=no
  15988.   need_version=no
  15989.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15990.   soname_spec='${libname}${release}${shared_ext}$major'
  15991.   shlibpath_var=LD_LIBRARY_PATH
  15992.   shlibpath_overrides_runpath=yes
  15993.   hardcode_into_libs=yes
  15994.   if test "$with_gnu_ld" = yes; then
  15995.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15996.   else
  15997.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15998.     case $host_os in
  15999.       sco3.2v5*)
  16000.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16001.         ;;
  16002.     esac
  16003.   fi
  16004.   sys_lib_dlsearch_path_spec='/usr/lib'
  16005.   ;;
  16006.  
  16007. tpf*)
  16008.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  16009.   version_type=linux # correct to gnu/linux during the next big refactor
  16010.   need_lib_prefix=no
  16011.   need_version=no
  16012.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16013.   shlibpath_var=LD_LIBRARY_PATH
  16014.   shlibpath_overrides_runpath=no
  16015.   hardcode_into_libs=yes
  16016.   ;;
  16017.  
  16018. uts4*)
  16019.   version_type=linux # correct to gnu/linux during the next big refactor
  16020.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16021.   soname_spec='${libname}${release}${shared_ext}$major'
  16022.   shlibpath_var=LD_LIBRARY_PATH
  16023.   ;;
  16024.  
  16025. *)
  16026.   dynamic_linker=no
  16027.   ;;
  16028. esac
  16029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  16030. $as_echo "$dynamic_linker" >&6; }
  16031. test "$dynamic_linker" = no && can_build_shared=no
  16032.  
  16033. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16034. if test "$GCC" = yes; then
  16035.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16036. fi
  16037.  
  16038. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  16039.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  16040. fi
  16041. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  16042.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  16043. fi
  16044.  
  16045.  
  16046.  
  16047.  
  16048.  
  16049.  
  16050.  
  16051.  
  16052.  
  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.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  16083. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  16084. hardcode_action_CXX=
  16085. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  16086.    test -n "$runpath_var_CXX" ||
  16087.    test "X$hardcode_automatic_CXX" = "Xyes" ; then
  16088.  
  16089.   # We can hardcode non-existent directories.
  16090.   if test "$hardcode_direct_CXX" != no &&
  16091.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16092.      # have to relink, otherwise we might link with an installed library
  16093.      # when we should be linking with a yet-to-be-installed one
  16094.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  16095.      test "$hardcode_minus_L_CXX" != no; then
  16096.     # Linking always hardcodes the temporary library directory.
  16097.     hardcode_action_CXX=relink
  16098.   else
  16099.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16100.     hardcode_action_CXX=immediate
  16101.   fi
  16102. else
  16103.   # We cannot hardcode anything, or else we can only hardcode existing
  16104.   # directories.
  16105.   hardcode_action_CXX=unsupported
  16106. fi
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  16108. $as_echo "$hardcode_action_CXX" >&6; }
  16109.  
  16110. if test "$hardcode_action_CXX" = relink ||
  16111.    test "$inherit_rpath_CXX" = yes; then
  16112.   # Fast installation is not supported
  16113.   enable_fast_install=no
  16114. elif test "$shlibpath_overrides_runpath" = yes ||
  16115.      test "$enable_shared" = no; then
  16116.   # Fast installation is not necessary
  16117.   enable_fast_install=needless
  16118. fi
  16119.  
  16120.  
  16121.  
  16122.  
  16123.  
  16124.  
  16125.  
  16126.   fi # test -n "$compiler"
  16127.  
  16128.   CC=$lt_save_CC
  16129.   CFLAGS=$lt_save_CFLAGS
  16130.   LDCXX=$LD
  16131.   LD=$lt_save_LD
  16132.   GCC=$lt_save_GCC
  16133.   with_gnu_ld=$lt_save_with_gnu_ld
  16134.   lt_cv_path_LDCXX=$lt_cv_path_LD
  16135.   lt_cv_path_LD=$lt_save_path_LD
  16136.   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  16137.   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  16138. fi # test "$_lt_caught_CXX_error" != yes
  16139.  
  16140. ac_ext=c
  16141. ac_cpp='$CPP $CPPFLAGS'
  16142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16145.  
  16146.  
  16147.  
  16148.  
  16149.  
  16150.  
  16151.  
  16152.  
  16153.  
  16154.  
  16155. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  16156.         if test -n "$ac_tool_prefix"; then
  16157.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  16158. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16160. $as_echo_n "checking for $ac_word... " >&6; }
  16161. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16162.   $as_echo_n "(cached) " >&6
  16163. else
  16164.   case $PKG_CONFIG in
  16165.   [\\/]* | ?:[\\/]*)
  16166.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16167.   ;;
  16168.   *)
  16169.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16170. for as_dir in $PATH
  16171. do
  16172.   IFS=$as_save_IFS
  16173.   test -z "$as_dir" && as_dir=.
  16174.     for ac_exec_ext in '' $ac_executable_extensions; do
  16175.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16176.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16177.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16178.     break 2
  16179.   fi
  16180. done
  16181.   done
  16182. IFS=$as_save_IFS
  16183.  
  16184.   ;;
  16185. esac
  16186. fi
  16187. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16188. if test -n "$PKG_CONFIG"; then
  16189.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16190. $as_echo "$PKG_CONFIG" >&6; }
  16191. else
  16192.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16193. $as_echo "no" >&6; }
  16194. fi
  16195.  
  16196.  
  16197. fi
  16198. if test -z "$ac_cv_path_PKG_CONFIG"; then
  16199.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  16200.   # Extract the first word of "pkg-config", so it can be a program name with args.
  16201. set dummy pkg-config; ac_word=$2
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16203. $as_echo_n "checking for $ac_word... " >&6; }
  16204. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  16205.   $as_echo_n "(cached) " >&6
  16206. else
  16207.   case $ac_pt_PKG_CONFIG in
  16208.   [\\/]* | ?:[\\/]*)
  16209.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  16210.   ;;
  16211.   *)
  16212.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16213. for as_dir in $PATH
  16214. do
  16215.   IFS=$as_save_IFS
  16216.   test -z "$as_dir" && as_dir=.
  16217.     for ac_exec_ext in '' $ac_executable_extensions; do
  16218.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16219.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16220.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16221.     break 2
  16222.   fi
  16223. done
  16224.   done
  16225. IFS=$as_save_IFS
  16226.  
  16227.   ;;
  16228. esac
  16229. fi
  16230. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  16231. if test -n "$ac_pt_PKG_CONFIG"; then
  16232.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  16233. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  16234. else
  16235.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16236. $as_echo "no" >&6; }
  16237. fi
  16238.  
  16239.   if test "x$ac_pt_PKG_CONFIG" = x; then
  16240.     PKG_CONFIG=""
  16241.   else
  16242.     case $cross_compiling:$ac_tool_warned in
  16243. yes:)
  16244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16245. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16246. ac_tool_warned=yes ;;
  16247. esac
  16248.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  16249.   fi
  16250. else
  16251.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  16252. fi
  16253.  
  16254. fi
  16255. if test -n "$PKG_CONFIG"; then
  16256.         _pkg_min_version=0.9.0
  16257.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  16258. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  16259.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  16260.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16261. $as_echo "yes" >&6; }
  16262.         else
  16263.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16264. $as_echo "no" >&6; }
  16265.                 PKG_CONFIG=""
  16266.         fi
  16267. fi
  16268.  
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  16270. $as_echo_n "checking for ANSI C header files... " >&6; }
  16271. if ${ac_cv_header_stdc+:} false; then :
  16272.   $as_echo_n "(cached) " >&6
  16273. else
  16274.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16275. /* end confdefs.h.  */
  16276. #include <stdlib.h>
  16277. #include <stdarg.h>
  16278. #include <string.h>
  16279. #include <float.h>
  16280.  
  16281. int
  16282. main ()
  16283. {
  16284.  
  16285.   ;
  16286.   return 0;
  16287. }
  16288. _ACEOF
  16289. if ac_fn_c_try_compile "$LINENO"; then :
  16290.   ac_cv_header_stdc=yes
  16291. else
  16292.   ac_cv_header_stdc=no
  16293. fi
  16294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16295.  
  16296. if test $ac_cv_header_stdc = yes; then
  16297.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  16298.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16299. /* end confdefs.h.  */
  16300. #include <string.h>
  16301.  
  16302. _ACEOF
  16303. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16304.   $EGREP "memchr" >/dev/null 2>&1; then :
  16305.  
  16306. else
  16307.   ac_cv_header_stdc=no
  16308. fi
  16309. rm -f conftest*
  16310.  
  16311. fi
  16312.  
  16313. if test $ac_cv_header_stdc = yes; then
  16314.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  16315.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16316. /* end confdefs.h.  */
  16317. #include <stdlib.h>
  16318.  
  16319. _ACEOF
  16320. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16321.   $EGREP "free" >/dev/null 2>&1; then :
  16322.  
  16323. else
  16324.   ac_cv_header_stdc=no
  16325. fi
  16326. rm -f conftest*
  16327.  
  16328. fi
  16329.  
  16330. if test $ac_cv_header_stdc = yes; then
  16331.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  16332.   if test "$cross_compiling" = yes; then :
  16333.   :
  16334. else
  16335.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16336. /* end confdefs.h.  */
  16337. #include <ctype.h>
  16338. #include <stdlib.h>
  16339. #if ((' ' & 0x0FF) == 0x020)
  16340. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  16341. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  16342. #else
  16343. # define ISLOWER(c) \
  16344.                    (('a' <= (c) && (c) <= 'i') \
  16345.                      || ('j' <= (c) && (c) <= 'r') \
  16346.                      || ('s' <= (c) && (c) <= 'z'))
  16347. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  16348. #endif
  16349.  
  16350. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  16351. int
  16352. main ()
  16353. {
  16354.   int i;
  16355.   for (i = 0; i < 256; i++)
  16356.     if (XOR (islower (i), ISLOWER (i))
  16357.         || toupper (i) != TOUPPER (i))
  16358.       return 2;
  16359.   return 0;
  16360. }
  16361. _ACEOF
  16362. if ac_fn_c_try_run "$LINENO"; then :
  16363.  
  16364. else
  16365.   ac_cv_header_stdc=no
  16366. fi
  16367. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16368.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  16369. fi
  16370.  
  16371. fi
  16372. fi
  16373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  16374. $as_echo "$ac_cv_header_stdc" >&6; }
  16375. if test $ac_cv_header_stdc = yes; then
  16376.  
  16377. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  16378.  
  16379. fi
  16380.  
  16381. # Check whether --enable-largefile was given.
  16382. if test "${enable_largefile+set}" = set; then :
  16383.   enableval=$enable_largefile;
  16384. fi
  16385.  
  16386. if test "$enable_largefile" != no; then
  16387.  
  16388.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16389. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16390. if ${ac_cv_sys_largefile_CC+:} false; then :
  16391.   $as_echo_n "(cached) " >&6
  16392. else
  16393.   ac_cv_sys_largefile_CC=no
  16394.      if test "$GCC" != yes; then
  16395.        ac_save_CC=$CC
  16396.        while :; do
  16397.          # IRIX 6.2 and later do not support large files by default,
  16398.          # so use the C compiler's -n32 option if that helps.
  16399.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16400. /* end confdefs.h.  */
  16401. #include <sys/types.h>
  16402.  /* Check that off_t can represent 2**63 - 1 correctly.
  16403.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16404.     since some C++ compilers masquerading as C compilers
  16405.     incorrectly reject 9223372036854775807.  */
  16406. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16407.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16408.                        && LARGE_OFF_T % 2147483647 == 1)
  16409.                       ? 1 : -1];
  16410. int
  16411. main ()
  16412. {
  16413.  
  16414.   ;
  16415.   return 0;
  16416. }
  16417. _ACEOF
  16418.          if ac_fn_c_try_compile "$LINENO"; then :
  16419.   break
  16420. fi
  16421. rm -f core conftest.err conftest.$ac_objext
  16422.          CC="$CC -n32"
  16423.          if ac_fn_c_try_compile "$LINENO"; then :
  16424.   ac_cv_sys_largefile_CC=' -n32'; break
  16425. fi
  16426. rm -f core conftest.err conftest.$ac_objext
  16427.          break
  16428.        done
  16429.        CC=$ac_save_CC
  16430.        rm -f conftest.$ac_ext
  16431.     fi
  16432. fi
  16433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16434. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16435.   if test "$ac_cv_sys_largefile_CC" != no; then
  16436.     CC=$CC$ac_cv_sys_largefile_CC
  16437.   fi
  16438.  
  16439.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16440. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16441. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16442.   $as_echo_n "(cached) " >&6
  16443. else
  16444.   while :; do
  16445.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16446. /* end confdefs.h.  */
  16447. #include <sys/types.h>
  16448.  /* Check that off_t can represent 2**63 - 1 correctly.
  16449.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16450.     since some C++ compilers masquerading as C compilers
  16451.     incorrectly reject 9223372036854775807.  */
  16452. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16453.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16454.                        && LARGE_OFF_T % 2147483647 == 1)
  16455.                       ? 1 : -1];
  16456. int
  16457. main ()
  16458. {
  16459.  
  16460.   ;
  16461.   return 0;
  16462. }
  16463. _ACEOF
  16464. if ac_fn_c_try_compile "$LINENO"; then :
  16465.   ac_cv_sys_file_offset_bits=no; break
  16466. fi
  16467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16468.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16469. /* end confdefs.h.  */
  16470. #define _FILE_OFFSET_BITS 64
  16471. #include <sys/types.h>
  16472.  /* Check that off_t can represent 2**63 - 1 correctly.
  16473.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16474.     since some C++ compilers masquerading as C compilers
  16475.     incorrectly reject 9223372036854775807.  */
  16476. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16477.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16478.                        && LARGE_OFF_T % 2147483647 == 1)
  16479.                       ? 1 : -1];
  16480. int
  16481. main ()
  16482. {
  16483.  
  16484.   ;
  16485.   return 0;
  16486. }
  16487. _ACEOF
  16488. if ac_fn_c_try_compile "$LINENO"; then :
  16489.   ac_cv_sys_file_offset_bits=64; break
  16490. fi
  16491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16492.   ac_cv_sys_file_offset_bits=unknown
  16493.   break
  16494. done
  16495. fi
  16496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16497. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16498. case $ac_cv_sys_file_offset_bits in #(
  16499.   no | unknown) ;;
  16500.   *)
  16501. cat >>confdefs.h <<_ACEOF
  16502. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16503. _ACEOF
  16504. ;;
  16505. esac
  16506. rm -rf conftest*
  16507.   if test $ac_cv_sys_file_offset_bits = unknown; then
  16508.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16509. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16510. if ${ac_cv_sys_large_files+:} false; then :
  16511.   $as_echo_n "(cached) " >&6
  16512. else
  16513.   while :; do
  16514.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16515. /* end confdefs.h.  */
  16516. #include <sys/types.h>
  16517.  /* Check that off_t can represent 2**63 - 1 correctly.
  16518.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16519.     since some C++ compilers masquerading as C compilers
  16520.     incorrectly reject 9223372036854775807.  */
  16521. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16522.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16523.                        && LARGE_OFF_T % 2147483647 == 1)
  16524.                       ? 1 : -1];
  16525. int
  16526. main ()
  16527. {
  16528.  
  16529.   ;
  16530.   return 0;
  16531. }
  16532. _ACEOF
  16533. if ac_fn_c_try_compile "$LINENO"; then :
  16534.   ac_cv_sys_large_files=no; break
  16535. fi
  16536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16537.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16538. /* end confdefs.h.  */
  16539. #define _LARGE_FILES 1
  16540. #include <sys/types.h>
  16541.  /* Check that off_t can represent 2**63 - 1 correctly.
  16542.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16543.     since some C++ compilers masquerading as C compilers
  16544.     incorrectly reject 9223372036854775807.  */
  16545. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16546.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16547.                        && LARGE_OFF_T % 2147483647 == 1)
  16548.                       ? 1 : -1];
  16549. int
  16550. main ()
  16551. {
  16552.  
  16553.   ;
  16554.   return 0;
  16555. }
  16556. _ACEOF
  16557. if ac_fn_c_try_compile "$LINENO"; then :
  16558.   ac_cv_sys_large_files=1; break
  16559. fi
  16560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16561.   ac_cv_sys_large_files=unknown
  16562.   break
  16563. done
  16564. fi
  16565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16566. $as_echo "$ac_cv_sys_large_files" >&6; }
  16567. case $ac_cv_sys_large_files in #(
  16568.   no | unknown) ;;
  16569.   *)
  16570. cat >>confdefs.h <<_ACEOF
  16571. #define _LARGE_FILES $ac_cv_sys_large_files
  16572. _ACEOF
  16573. ;;
  16574. esac
  16575. rm -rf conftest*
  16576.   fi
  16577.  
  16578.  
  16579. fi
  16580.  
  16581.  
  16582. # Check for Doxygen
  16583. if test "$enable_docs" = "yes"; then
  16584.     if test -n "$ac_tool_prefix"; then
  16585.   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
  16586. set dummy ${ac_tool_prefix}doxygen; ac_word=$2
  16587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16588. $as_echo_n "checking for $ac_word... " >&6; }
  16589. if ${ac_cv_prog_DOXYGEN+:} false; then :
  16590.   $as_echo_n "(cached) " >&6
  16591. else
  16592.   if test -n "$DOXYGEN"; then
  16593.   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
  16594. else
  16595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16596. for as_dir in $PATH
  16597. do
  16598.   IFS=$as_save_IFS
  16599.   test -z "$as_dir" && as_dir=.
  16600.     for ac_exec_ext in '' $ac_executable_extensions; do
  16601.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16602.     ac_cv_prog_DOXYGEN="${ac_tool_prefix}doxygen"
  16603.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16604.     break 2
  16605.   fi
  16606. done
  16607.   done
  16608. IFS=$as_save_IFS
  16609.  
  16610. fi
  16611. fi
  16612. DOXYGEN=$ac_cv_prog_DOXYGEN
  16613. if test -n "$DOXYGEN"; then
  16614.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  16615. $as_echo "$DOXYGEN" >&6; }
  16616. else
  16617.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16618. $as_echo "no" >&6; }
  16619. fi
  16620.  
  16621.  
  16622. fi
  16623. if test -z "$ac_cv_prog_DOXYGEN"; then
  16624.   ac_ct_DOXYGEN=$DOXYGEN
  16625.   # Extract the first word of "doxygen", so it can be a program name with args.
  16626. set dummy doxygen; ac_word=$2
  16627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16628. $as_echo_n "checking for $ac_word... " >&6; }
  16629. if ${ac_cv_prog_ac_ct_DOXYGEN+:} false; then :
  16630.   $as_echo_n "(cached) " >&6
  16631. else
  16632.   if test -n "$ac_ct_DOXYGEN"; then
  16633.   ac_cv_prog_ac_ct_DOXYGEN="$ac_ct_DOXYGEN" # Let the user override the test.
  16634. else
  16635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16636. for as_dir in $PATH
  16637. do
  16638.   IFS=$as_save_IFS
  16639.   test -z "$as_dir" && as_dir=.
  16640.     for ac_exec_ext in '' $ac_executable_extensions; do
  16641.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16642.     ac_cv_prog_ac_ct_DOXYGEN="doxygen"
  16643.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16644.     break 2
  16645.   fi
  16646. done
  16647.   done
  16648. IFS=$as_save_IFS
  16649.  
  16650. fi
  16651. fi
  16652. ac_ct_DOXYGEN=$ac_cv_prog_ac_ct_DOXYGEN
  16653. if test -n "$ac_ct_DOXYGEN"; then
  16654.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOXYGEN" >&5
  16655. $as_echo "$ac_ct_DOXYGEN" >&6; }
  16656. else
  16657.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16658. $as_echo "no" >&6; }
  16659. fi
  16660.  
  16661.   if test "x$ac_ct_DOXYGEN" = x; then
  16662.     DOXYGEN="no"
  16663.   else
  16664.     case $cross_compiling:$ac_tool_warned in
  16665. yes:)
  16666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16667. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16668. ac_tool_warned=yes ;;
  16669. esac
  16670.     DOXYGEN=$ac_ct_DOXYGEN
  16671.   fi
  16672. else
  16673.   DOXYGEN="$ac_cv_prog_DOXYGEN"
  16674. fi
  16675.  
  16676.     if test "$DOXYGEN" = "no"; then
  16677.        enable_docs="no"
  16678.     fi
  16679. fi
  16680.  if test "$enable_docs" = "yes"; then
  16681.   ENABLE_DOCS_TRUE=
  16682.   ENABLE_DOCS_FALSE='#'
  16683. else
  16684.   ENABLE_DOCS_TRUE='#'
  16685.   ENABLE_DOCS_FALSE=
  16686. fi
  16687.  
  16688.  
  16689. # Check for __attribute__((visibility()))
  16690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
  16691. $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
  16692. if ${ac_cv_have_gnuc_visibility_attribute+:} false; then :
  16693.   $as_echo_n "(cached) " >&6
  16694. else
  16695.   cat > conftest.c <<EOF
  16696. int foo __attribute__ ((visibility ("hidden"))) = 1;
  16697. int bar __attribute__ ((visibility ("protected"))) = 1;
  16698. EOF
  16699.     ac_cv_have_gnuc_visibility_attribute="no"
  16700.     if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
  16701.         if grep '\.hidden.*foo' conftest.s >/dev/null; then
  16702.             if grep '\.protected.*bar' conftest.s >/dev/null; then
  16703.                 ac_cv_have_gnuc_visibility_attribute="yes"
  16704.             fi
  16705.         fi
  16706.     fi
  16707.     rm -f conftest.cs
  16708.  
  16709. fi
  16710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_gnuc_visibility_attribute" >&5
  16711. $as_echo "$ac_cv_have_gnuc_visibility_attribute" >&6; }
  16712. if test "$ac_cv_have_gnuc_visibility_attribute" = "yes"; then
  16713.  
  16714. $as_echo "#define HAVE_GNUC_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
  16715.  
  16716. fi
  16717.  
  16718. # Check for DRM (mandatory)
  16719. LIBDRM_VERSION=2.4
  16720.  
  16721. pkg_failed=no
  16722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
  16723. $as_echo_n "checking for DRM... " >&6; }
  16724.  
  16725. if test -n "$DRM_CFLAGS"; then
  16726.     pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
  16727.  elif test -n "$PKG_CONFIG"; then
  16728.     if test -n "$PKG_CONFIG" && \
  16729.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_VERSION\""; } >&5
  16730.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_VERSION") 2>&5
  16731.   ac_status=$?
  16732.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16733.   test $ac_status = 0; }; then
  16734.   pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= $LIBDRM_VERSION" 2>/dev/null`
  16735.                       test "x$?" != "x0" && pkg_failed=yes
  16736. else
  16737.   pkg_failed=yes
  16738. fi
  16739.  else
  16740.     pkg_failed=untried
  16741. fi
  16742. if test -n "$DRM_LIBS"; then
  16743.     pkg_cv_DRM_LIBS="$DRM_LIBS"
  16744.  elif test -n "$PKG_CONFIG"; then
  16745.     if test -n "$PKG_CONFIG" && \
  16746.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_VERSION\""; } >&5
  16747.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_VERSION") 2>&5
  16748.   ac_status=$?
  16749.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16750.   test $ac_status = 0; }; then
  16751.   pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= $LIBDRM_VERSION" 2>/dev/null`
  16752.                       test "x$?" != "x0" && pkg_failed=yes
  16753. else
  16754.   pkg_failed=yes
  16755. fi
  16756.  else
  16757.     pkg_failed=untried
  16758. fi
  16759.  
  16760.  
  16761.  
  16762. if test $pkg_failed = yes; then
  16763.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16764. $as_echo "no" >&6; }
  16765.  
  16766. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16767.         _pkg_short_errors_supported=yes
  16768. else
  16769.         _pkg_short_errors_supported=no
  16770. fi
  16771.         if test $_pkg_short_errors_supported = yes; then
  16772.                 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= $LIBDRM_VERSION" 2>&1`
  16773.         else
  16774.                 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= $LIBDRM_VERSION" 2>&1`
  16775.         fi
  16776.         # Put the nasty error message in config.log where it belongs
  16777.         echo "$DRM_PKG_ERRORS" >&5
  16778.  
  16779.         as_fn_error $? "Package requirements (libdrm >= $LIBDRM_VERSION) were not met:
  16780.  
  16781. $DRM_PKG_ERRORS
  16782.  
  16783. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16784. installed software in a non-standard prefix.
  16785.  
  16786. Alternatively, you may set the environment variables DRM_CFLAGS
  16787. and DRM_LIBS to avoid the need to call pkg-config.
  16788. See the pkg-config man page for more details." "$LINENO" 5
  16789. elif test $pkg_failed = untried; then
  16790.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16791. $as_echo "no" >&6; }
  16792.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16793. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16794. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  16795. is in your PATH or set the PKG_CONFIG environment variable to the full
  16796. path to pkg-config.
  16797.  
  16798. Alternatively, you may set the environment variables DRM_CFLAGS
  16799. and DRM_LIBS to avoid the need to call pkg-config.
  16800. See the pkg-config man page for more details.
  16801.  
  16802. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16803. See \`config.log' for more details" "$LINENO" 5; }
  16804. else
  16805.         DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
  16806.         DRM_LIBS=$pkg_cv_DRM_LIBS
  16807.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16808. $as_echo "yes" >&6; }
  16809.  
  16810. fi
  16811.  
  16812.  
  16813. USE_DRM="no"
  16814. if test "$enable_drm" = "yes"; then
  16815.     USE_DRM="yes"
  16816.  
  16817. $as_echo "#define HAVE_VA_DRM 1" >>confdefs.h
  16818.  
  16819. fi
  16820.  if test "$USE_DRM" = "yes"; then
  16821.   USE_DRM_TRUE=
  16822.   USE_DRM_FALSE='#'
  16823. else
  16824.   USE_DRM_TRUE='#'
  16825.   USE_DRM_FALSE=
  16826. fi
  16827.  
  16828.  
  16829. # Check for X11
  16830. USE_X11="no"
  16831. if test "$enable_x11" = "yes"; then
  16832.     USE_X11="yes"
  16833.  
  16834. pkg_failed=no
  16835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
  16836. $as_echo_n "checking for X11... " >&6; }
  16837.  
  16838. if test -n "$X11_CFLAGS"; then
  16839.     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
  16840.  elif test -n "$PKG_CONFIG"; then
  16841.     if test -n "$PKG_CONFIG" && \
  16842.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
  16843.   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
  16844.   ac_status=$?
  16845.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16846.   test $ac_status = 0; }; then
  16847.   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
  16848.                       test "x$?" != "x0" && pkg_failed=yes
  16849. else
  16850.   pkg_failed=yes
  16851. fi
  16852.  else
  16853.     pkg_failed=untried
  16854. fi
  16855. if test -n "$X11_LIBS"; then
  16856.     pkg_cv_X11_LIBS="$X11_LIBS"
  16857.  elif test -n "$PKG_CONFIG"; then
  16858.     if test -n "$PKG_CONFIG" && \
  16859.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
  16860.   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
  16861.   ac_status=$?
  16862.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16863.   test $ac_status = 0; }; then
  16864.   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
  16865.                       test "x$?" != "x0" && pkg_failed=yes
  16866. else
  16867.   pkg_failed=yes
  16868. fi
  16869.  else
  16870.     pkg_failed=untried
  16871. fi
  16872.  
  16873.  
  16874.  
  16875. if test $pkg_failed = yes; then
  16876.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16877. $as_echo "no" >&6; }
  16878.  
  16879. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16880.         _pkg_short_errors_supported=yes
  16881. else
  16882.         _pkg_short_errors_supported=no
  16883. fi
  16884.         if test $_pkg_short_errors_supported = yes; then
  16885.                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
  16886.         else
  16887.                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
  16888.         fi
  16889.         # Put the nasty error message in config.log where it belongs
  16890.         echo "$X11_PKG_ERRORS" >&5
  16891.  
  16892.         USE_X11="no"
  16893. elif test $pkg_failed = untried; then
  16894.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16895. $as_echo "no" >&6; }
  16896.         USE_X11="no"
  16897. else
  16898.         X11_CFLAGS=$pkg_cv_X11_CFLAGS
  16899.         X11_LIBS=$pkg_cv_X11_LIBS
  16900.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16901. $as_echo "yes" >&6; }
  16902.         :
  16903. fi
  16904.  
  16905. pkg_failed=no
  16906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
  16907. $as_echo_n "checking for XEXT... " >&6; }
  16908.  
  16909. if test -n "$XEXT_CFLAGS"; then
  16910.     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
  16911.  elif test -n "$PKG_CONFIG"; then
  16912.     if test -n "$PKG_CONFIG" && \
  16913.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
  16914.   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
  16915.   ac_status=$?
  16916.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16917.   test $ac_status = 0; }; then
  16918.   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
  16919.                       test "x$?" != "x0" && pkg_failed=yes
  16920. else
  16921.   pkg_failed=yes
  16922. fi
  16923.  else
  16924.     pkg_failed=untried
  16925. fi
  16926. if test -n "$XEXT_LIBS"; then
  16927.     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
  16928.  elif test -n "$PKG_CONFIG"; then
  16929.     if test -n "$PKG_CONFIG" && \
  16930.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
  16931.   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
  16932.   ac_status=$?
  16933.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16934.   test $ac_status = 0; }; then
  16935.   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
  16936.                       test "x$?" != "x0" && pkg_failed=yes
  16937. else
  16938.   pkg_failed=yes
  16939. fi
  16940.  else
  16941.     pkg_failed=untried
  16942. fi
  16943.  
  16944.  
  16945.  
  16946. if test $pkg_failed = yes; then
  16947.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16948. $as_echo "no" >&6; }
  16949.  
  16950. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16951.         _pkg_short_errors_supported=yes
  16952. else
  16953.         _pkg_short_errors_supported=no
  16954. fi
  16955.         if test $_pkg_short_errors_supported = yes; then
  16956.                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
  16957.         else
  16958.                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
  16959.         fi
  16960.         # Put the nasty error message in config.log where it belongs
  16961.         echo "$XEXT_PKG_ERRORS" >&5
  16962.  
  16963.         USE_X11="no"
  16964. elif test $pkg_failed = untried; then
  16965.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16966. $as_echo "no" >&6; }
  16967.         USE_X11="no"
  16968. else
  16969.         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
  16970.         XEXT_LIBS=$pkg_cv_XEXT_LIBS
  16971.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16972. $as_echo "yes" >&6; }
  16973.         :
  16974. fi
  16975.  
  16976. pkg_failed=no
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
  16978. $as_echo_n "checking for XFIXES... " >&6; }
  16979.  
  16980. if test -n "$XFIXES_CFLAGS"; then
  16981.     pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
  16982.  elif test -n "$PKG_CONFIG"; then
  16983.     if test -n "$PKG_CONFIG" && \
  16984.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
  16985.   ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
  16986.   ac_status=$?
  16987.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16988.   test $ac_status = 0; }; then
  16989.   pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
  16990.                       test "x$?" != "x0" && pkg_failed=yes
  16991. else
  16992.   pkg_failed=yes
  16993. fi
  16994.  else
  16995.     pkg_failed=untried
  16996. fi
  16997. if test -n "$XFIXES_LIBS"; then
  16998.     pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
  16999.  elif test -n "$PKG_CONFIG"; then
  17000.     if test -n "$PKG_CONFIG" && \
  17001.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
  17002.   ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
  17003.   ac_status=$?
  17004.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17005.   test $ac_status = 0; }; then
  17006.   pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
  17007.                       test "x$?" != "x0" && pkg_failed=yes
  17008. else
  17009.   pkg_failed=yes
  17010. fi
  17011.  else
  17012.     pkg_failed=untried
  17013. fi
  17014.  
  17015.  
  17016.  
  17017. if test $pkg_failed = yes; then
  17018.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17019. $as_echo "no" >&6; }
  17020.  
  17021. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17022.         _pkg_short_errors_supported=yes
  17023. else
  17024.         _pkg_short_errors_supported=no
  17025. fi
  17026.         if test $_pkg_short_errors_supported = yes; then
  17027.                 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1`
  17028.         else
  17029.                 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1`
  17030.         fi
  17031.         # Put the nasty error message in config.log where it belongs
  17032.         echo "$XFIXES_PKG_ERRORS" >&5
  17033.  
  17034.         USE_X11="no"
  17035. elif test $pkg_failed = untried; then
  17036.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17037. $as_echo "no" >&6; }
  17038.         USE_X11="no"
  17039. else
  17040.         XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
  17041.         XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
  17042.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17043. $as_echo "yes" >&6; }
  17044.         :
  17045. fi
  17046.     if test "$USE_X11" = "yes"; then
  17047.  
  17048. $as_echo "#define HAVE_VA_X11 1" >>confdefs.h
  17049.  
  17050.     fi
  17051. fi
  17052.  if test "$USE_X11" = "yes"; then
  17053.   USE_X11_TRUE=
  17054.   USE_X11_FALSE='#'
  17055. else
  17056.   USE_X11_TRUE='#'
  17057.   USE_X11_FALSE=
  17058. fi
  17059.  
  17060.  
  17061. # Check for GLX
  17062. USE_GLX="no"
  17063. if test "$USE_X11:$enable_glx" = "yes:yes"; then
  17064.  
  17065. pkg_failed=no
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX" >&5
  17067. $as_echo_n "checking for GLX... " >&6; }
  17068.  
  17069. if test -n "$GLX_CFLAGS"; then
  17070.     pkg_cv_GLX_CFLAGS="$GLX_CFLAGS"
  17071.  elif test -n "$PKG_CONFIG"; then
  17072.     if test -n "$PKG_CONFIG" && \
  17073.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl x11\""; } >&5
  17074.   ($PKG_CONFIG --exists --print-errors "gl x11") 2>&5
  17075.   ac_status=$?
  17076.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17077.   test $ac_status = 0; }; then
  17078.   pkg_cv_GLX_CFLAGS=`$PKG_CONFIG --cflags "gl x11" 2>/dev/null`
  17079.                       test "x$?" != "x0" && pkg_failed=yes
  17080. else
  17081.   pkg_failed=yes
  17082. fi
  17083.  else
  17084.     pkg_failed=untried
  17085. fi
  17086. if test -n "$GLX_LIBS"; then
  17087.     pkg_cv_GLX_LIBS="$GLX_LIBS"
  17088.  elif test -n "$PKG_CONFIG"; then
  17089.     if test -n "$PKG_CONFIG" && \
  17090.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl x11\""; } >&5
  17091.   ($PKG_CONFIG --exists --print-errors "gl x11") 2>&5
  17092.   ac_status=$?
  17093.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17094.   test $ac_status = 0; }; then
  17095.   pkg_cv_GLX_LIBS=`$PKG_CONFIG --libs "gl x11" 2>/dev/null`
  17096.                       test "x$?" != "x0" && pkg_failed=yes
  17097. else
  17098.   pkg_failed=yes
  17099. fi
  17100.  else
  17101.     pkg_failed=untried
  17102. fi
  17103.  
  17104.  
  17105.  
  17106. if test $pkg_failed = yes; then
  17107.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17108. $as_echo "no" >&6; }
  17109.  
  17110. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17111.         _pkg_short_errors_supported=yes
  17112. else
  17113.         _pkg_short_errors_supported=no
  17114. fi
  17115.         if test $_pkg_short_errors_supported = yes; then
  17116.                 GLX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl x11" 2>&1`
  17117.         else
  17118.                 GLX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl x11" 2>&1`
  17119.         fi
  17120.         # Put the nasty error message in config.log where it belongs
  17121.         echo "$GLX_PKG_ERRORS" >&5
  17122.  
  17123.         :
  17124. elif test $pkg_failed = untried; then
  17125.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17126. $as_echo "no" >&6; }
  17127.         :
  17128. else
  17129.         GLX_CFLAGS=$pkg_cv_GLX_CFLAGS
  17130.         GLX_LIBS=$pkg_cv_GLX_LIBS
  17131.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17132. $as_echo "yes" >&6; }
  17133.         USE_GLX="yes"
  17134. fi
  17135.     saved_CPPFLAGS="$CPPFLAGS"
  17136.     saved_LIBS="$LIBS"
  17137.     CPPFLAGS="$CPPFLAGS $GLX_CFLAGS"
  17138.     LIBS="$LIBS $GLX_LIBS"
  17139.     for ac_header in GL/gl.h GL/glx.h
  17140. do :
  17141.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17142. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17143. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17144.   cat >>confdefs.h <<_ACEOF
  17145. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17146. _ACEOF
  17147.  :
  17148. else
  17149.   USE_GLX="no"
  17150. fi
  17151.  
  17152. done
  17153.  
  17154.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
  17155. $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
  17156. if ${ac_cv_lib_GL_glXCreateContext+:} false; then :
  17157.   $as_echo_n "(cached) " >&6
  17158. else
  17159.   ac_check_lib_save_LIBS=$LIBS
  17160. LIBS="-lGL  $LIBS"
  17161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17162. /* end confdefs.h.  */
  17163.  
  17164. /* Override any GCC internal prototype to avoid an error.
  17165.    Use char because int might match the return type of a GCC
  17166.    builtin and then its argument prototype would still apply.  */
  17167. #ifdef __cplusplus
  17168. extern "C"
  17169. #endif
  17170. char glXCreateContext ();
  17171. int
  17172. main ()
  17173. {
  17174. return glXCreateContext ();
  17175.   ;
  17176.   return 0;
  17177. }
  17178. _ACEOF
  17179. if ac_fn_c_try_link "$LINENO"; then :
  17180.   ac_cv_lib_GL_glXCreateContext=yes
  17181. else
  17182.   ac_cv_lib_GL_glXCreateContext=no
  17183. fi
  17184. rm -f core conftest.err conftest.$ac_objext \
  17185.     conftest$ac_exeext conftest.$ac_ext
  17186. LIBS=$ac_check_lib_save_LIBS
  17187. fi
  17188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
  17189. $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
  17190. if test "x$ac_cv_lib_GL_glXCreateContext" = xyes; then :
  17191.   : USE_GLX="no"
  17192. fi
  17193.  
  17194.     CPPFLAGS="$saved_CPPFLAGS"
  17195.     LIBS="$saved_LIBS"
  17196.     if test "$USE_GLX" = "yes"; then
  17197.  
  17198. $as_echo "#define HAVE_VA_GLX 1" >>confdefs.h
  17199.  
  17200.     fi
  17201. fi
  17202.  if test "$USE_GLX" = "yes"; then
  17203.   USE_GLX_TRUE=
  17204.   USE_GLX_FALSE='#'
  17205. else
  17206.   USE_GLX_TRUE='#'
  17207.   USE_GLX_FALSE=
  17208. fi
  17209.  
  17210.  
  17211. # Check for EGL
  17212. USE_EGL="no"
  17213. if test "$enable_egl" = "yes"; then
  17214.  
  17215. pkg_failed=no
  17216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL" >&5
  17217. $as_echo_n "checking for EGL... " >&6; }
  17218.  
  17219. if test -n "$EGL_CFLAGS"; then
  17220.     pkg_cv_EGL_CFLAGS="$EGL_CFLAGS"
  17221.  elif test -n "$PKG_CONFIG"; then
  17222.     if test -n "$PKG_CONFIG" && \
  17223.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
  17224.   ($PKG_CONFIG --exists --print-errors "egl") 2>&5
  17225.   ac_status=$?
  17226.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17227.   test $ac_status = 0; }; then
  17228.   pkg_cv_EGL_CFLAGS=`$PKG_CONFIG --cflags "egl" 2>/dev/null`
  17229.                       test "x$?" != "x0" && pkg_failed=yes
  17230. else
  17231.   pkg_failed=yes
  17232. fi
  17233.  else
  17234.     pkg_failed=untried
  17235. fi
  17236. if test -n "$EGL_LIBS"; then
  17237.     pkg_cv_EGL_LIBS="$EGL_LIBS"
  17238.  elif test -n "$PKG_CONFIG"; then
  17239.     if test -n "$PKG_CONFIG" && \
  17240.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
  17241.   ($PKG_CONFIG --exists --print-errors "egl") 2>&5
  17242.   ac_status=$?
  17243.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17244.   test $ac_status = 0; }; then
  17245.   pkg_cv_EGL_LIBS=`$PKG_CONFIG --libs "egl" 2>/dev/null`
  17246.                       test "x$?" != "x0" && pkg_failed=yes
  17247. else
  17248.   pkg_failed=yes
  17249. fi
  17250.  else
  17251.     pkg_failed=untried
  17252. fi
  17253.  
  17254.  
  17255.  
  17256. if test $pkg_failed = yes; then
  17257.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17258. $as_echo "no" >&6; }
  17259.  
  17260. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17261.         _pkg_short_errors_supported=yes
  17262. else
  17263.         _pkg_short_errors_supported=no
  17264. fi
  17265.         if test $_pkg_short_errors_supported = yes; then
  17266.                 EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "egl" 2>&1`
  17267.         else
  17268.                 EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "egl" 2>&1`
  17269.         fi
  17270.         # Put the nasty error message in config.log where it belongs
  17271.         echo "$EGL_PKG_ERRORS" >&5
  17272.  
  17273.         :
  17274. elif test $pkg_failed = untried; then
  17275.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17276. $as_echo "no" >&6; }
  17277.         :
  17278. else
  17279.         EGL_CFLAGS=$pkg_cv_EGL_CFLAGS
  17280.         EGL_LIBS=$pkg_cv_EGL_LIBS
  17281.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17282. $as_echo "yes" >&6; }
  17283.         USE_EGL="yes"
  17284. fi
  17285.     saved_CPPFLAGS="$CPPFLAGS"
  17286.     saved_LIBS="$LIBS"
  17287.     CPPFLAGS="$CPPFLAGS $EGL_CFLAGS"
  17288.     LIBS="$LIBS $EGL_LIBS"
  17289.     for ac_header in EGL/egl.h
  17290. do :
  17291.   ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
  17292. if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
  17293.   cat >>confdefs.h <<_ACEOF
  17294. #define HAVE_EGL_EGL_H 1
  17295. _ACEOF
  17296.  :
  17297. else
  17298.   USE_EGL="no"
  17299. fi
  17300.  
  17301. done
  17302.  
  17303.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetDisplay in -lEGL" >&5
  17304. $as_echo_n "checking for eglGetDisplay in -lEGL... " >&6; }
  17305. if ${ac_cv_lib_EGL_eglGetDisplay+:} false; then :
  17306.   $as_echo_n "(cached) " >&6
  17307. else
  17308.   ac_check_lib_save_LIBS=$LIBS
  17309. LIBS="-lEGL  $LIBS"
  17310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17311. /* end confdefs.h.  */
  17312.  
  17313. /* Override any GCC internal prototype to avoid an error.
  17314.    Use char because int might match the return type of a GCC
  17315.    builtin and then its argument prototype would still apply.  */
  17316. #ifdef __cplusplus
  17317. extern "C"
  17318. #endif
  17319. char eglGetDisplay ();
  17320. int
  17321. main ()
  17322. {
  17323. return eglGetDisplay ();
  17324.   ;
  17325.   return 0;
  17326. }
  17327. _ACEOF
  17328. if ac_fn_c_try_link "$LINENO"; then :
  17329.   ac_cv_lib_EGL_eglGetDisplay=yes
  17330. else
  17331.   ac_cv_lib_EGL_eglGetDisplay=no
  17332. fi
  17333. rm -f core conftest.err conftest.$ac_objext \
  17334.     conftest$ac_exeext conftest.$ac_ext
  17335. LIBS=$ac_check_lib_save_LIBS
  17336. fi
  17337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglGetDisplay" >&5
  17338. $as_echo "$ac_cv_lib_EGL_eglGetDisplay" >&6; }
  17339. if test "x$ac_cv_lib_EGL_eglGetDisplay" = xyes; then :
  17340.   :
  17341. else
  17342.   USE_EGL="no"
  17343. fi
  17344.  
  17345.     CPPFLAGS="$saved_CPPFLAGS"
  17346.     LIBS="$saved_LIBS"
  17347.     if test "$USE_EGL" = "yes"; then
  17348.  
  17349. $as_echo "#define HAVE_VA_EGL 1" >>confdefs.h
  17350.  
  17351.     fi
  17352. fi
  17353.  if test "$USE_EGL" = "yes"; then
  17354.   USE_EGL_TRUE=
  17355.   USE_EGL_FALSE='#'
  17356. else
  17357.   USE_EGL_TRUE='#'
  17358.   USE_EGL_FALSE=
  17359. fi
  17360.  
  17361.  
  17362. # Check for Wayland
  17363. WAYLAND_API_VERSION=1.0.0
  17364.  
  17365.  
  17366. USE_WAYLAND="no"
  17367. if test "$enable_wayland" = "yes"; then
  17368.  
  17369. pkg_failed=no
  17370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5
  17371. $as_echo_n "checking for WAYLAND... " >&6; }
  17372.  
  17373. if test -n "$WAYLAND_CFLAGS"; then
  17374.     pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS"
  17375.  elif test -n "$PKG_CONFIG"; then
  17376.     if test -n "$PKG_CONFIG" && \
  17377.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.0\""; } >&5
  17378.   ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.0") 2>&5
  17379.   ac_status=$?
  17380.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17381.   test $ac_status = 0; }; then
  17382.   pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= 1.0.0" 2>/dev/null`
  17383.                       test "x$?" != "x0" && pkg_failed=yes
  17384. else
  17385.   pkg_failed=yes
  17386. fi
  17387.  else
  17388.     pkg_failed=untried
  17389. fi
  17390. if test -n "$WAYLAND_LIBS"; then
  17391.     pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS"
  17392.  elif test -n "$PKG_CONFIG"; then
  17393.     if test -n "$PKG_CONFIG" && \
  17394.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.0\""; } >&5
  17395.   ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.0") 2>&5
  17396.   ac_status=$?
  17397.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17398.   test $ac_status = 0; }; then
  17399.   pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client >= 1.0.0" 2>/dev/null`
  17400.                       test "x$?" != "x0" && pkg_failed=yes
  17401. else
  17402.   pkg_failed=yes
  17403. fi
  17404.  else
  17405.     pkg_failed=untried
  17406. fi
  17407.  
  17408.  
  17409.  
  17410. if test $pkg_failed = yes; then
  17411.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17412. $as_echo "no" >&6; }
  17413.  
  17414. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17415.         _pkg_short_errors_supported=yes
  17416. else
  17417.         _pkg_short_errors_supported=no
  17418. fi
  17419.         if test $_pkg_short_errors_supported = yes; then
  17420.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client >= 1.0.0" 2>&1`
  17421.         else
  17422.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client >= 1.0.0" 2>&1`
  17423.         fi
  17424.         # Put the nasty error message in config.log where it belongs
  17425.         echo "$WAYLAND_PKG_ERRORS" >&5
  17426.  
  17427.         :
  17428. elif test $pkg_failed = untried; then
  17429.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17430. $as_echo "no" >&6; }
  17431.         :
  17432. else
  17433.         WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS
  17434.         WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS
  17435.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17436. $as_echo "yes" >&6; }
  17437.         USE_WAYLAND="yes"
  17438. fi
  17439.     if test "$USE_WAYLAND" = "yes"; then
  17440.  
  17441.         WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
  17442.         # Extract the first word of "wayland-scanner", so it can be a program name with args.
  17443. set dummy wayland-scanner; ac_word=$2
  17444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17445. $as_echo_n "checking for $ac_word... " >&6; }
  17446. if ${ac_cv_path_WAYLAND_SCANNER+:} false; then :
  17447.   $as_echo_n "(cached) " >&6
  17448. else
  17449.   case $WAYLAND_SCANNER in
  17450.   [\\/]* | ?:[\\/]*)
  17451.   ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path.
  17452.   ;;
  17453.   *)
  17454.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17455. for as_dir in ${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH
  17456. do
  17457.   IFS=$as_save_IFS
  17458.   test -z "$as_dir" && as_dir=.
  17459.     for ac_exec_ext in '' $ac_executable_extensions; do
  17460.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17461.     ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext"
  17462.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17463.     break 2
  17464.   fi
  17465. done
  17466.   done
  17467. IFS=$as_save_IFS
  17468.  
  17469.   ;;
  17470. esac
  17471. fi
  17472. WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER
  17473. if test -n "$WAYLAND_SCANNER"; then
  17474.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5
  17475. $as_echo "$WAYLAND_SCANNER" >&6; }
  17476. else
  17477.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17478. $as_echo "no" >&6; }
  17479. fi
  17480.  
  17481.  
  17482.  
  17483.  
  17484. $as_echo "#define HAVE_VA_WAYLAND 1" >>confdefs.h
  17485.  
  17486.     fi
  17487. fi
  17488.  
  17489.  if test "$USE_WAYLAND" = "yes"; then
  17490.   USE_WAYLAND_TRUE=
  17491.   USE_WAYLAND_FALSE='#'
  17492. else
  17493.   USE_WAYLAND_TRUE='#'
  17494.   USE_WAYLAND_FALSE=
  17495. fi
  17496.  
  17497.  
  17498. pkgconfigdir=${libdir}/pkgconfig
  17499.  
  17500.  
  17501. # Check for builds without backend
  17502. if test "$USE_DRM:$USE_X11:$USE_WAYLAND" = "no:no:no"; then
  17503.     as_fn_error $? "Please select at least one backend (DRM, X11, Wayland)" "$LINENO" 5
  17504. fi
  17505.  
  17506. # Define __vaDriverInit*() function name for dummy backend
  17507. VA_DRIVER_INIT_FUNC="__vaDriverInit_${VA_API_MAJOR_VERSION}_${VA_API_MINOR_VERSION}"
  17508.  
  17509. cat >>confdefs.h <<_ACEOF
  17510. #define VA_DRIVER_INIT_FUNC $VA_DRIVER_INIT_FUNC
  17511. _ACEOF
  17512.  
  17513.  
  17514. 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/x11/Makefile"
  17515.  
  17516. cat >confcache <<\_ACEOF
  17517. # This file is a shell script that caches the results of configure
  17518. # tests run on this system so they can be shared between configure
  17519. # scripts and configure runs, see configure's option --config-cache.
  17520. # It is not useful on other systems.  If it contains results you don't
  17521. # want to keep, you may remove or edit it.
  17522. #
  17523. # config.status only pays attention to the cache file if you give it
  17524. # the --recheck option to rerun configure.
  17525. #
  17526. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17527. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17528. # following values.
  17529.  
  17530. _ACEOF
  17531.  
  17532. # The following way of writing the cache mishandles newlines in values,
  17533. # but we know of no workaround that is simple, portable, and efficient.
  17534. # So, we kill variables containing newlines.
  17535. # Ultrix sh set writes to stderr and can't be redirected directly,
  17536. # and sets the high bit in the cache file unless we assign to the vars.
  17537. (
  17538.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17539.     eval ac_val=\$$ac_var
  17540.     case $ac_val in #(
  17541.     *${as_nl}*)
  17542.       case $ac_var in #(
  17543.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17544. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17545.       esac
  17546.       case $ac_var in #(
  17547.       _ | IFS | as_nl) ;; #(
  17548.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17549.       *) { eval $ac_var=; unset $ac_var;} ;;
  17550.       esac ;;
  17551.     esac
  17552.   done
  17553.  
  17554.   (set) 2>&1 |
  17555.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17556.     *${as_nl}ac_space=\ *)
  17557.       # `set' does not quote correctly, so add quotes: double-quote
  17558.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  17559.       sed -n \
  17560.         "s/'/'\\\\''/g;
  17561.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17562.       ;; #(
  17563.     *)
  17564.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  17565.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17566.       ;;
  17567.     esac |
  17568.     sort
  17569. ) |
  17570.   sed '
  17571.      /^ac_cv_env_/b end
  17572.      t clear
  17573.      :clear
  17574.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17575.      t end
  17576.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17577.      :end' >>confcache
  17578. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17579.   if test -w "$cache_file"; then
  17580.     if test "x$cache_file" != "x/dev/null"; then
  17581.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17582. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17583.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  17584.         cat confcache >"$cache_file"
  17585.       else
  17586.         case $cache_file in #(
  17587.         */* | ?:*)
  17588.           mv -f confcache "$cache_file"$$ &&
  17589.           mv -f "$cache_file"$$ "$cache_file" ;; #(
  17590.         *)
  17591.           mv -f confcache "$cache_file" ;;
  17592.         esac
  17593.       fi
  17594.     fi
  17595.   else
  17596.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17597. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17598.   fi
  17599. fi
  17600. rm -f confcache
  17601.  
  17602. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17603. # Let make expand exec_prefix.
  17604. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17605.  
  17606. DEFS=-DHAVE_CONFIG_H
  17607.  
  17608. ac_libobjs=
  17609. ac_ltlibobjs=
  17610. U=
  17611. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17612.   # 1. Remove the extension, and $U if already installed.
  17613.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17614.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17615.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  17616.   #    will be set to the directory where LIBOBJS objects are built.
  17617.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17618.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17619. done
  17620. LIBOBJS=$ac_libobjs
  17621.  
  17622. LTLIBOBJS=$ac_ltlibobjs
  17623.  
  17624.  
  17625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17626. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  17627.    if test -n "$am_sleep_pid"; then
  17628.      # Hide warnings about reused PIDs.
  17629.      wait $am_sleep_pid 2>/dev/null
  17630.    fi
  17631.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17632. $as_echo "done" >&6; }
  17633.  if test -n "$EXEEXT"; then
  17634.   am__EXEEXT_TRUE=
  17635.   am__EXEEXT_FALSE='#'
  17636. else
  17637.   am__EXEEXT_TRUE='#'
  17638.   am__EXEEXT_FALSE=
  17639. fi
  17640.  
  17641. if test -z "${BUILD_DUMMY_DRIVER_TRUE}" && test -z "${BUILD_DUMMY_DRIVER_FALSE}"; then
  17642.   as_fn_error $? "conditional \"BUILD_DUMMY_DRIVER\" was never defined.
  17643. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17644. fi
  17645. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17646.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  17647. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17648. fi
  17649. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17650.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17651. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17652. fi
  17653. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17654.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17655. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17656. fi
  17657. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17658.   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17659. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17660. fi
  17661. if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
  17662.   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
  17663. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17664. fi
  17665. if test -z "${USE_DRM_TRUE}" && test -z "${USE_DRM_FALSE}"; then
  17666.   as_fn_error $? "conditional \"USE_DRM\" was never defined.
  17667. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17668. fi
  17669. if test -z "${USE_X11_TRUE}" && test -z "${USE_X11_FALSE}"; then
  17670.   as_fn_error $? "conditional \"USE_X11\" was never defined.
  17671. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17672. fi
  17673. if test -z "${USE_GLX_TRUE}" && test -z "${USE_GLX_FALSE}"; then
  17674.   as_fn_error $? "conditional \"USE_GLX\" was never defined.
  17675. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17676. fi
  17677. if test -z "${USE_EGL_TRUE}" && test -z "${USE_EGL_FALSE}"; then
  17678.   as_fn_error $? "conditional \"USE_EGL\" was never defined.
  17679. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17680. fi
  17681. if test -z "${USE_WAYLAND_TRUE}" && test -z "${USE_WAYLAND_FALSE}"; then
  17682.   as_fn_error $? "conditional \"USE_WAYLAND\" was never defined.
  17683. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17684. fi
  17685.  
  17686. : "${CONFIG_STATUS=./config.status}"
  17687. ac_write_fail=0
  17688. ac_clean_files_save=$ac_clean_files
  17689. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17690. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17691. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17692. as_write_fail=0
  17693. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17694. #! $SHELL
  17695. # Generated by $as_me.
  17696. # Run this file to recreate the current configuration.
  17697. # Compiler output produced by configure, useful for debugging
  17698. # configure, is in config.log if it exists.
  17699.  
  17700. debug=false
  17701. ac_cs_recheck=false
  17702. ac_cs_silent=false
  17703.  
  17704. SHELL=\${CONFIG_SHELL-$SHELL}
  17705. export SHELL
  17706. _ASEOF
  17707. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17708. ## -------------------- ##
  17709. ## M4sh Initialization. ##
  17710. ## -------------------- ##
  17711.  
  17712. # Be more Bourne compatible
  17713. DUALCASE=1; export DUALCASE # for MKS sh
  17714. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17715.   emulate sh
  17716.   NULLCMD=:
  17717.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17718.   # is contrary to our usage.  Disable this feature.
  17719.   alias -g '${1+"$@"}'='"$@"'
  17720.   setopt NO_GLOB_SUBST
  17721. else
  17722.   case `(set -o) 2>/dev/null` in #(
  17723.   *posix*) :
  17724.     set -o posix ;; #(
  17725.   *) :
  17726.      ;;
  17727. esac
  17728. fi
  17729.  
  17730.  
  17731. as_nl='
  17732. '
  17733. export as_nl
  17734. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17735. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17736. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17737. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17738. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17739. # but without wasting forks for bash or zsh.
  17740. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17741.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17742.   as_echo='print -r --'
  17743.   as_echo_n='print -rn --'
  17744. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17745.   as_echo='printf %s\n'
  17746.   as_echo_n='printf %s'
  17747. else
  17748.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17749.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17750.     as_echo_n='/usr/ucb/echo -n'
  17751.   else
  17752.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17753.     as_echo_n_body='eval
  17754.       arg=$1;
  17755.       case $arg in #(
  17756.       *"$as_nl"*)
  17757.         expr "X$arg" : "X\\(.*\\)$as_nl";
  17758.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17759.       esac;
  17760.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17761.     '
  17762.     export as_echo_n_body
  17763.     as_echo_n='sh -c $as_echo_n_body as_echo'
  17764.   fi
  17765.   export as_echo_body
  17766.   as_echo='sh -c $as_echo_body as_echo'
  17767. fi
  17768.  
  17769. # The user is always right.
  17770. if test "${PATH_SEPARATOR+set}" != set; then
  17771.   PATH_SEPARATOR=:
  17772.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17773.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17774.       PATH_SEPARATOR=';'
  17775.   }
  17776. fi
  17777.  
  17778.  
  17779. # IFS
  17780. # We need space, tab and new line, in precisely that order.  Quoting is
  17781. # there to prevent editors from complaining about space-tab.
  17782. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17783. # splitting by setting IFS to empty value.)
  17784. IFS=" ""        $as_nl"
  17785.  
  17786. # Find who we are.  Look in the path if we contain no directory separator.
  17787. as_myself=
  17788. case $0 in #((
  17789.   *[\\/]* ) as_myself=$0 ;;
  17790.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17791. for as_dir in $PATH
  17792. do
  17793.   IFS=$as_save_IFS
  17794.   test -z "$as_dir" && as_dir=.
  17795.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17796.   done
  17797. IFS=$as_save_IFS
  17798.  
  17799.      ;;
  17800. esac
  17801. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17802. # in which case we are not to be found in the path.
  17803. if test "x$as_myself" = x; then
  17804.   as_myself=$0
  17805. fi
  17806. if test ! -f "$as_myself"; then
  17807.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17808.   exit 1
  17809. fi
  17810.  
  17811. # Unset variables that we do not need and which cause bugs (e.g. in
  17812. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  17813. # suppresses any "Segmentation fault" message there.  '((' could
  17814. # trigger a bug in pdksh 5.2.14.
  17815. for as_var in BASH_ENV ENV MAIL MAILPATH
  17816. do eval test x\${$as_var+set} = xset \
  17817.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17818. done
  17819. PS1='$ '
  17820. PS2='> '
  17821. PS4='+ '
  17822.  
  17823. # NLS nuisances.
  17824. LC_ALL=C
  17825. export LC_ALL
  17826. LANGUAGE=C
  17827. export LANGUAGE
  17828.  
  17829. # CDPATH.
  17830. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17831.  
  17832.  
  17833. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17834. # ----------------------------------------
  17835. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17836. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17837. # script with STATUS, using 1 if that was 0.
  17838. as_fn_error ()
  17839. {
  17840.   as_status=$1; test $as_status -eq 0 && as_status=1
  17841.   if test "$4"; then
  17842.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17843.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17844.   fi
  17845.   $as_echo "$as_me: error: $2" >&2
  17846.   as_fn_exit $as_status
  17847. } # as_fn_error
  17848.  
  17849.  
  17850. # as_fn_set_status STATUS
  17851. # -----------------------
  17852. # Set $? to STATUS, without forking.
  17853. as_fn_set_status ()
  17854. {
  17855.   return $1
  17856. } # as_fn_set_status
  17857.  
  17858. # as_fn_exit STATUS
  17859. # -----------------
  17860. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17861. as_fn_exit ()
  17862. {
  17863.   set +e
  17864.   as_fn_set_status $1
  17865.   exit $1
  17866. } # as_fn_exit
  17867.  
  17868. # as_fn_unset VAR
  17869. # ---------------
  17870. # Portably unset VAR.
  17871. as_fn_unset ()
  17872. {
  17873.   { eval $1=; unset $1;}
  17874. }
  17875. as_unset=as_fn_unset
  17876. # as_fn_append VAR VALUE
  17877. # ----------------------
  17878. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17879. # advantage of any shell optimizations that allow amortized linear growth over
  17880. # repeated appends, instead of the typical quadratic growth present in naive
  17881. # implementations.
  17882. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17883.   eval 'as_fn_append ()
  17884.   {
  17885.     eval $1+=\$2
  17886.   }'
  17887. else
  17888.   as_fn_append ()
  17889.   {
  17890.     eval $1=\$$1\$2
  17891.   }
  17892. fi # as_fn_append
  17893.  
  17894. # as_fn_arith ARG...
  17895. # ------------------
  17896. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17897. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17898. # must be portable across $(()) and expr.
  17899. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17900.   eval 'as_fn_arith ()
  17901.   {
  17902.     as_val=$(( $* ))
  17903.   }'
  17904. else
  17905.   as_fn_arith ()
  17906.   {
  17907.     as_val=`expr "$@" || test $? -eq 1`
  17908.   }
  17909. fi # as_fn_arith
  17910.  
  17911.  
  17912. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17913.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17914.   as_expr=expr
  17915. else
  17916.   as_expr=false
  17917. fi
  17918.  
  17919. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17920.   as_basename=basename
  17921. else
  17922.   as_basename=false
  17923. fi
  17924.  
  17925. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17926.   as_dirname=dirname
  17927. else
  17928.   as_dirname=false
  17929. fi
  17930.  
  17931. as_me=`$as_basename -- "$0" ||
  17932. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17933.          X"$0" : 'X\(//\)$' \| \
  17934.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17935. $as_echo X/"$0" |
  17936.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  17937.             s//\1/
  17938.             q
  17939.           }
  17940.           /^X\/\(\/\/\)$/{
  17941.             s//\1/
  17942.             q
  17943.           }
  17944.           /^X\/\(\/\).*/{
  17945.             s//\1/
  17946.             q
  17947.           }
  17948.           s/.*/./; q'`
  17949.  
  17950. # Avoid depending upon Character Ranges.
  17951. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17952. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17953. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17954. as_cr_digits='0123456789'
  17955. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17956.  
  17957. ECHO_C= ECHO_N= ECHO_T=
  17958. case `echo -n x` in #(((((
  17959. -n*)
  17960.   case `echo 'xy\c'` in
  17961.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  17962.   xy)  ECHO_C='\c';;
  17963.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17964.        ECHO_T=' ';;
  17965.   esac;;
  17966. *)
  17967.   ECHO_N='-n';;
  17968. esac
  17969.  
  17970. rm -f conf$$ conf$$.exe conf$$.file
  17971. if test -d conf$$.dir; then
  17972.   rm -f conf$$.dir/conf$$.file
  17973. else
  17974.   rm -f conf$$.dir
  17975.   mkdir conf$$.dir 2>/dev/null
  17976. fi
  17977. if (echo >conf$$.file) 2>/dev/null; then
  17978.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  17979.     as_ln_s='ln -s'
  17980.     # ... but there are two gotchas:
  17981.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17982.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17983.     # In both cases, we have to default to `cp -pR'.
  17984.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17985.       as_ln_s='cp -pR'
  17986.   elif ln conf$$.file conf$$ 2>/dev/null; then
  17987.     as_ln_s=ln
  17988.   else
  17989.     as_ln_s='cp -pR'
  17990.   fi
  17991. else
  17992.   as_ln_s='cp -pR'
  17993. fi
  17994. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17995. rmdir conf$$.dir 2>/dev/null
  17996.  
  17997.  
  17998. # as_fn_mkdir_p
  17999. # -------------
  18000. # Create "$as_dir" as a directory, including parents if necessary.
  18001. as_fn_mkdir_p ()
  18002. {
  18003.  
  18004.   case $as_dir in #(
  18005.   -*) as_dir=./$as_dir;;
  18006.   esac
  18007.   test -d "$as_dir" || eval $as_mkdir_p || {
  18008.     as_dirs=
  18009.     while :; do
  18010.       case $as_dir in #(
  18011.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18012.       *) as_qdir=$as_dir;;
  18013.       esac
  18014.       as_dirs="'$as_qdir' $as_dirs"
  18015.       as_dir=`$as_dirname -- "$as_dir" ||
  18016. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18017.          X"$as_dir" : 'X\(//\)[^/]' \| \
  18018.          X"$as_dir" : 'X\(//\)$' \| \
  18019.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18020. $as_echo X"$as_dir" |
  18021.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18022.             s//\1/
  18023.             q
  18024.           }
  18025.           /^X\(\/\/\)[^/].*/{
  18026.             s//\1/
  18027.             q
  18028.           }
  18029.           /^X\(\/\/\)$/{
  18030.             s//\1/
  18031.             q
  18032.           }
  18033.           /^X\(\/\).*/{
  18034.             s//\1/
  18035.             q
  18036.           }
  18037.           s/.*/./; q'`
  18038.       test -d "$as_dir" && break
  18039.     done
  18040.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  18041.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18042.  
  18043.  
  18044. } # as_fn_mkdir_p
  18045. if mkdir -p . 2>/dev/null; then
  18046.   as_mkdir_p='mkdir -p "$as_dir"'
  18047. else
  18048.   test -d ./-p && rmdir ./-p
  18049.   as_mkdir_p=false
  18050. fi
  18051.  
  18052.  
  18053. # as_fn_executable_p FILE
  18054. # -----------------------
  18055. # Test if FILE is an executable regular file.
  18056. as_fn_executable_p ()
  18057. {
  18058.   test -f "$1" && test -x "$1"
  18059. } # as_fn_executable_p
  18060. as_test_x='test -x'
  18061. as_executable_p=as_fn_executable_p
  18062.  
  18063. # Sed expression to map a string onto a valid CPP name.
  18064. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18065.  
  18066. # Sed expression to map a string onto a valid variable name.
  18067. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18068.  
  18069.  
  18070. exec 6>&1
  18071. ## ----------------------------------- ##
  18072. ## Main body of $CONFIG_STATUS script. ##
  18073. ## ----------------------------------- ##
  18074. _ASEOF
  18075. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18076.  
  18077. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18078. # Save the log message, to keep $0 and so on meaningful, and to
  18079. # report actual input values of CONFIG_FILES etc. instead of their
  18080. # values after options handling.
  18081. ac_log="
  18082. This file was extended by libva $as_me 1.6.2, which was
  18083. generated by GNU Autoconf 2.69.  Invocation command line was
  18084.  
  18085.   CONFIG_FILES    = $CONFIG_FILES
  18086.   CONFIG_HEADERS  = $CONFIG_HEADERS
  18087.   CONFIG_LINKS    = $CONFIG_LINKS
  18088.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  18089.   $ $0 $@
  18090.  
  18091. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18092. "
  18093.  
  18094. _ACEOF
  18095.  
  18096. case $ac_config_files in *"
  18097. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18098. esac
  18099.  
  18100. case $ac_config_headers in *"
  18101. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18102. esac
  18103.  
  18104.  
  18105. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18106. # Files that config.status was made for.
  18107. config_files="$ac_config_files"
  18108. config_headers="$ac_config_headers"
  18109. config_commands="$ac_config_commands"
  18110.  
  18111. _ACEOF
  18112.  
  18113. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18114. ac_cs_usage="\
  18115. \`$as_me' instantiates files and other configuration actions
  18116. from templates according to the current configuration.  Unless the files
  18117. and actions are specified as TAGs, all are instantiated by default.
  18118.  
  18119. Usage: $0 [OPTION]... [TAG]...
  18120.  
  18121.   -h, --help       print this help, then exit
  18122.   -V, --version    print version number and configuration settings, then exit
  18123.       --config     print configuration, then exit
  18124.   -q, --quiet, --silent
  18125.                    do not print progress messages
  18126.   -d, --debug      don't remove temporary files
  18127.       --recheck    update $as_me by reconfiguring in the same conditions
  18128.       --file=FILE[:TEMPLATE]
  18129.                    instantiate the configuration file FILE
  18130.       --header=FILE[:TEMPLATE]
  18131.                    instantiate the configuration header FILE
  18132.  
  18133. Configuration files:
  18134. $config_files
  18135.  
  18136. Configuration headers:
  18137. $config_headers
  18138.  
  18139. Configuration commands:
  18140. $config_commands
  18141.  
  18142. Report bugs to <waldo.bastian@intel.com>."
  18143.  
  18144. _ACEOF
  18145. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18146. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18147. ac_cs_version="\\
  18148. libva config.status 1.6.2
  18149. configured by $0, generated by GNU Autoconf 2.69,
  18150.   with options \\"\$ac_cs_config\\"
  18151.  
  18152. Copyright (C) 2012 Free Software Foundation, Inc.
  18153. This config.status script is free software; the Free Software Foundation
  18154. gives unlimited permission to copy, distribute and modify it."
  18155.  
  18156. ac_pwd='$ac_pwd'
  18157. srcdir='$srcdir'
  18158. INSTALL='$INSTALL'
  18159. MKDIR_P='$MKDIR_P'
  18160. AWK='$AWK'
  18161. test -n "\$AWK" || AWK=awk
  18162. _ACEOF
  18163.  
  18164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18165. # The default lists apply if the user does not specify any file.
  18166. ac_need_defaults=:
  18167. while test $# != 0
  18168. do
  18169.   case $1 in
  18170.   --*=?*)
  18171.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18172.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18173.     ac_shift=:
  18174.     ;;
  18175.   --*=)
  18176.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18177.     ac_optarg=
  18178.     ac_shift=:
  18179.     ;;
  18180.   *)
  18181.     ac_option=$1
  18182.     ac_optarg=$2
  18183.     ac_shift=shift
  18184.     ;;
  18185.   esac
  18186.  
  18187.   case $ac_option in
  18188.   # Handling of the options.
  18189.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18190.     ac_cs_recheck=: ;;
  18191.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18192.     $as_echo "$ac_cs_version"; exit ;;
  18193.   --config | --confi | --conf | --con | --co | --c )
  18194.     $as_echo "$ac_cs_config"; exit ;;
  18195.   --debug | --debu | --deb | --de | --d | -d )
  18196.     debug=: ;;
  18197.   --file | --fil | --fi | --f )
  18198.     $ac_shift
  18199.     case $ac_optarg in
  18200.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18201.     '') as_fn_error $? "missing file argument" ;;
  18202.     esac
  18203.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  18204.     ac_need_defaults=false;;
  18205.   --header | --heade | --head | --hea )
  18206.     $ac_shift
  18207.     case $ac_optarg in
  18208.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18209.     esac
  18210.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18211.     ac_need_defaults=false;;
  18212.   --he | --h)
  18213.     # Conflict between --help and --header
  18214.     as_fn_error $? "ambiguous option: \`$1'
  18215. Try \`$0 --help' for more information.";;
  18216.   --help | --hel | -h )
  18217.     $as_echo "$ac_cs_usage"; exit ;;
  18218.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18219.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18220.     ac_cs_silent=: ;;
  18221.  
  18222.   # This is an error.
  18223.   -*) as_fn_error $? "unrecognized option: \`$1'
  18224. Try \`$0 --help' for more information." ;;
  18225.  
  18226.   *) as_fn_append ac_config_targets " $1"
  18227.      ac_need_defaults=false ;;
  18228.  
  18229.   esac
  18230.   shift
  18231. done
  18232.  
  18233. ac_configure_extra_args=
  18234.  
  18235. if $ac_cs_silent; then
  18236.   exec 6>/dev/null
  18237.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  18238. fi
  18239.  
  18240. _ACEOF
  18241. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18242. if \$ac_cs_recheck; then
  18243.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18244.   shift
  18245.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18246.   CONFIG_SHELL='$SHELL'
  18247.   export CONFIG_SHELL
  18248.   exec "\$@"
  18249. fi
  18250.  
  18251. _ACEOF
  18252. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18253. exec 5>>config.log
  18254. {
  18255.   echo
  18256.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18257. ## Running $as_me. ##
  18258. _ASBOX
  18259.   $as_echo "$ac_log"
  18260. } >&5
  18261.  
  18262. _ACEOF
  18263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18264. #
  18265. # INIT-COMMANDS
  18266. #
  18267. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18268.  
  18269.  
  18270. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18271. # if CDPATH is set.
  18272. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18273.  
  18274. sed_quote_subst='$sed_quote_subst'
  18275. double_quote_subst='$double_quote_subst'
  18276. delay_variable_subst='$delay_variable_subst'
  18277. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18278. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18279. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18280. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18281. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18282. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18283. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18284. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18285. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18286. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18287. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18288. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18289. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18290. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18291. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18292. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18293. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18294. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18295. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18296. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18297. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18298. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18299. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18300. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18301. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18302. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18303. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18304. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18305. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18306. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18307. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18308. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18309. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18310. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18311. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18312. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18313. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18314. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18315. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18316. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18317. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18318. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18319. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18320. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18321. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18322. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18323. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18324. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18325. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18326. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18327. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18328. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18329. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18330. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18331. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18332. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18333. 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"`'
  18334. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18335. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18336. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18337. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18338. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18339. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18340. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18341. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18342. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18343. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18344. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18345. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18346. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18347. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18348. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18349. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18350. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18351. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18352. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18353. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18354. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18355. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18356. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18357. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18358. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18359. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18360. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18361. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18362. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18363. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18364. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18365. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18366. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18367. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18368. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18369. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18370. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18371. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18372. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18373. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18374. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18375. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18376. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18377. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18378. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18379. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18380. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18381. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18382. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18383. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18384. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18385. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18386. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18387. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18388. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18389. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18390. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18391. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18392. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18393. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18394. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18395. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18396. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18397. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18398. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18399. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18400. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  18401. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18402. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18403. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18404. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18405. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18406. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18407. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18408. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18409. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18410. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18411. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18412. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18413. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18414. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18415. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18416. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18417. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18418. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18419. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18420. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18421. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18422. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18423. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18424. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18425. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18426. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18427. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18428. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18429. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18430. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18431. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18432. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18433. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18434. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18435. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18436. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18437. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18438. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18439. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18440. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18441. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18442. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18443. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18444. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18445. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18446. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18447. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18448. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18449. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18450. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18451. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18452. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18453. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18454. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18455. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18456. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18457. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18458. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18459. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18460. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18461.  
  18462. LTCC='$LTCC'
  18463. LTCFLAGS='$LTCFLAGS'
  18464. compiler='$compiler_DEFAULT'
  18465.  
  18466. # A function that is used when there is no print builtin or printf.
  18467. func_fallback_echo ()
  18468. {
  18469.   eval 'cat <<_LTECHO_EOF
  18470. \$1
  18471. _LTECHO_EOF'
  18472. }
  18473.  
  18474. # Quote evaled strings.
  18475. for var in SHELL \
  18476. ECHO \
  18477. PATH_SEPARATOR \
  18478. SED \
  18479. GREP \
  18480. EGREP \
  18481. FGREP \
  18482. LD \
  18483. NM \
  18484. LN_S \
  18485. lt_SP2NL \
  18486. lt_NL2SP \
  18487. reload_flag \
  18488. OBJDUMP \
  18489. deplibs_check_method \
  18490. file_magic_cmd \
  18491. file_magic_glob \
  18492. want_nocaseglob \
  18493. DLLTOOL \
  18494. sharedlib_from_linklib_cmd \
  18495. AR \
  18496. AR_FLAGS \
  18497. archiver_list_spec \
  18498. STRIP \
  18499. RANLIB \
  18500. CC \
  18501. CFLAGS \
  18502. compiler \
  18503. lt_cv_sys_global_symbol_pipe \
  18504. lt_cv_sys_global_symbol_to_cdecl \
  18505. lt_cv_sys_global_symbol_to_c_name_address \
  18506. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18507. nm_file_list_spec \
  18508. lt_prog_compiler_no_builtin_flag \
  18509. lt_prog_compiler_pic \
  18510. lt_prog_compiler_wl \
  18511. lt_prog_compiler_static \
  18512. lt_cv_prog_compiler_c_o \
  18513. need_locks \
  18514. MANIFEST_TOOL \
  18515. DSYMUTIL \
  18516. NMEDIT \
  18517. LIPO \
  18518. OTOOL \
  18519. OTOOL64 \
  18520. shrext_cmds \
  18521. export_dynamic_flag_spec \
  18522. whole_archive_flag_spec \
  18523. compiler_needs_object \
  18524. with_gnu_ld \
  18525. allow_undefined_flag \
  18526. no_undefined_flag \
  18527. hardcode_libdir_flag_spec \
  18528. hardcode_libdir_separator \
  18529. exclude_expsyms \
  18530. include_expsyms \
  18531. file_list_spec \
  18532. variables_saved_for_relink \
  18533. libname_spec \
  18534. library_names_spec \
  18535. soname_spec \
  18536. install_override_mode \
  18537. finish_eval \
  18538. old_striplib \
  18539. striplib \
  18540. compiler_lib_search_dirs \
  18541. predep_objects \
  18542. postdep_objects \
  18543. predeps \
  18544. postdeps \
  18545. compiler_lib_search_path \
  18546. LD_CXX \
  18547. reload_flag_CXX \
  18548. compiler_CXX \
  18549. lt_prog_compiler_no_builtin_flag_CXX \
  18550. lt_prog_compiler_pic_CXX \
  18551. lt_prog_compiler_wl_CXX \
  18552. lt_prog_compiler_static_CXX \
  18553. lt_cv_prog_compiler_c_o_CXX \
  18554. export_dynamic_flag_spec_CXX \
  18555. whole_archive_flag_spec_CXX \
  18556. compiler_needs_object_CXX \
  18557. with_gnu_ld_CXX \
  18558. allow_undefined_flag_CXX \
  18559. no_undefined_flag_CXX \
  18560. hardcode_libdir_flag_spec_CXX \
  18561. hardcode_libdir_separator_CXX \
  18562. exclude_expsyms_CXX \
  18563. include_expsyms_CXX \
  18564. file_list_spec_CXX \
  18565. compiler_lib_search_dirs_CXX \
  18566. predep_objects_CXX \
  18567. postdep_objects_CXX \
  18568. predeps_CXX \
  18569. postdeps_CXX \
  18570. compiler_lib_search_path_CXX; do
  18571.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18572.     *[\\\\\\\`\\"\\\$]*)
  18573.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  18574.       ;;
  18575.     *)
  18576.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18577.       ;;
  18578.     esac
  18579. done
  18580.  
  18581. # Double-quote double-evaled strings.
  18582. for var in reload_cmds \
  18583. old_postinstall_cmds \
  18584. old_postuninstall_cmds \
  18585. old_archive_cmds \
  18586. extract_expsyms_cmds \
  18587. old_archive_from_new_cmds \
  18588. old_archive_from_expsyms_cmds \
  18589. archive_cmds \
  18590. archive_expsym_cmds \
  18591. module_cmds \
  18592. module_expsym_cmds \
  18593. export_symbols_cmds \
  18594. prelink_cmds \
  18595. postlink_cmds \
  18596. postinstall_cmds \
  18597. postuninstall_cmds \
  18598. finish_cmds \
  18599. sys_lib_search_path_spec \
  18600. sys_lib_dlsearch_path_spec \
  18601. reload_cmds_CXX \
  18602. old_archive_cmds_CXX \
  18603. old_archive_from_new_cmds_CXX \
  18604. old_archive_from_expsyms_cmds_CXX \
  18605. archive_cmds_CXX \
  18606. archive_expsym_cmds_CXX \
  18607. module_cmds_CXX \
  18608. module_expsym_cmds_CXX \
  18609. export_symbols_cmds_CXX \
  18610. prelink_cmds_CXX \
  18611. postlink_cmds_CXX; do
  18612.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18613.     *[\\\\\\\`\\"\\\$]*)
  18614.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  18615.       ;;
  18616.     *)
  18617.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18618.       ;;
  18619.     esac
  18620. done
  18621.  
  18622. ac_aux_dir='$ac_aux_dir'
  18623. xsi_shell='$xsi_shell'
  18624. lt_shell_append='$lt_shell_append'
  18625.  
  18626. # See if we are running on zsh, and set the options which allow our
  18627. # commands through without removal of \ escapes INIT.
  18628. if test -n "\${ZSH_VERSION+set}" ; then
  18629.    setopt NO_GLOB_SUBST
  18630. fi
  18631.  
  18632.  
  18633.     PACKAGE='$PACKAGE'
  18634.     VERSION='$VERSION'
  18635.     TIMESTAMP='$TIMESTAMP'
  18636.     RM='$RM'
  18637.     ofile='$ofile'
  18638.  
  18639.  
  18640.  
  18641.  
  18642.  
  18643.  
  18644. _ACEOF
  18645.  
  18646. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18647.  
  18648. # Handling of arguments.
  18649. for ac_config_target in $ac_config_targets
  18650. do
  18651.   case $ac_config_target in
  18652.     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  18653.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18654.     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18655.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18656.     "debian.upstream/Makefile") CONFIG_FILES="$CONFIG_FILES debian.upstream/Makefile" ;;
  18657.     "debian.upstream/changelog") CONFIG_FILES="$CONFIG_FILES debian.upstream/changelog" ;;
  18658.     "debian.upstream/control") CONFIG_FILES="$CONFIG_FILES debian.upstream/control" ;;
  18659.     "debian.upstream/libva$LIBVA_MAJOR_VERSION.install") CONFIG_FILES="$CONFIG_FILES debian.upstream/libva$LIBVA_MAJOR_VERSION.install:debian.upstream/libva.install.in" ;;
  18660.     "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" ;;
  18661.     "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" ;;
  18662.     "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" ;;
  18663.     "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" ;;
  18664.     "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" ;;
  18665.     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  18666.     "dummy_drv_video/Makefile") CONFIG_FILES="$CONFIG_FILES dummy_drv_video/Makefile" ;;
  18667.     "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
  18668.     "pkgconfig/libva-drm.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-drm.pc" ;;
  18669.     "pkgconfig/libva-egl.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-egl.pc" ;;
  18670.     "pkgconfig/libva-glx.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-glx.pc" ;;
  18671.     "pkgconfig/libva-tpi.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-tpi.pc" ;;
  18672.     "pkgconfig/libva-wayland.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-wayland.pc" ;;
  18673.     "pkgconfig/libva-x11.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva-x11.pc" ;;
  18674.     "pkgconfig/libva.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libva.pc" ;;
  18675.     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  18676.     "test/basic/Makefile") CONFIG_FILES="$CONFIG_FILES test/basic/Makefile" ;;
  18677.     "test/common/Makefile") CONFIG_FILES="$CONFIG_FILES test/common/Makefile" ;;
  18678.     "test/decode/Makefile") CONFIG_FILES="$CONFIG_FILES test/decode/Makefile" ;;
  18679.     "test/encode/Makefile") CONFIG_FILES="$CONFIG_FILES test/encode/Makefile" ;;
  18680.     "test/putsurface/Makefile") CONFIG_FILES="$CONFIG_FILES test/putsurface/Makefile" ;;
  18681.     "test/vainfo/Makefile") CONFIG_FILES="$CONFIG_FILES test/vainfo/Makefile" ;;
  18682.     "va/Makefile") CONFIG_FILES="$CONFIG_FILES va/Makefile" ;;
  18683.     "va/drm/Makefile") CONFIG_FILES="$CONFIG_FILES va/drm/Makefile" ;;
  18684.     "va/egl/Makefile") CONFIG_FILES="$CONFIG_FILES va/egl/Makefile" ;;
  18685.     "va/glx/Makefile") CONFIG_FILES="$CONFIG_FILES va/glx/Makefile" ;;
  18686.     "va/va_version.h") CONFIG_FILES="$CONFIG_FILES va/va_version.h" ;;
  18687.     "va/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES va/wayland/Makefile" ;;
  18688.     "va/x11/Makefile") CONFIG_FILES="$CONFIG_FILES va/x11/Makefile" ;;
  18689.  
  18690.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18691.   esac
  18692. done
  18693.  
  18694.  
  18695. # If the user did not use the arguments to specify the items to instantiate,
  18696. # then the envvar interface is used.  Set only those that are not.
  18697. # We use the long form for the default assignment because of an extremely
  18698. # bizarre bug on SunOS 4.1.3.
  18699. if $ac_need_defaults; then
  18700.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18701.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18702.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18703. fi
  18704.  
  18705. # Have a temporary directory for convenience.  Make it in the build tree
  18706. # simply because there is no reason against having it here, and in addition,
  18707. # creating and moving files from /tmp can sometimes cause problems.
  18708. # Hook for its removal unless debugging.
  18709. # Note that there is a small window in which the directory will not be cleaned:
  18710. # after its creation but before its name has been assigned to `$tmp'.
  18711. $debug ||
  18712. {
  18713.   tmp= ac_tmp=
  18714.   trap 'exit_status=$?
  18715.   : "${ac_tmp:=$tmp}"
  18716.   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18717. ' 0
  18718.   trap 'as_fn_exit 1' 1 2 13 15
  18719. }
  18720. # Create a (secure) tmp directory for tmp files.
  18721.  
  18722. {
  18723.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18724.   test -d "$tmp"
  18725. }  ||
  18726. {
  18727.   tmp=./conf$$-$RANDOM
  18728.   (umask 077 && mkdir "$tmp")
  18729. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18730. ac_tmp=$tmp
  18731.  
  18732. # Set up the scripts for CONFIG_FILES section.
  18733. # No need to generate them if there are no CONFIG_FILES.
  18734. # This happens for instance with `./config.status config.h'.
  18735. if test -n "$CONFIG_FILES"; then
  18736.  
  18737.  
  18738. ac_cr=`echo X | tr X '\015'`
  18739. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18740. # But we know of no other shell where ac_cr would be empty at this
  18741. # point, so we can use a bashism as a fallback.
  18742. if test "x$ac_cr" = x; then
  18743.   eval ac_cr=\$\'\\r\'
  18744. fi
  18745. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18746. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18747.   ac_cs_awk_cr='\\r'
  18748. else
  18749.   ac_cs_awk_cr=$ac_cr
  18750. fi
  18751.  
  18752. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18753. _ACEOF
  18754.  
  18755.  
  18756. {
  18757.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  18758.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18759.   echo "_ACEOF"
  18760. } >conf$$subs.sh ||
  18761.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18762. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18763. ac_delim='%!_!# '
  18764. for ac_last_try in false false false false false :; do
  18765.   . ./conf$$subs.sh ||
  18766.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18767.  
  18768.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18769.   if test $ac_delim_n = $ac_delim_num; then
  18770.     break
  18771.   elif $ac_last_try; then
  18772.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18773.   else
  18774.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18775.   fi
  18776. done
  18777. rm -f conf$$subs.sh
  18778.  
  18779. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18780. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18781. _ACEOF
  18782. sed -n '
  18783. h
  18784. s/^/S["/; s/!.*/"]=/
  18785. p
  18786. g
  18787. s/^[^!]*!//
  18788. :repl
  18789. t repl
  18790. s/'"$ac_delim"'$//
  18791. t delim
  18792. :nl
  18793. h
  18794. s/\(.\{148\}\)..*/\1/
  18795. t more1
  18796. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18797. p
  18798. n
  18799. b repl
  18800. :more1
  18801. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18802. p
  18803. g
  18804. s/.\{148\}//
  18805. t nl
  18806. :delim
  18807. h
  18808. s/\(.\{148\}\)..*/\1/
  18809. t more2
  18810. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18811. p
  18812. b
  18813. :more2
  18814. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18815. p
  18816. g
  18817. s/.\{148\}//
  18818. t delim
  18819. ' <conf$$subs.awk | sed '
  18820. /^[^""]/{
  18821.   N
  18822.   s/\n//
  18823. }
  18824. ' >>$CONFIG_STATUS || ac_write_fail=1
  18825. rm -f conf$$subs.awk
  18826. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18827. _ACAWK
  18828. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18829.   for (key in S) S_is_set[key] = 1
  18830.   FS = ""
  18831.  
  18832. }
  18833. {
  18834.   line = $ 0
  18835.   nfields = split(line, field, "@")
  18836.   substed = 0
  18837.   len = length(field[1])
  18838.   for (i = 2; i < nfields; i++) {
  18839.     key = field[i]
  18840.     keylen = length(key)
  18841.     if (S_is_set[key]) {
  18842.       value = S[key]
  18843.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18844.       len += length(value) + length(field[++i])
  18845.       substed = 1
  18846.     } else
  18847.       len += 1 + keylen
  18848.   }
  18849.  
  18850.   print line
  18851. }
  18852.  
  18853. _ACAWK
  18854. _ACEOF
  18855. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18856. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18857.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18858. else
  18859.   cat
  18860. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18861.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18862. _ACEOF
  18863.  
  18864. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18865. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18866. # trailing colons and then remove the whole line if VPATH becomes empty
  18867. # (actually we leave an empty line to preserve line numbers).
  18868. if test "x$srcdir" = x.; then
  18869.   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
  18870. h
  18871. s///
  18872. s/^/:/
  18873. s/[      ]*$/:/
  18874. s/:\$(srcdir):/:/g
  18875. s/:\${srcdir}:/:/g
  18876. s/:@srcdir@:/:/g
  18877. s/^:*//
  18878. s/:*$//
  18879. x
  18880. s/\(=[   ]*\).*/\1/
  18881. G
  18882. s/\n//
  18883. s/^[^=]*=[       ]*$//
  18884. }'
  18885. fi
  18886.  
  18887. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18888. fi # test -n "$CONFIG_FILES"
  18889.  
  18890. # Set up the scripts for CONFIG_HEADERS section.
  18891. # No need to generate them if there are no CONFIG_HEADERS.
  18892. # This happens for instance with `./config.status Makefile'.
  18893. if test -n "$CONFIG_HEADERS"; then
  18894. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18895. BEGIN {
  18896. _ACEOF
  18897.  
  18898. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18899. # here-document in config.status, that substitutes the proper values into
  18900. # config.h.in to produce config.h.
  18901.  
  18902. # Create a delimiter string that does not exist in confdefs.h, to ease
  18903. # handling of long lines.
  18904. ac_delim='%!_!# '
  18905. for ac_last_try in false false :; do
  18906.   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18907.   if test -z "$ac_tt"; then
  18908.     break
  18909.   elif $ac_last_try; then
  18910.     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18911.   else
  18912.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18913.   fi
  18914. done
  18915.  
  18916. # For the awk script, D is an array of macro values keyed by name,
  18917. # likewise P contains macro parameters if any.  Preserve backslash
  18918. # newline sequences.
  18919.  
  18920. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18921. sed -n '
  18922. s/.\{148\}/&'"$ac_delim"'/g
  18923. t rset
  18924. :rset
  18925. s/^[     ]*#[    ]*define[       ][      ]*/ /
  18926. t def
  18927. d
  18928. :def
  18929. s/\\$//
  18930. t bsnl
  18931. s/["\\]/\\&/g
  18932. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  18933. D["\1"]=" \3"/p
  18934. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
  18935. d
  18936. :bsnl
  18937. s/["\\]/\\&/g
  18938. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  18939. D["\1"]=" \3\\\\\\n"\\/p
  18940. t cont
  18941. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18942. t cont
  18943. d
  18944. :cont
  18945. n
  18946. s/.\{148\}/&'"$ac_delim"'/g
  18947. t clear
  18948. :clear
  18949. s/\\$//
  18950. t bsnlc
  18951. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18952. d
  18953. :bsnlc
  18954. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18955. b cont
  18956. ' <confdefs.h | sed '
  18957. s/'"$ac_delim"'/"\\\
  18958. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18959.  
  18960. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18961.   for (key in D) D_is_set[key] = 1
  18962.   FS = ""
  18963. }
  18964. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18965.   line = \$ 0
  18966.   split(line, arg, " ")
  18967.   if (arg[1] == "#") {
  18968.     defundef = arg[2]
  18969.     mac1 = arg[3]
  18970.   } else {
  18971.     defundef = substr(arg[1], 2)
  18972.     mac1 = arg[2]
  18973.   }
  18974.   split(mac1, mac2, "(") #)
  18975.   macro = mac2[1]
  18976.   prefix = substr(line, 1, index(line, defundef) - 1)
  18977.   if (D_is_set[macro]) {
  18978.     # Preserve the white space surrounding the "#".
  18979.     print prefix "define", macro P[macro] D[macro]
  18980.     next
  18981.   } else {
  18982.     # Replace #undef with comments.  This is necessary, for example,
  18983.     # in the case of _POSIX_SOURCE, which is predefined and required
  18984.     # on some systems where configure will not decide to define it.
  18985.     if (defundef == "undef") {
  18986.       print "/*", prefix defundef, macro, "*/"
  18987.       next
  18988.     }
  18989.   }
  18990. }
  18991. { print }
  18992. _ACAWK
  18993. _ACEOF
  18994. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18995.   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18996. fi # test -n "$CONFIG_HEADERS"
  18997.  
  18998.  
  18999. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  19000. shift
  19001. for ac_tag
  19002. do
  19003.   case $ac_tag in
  19004.   :[FHLC]) ac_mode=$ac_tag; continue;;
  19005.   esac
  19006.   case $ac_mode$ac_tag in
  19007.   :[FHL]*:*);;
  19008.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19009.   :[FH]-) ac_tag=-:-;;
  19010.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19011.   esac
  19012.   ac_save_IFS=$IFS
  19013.   IFS=:
  19014.   set x $ac_tag
  19015.   IFS=$ac_save_IFS
  19016.   shift
  19017.   ac_file=$1
  19018.   shift
  19019.  
  19020.   case $ac_mode in
  19021.   :L) ac_source=$1;;
  19022.   :[FH])
  19023.     ac_file_inputs=
  19024.     for ac_f
  19025.     do
  19026.       case $ac_f in
  19027.       -) ac_f="$ac_tmp/stdin";;
  19028.       *) # Look for the file first in the build tree, then in the source tree
  19029.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  19030.          # because $ac_f cannot contain `:'.
  19031.          test -f "$ac_f" ||
  19032.            case $ac_f in
  19033.            [\\/$]*) false;;
  19034.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19035.            esac ||
  19036.            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19037.       esac
  19038.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19039.       as_fn_append ac_file_inputs " '$ac_f'"
  19040.     done
  19041.  
  19042.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  19043.     # use $as_me), people would be surprised to read:
  19044.     #    /* config.h.  Generated by config.status.  */
  19045.     configure_input='Generated from '`
  19046.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19047.         `' by configure.'
  19048.     if test x"$ac_file" != x-; then
  19049.       configure_input="$ac_file.  $configure_input"
  19050.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19051. $as_echo "$as_me: creating $ac_file" >&6;}
  19052.     fi
  19053.     # Neutralize special characters interpreted by sed in replacement strings.
  19054.     case $configure_input in #(
  19055.     *\&* | *\|* | *\\* )
  19056.        ac_sed_conf_input=`$as_echo "$configure_input" |
  19057.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19058.     *) ac_sed_conf_input=$configure_input;;
  19059.     esac
  19060.  
  19061.     case $ac_tag in
  19062.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19063.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19064.     esac
  19065.     ;;
  19066.   esac
  19067.  
  19068.   ac_dir=`$as_dirname -- "$ac_file" ||
  19069. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19070.          X"$ac_file" : 'X\(//\)[^/]' \| \
  19071.          X"$ac_file" : 'X\(//\)$' \| \
  19072.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19073. $as_echo X"$ac_file" |
  19074.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19075.             s//\1/
  19076.             q
  19077.           }
  19078.           /^X\(\/\/\)[^/].*/{
  19079.             s//\1/
  19080.             q
  19081.           }
  19082.           /^X\(\/\/\)$/{
  19083.             s//\1/
  19084.             q
  19085.           }
  19086.           /^X\(\/\).*/{
  19087.             s//\1/
  19088.             q
  19089.           }
  19090.           s/.*/./; q'`
  19091.   as_dir="$ac_dir"; as_fn_mkdir_p
  19092.   ac_builddir=.
  19093.  
  19094. case "$ac_dir" in
  19095. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19096. *)
  19097.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19098.   # A ".." for each directory in $ac_dir_suffix.
  19099.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19100.   case $ac_top_builddir_sub in
  19101.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19102.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19103.   esac ;;
  19104. esac
  19105. ac_abs_top_builddir=$ac_pwd
  19106. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19107. # for backward compatibility:
  19108. ac_top_builddir=$ac_top_build_prefix
  19109.  
  19110. case $srcdir in
  19111.   .)  # We are building in place.
  19112.     ac_srcdir=.
  19113.     ac_top_srcdir=$ac_top_builddir_sub
  19114.     ac_abs_top_srcdir=$ac_pwd ;;
  19115.   [\\/]* | ?:[\\/]* )  # Absolute name.
  19116.     ac_srcdir=$srcdir$ac_dir_suffix;
  19117.     ac_top_srcdir=$srcdir
  19118.     ac_abs_top_srcdir=$srcdir ;;
  19119.   *) # Relative name.
  19120.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19121.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  19122.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19123. esac
  19124. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19125.  
  19126.  
  19127.   case $ac_mode in
  19128.   :F)
  19129.   #
  19130.   # CONFIG_FILE
  19131.   #
  19132.  
  19133.   case $INSTALL in
  19134.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19135.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19136.   esac
  19137.   ac_MKDIR_P=$MKDIR_P
  19138.   case $MKDIR_P in
  19139.   [\\/$]* | ?:[\\/]* ) ;;
  19140.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19141.   esac
  19142. _ACEOF
  19143.  
  19144. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19145. # If the template does not know about datarootdir, expand it.
  19146. # FIXME: This hack should be removed a few years after 2.60.
  19147. ac_datarootdir_hack=; ac_datarootdir_seen=
  19148. ac_sed_dataroot='
  19149. /datarootdir/ {
  19150.   p
  19151.   q
  19152. }
  19153. /@datadir@/p
  19154. /@docdir@/p
  19155. /@infodir@/p
  19156. /@localedir@/p
  19157. /@mandir@/p'
  19158. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19159. *datarootdir*) ac_datarootdir_seen=yes;;
  19160. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19161.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19162. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19163. _ACEOF
  19164. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19165.   ac_datarootdir_hack='
  19166.   s&@datadir@&$datadir&g
  19167.   s&@docdir@&$docdir&g
  19168.   s&@infodir@&$infodir&g
  19169.   s&@localedir@&$localedir&g
  19170.   s&@mandir@&$mandir&g
  19171.   s&\\\${datarootdir}&$datarootdir&g' ;;
  19172. esac
  19173. _ACEOF
  19174.  
  19175. # Neutralize VPATH when `$srcdir' = `.'.
  19176. # Shell code in configure.ac might set extrasub.
  19177. # FIXME: do we really want to maintain this feature?
  19178. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19179. ac_sed_extra="$ac_vpsub
  19180. $extrasub
  19181. _ACEOF
  19182. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19183. :t
  19184. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19185. s|@configure_input@|$ac_sed_conf_input|;t t
  19186. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19187. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19188. s&@srcdir@&$ac_srcdir&;t t
  19189. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19190. s&@top_srcdir@&$ac_top_srcdir&;t t
  19191. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19192. s&@builddir@&$ac_builddir&;t t
  19193. s&@abs_builddir@&$ac_abs_builddir&;t t
  19194. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19195. s&@INSTALL@&$ac_INSTALL&;t t
  19196. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19197. $ac_datarootdir_hack
  19198. "
  19199. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19200.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19201.  
  19202. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19203.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19204.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  19205.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19206.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19207. which seems to be undefined.  Please make sure it is defined" >&5
  19208. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19209. which seems to be undefined.  Please make sure it is defined" >&2;}
  19210.  
  19211.   rm -f "$ac_tmp/stdin"
  19212.   case $ac_file in
  19213.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19214.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19215.   esac \
  19216.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19217.  ;;
  19218.   :H)
  19219.   #
  19220.   # CONFIG_HEADER
  19221.   #
  19222.   if test x"$ac_file" != x-; then
  19223.     {
  19224.       $as_echo "/* $configure_input  */" \
  19225.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19226.     } >"$ac_tmp/config.h" \
  19227.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19228.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19229.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19230. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19231.     else
  19232.       rm -f "$ac_file"
  19233.       mv "$ac_tmp/config.h" "$ac_file" \
  19234.         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19235.     fi
  19236.   else
  19237.     $as_echo "/* $configure_input  */" \
  19238.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19239.       || as_fn_error $? "could not create -" "$LINENO" 5
  19240.   fi
  19241. # Compute "$ac_file"'s index in $config_headers.
  19242. _am_arg="$ac_file"
  19243. _am_stamp_count=1
  19244. for _am_header in $config_headers :; do
  19245.   case $_am_header in
  19246.     $_am_arg | $_am_arg:* )
  19247.       break ;;
  19248.     * )
  19249.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19250.   esac
  19251. done
  19252. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19253. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19254.          X"$_am_arg" : 'X\(//\)[^/]' \| \
  19255.          X"$_am_arg" : 'X\(//\)$' \| \
  19256.          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19257. $as_echo X"$_am_arg" |
  19258.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19259.             s//\1/
  19260.             q
  19261.           }
  19262.           /^X\(\/\/\)[^/].*/{
  19263.             s//\1/
  19264.             q
  19265.           }
  19266.           /^X\(\/\/\)$/{
  19267.             s//\1/
  19268.             q
  19269.           }
  19270.           /^X\(\/\).*/{
  19271.             s//\1/
  19272.             q
  19273.           }
  19274.           s/.*/./; q'`/stamp-h$_am_stamp_count
  19275.  ;;
  19276.  
  19277.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19278. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19279.  ;;
  19280.   esac
  19281.  
  19282.  
  19283.   case $ac_file$ac_mode in
  19284.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19285.   # Older Autoconf quotes --file arguments for eval, but not when files
  19286.   # are listed without --file.  Let's play safe and only enable the eval
  19287.   # if we detect the quoting.
  19288.   case $CONFIG_FILES in
  19289.   *\'*) eval set x "$CONFIG_FILES" ;;
  19290.   *)   set x $CONFIG_FILES ;;
  19291.   esac
  19292.   shift
  19293.   for mf
  19294.   do
  19295.     # Strip MF so we end up with the name of the file.
  19296.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  19297.     # Check whether this is an Automake generated Makefile or not.
  19298.     # We used to match only the files named 'Makefile.in', but
  19299.     # some people rename them; so instead we look at the file content.
  19300.     # Grep'ing the first line is not enough: some people post-process
  19301.     # each Makefile.in and add a new line on top of each file to say so.
  19302.     # Grep'ing the whole file is not good either: AIX grep has a line
  19303.     # limit of 2048, but all sed's we know have understand at least 4000.
  19304.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19305.       dirpart=`$as_dirname -- "$mf" ||
  19306. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19307.          X"$mf" : 'X\(//\)[^/]' \| \
  19308.          X"$mf" : 'X\(//\)$' \| \
  19309.          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19310. $as_echo X"$mf" |
  19311.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19312.             s//\1/
  19313.             q
  19314.           }
  19315.           /^X\(\/\/\)[^/].*/{
  19316.             s//\1/
  19317.             q
  19318.           }
  19319.           /^X\(\/\/\)$/{
  19320.             s//\1/
  19321.             q
  19322.           }
  19323.           /^X\(\/\).*/{
  19324.             s//\1/
  19325.             q
  19326.           }
  19327.           s/.*/./; q'`
  19328.     else
  19329.       continue
  19330.     fi
  19331.     # Extract the definition of DEPDIR, am__include, and am__quote
  19332.     # from the Makefile without running 'make'.
  19333.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19334.     test -z "$DEPDIR" && continue
  19335.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19336.     test -z "$am__include" && continue
  19337.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19338.     # Find all dependency output files, they are included files with
  19339.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  19340.     # simplest approach to changing $(DEPDIR) to its actual value in the
  19341.     # expansion.
  19342.     for file in `sed -n "
  19343.       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19344.          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19345.       # Make sure the directory exists.
  19346.       test -f "$dirpart/$file" && continue
  19347.       fdir=`$as_dirname -- "$file" ||
  19348. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19349.          X"$file" : 'X\(//\)[^/]' \| \
  19350.          X"$file" : 'X\(//\)$' \| \
  19351.          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19352. $as_echo X"$file" |
  19353.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19354.             s//\1/
  19355.             q
  19356.           }
  19357.           /^X\(\/\/\)[^/].*/{
  19358.             s//\1/
  19359.             q
  19360.           }
  19361.           /^X\(\/\/\)$/{
  19362.             s//\1/
  19363.             q
  19364.           }
  19365.           /^X\(\/\).*/{
  19366.             s//\1/
  19367.             q
  19368.           }
  19369.           s/.*/./; q'`
  19370.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19371.       # echo "creating $dirpart/$file"
  19372.       echo '# dummy' > "$dirpart/$file"
  19373.     done
  19374.   done
  19375. }
  19376.  ;;
  19377.     "libtool":C)
  19378.  
  19379.     # See if we are running on zsh, and set the options which allow our
  19380.     # commands through without removal of \ escapes.
  19381.     if test -n "${ZSH_VERSION+set}" ; then
  19382.       setopt NO_GLOB_SUBST
  19383.     fi
  19384.  
  19385.     cfgfile="${ofile}T"
  19386.     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19387.     $RM "$cfgfile"
  19388.  
  19389.     cat <<_LT_EOF >> "$cfgfile"
  19390. #! $SHELL
  19391.  
  19392. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19393. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  19394. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19395. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19396. #
  19397. #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19398. #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  19399. #                 Foundation, Inc.
  19400. #   Written by Gordon Matzigkeit, 1996
  19401. #
  19402. #   This file is part of GNU Libtool.
  19403. #
  19404. # GNU Libtool is free software; you can redistribute it and/or
  19405. # modify it under the terms of the GNU General Public License as
  19406. # published by the Free Software Foundation; either version 2 of
  19407. # the License, or (at your option) any later version.
  19408. #
  19409. # As a special exception to the GNU General Public License,
  19410. # if you distribute this file as part of a program or library that
  19411. # is built using GNU Libtool, you may include this file under the
  19412. # same distribution terms that you use for the rest of that program.
  19413. #
  19414. # GNU Libtool is distributed in the hope that it will be useful,
  19415. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19416. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19417. # GNU General Public License for more details.
  19418. #
  19419. # You should have received a copy of the GNU General Public License
  19420. # along with GNU Libtool; see the file COPYING.  If not, a copy
  19421. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  19422. # obtained by writing to the Free Software Foundation, Inc.,
  19423. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19424.  
  19425.  
  19426. # The names of the tagged configurations supported by this script.
  19427. available_tags="CXX "
  19428.  
  19429. # ### BEGIN LIBTOOL CONFIG
  19430.  
  19431. # Whether or not to build static libraries.
  19432. build_old_libs=$enable_static
  19433.  
  19434. # Which release of libtool.m4 was used?
  19435. macro_version=$macro_version
  19436. macro_revision=$macro_revision
  19437.  
  19438. # Whether or not to build shared libraries.
  19439. build_libtool_libs=$enable_shared
  19440.  
  19441. # What type of objects to build.
  19442. pic_mode=$pic_mode
  19443.  
  19444. # Whether or not to optimize for fast installation.
  19445. fast_install=$enable_fast_install
  19446.  
  19447. # Shell to use when invoking shell scripts.
  19448. SHELL=$lt_SHELL
  19449.  
  19450. # An echo program that protects backslashes.
  19451. ECHO=$lt_ECHO
  19452.  
  19453. # The PATH separator for the build system.
  19454. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19455.  
  19456. # The host system.
  19457. host_alias=$host_alias
  19458. host=$host
  19459. host_os=$host_os
  19460.  
  19461. # The build system.
  19462. build_alias=$build_alias
  19463. build=$build
  19464. build_os=$build_os
  19465.  
  19466. # A sed program that does not truncate output.
  19467. SED=$lt_SED
  19468.  
  19469. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19470. Xsed="\$SED -e 1s/^X//"
  19471.  
  19472. # A grep program that handles long lines.
  19473. GREP=$lt_GREP
  19474.  
  19475. # An ERE matcher.
  19476. EGREP=$lt_EGREP
  19477.  
  19478. # A literal string matcher.
  19479. FGREP=$lt_FGREP
  19480.  
  19481. # A BSD- or MS-compatible name lister.
  19482. NM=$lt_NM
  19483.  
  19484. # Whether we need soft or hard links.
  19485. LN_S=$lt_LN_S
  19486.  
  19487. # What is the maximum length of a command?
  19488. max_cmd_len=$max_cmd_len
  19489.  
  19490. # Object file suffix (normally "o").
  19491. objext=$ac_objext
  19492.  
  19493. # Executable file suffix (normally "").
  19494. exeext=$exeext
  19495.  
  19496. # whether the shell understands "unset".
  19497. lt_unset=$lt_unset
  19498.  
  19499. # turn spaces into newlines.
  19500. SP2NL=$lt_lt_SP2NL
  19501.  
  19502. # turn newlines into spaces.
  19503. NL2SP=$lt_lt_NL2SP
  19504.  
  19505. # convert \$build file names to \$host format.
  19506. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19507.  
  19508. # convert \$build files to toolchain format.
  19509. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19510.  
  19511. # An object symbol dumper.
  19512. OBJDUMP=$lt_OBJDUMP
  19513.  
  19514. # Method to check whether dependent libraries are shared objects.
  19515. deplibs_check_method=$lt_deplibs_check_method
  19516.  
  19517. # Command to use when deplibs_check_method = "file_magic".
  19518. file_magic_cmd=$lt_file_magic_cmd
  19519.  
  19520. # How to find potential files when deplibs_check_method = "file_magic".
  19521. file_magic_glob=$lt_file_magic_glob
  19522.  
  19523. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19524. want_nocaseglob=$lt_want_nocaseglob
  19525.  
  19526. # DLL creation program.
  19527. DLLTOOL=$lt_DLLTOOL
  19528.  
  19529. # Command to associate shared and link libraries.
  19530. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19531.  
  19532. # The archiver.
  19533. AR=$lt_AR
  19534.  
  19535. # Flags to create an archive.
  19536. AR_FLAGS=$lt_AR_FLAGS
  19537.  
  19538. # How to feed a file listing to the archiver.
  19539. archiver_list_spec=$lt_archiver_list_spec
  19540.  
  19541. # A symbol stripping program.
  19542. STRIP=$lt_STRIP
  19543.  
  19544. # Commands used to install an old-style archive.
  19545. RANLIB=$lt_RANLIB
  19546. old_postinstall_cmds=$lt_old_postinstall_cmds
  19547. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19548.  
  19549. # Whether to use a lock for old archive extraction.
  19550. lock_old_archive_extraction=$lock_old_archive_extraction
  19551.  
  19552. # A C compiler.
  19553. LTCC=$lt_CC
  19554.  
  19555. # LTCC compiler flags.
  19556. LTCFLAGS=$lt_CFLAGS
  19557.  
  19558. # Take the output of nm and produce a listing of raw symbols and C names.
  19559. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19560.  
  19561. # Transform the output of nm in a proper C declaration.
  19562. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19563.  
  19564. # Transform the output of nm in a C name address pair.
  19565. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19566.  
  19567. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19568. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19569.  
  19570. # Specify filename containing input files for \$NM.
  19571. nm_file_list_spec=$lt_nm_file_list_spec
  19572.  
  19573. # The root where to search for dependent libraries,and in which our libraries should be installed.
  19574. lt_sysroot=$lt_sysroot
  19575.  
  19576. # The name of the directory that contains temporary libtool files.
  19577. objdir=$objdir
  19578.  
  19579. # Used to examine libraries when file_magic_cmd begins with "file".
  19580. MAGIC_CMD=$MAGIC_CMD
  19581.  
  19582. # Must we lock files when doing compilation?
  19583. need_locks=$lt_need_locks
  19584.  
  19585. # Manifest tool.
  19586. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19587.  
  19588. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19589. DSYMUTIL=$lt_DSYMUTIL
  19590.  
  19591. # Tool to change global to local symbols on Mac OS X.
  19592. NMEDIT=$lt_NMEDIT
  19593.  
  19594. # Tool to manipulate fat objects and archives on Mac OS X.
  19595. LIPO=$lt_LIPO
  19596.  
  19597. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19598. OTOOL=$lt_OTOOL
  19599.  
  19600. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19601. OTOOL64=$lt_OTOOL64
  19602.  
  19603. # Old archive suffix (normally "a").
  19604. libext=$libext
  19605.  
  19606. # Shared library suffix (normally ".so").
  19607. shrext_cmds=$lt_shrext_cmds
  19608.  
  19609. # The commands to extract the exported symbol list from a shared archive.
  19610. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19611.  
  19612. # Variables whose values should be saved in libtool wrapper scripts and
  19613. # restored at link time.
  19614. variables_saved_for_relink=$lt_variables_saved_for_relink
  19615.  
  19616. # Do we need the "lib" prefix for modules?
  19617. need_lib_prefix=$need_lib_prefix
  19618.  
  19619. # Do we need a version for libraries?
  19620. need_version=$need_version
  19621.  
  19622. # Library versioning type.
  19623. version_type=$version_type
  19624.  
  19625. # Shared library runtime path variable.
  19626. runpath_var=$runpath_var
  19627.  
  19628. # Shared library path variable.
  19629. shlibpath_var=$shlibpath_var
  19630.  
  19631. # Is shlibpath searched before the hard-coded library search path?
  19632. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19633.  
  19634. # Format of library name prefix.
  19635. libname_spec=$lt_libname_spec
  19636.  
  19637. # List of archive names.  First name is the real one, the rest are links.
  19638. # The last name is the one that the linker finds with -lNAME
  19639. library_names_spec=$lt_library_names_spec
  19640.  
  19641. # The coded name of the library, if different from the real name.
  19642. soname_spec=$lt_soname_spec
  19643.  
  19644. # Permission mode override for installation of shared libraries.
  19645. install_override_mode=$lt_install_override_mode
  19646.  
  19647. # Command to use after installation of a shared archive.
  19648. postinstall_cmds=$lt_postinstall_cmds
  19649.  
  19650. # Command to use after uninstallation of a shared archive.
  19651. postuninstall_cmds=$lt_postuninstall_cmds
  19652.  
  19653. # Commands used to finish a libtool library installation in a directory.
  19654. finish_cmds=$lt_finish_cmds
  19655.  
  19656. # As "finish_cmds", except a single script fragment to be evaled but
  19657. # not shown.
  19658. finish_eval=$lt_finish_eval
  19659.  
  19660. # Whether we should hardcode library paths into libraries.
  19661. hardcode_into_libs=$hardcode_into_libs
  19662.  
  19663. # Compile-time system search path for libraries.
  19664. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19665.  
  19666. # Run-time system search path for libraries.
  19667. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19668.  
  19669. # Whether dlopen is supported.
  19670. dlopen_support=$enable_dlopen
  19671.  
  19672. # Whether dlopen of programs is supported.
  19673. dlopen_self=$enable_dlopen_self
  19674.  
  19675. # Whether dlopen of statically linked programs is supported.
  19676. dlopen_self_static=$enable_dlopen_self_static
  19677.  
  19678. # Commands to strip libraries.
  19679. old_striplib=$lt_old_striplib
  19680. striplib=$lt_striplib
  19681.  
  19682.  
  19683. # The linker used to build libraries.
  19684. LD=$lt_LD
  19685.  
  19686. # How to create reloadable object files.
  19687. reload_flag=$lt_reload_flag
  19688. reload_cmds=$lt_reload_cmds
  19689.  
  19690. # Commands used to build an old-style archive.
  19691. old_archive_cmds=$lt_old_archive_cmds
  19692.  
  19693. # A language specific compiler.
  19694. CC=$lt_compiler
  19695.  
  19696. # Is the compiler the GNU compiler?
  19697. with_gcc=$GCC
  19698.  
  19699. # Compiler flag to turn off builtin functions.
  19700. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19701.  
  19702. # Additional compiler flags for building library objects.
  19703. pic_flag=$lt_lt_prog_compiler_pic
  19704.  
  19705. # How to pass a linker flag through the compiler.
  19706. wl=$lt_lt_prog_compiler_wl
  19707.  
  19708. # Compiler flag to prevent dynamic linking.
  19709. link_static_flag=$lt_lt_prog_compiler_static
  19710.  
  19711. # Does compiler simultaneously support -c and -o options?
  19712. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19713.  
  19714. # Whether or not to add -lc for building shared libraries.
  19715. build_libtool_need_lc=$archive_cmds_need_lc
  19716.  
  19717. # Whether or not to disallow shared libs when runtime libs are static.
  19718. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19719.  
  19720. # Compiler flag to allow reflexive dlopens.
  19721. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19722.  
  19723. # Compiler flag to generate shared objects directly from archives.
  19724. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19725.  
  19726. # Whether the compiler copes with passing no objects directly.
  19727. compiler_needs_object=$lt_compiler_needs_object
  19728.  
  19729. # Create an old-style archive from a shared archive.
  19730. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19731.  
  19732. # Create a temporary old-style archive to link instead of a shared archive.
  19733. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19734.  
  19735. # Commands used to build a shared archive.
  19736. archive_cmds=$lt_archive_cmds
  19737. archive_expsym_cmds=$lt_archive_expsym_cmds
  19738.  
  19739. # Commands used to build a loadable module if different from building
  19740. # a shared archive.
  19741. module_cmds=$lt_module_cmds
  19742. module_expsym_cmds=$lt_module_expsym_cmds
  19743.  
  19744. # Whether we are building with GNU ld or not.
  19745. with_gnu_ld=$lt_with_gnu_ld
  19746.  
  19747. # Flag that allows shared libraries with undefined symbols to be built.
  19748. allow_undefined_flag=$lt_allow_undefined_flag
  19749.  
  19750. # Flag that enforces no undefined symbols.
  19751. no_undefined_flag=$lt_no_undefined_flag
  19752.  
  19753. # Flag to hardcode \$libdir into a binary during linking.
  19754. # This must work even if \$libdir does not exist
  19755. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19756.  
  19757. # Whether we need a single "-rpath" flag with a separated argument.
  19758. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19759.  
  19760. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19761. # DIR into the resulting binary.
  19762. hardcode_direct=$hardcode_direct
  19763.  
  19764. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19765. # DIR into the resulting binary and the resulting library dependency is
  19766. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  19767. # library is relocated.
  19768. hardcode_direct_absolute=$hardcode_direct_absolute
  19769.  
  19770. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19771. # into the resulting binary.
  19772. hardcode_minus_L=$hardcode_minus_L
  19773.  
  19774. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19775. # into the resulting binary.
  19776. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19777.  
  19778. # Set to "yes" if building a shared library automatically hardcodes DIR
  19779. # into the library and all subsequent libraries and executables linked
  19780. # against it.
  19781. hardcode_automatic=$hardcode_automatic
  19782.  
  19783. # Set to yes if linker adds runtime paths of dependent libraries
  19784. # to runtime path list.
  19785. inherit_rpath=$inherit_rpath
  19786.  
  19787. # Whether libtool must link a program against all its dependency libraries.
  19788. link_all_deplibs=$link_all_deplibs
  19789.  
  19790. # Set to "yes" if exported symbols are required.
  19791. always_export_symbols=$always_export_symbols
  19792.  
  19793. # The commands to list exported symbols.
  19794. export_symbols_cmds=$lt_export_symbols_cmds
  19795.  
  19796. # Symbols that should not be listed in the preloaded symbols.
  19797. exclude_expsyms=$lt_exclude_expsyms
  19798.  
  19799. # Symbols that must always be exported.
  19800. include_expsyms=$lt_include_expsyms
  19801.  
  19802. # Commands necessary for linking programs (against libraries) with templates.
  19803. prelink_cmds=$lt_prelink_cmds
  19804.  
  19805. # Commands necessary for finishing linking programs.
  19806. postlink_cmds=$lt_postlink_cmds
  19807.  
  19808. # Specify filename containing input files.
  19809. file_list_spec=$lt_file_list_spec
  19810.  
  19811. # How to hardcode a shared library path into an executable.
  19812. hardcode_action=$hardcode_action
  19813.  
  19814. # The directories searched by this compiler when creating a shared library.
  19815. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19816.  
  19817. # Dependencies to place before and after the objects being linked to
  19818. # create a shared library.
  19819. predep_objects=$lt_predep_objects
  19820. postdep_objects=$lt_postdep_objects
  19821. predeps=$lt_predeps
  19822. postdeps=$lt_postdeps
  19823.  
  19824. # The library search path used internally by the compiler when linking
  19825. # a shared library.
  19826. compiler_lib_search_path=$lt_compiler_lib_search_path
  19827.  
  19828. # ### END LIBTOOL CONFIG
  19829.  
  19830. _LT_EOF
  19831.  
  19832.   case $host_os in
  19833.   aix3*)
  19834.     cat <<\_LT_EOF >> "$cfgfile"
  19835. # AIX sometimes has problems with the GCC collect2 program.  For some
  19836. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19837. # vanish in a puff of smoke.
  19838. if test "X${COLLECT_NAMES+set}" != Xset; then
  19839.   COLLECT_NAMES=
  19840.   export COLLECT_NAMES
  19841. fi
  19842. _LT_EOF
  19843.     ;;
  19844.   esac
  19845.  
  19846.  
  19847. ltmain="$ac_aux_dir/ltmain.sh"
  19848.  
  19849.  
  19850.   # We use sed instead of cat because bash on DJGPP gets confused if
  19851.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  19852.   # text mode, it properly converts lines to CR/LF.  This bash problem
  19853.   # is reportedly fixed, but why not run on old versions too?
  19854.   sed '$q' "$ltmain" >> "$cfgfile" \
  19855.      || (rm -f "$cfgfile"; exit 1)
  19856.  
  19857.   if test x"$xsi_shell" = xyes; then
  19858.   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  19859. func_dirname ()\
  19860. {\
  19861. \    case ${1} in\
  19862. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  19863. \      *  ) func_dirname_result="${3}" ;;\
  19864. \    esac\
  19865. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  19866.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19867.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19868. test 0 -eq $? || _lt_function_replace_fail=:
  19869.  
  19870.  
  19871.   sed -e '/^func_basename ()$/,/^} # func_basename /c\
  19872. func_basename ()\
  19873. {\
  19874. \    func_basename_result="${1##*/}"\
  19875. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  19876.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19877.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19878. test 0 -eq $? || _lt_function_replace_fail=:
  19879.  
  19880.  
  19881.   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  19882. func_dirname_and_basename ()\
  19883. {\
  19884. \    case ${1} in\
  19885. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  19886. \      *  ) func_dirname_result="${3}" ;;\
  19887. \    esac\
  19888. \    func_basename_result="${1##*/}"\
  19889. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  19890.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19891.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19892. test 0 -eq $? || _lt_function_replace_fail=:
  19893.  
  19894.  
  19895.   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  19896. func_stripname ()\
  19897. {\
  19898. \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  19899. \    # positional parameters, so assign one to ordinary parameter first.\
  19900. \    func_stripname_result=${3}\
  19901. \    func_stripname_result=${func_stripname_result#"${1}"}\
  19902. \    func_stripname_result=${func_stripname_result%"${2}"}\
  19903. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  19904.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19905.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19906. test 0 -eq $? || _lt_function_replace_fail=:
  19907.  
  19908.  
  19909.   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  19910. func_split_long_opt ()\
  19911. {\
  19912. \    func_split_long_opt_name=${1%%=*}\
  19913. \    func_split_long_opt_arg=${1#*=}\
  19914. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  19915.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19916.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19917. test 0 -eq $? || _lt_function_replace_fail=:
  19918.  
  19919.  
  19920.   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  19921. func_split_short_opt ()\
  19922. {\
  19923. \    func_split_short_opt_arg=${1#??}\
  19924. \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  19925. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  19926.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19927.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19928. test 0 -eq $? || _lt_function_replace_fail=:
  19929.  
  19930.  
  19931.   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  19932. func_lo2o ()\
  19933. {\
  19934. \    case ${1} in\
  19935. \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  19936. \      *)    func_lo2o_result=${1} ;;\
  19937. \    esac\
  19938. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  19939.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19940.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19941. test 0 -eq $? || _lt_function_replace_fail=:
  19942.  
  19943.  
  19944.   sed -e '/^func_xform ()$/,/^} # func_xform /c\
  19945. func_xform ()\
  19946. {\
  19947.     func_xform_result=${1%.*}.lo\
  19948. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  19949.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19950.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19951. test 0 -eq $? || _lt_function_replace_fail=:
  19952.  
  19953.  
  19954.   sed -e '/^func_arith ()$/,/^} # func_arith /c\
  19955. func_arith ()\
  19956. {\
  19957.     func_arith_result=$(( $* ))\
  19958. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  19959.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19960.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19961. test 0 -eq $? || _lt_function_replace_fail=:
  19962.  
  19963.  
  19964.   sed -e '/^func_len ()$/,/^} # func_len /c\
  19965. func_len ()\
  19966. {\
  19967.     func_len_result=${#1}\
  19968. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  19969.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19970.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19971. test 0 -eq $? || _lt_function_replace_fail=:
  19972.  
  19973. fi
  19974.  
  19975. if test x"$lt_shell_append" = xyes; then
  19976.   sed -e '/^func_append ()$/,/^} # func_append /c\
  19977. func_append ()\
  19978. {\
  19979.     eval "${1}+=\\${2}"\
  19980. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  19981.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19982.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19983. test 0 -eq $? || _lt_function_replace_fail=:
  19984.  
  19985.  
  19986.   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  19987. func_append_quoted ()\
  19988. {\
  19989. \    func_quote_for_eval "${2}"\
  19990. \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  19991. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  19992.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  19993.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  19994. test 0 -eq $? || _lt_function_replace_fail=:
  19995.  
  19996.  
  19997.   # Save a `func_append' function call where possible by direct use of '+='
  19998.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  19999.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  20000.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20001.   test 0 -eq $? || _lt_function_replace_fail=:
  20002. else
  20003.   # Save a `func_append' function call even when '+=' is not available
  20004.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20005.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  20006.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20007.   test 0 -eq $? || _lt_function_replace_fail=:
  20008. fi
  20009.  
  20010. if test x"$_lt_function_replace_fail" = x":"; then
  20011.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20012. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20013. fi
  20014.  
  20015.  
  20016.    mv -f "$cfgfile" "$ofile" ||
  20017.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20018.   chmod +x "$ofile"
  20019.  
  20020.  
  20021.     cat <<_LT_EOF >> "$ofile"
  20022.  
  20023. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20024.  
  20025. # The linker used to build libraries.
  20026. LD=$lt_LD_CXX
  20027.  
  20028. # How to create reloadable object files.
  20029. reload_flag=$lt_reload_flag_CXX
  20030. reload_cmds=$lt_reload_cmds_CXX
  20031.  
  20032. # Commands used to build an old-style archive.
  20033. old_archive_cmds=$lt_old_archive_cmds_CXX
  20034.  
  20035. # A language specific compiler.
  20036. CC=$lt_compiler_CXX
  20037.  
  20038. # Is the compiler the GNU compiler?
  20039. with_gcc=$GCC_CXX
  20040.  
  20041. # Compiler flag to turn off builtin functions.
  20042. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20043.  
  20044. # Additional compiler flags for building library objects.
  20045. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20046.  
  20047. # How to pass a linker flag through the compiler.
  20048. wl=$lt_lt_prog_compiler_wl_CXX
  20049.  
  20050. # Compiler flag to prevent dynamic linking.
  20051. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20052.  
  20053. # Does compiler simultaneously support -c and -o options?
  20054. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20055.  
  20056. # Whether or not to add -lc for building shared libraries.
  20057. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20058.  
  20059. # Whether or not to disallow shared libs when runtime libs are static.
  20060. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20061.  
  20062. # Compiler flag to allow reflexive dlopens.
  20063. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20064.  
  20065. # Compiler flag to generate shared objects directly from archives.
  20066. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20067.  
  20068. # Whether the compiler copes with passing no objects directly.
  20069. compiler_needs_object=$lt_compiler_needs_object_CXX
  20070.  
  20071. # Create an old-style archive from a shared archive.
  20072. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20073.  
  20074. # Create a temporary old-style archive to link instead of a shared archive.
  20075. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20076.  
  20077. # Commands used to build a shared archive.
  20078. archive_cmds=$lt_archive_cmds_CXX
  20079. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20080.  
  20081. # Commands used to build a loadable module if different from building
  20082. # a shared archive.
  20083. module_cmds=$lt_module_cmds_CXX
  20084. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20085.  
  20086. # Whether we are building with GNU ld or not.
  20087. with_gnu_ld=$lt_with_gnu_ld_CXX
  20088.  
  20089. # Flag that allows shared libraries with undefined symbols to be built.
  20090. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20091.  
  20092. # Flag that enforces no undefined symbols.
  20093. no_undefined_flag=$lt_no_undefined_flag_CXX
  20094.  
  20095. # Flag to hardcode \$libdir into a binary during linking.
  20096. # This must work even if \$libdir does not exist
  20097. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20098.  
  20099. # Whether we need a single "-rpath" flag with a separated argument.
  20100. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20101.  
  20102. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20103. # DIR into the resulting binary.
  20104. hardcode_direct=$hardcode_direct_CXX
  20105.  
  20106. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20107. # DIR into the resulting binary and the resulting library dependency is
  20108. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20109. # library is relocated.
  20110. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20111.  
  20112. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20113. # into the resulting binary.
  20114. hardcode_minus_L=$hardcode_minus_L_CXX
  20115.  
  20116. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20117. # into the resulting binary.
  20118. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20119.  
  20120. # Set to "yes" if building a shared library automatically hardcodes DIR
  20121. # into the library and all subsequent libraries and executables linked
  20122. # against it.
  20123. hardcode_automatic=$hardcode_automatic_CXX
  20124.  
  20125. # Set to yes if linker adds runtime paths of dependent libraries
  20126. # to runtime path list.
  20127. inherit_rpath=$inherit_rpath_CXX
  20128.  
  20129. # Whether libtool must link a program against all its dependency libraries.
  20130. link_all_deplibs=$link_all_deplibs_CXX
  20131.  
  20132. # Set to "yes" if exported symbols are required.
  20133. always_export_symbols=$always_export_symbols_CXX
  20134.  
  20135. # The commands to list exported symbols.
  20136. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20137.  
  20138. # Symbols that should not be listed in the preloaded symbols.
  20139. exclude_expsyms=$lt_exclude_expsyms_CXX
  20140.  
  20141. # Symbols that must always be exported.
  20142. include_expsyms=$lt_include_expsyms_CXX
  20143.  
  20144. # Commands necessary for linking programs (against libraries) with templates.
  20145. prelink_cmds=$lt_prelink_cmds_CXX
  20146.  
  20147. # Commands necessary for finishing linking programs.
  20148. postlink_cmds=$lt_postlink_cmds_CXX
  20149.  
  20150. # Specify filename containing input files.
  20151. file_list_spec=$lt_file_list_spec_CXX
  20152.  
  20153. # How to hardcode a shared library path into an executable.
  20154. hardcode_action=$hardcode_action_CXX
  20155.  
  20156. # The directories searched by this compiler when creating a shared library.
  20157. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20158.  
  20159. # Dependencies to place before and after the objects being linked to
  20160. # create a shared library.
  20161. predep_objects=$lt_predep_objects_CXX
  20162. postdep_objects=$lt_postdep_objects_CXX
  20163. predeps=$lt_predeps_CXX
  20164. postdeps=$lt_postdeps_CXX
  20165.  
  20166. # The library search path used internally by the compiler when linking
  20167. # a shared library.
  20168. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20169.  
  20170. # ### END LIBTOOL TAG CONFIG: CXX
  20171. _LT_EOF
  20172.  
  20173.  ;;
  20174.  
  20175.   esac
  20176. done # for ac_tag
  20177.  
  20178.  
  20179. as_fn_exit 0
  20180. _ACEOF
  20181. ac_clean_files=$ac_clean_files_save
  20182.  
  20183. test $ac_write_fail = 0 ||
  20184.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20185.  
  20186.  
  20187. # configure is writing to config.log, and then calls config.status.
  20188. # config.status does its own redirection, appending to config.log.
  20189. # Unfortunately, on DOS this fails, as config.log is still kept open
  20190. # by configure, so config.status won't be able to write to it; its
  20191. # output is simply discarded.  So we exec the FD to /dev/null,
  20192. # effectively closing config.log, so it can be properly (re)opened and
  20193. # appended to by config.status.  When coming back to configure, we
  20194. # need to make the FD available again.
  20195. if test "$no_create" != yes; then
  20196.   ac_cs_success=:
  20197.   ac_config_status_args=
  20198.   test "$silent" = yes &&
  20199.     ac_config_status_args="$ac_config_status_args --quiet"
  20200.   exec 5>/dev/null
  20201.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20202.   exec 5>>config.log
  20203.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20204.   # would make configure fail if this is the last instruction.
  20205.   $ac_cs_success || as_fn_exit 1
  20206. fi
  20207. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20208.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20209. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20210. fi
  20211.  
  20212.  
  20213. # Print a small summary
  20214. BACKENDS=""
  20215. if test x$USE_DRM = xyes; then :
  20216.   BACKENDS="$BACKENDS drm"
  20217. fi
  20218. if test x$USE_X11 = xyes; then :
  20219.   BACKENDS="$BACKENDS x11"
  20220. fi
  20221. if test x$USE_GLX = xyes; then :
  20222.   BACKENDS="$BACKENDS glx"
  20223. fi
  20224. if test x$USE_EGL = xyes; then :
  20225.   BACKENDS="$BACKENDS egl"
  20226. fi
  20227. if test x$USE_WAYLAND = xyes; then :
  20228.   BACKENDS="$BACKENDS wayland"
  20229. fi
  20230.  
  20231. echo
  20232. echo "libva - ${LIBVA_VERSION} (VA-API ${VA_API_VERSION})"
  20233. echo
  20234. echo Installation prefix .............. : $prefix
  20235. echo Default driver path .............. : $LIBVA_DRIVERS_PATH
  20236. echo Extra window systems ............. : $BACKENDS
  20237. echo Build dummy driver ............... : $enable_dummy_driver
  20238. echo Build documentation .............. : $enable_docs
  20239. echo
  20240.