Subversion Repositories Kolibri OS

Rev

Go to most recent revision | 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.68 for OpenJPEG 1.4.0.
  4. #
  5. # Report bugs to <http://code.google.com/p/openjpeg/>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18.  
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22.   emulate sh
  23.   NULLCMD=:
  24.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25.   # is contrary to our usage.  Disable this feature.
  26.   alias -g '${1+"$@"}'='"$@"'
  27.   setopt NO_GLOB_SUBST
  28. else
  29.   case `(set -o) 2>/dev/null` in #(
  30.   *posix*) :
  31.     set -o posix ;; #(
  32.   *) :
  33.      ;;
  34. esac
  35. fi
  36.  
  37.  
  38. as_nl='
  39. '
  40. export as_nl
  41. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  42. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  43. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  44. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  45. # Prefer a ksh shell builtin over an external printf program on Solaris,
  46. # but without wasting forks for bash or zsh.
  47. if test -z "$BASH_VERSION$ZSH_VERSION" \
  48.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  49.   as_echo='print -r --'
  50.   as_echo_n='print -rn --'
  51. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  52.   as_echo='printf %s\n'
  53.   as_echo_n='printf %s'
  54. else
  55.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  56.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  57.     as_echo_n='/usr/ucb/echo -n'
  58.   else
  59.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  60.     as_echo_n_body='eval
  61.       arg=$1;
  62.       case $arg in #(
  63.       *"$as_nl"*)
  64.         expr "X$arg" : "X\\(.*\\)$as_nl";
  65.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  66.       esac;
  67.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  68.     '
  69.     export as_echo_n_body
  70.     as_echo_n='sh -c $as_echo_n_body as_echo'
  71.   fi
  72.   export as_echo_body
  73.   as_echo='sh -c $as_echo_body as_echo'
  74. fi
  75.  
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78.   PATH_SEPARATOR=:
  79.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  80.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  81.       PATH_SEPARATOR=';'
  82.   }
  83. fi
  84.  
  85.  
  86. # IFS
  87. # We need space, tab and new line, in precisely that order.  Quoting is
  88. # there to prevent editors from complaining about space-tab.
  89. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  90. # splitting by setting IFS to empty value.)
  91. IFS=" ""        $as_nl"
  92.  
  93. # Find who we are.  Look in the path if we contain no directory separator.
  94. as_myself=
  95. case $0 in #((
  96.   *[\\/]* ) as_myself=$0 ;;
  97.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100.   IFS=$as_save_IFS
  101.   test -z "$as_dir" && as_dir=.
  102.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103.   done
  104. IFS=$as_save_IFS
  105.  
  106.      ;;
  107. esac
  108. # We did not find ourselves, most probably we were run as `sh COMMAND'
  109. # in which case we are not to be found in the path.
  110. if test "x$as_myself" = x; then
  111.   as_myself=$0
  112. fi
  113. if test ! -f "$as_myself"; then
  114.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  115.   exit 1
  116. fi
  117.  
  118. # Unset variables that we do not need and which cause bugs (e.g. in
  119. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  120. # suppresses any "Segmentation fault" message there.  '((' could
  121. # trigger a bug in pdksh 5.2.14.
  122. for as_var in BASH_ENV ENV MAIL MAILPATH
  123. do eval test x\${$as_var+set} = xset \
  124.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  125. done
  126. PS1='$ '
  127. PS2='> '
  128. PS4='+ '
  129.  
  130. # NLS nuisances.
  131. LC_ALL=C
  132. export LC_ALL
  133. LANGUAGE=C
  134. export LANGUAGE
  135.  
  136. # CDPATH.
  137. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  138.  
  139. if test "x$CONFIG_SHELL" = x; then
  140.   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  141.   emulate sh
  142.   NULLCMD=:
  143.   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  144.   # is contrary to our usage.  Disable this feature.
  145.   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  146.   setopt NO_GLOB_SUBST
  147. else
  148.   case \`(set -o) 2>/dev/null\` in #(
  149.   *posix*) :
  150.     set -o posix ;; #(
  151.   *) :
  152.      ;;
  153. esac
  154. fi
  155. "
  156.   as_required="as_fn_return () { (exit \$1); }
  157. as_fn_success () { as_fn_return 0; }
  158. as_fn_failure () { as_fn_return 1; }
  159. as_fn_ret_success () { return 0; }
  160. as_fn_ret_failure () { return 1; }
  161.  
  162. exitcode=0
  163. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  164. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  165. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  166. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  167. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  168.  
  169. else
  170.   exitcode=1; echo positional parameters were not saved.
  171. fi
  172. test x\$exitcode = x0 || exit 1"
  173.   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  174.   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  175.   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  176.   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  177. test \$(( 1 + 1 )) = 2 || exit 1
  178.  
  179.   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  180.     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  181.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  182.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  183.     PATH=/empty FPATH=/empty; export PATH FPATH
  184.     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  185.       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  186.   if (eval "$as_required") 2>/dev/null; then :
  187.   as_have_required=yes
  188. else
  189.   as_have_required=no
  190. fi
  191.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192.  
  193. else
  194.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. as_found=false
  196. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198.   IFS=$as_save_IFS
  199.   test -z "$as_dir" && as_dir=.
  200.   as_found=:
  201.   case $as_dir in #(
  202.          /*)
  203.            for as_base in sh bash ksh sh5; do
  204.              # Try only shells that exist, to save several forks.
  205.              as_shell=$as_dir/$as_base
  206.              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  207.                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  208.   CONFIG_SHELL=$as_shell as_have_required=yes
  209.                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210.   break 2
  211. fi
  212. fi
  213.            done;;
  214.        esac
  215.   as_found=false
  216. done
  217. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218.               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  219.   CONFIG_SHELL=$SHELL as_have_required=yes
  220. fi; }
  221. IFS=$as_save_IFS
  222.  
  223.  
  224.       if test "x$CONFIG_SHELL" != x; then :
  225.   # We cannot yet assume a decent shell, so we have to provide a
  226.         # neutralization value for shells without unset; and this also
  227.         # works around shells that cannot unset nonexistent variables.
  228.         # Preserve -v and -x to the replacement shell.
  229.         BASH_ENV=/dev/null
  230.         ENV=/dev/null
  231.         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232.         export CONFIG_SHELL
  233.         case $- in # ((((
  234.           *v*x* | *x*v* ) as_opts=-vx ;;
  235.           *v* ) as_opts=-v ;;
  236.           *x* ) as_opts=-x ;;
  237.           * ) as_opts= ;;
  238.         esac
  239.         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  240. fi
  241.  
  242.     if test x$as_have_required = xno; then :
  243.   $as_echo "$0: This script requires a shell more modern than all"
  244.   $as_echo "$0: the shells that I found on your system."
  245.   if test x${ZSH_VERSION+set} = xset ; then
  246.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248.   else
  249.     $as_echo "$0: Please tell bug-autoconf@gnu.org and
  250. $0: http://code.google.com/p/openjpeg/ about your system,
  251. $0: including any error possibly output before this
  252. $0: message. Then install a modern shell, or manually run
  253. $0: the script under such a shell if you do have one."
  254.   fi
  255.   exit 1
  256. fi
  257. fi
  258. fi
  259. SHELL=${CONFIG_SHELL-/bin/sh}
  260. export SHELL
  261. # Unset more variables known to interfere with behavior of common tools.
  262. CLICOLOR_FORCE= GREP_OPTIONS=
  263. unset CLICOLOR_FORCE GREP_OPTIONS
  264.  
  265. ## --------------------- ##
  266. ## M4sh Shell Functions. ##
  267. ## --------------------- ##
  268. # as_fn_unset VAR
  269. # ---------------
  270. # Portably unset VAR.
  271. as_fn_unset ()
  272. {
  273.   { eval $1=; unset $1;}
  274. }
  275. as_unset=as_fn_unset
  276.  
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282.   return $1
  283. } # as_fn_set_status
  284.  
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290.   set +e
  291.   as_fn_set_status $1
  292.   exit $1
  293. } # as_fn_exit
  294.  
  295. # as_fn_mkdir_p
  296. # -------------
  297. # Create "$as_dir" as a directory, including parents if necessary.
  298. as_fn_mkdir_p ()
  299. {
  300.  
  301.   case $as_dir in #(
  302.   -*) as_dir=./$as_dir;;
  303.   esac
  304.   test -d "$as_dir" || eval $as_mkdir_p || {
  305.     as_dirs=
  306.     while :; do
  307.       case $as_dir in #(
  308.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  309.       *) as_qdir=$as_dir;;
  310.       esac
  311.       as_dirs="'$as_qdir' $as_dirs"
  312.       as_dir=`$as_dirname -- "$as_dir" ||
  313. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  314.          X"$as_dir" : 'X\(//\)[^/]' \| \
  315.          X"$as_dir" : 'X\(//\)$' \| \
  316.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  317. $as_echo X"$as_dir" |
  318.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  319.             s//\1/
  320.             q
  321.           }
  322.           /^X\(\/\/\)[^/].*/{
  323.             s//\1/
  324.             q
  325.           }
  326.           /^X\(\/\/\)$/{
  327.             s//\1/
  328.             q
  329.           }
  330.           /^X\(\/\).*/{
  331.             s//\1/
  332.             q
  333.           }
  334.           s/.*/./; q'`
  335.       test -d "$as_dir" && break
  336.     done
  337.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  338.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  339.  
  340.  
  341. } # as_fn_mkdir_p
  342. # as_fn_append VAR VALUE
  343. # ----------------------
  344. # Append the text in VALUE to the end of the definition contained in VAR. Take
  345. # advantage of any shell optimizations that allow amortized linear growth over
  346. # repeated appends, instead of the typical quadratic growth present in naive
  347. # implementations.
  348. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  349.   eval 'as_fn_append ()
  350.   {
  351.     eval $1+=\$2
  352.   }'
  353. else
  354.   as_fn_append ()
  355.   {
  356.     eval $1=\$$1\$2
  357.   }
  358. fi # as_fn_append
  359.  
  360. # as_fn_arith ARG...
  361. # ------------------
  362. # Perform arithmetic evaluation on the ARGs, and store the result in the
  363. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  364. # must be portable across $(()) and expr.
  365. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  366.   eval 'as_fn_arith ()
  367.   {
  368.     as_val=$(( $* ))
  369.   }'
  370. else
  371.   as_fn_arith ()
  372.   {
  373.     as_val=`expr "$@" || test $? -eq 1`
  374.   }
  375. fi # as_fn_arith
  376.  
  377.  
  378. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  379. # ----------------------------------------
  380. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  381. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  382. # script with STATUS, using 1 if that was 0.
  383. as_fn_error ()
  384. {
  385.   as_status=$1; test $as_status -eq 0 && as_status=1
  386.   if test "$4"; then
  387.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  388.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  389.   fi
  390.   $as_echo "$as_me: error: $2" >&2
  391.   as_fn_exit $as_status
  392. } # as_fn_error
  393.  
  394. if expr a : '\(a\)' >/dev/null 2>&1 &&
  395.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  396.   as_expr=expr
  397. else
  398.   as_expr=false
  399. fi
  400.  
  401. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  402.   as_basename=basename
  403. else
  404.   as_basename=false
  405. fi
  406.  
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408.   as_dirname=dirname
  409. else
  410.   as_dirname=false
  411. fi
  412.  
  413. as_me=`$as_basename -- "$0" ||
  414. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  415.          X"$0" : 'X\(//\)$' \| \
  416.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  417. $as_echo X/"$0" |
  418.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  419.             s//\1/
  420.             q
  421.           }
  422.           /^X\/\(\/\/\)$/{
  423.             s//\1/
  424.             q
  425.           }
  426.           /^X\/\(\/\).*/{
  427.             s//\1/
  428.             q
  429.           }
  430.           s/.*/./; q'`
  431.  
  432. # Avoid depending upon Character Ranges.
  433. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  434. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  435. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  436. as_cr_digits='0123456789'
  437. as_cr_alnum=$as_cr_Letters$as_cr_digits
  438.  
  439.  
  440.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  441.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  442.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  443.   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  444.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  445.   sed -n '
  446.     p
  447.     /[$]LINENO/=
  448.   ' <$as_myself |
  449.     sed '
  450.       s/[$]LINENO.*/&-/
  451.       t lineno
  452.       b
  453.       :lineno
  454.       N
  455.       :loop
  456.       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  457.       t loop
  458.       s/-\n.*//
  459.     ' >$as_me.lineno &&
  460.   chmod +x "$as_me.lineno" ||
  461.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  462.  
  463.   # Don't try to exec as it changes $[0], causing all sort of problems
  464.   # (the dirname of $[0] is not the place where we might find the
  465.   # original and so on.  Autoconf is especially sensitive to this).
  466.   . "./$as_me.lineno"
  467.   # Exit status is that of the last command.
  468.   exit
  469. }
  470.  
  471. ECHO_C= ECHO_N= ECHO_T=
  472. case `echo -n x` in #(((((
  473. -n*)
  474.   case `echo 'xy\c'` in
  475.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  476.   xy)  ECHO_C='\c';;
  477.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  478.        ECHO_T=' ';;
  479.   esac;;
  480. *)
  481.   ECHO_N='-n';;
  482. esac
  483.  
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486.   rm -f conf$$.dir/conf$$.file
  487. else
  488.   rm -f conf$$.dir
  489.   mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  493.     as_ln_s='ln -s'
  494.     # ... but there are two gotchas:
  495.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497.     # In both cases, we have to default to `cp -p'.
  498.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499.       as_ln_s='cp -p'
  500.   elif ln conf$$.file conf$$ 2>/dev/null; then
  501.     as_ln_s=ln
  502.   else
  503.     as_ln_s='cp -p'
  504.   fi
  505. else
  506.   as_ln_s='cp -p'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510.  
  511. if mkdir -p . 2>/dev/null; then
  512.   as_mkdir_p='mkdir -p "$as_dir"'
  513. else
  514.   test -d ./-p && rmdir ./-p
  515.   as_mkdir_p=false
  516. fi
  517.  
  518. if test -x / >/dev/null 2>&1; then
  519.   as_test_x='test -x'
  520. else
  521.   if ls -dL / >/dev/null 2>&1; then
  522.     as_ls_L_option=L
  523.   else
  524.     as_ls_L_option=
  525.   fi
  526.   as_test_x='
  527.     eval sh -c '\''
  528.       if test -d "$1"; then
  529.         test -d "$1/.";
  530.       else
  531.         case $1 in #(
  532.         -*)set "./$1";;
  533.         esac;
  534.         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  535.         ???[sx]*):;;*)false;;esac;fi
  536.     '\'' sh
  537.   '
  538. fi
  539. as_executable_p=$as_test_x
  540.  
  541. # Sed expression to map a string onto a valid CPP name.
  542. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  543.  
  544. # Sed expression to map a string onto a valid variable name.
  545. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  546.  
  547. SHELL=${CONFIG_SHELL-/bin/sh}
  548.  
  549.  
  550. test -n "$DJDIR" || exec 7<&0 </dev/null
  551. exec 6>&1
  552.  
  553. # Name of the host.
  554. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  555. # so uname gets run too.
  556. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  557.  
  558. #
  559. # Initializations.
  560. #
  561. ac_default_prefix=/usr/local
  562. ac_clean_files=
  563. ac_config_libobj_dir=.
  564. LIBOBJS=
  565. cross_compiling=no
  566. subdirs=
  567. MFLAGS=
  568. MAKEFLAGS=
  569.  
  570. # Identity of this package.
  571. PACKAGE_NAME='OpenJPEG'
  572. PACKAGE_TARNAME='openjpeg-1.4.0'
  573. PACKAGE_VERSION='1.4.0'
  574. PACKAGE_STRING='OpenJPEG 1.4.0'
  575. PACKAGE_BUGREPORT='http://code.google.com/p/openjpeg/'
  576. PACKAGE_URL='http://www.openjpeg.org/'
  577.  
  578. ac_unique_file="libopenjpeg/openjpeg.c"
  579. # Factoring default headers for most tests.
  580. ac_includes_default="\
  581. #include <stdio.h>
  582. #ifdef HAVE_SYS_TYPES_H
  583. # include <sys/types.h>
  584. #endif
  585. #ifdef HAVE_SYS_STAT_H
  586. # include <sys/stat.h>
  587. #endif
  588. #ifdef STDC_HEADERS
  589. # include <stdlib.h>
  590. # include <stddef.h>
  591. #else
  592. # ifdef HAVE_STDLIB_H
  593. #  include <stdlib.h>
  594. # endif
  595. #endif
  596. #ifdef HAVE_STRING_H
  597. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  598. #  include <memory.h>
  599. # endif
  600. # include <string.h>
  601. #endif
  602. #ifdef HAVE_STRINGS_H
  603. # include <strings.h>
  604. #endif
  605. #ifdef HAVE_INTTYPES_H
  606. # include <inttypes.h>
  607. #endif
  608. #ifdef HAVE_STDINT_H
  609. # include <stdint.h>
  610. #endif
  611. #ifdef HAVE_UNISTD_H
  612. # include <unistd.h>
  613. #endif"
  614.  
  615. ac_subst_vars='am__EXEEXT_FALSE
  616. am__EXEEXT_TRUE
  617. LTLIBOBJS
  618. LIBOBJS
  619. with_doxygen_FALSE
  620. with_doxygen_TRUE
  621. with_doxygen
  622. jp3d_dir
  623. with_sharedlibs_FALSE
  624. with_sharedlibs_TRUE
  625. jpwl_dir
  626. with_libjpwl_FALSE
  627. with_libjpwl_TRUE
  628. lcms1libs
  629. lcms1includes
  630. with_liblcms1_FALSE
  631. with_liblcms1_TRUE
  632. lcms2libs
  633. lcms2includes
  634. with_liblcms2_FALSE
  635. with_liblcms2_TRUE
  636. tifflibs
  637. tiffincludes
  638. with_libtiff_FALSE
  639. with_libtiff_TRUE
  640. pnglibs
  641. pngincludes
  642. with_libpng_FALSE
  643. with_libpng_TRUE
  644. LIBPNG_CONFIG
  645. PKGCONFIG
  646. CXXCPP
  647. CPP
  648. OTOOL64
  649. OTOOL
  650. LIPO
  651. NMEDIT
  652. DSYMUTIL
  653. RANLIB
  654. AR
  655. NM
  656. ac_ct_DUMPBIN
  657. DUMPBIN
  658. LD
  659. FGREP
  660. EGREP
  661. GREP
  662. LIBTOOL
  663. OBJDUMP
  664. DLLTOOL
  665. AS
  666. SED
  667. LN_S
  668. am__fastdepCXX_FALSE
  669. am__fastdepCXX_TRUE
  670. CXXDEPMODE
  671. ac_ct_CXX
  672. CXXFLAGS
  673. CXX
  674. am__fastdepCC_FALSE
  675. am__fastdepCC_TRUE
  676. CCDEPMODE
  677. AMDEPBACKSLASH
  678. AMDEP_FALSE
  679. AMDEP_TRUE
  680. am__quote
  681. am__include
  682. DEPDIR
  683. OBJEXT
  684. EXEEXT
  685. ac_ct_CC
  686. CPPFLAGS
  687. LDFLAGS
  688. CFLAGS
  689. CC
  690. JP3D_BUILD_NR
  691. JP3D_MINOR_NR
  692. JP3D_MAJOR_NR
  693. BUILD_NR
  694. MINOR_NR
  695. MAJOR_NR
  696. am__untar
  697. am__tar
  698. AMTAR
  699. am__leading_dot
  700. SET_MAKE
  701. AWK
  702. mkdir_p
  703. MKDIR_P
  704. INSTALL_STRIP_PROGRAM
  705. STRIP
  706. install_sh
  707. MAKEINFO
  708. AUTOHEADER
  709. AUTOMAKE
  710. AUTOCONF
  711. ACLOCAL
  712. VERSION
  713. PACKAGE
  714. CYGPATH_W
  715. am__isrc
  716. INSTALL_DATA
  717. INSTALL_SCRIPT
  718. INSTALL_PROGRAM
  719. target_os
  720. target_vendor
  721. target_cpu
  722. target
  723. host_os
  724. host_vendor
  725. host_cpu
  726. host
  727. build_os
  728. build_vendor
  729. build_cpu
  730. build
  731. target_alias
  732. host_alias
  733. build_alias
  734. LIBS
  735. ECHO_T
  736. ECHO_N
  737. ECHO_C
  738. DEFS
  739. mandir
  740. localedir
  741. libdir
  742. psdir
  743. pdfdir
  744. dvidir
  745. htmldir
  746. infodir
  747. docdir
  748. oldincludedir
  749. includedir
  750. localstatedir
  751. sharedstatedir
  752. sysconfdir
  753. datadir
  754. datarootdir
  755. libexecdir
  756. sbindir
  757. bindir
  758. program_transform_name
  759. prefix
  760. exec_prefix
  761. PACKAGE_URL
  762. PACKAGE_BUGREPORT
  763. PACKAGE_STRING
  764. PACKAGE_VERSION
  765. PACKAGE_TARNAME
  766. PACKAGE_NAME
  767. PATH_SEPARATOR
  768. SHELL'
  769. ac_subst_files=''
  770. ac_user_opts='
  771. enable_option_checking
  772. enable_dependency_tracking
  773. enable_largefile
  774. enable_shared
  775. enable_static
  776. with_pic
  777. enable_fast_install
  778. with_gnu_ld
  779. enable_libtool_lock
  780. enable_png
  781. with_png_includes
  782. with_png_libraries
  783. enable_tiff
  784. with_tiff_includes
  785. with_tiff_libraries
  786. enable_lcms2
  787. with_lcms2_includes
  788. with_lcms2_libraries
  789. enable_lcms1
  790. with_lcms1_includes
  791. with_lcms1_libraries
  792. enable_jpwl
  793. enable_jp3d
  794. '
  795.       ac_precious_vars='build_alias
  796. host_alias
  797. target_alias
  798. CC
  799. CFLAGS
  800. LDFLAGS
  801. LIBS
  802. CPPFLAGS
  803. CXX
  804. CXXFLAGS
  805. CCC
  806. CPP
  807. CXXCPP'
  808.  
  809.  
  810. # Initialize some variables set by options.
  811. ac_init_help=
  812. ac_init_version=false
  813. ac_unrecognized_opts=
  814. ac_unrecognized_sep=
  815. # The variables have the same names as the options, with
  816. # dashes changed to underlines.
  817. cache_file=/dev/null
  818. exec_prefix=NONE
  819. no_create=
  820. no_recursion=
  821. prefix=NONE
  822. program_prefix=NONE
  823. program_suffix=NONE
  824. program_transform_name=s,x,x,
  825. silent=
  826. site=
  827. srcdir=
  828. verbose=
  829. x_includes=NONE
  830. x_libraries=NONE
  831.  
  832. # Installation directory options.
  833. # These are left unexpanded so users can "make install exec_prefix=/foo"
  834. # and all the variables that are supposed to be based on exec_prefix
  835. # by default will actually change.
  836. # Use braces instead of parens because sh, perl, etc. also accept them.
  837. # (The list follows the same order as the GNU Coding Standards.)
  838. bindir='${exec_prefix}/bin'
  839. sbindir='${exec_prefix}/sbin'
  840. libexecdir='${exec_prefix}/libexec'
  841. datarootdir='${prefix}/share'
  842. datadir='${datarootdir}'
  843. sysconfdir='${prefix}/etc'
  844. sharedstatedir='${prefix}/com'
  845. localstatedir='${prefix}/var'
  846. includedir='${prefix}/include'
  847. oldincludedir='/usr/include'
  848. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  849. infodir='${datarootdir}/info'
  850. htmldir='${docdir}'
  851. dvidir='${docdir}'
  852. pdfdir='${docdir}'
  853. psdir='${docdir}'
  854. libdir='${exec_prefix}/lib'
  855. localedir='${datarootdir}/locale'
  856. mandir='${datarootdir}/man'
  857.  
  858. ac_prev=
  859. ac_dashdash=
  860. for ac_option
  861. do
  862.   # If the previous option needs an argument, assign it.
  863.   if test -n "$ac_prev"; then
  864.     eval $ac_prev=\$ac_option
  865.     ac_prev=
  866.     continue
  867.   fi
  868.  
  869.   case $ac_option in
  870.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  871.   *=)   ac_optarg= ;;
  872.   *)    ac_optarg=yes ;;
  873.   esac
  874.  
  875.   # Accept the important Cygnus configure options, so we can diagnose typos.
  876.  
  877.   case $ac_dashdash$ac_option in
  878.   --)
  879.     ac_dashdash=yes ;;
  880.  
  881.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  882.     ac_prev=bindir ;;
  883.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  884.     bindir=$ac_optarg ;;
  885.  
  886.   -build | --build | --buil | --bui | --bu)
  887.     ac_prev=build_alias ;;
  888.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  889.     build_alias=$ac_optarg ;;
  890.  
  891.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  892.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  893.     ac_prev=cache_file ;;
  894.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  895.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  896.     cache_file=$ac_optarg ;;
  897.  
  898.   --config-cache | -C)
  899.     cache_file=config.cache ;;
  900.  
  901.   -datadir | --datadir | --datadi | --datad)
  902.     ac_prev=datadir ;;
  903.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  904.     datadir=$ac_optarg ;;
  905.  
  906.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  907.   | --dataroo | --dataro | --datar)
  908.     ac_prev=datarootdir ;;
  909.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  910.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  911.     datarootdir=$ac_optarg ;;
  912.  
  913.   -disable-* | --disable-*)
  914.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  915.     # Reject names that are not valid shell variable names.
  916.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  917.       as_fn_error $? "invalid feature name: $ac_useropt"
  918.     ac_useropt_orig=$ac_useropt
  919.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  920.     case $ac_user_opts in
  921.       *"
  922. "enable_$ac_useropt"
  923. "*) ;;
  924.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  925.          ac_unrecognized_sep=', ';;
  926.     esac
  927.     eval enable_$ac_useropt=no ;;
  928.  
  929.   -docdir | --docdir | --docdi | --doc | --do)
  930.     ac_prev=docdir ;;
  931.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  932.     docdir=$ac_optarg ;;
  933.  
  934.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  935.     ac_prev=dvidir ;;
  936.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  937.     dvidir=$ac_optarg ;;
  938.  
  939.   -enable-* | --enable-*)
  940.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  941.     # Reject names that are not valid shell variable names.
  942.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  943.       as_fn_error $? "invalid feature name: $ac_useropt"
  944.     ac_useropt_orig=$ac_useropt
  945.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  946.     case $ac_user_opts in
  947.       *"
  948. "enable_$ac_useropt"
  949. "*) ;;
  950.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  951.          ac_unrecognized_sep=', ';;
  952.     esac
  953.     eval enable_$ac_useropt=\$ac_optarg ;;
  954.  
  955.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  956.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  957.   | --exec | --exe | --ex)
  958.     ac_prev=exec_prefix ;;
  959.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  960.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  961.   | --exec=* | --exe=* | --ex=*)
  962.     exec_prefix=$ac_optarg ;;
  963.  
  964.   -gas | --gas | --ga | --g)
  965.     # Obsolete; use --with-gas.
  966.     with_gas=yes ;;
  967.  
  968.   -help | --help | --hel | --he | -h)
  969.     ac_init_help=long ;;
  970.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  971.     ac_init_help=recursive ;;
  972.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  973.     ac_init_help=short ;;
  974.  
  975.   -host | --host | --hos | --ho)
  976.     ac_prev=host_alias ;;
  977.   -host=* | --host=* | --hos=* | --ho=*)
  978.     host_alias=$ac_optarg ;;
  979.  
  980.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  981.     ac_prev=htmldir ;;
  982.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  983.   | --ht=*)
  984.     htmldir=$ac_optarg ;;
  985.  
  986.   -includedir | --includedir | --includedi | --included | --include \
  987.   | --includ | --inclu | --incl | --inc)
  988.     ac_prev=includedir ;;
  989.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  990.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  991.     includedir=$ac_optarg ;;
  992.  
  993.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  994.     ac_prev=infodir ;;
  995.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  996.     infodir=$ac_optarg ;;
  997.  
  998.   -libdir | --libdir | --libdi | --libd)
  999.     ac_prev=libdir ;;
  1000.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1001.     libdir=$ac_optarg ;;
  1002.  
  1003.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1004.   | --libexe | --libex | --libe)
  1005.     ac_prev=libexecdir ;;
  1006.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1007.   | --libexe=* | --libex=* | --libe=*)
  1008.     libexecdir=$ac_optarg ;;
  1009.  
  1010.   -localedir | --localedir | --localedi | --localed | --locale)
  1011.     ac_prev=localedir ;;
  1012.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1013.     localedir=$ac_optarg ;;
  1014.  
  1015.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016.   | --localstate | --localstat | --localsta | --localst | --locals)
  1017.     ac_prev=localstatedir ;;
  1018.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020.     localstatedir=$ac_optarg ;;
  1021.  
  1022.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1023.     ac_prev=mandir ;;
  1024.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1025.     mandir=$ac_optarg ;;
  1026.  
  1027.   -nfp | --nfp | --nf)
  1028.     # Obsolete; use --without-fp.
  1029.     with_fp=no ;;
  1030.  
  1031.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1032.   | --no-cr | --no-c | -n)
  1033.     no_create=yes ;;
  1034.  
  1035.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1036.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1037.     no_recursion=yes ;;
  1038.  
  1039.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1040.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1041.   | --oldin | --oldi | --old | --ol | --o)
  1042.     ac_prev=oldincludedir ;;
  1043.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1044.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1045.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1046.     oldincludedir=$ac_optarg ;;
  1047.  
  1048.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1049.     ac_prev=prefix ;;
  1050.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1051.     prefix=$ac_optarg ;;
  1052.  
  1053.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1054.   | --program-pre | --program-pr | --program-p)
  1055.     ac_prev=program_prefix ;;
  1056.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1057.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1058.     program_prefix=$ac_optarg ;;
  1059.  
  1060.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1061.   | --program-suf | --program-su | --program-s)
  1062.     ac_prev=program_suffix ;;
  1063.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1064.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1065.     program_suffix=$ac_optarg ;;
  1066.  
  1067.   -program-transform-name | --program-transform-name \
  1068.   | --program-transform-nam | --program-transform-na \
  1069.   | --program-transform-n | --program-transform- \
  1070.   | --program-transform | --program-transfor \
  1071.   | --program-transfo | --program-transf \
  1072.   | --program-trans | --program-tran \
  1073.   | --progr-tra | --program-tr | --program-t)
  1074.     ac_prev=program_transform_name ;;
  1075.   -program-transform-name=* | --program-transform-name=* \
  1076.   | --program-transform-nam=* | --program-transform-na=* \
  1077.   | --program-transform-n=* | --program-transform-=* \
  1078.   | --program-transform=* | --program-transfor=* \
  1079.   | --program-transfo=* | --program-transf=* \
  1080.   | --program-trans=* | --program-tran=* \
  1081.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1082.     program_transform_name=$ac_optarg ;;
  1083.  
  1084.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1085.     ac_prev=pdfdir ;;
  1086.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1087.     pdfdir=$ac_optarg ;;
  1088.  
  1089.   -psdir | --psdir | --psdi | --psd | --ps)
  1090.     ac_prev=psdir ;;
  1091.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1092.     psdir=$ac_optarg ;;
  1093.  
  1094.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1095.   | -silent | --silent | --silen | --sile | --sil)
  1096.     silent=yes ;;
  1097.  
  1098.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1099.     ac_prev=sbindir ;;
  1100.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1101.   | --sbi=* | --sb=*)
  1102.     sbindir=$ac_optarg ;;
  1103.  
  1104.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1105.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1106.   | --sharedst | --shareds | --shared | --share | --shar \
  1107.   | --sha | --sh)
  1108.     ac_prev=sharedstatedir ;;
  1109.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1110.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1111.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1112.   | --sha=* | --sh=*)
  1113.     sharedstatedir=$ac_optarg ;;
  1114.  
  1115.   -site | --site | --sit)
  1116.     ac_prev=site ;;
  1117.   -site=* | --site=* | --sit=*)
  1118.     site=$ac_optarg ;;
  1119.  
  1120.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1121.     ac_prev=srcdir ;;
  1122.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1123.     srcdir=$ac_optarg ;;
  1124.  
  1125.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1126.   | --syscon | --sysco | --sysc | --sys | --sy)
  1127.     ac_prev=sysconfdir ;;
  1128.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1129.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1130.     sysconfdir=$ac_optarg ;;
  1131.  
  1132.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1133.     ac_prev=target_alias ;;
  1134.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1135.     target_alias=$ac_optarg ;;
  1136.  
  1137.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1138.     verbose=yes ;;
  1139.  
  1140.   -version | --version | --versio | --versi | --vers | -V)
  1141.     ac_init_version=: ;;
  1142.  
  1143.   -with-* | --with-*)
  1144.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1145.     # Reject names that are not valid shell variable names.
  1146.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1147.       as_fn_error $? "invalid package name: $ac_useropt"
  1148.     ac_useropt_orig=$ac_useropt
  1149.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1150.     case $ac_user_opts in
  1151.       *"
  1152. "with_$ac_useropt"
  1153. "*) ;;
  1154.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1155.          ac_unrecognized_sep=', ';;
  1156.     esac
  1157.     eval with_$ac_useropt=\$ac_optarg ;;
  1158.  
  1159.   -without-* | --without-*)
  1160.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1161.     # Reject names that are not valid shell variable names.
  1162.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1163.       as_fn_error $? "invalid package name: $ac_useropt"
  1164.     ac_useropt_orig=$ac_useropt
  1165.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1166.     case $ac_user_opts in
  1167.       *"
  1168. "with_$ac_useropt"
  1169. "*) ;;
  1170.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1171.          ac_unrecognized_sep=', ';;
  1172.     esac
  1173.     eval with_$ac_useropt=no ;;
  1174.  
  1175.   --x)
  1176.     # Obsolete; use --with-x.
  1177.     with_x=yes ;;
  1178.  
  1179.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1180.   | --x-incl | --x-inc | --x-in | --x-i)
  1181.     ac_prev=x_includes ;;
  1182.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1183.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1184.     x_includes=$ac_optarg ;;
  1185.  
  1186.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1187.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1188.     ac_prev=x_libraries ;;
  1189.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1190.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1191.     x_libraries=$ac_optarg ;;
  1192.  
  1193.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1194. Try \`$0 --help' for more information"
  1195.     ;;
  1196.  
  1197.   *=*)
  1198.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1199.     # Reject names that are not valid shell variable names.
  1200.     case $ac_envvar in #(
  1201.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1202.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1203.     esac
  1204.     eval $ac_envvar=\$ac_optarg
  1205.     export $ac_envvar ;;
  1206.  
  1207.   *)
  1208.     # FIXME: should be removed in autoconf 3.0.
  1209.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1210.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1211.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1212.     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1213.     ;;
  1214.  
  1215.   esac
  1216. done
  1217.  
  1218. if test -n "$ac_prev"; then
  1219.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1220.   as_fn_error $? "missing argument to $ac_option"
  1221. fi
  1222.  
  1223. if test -n "$ac_unrecognized_opts"; then
  1224.   case $enable_option_checking in
  1225.     no) ;;
  1226.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1227.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1228.   esac
  1229. fi
  1230.  
  1231. # Check all directory arguments for consistency.
  1232. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1233.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1234.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1235.                 libdir localedir mandir
  1236. do
  1237.   eval ac_val=\$$ac_var
  1238.   # Remove trailing slashes.
  1239.   case $ac_val in
  1240.     */ )
  1241.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1242.       eval $ac_var=\$ac_val;;
  1243.   esac
  1244.   # Be sure to have absolute directory names.
  1245.   case $ac_val in
  1246.     [\\/$]* | ?:[\\/]* )  continue;;
  1247.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1248.   esac
  1249.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1250. done
  1251.  
  1252. # There might be people who depend on the old broken behavior: `$host'
  1253. # used to hold the argument of --host etc.
  1254. # FIXME: To remove some day.
  1255. build=$build_alias
  1256. host=$host_alias
  1257. target=$target_alias
  1258.  
  1259. # FIXME: To remove some day.
  1260. if test "x$host_alias" != x; then
  1261.   if test "x$build_alias" = x; then
  1262.     cross_compiling=maybe
  1263.     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1264.     If a cross compiler is detected then cross compile mode will be used" >&2
  1265.   elif test "x$build_alias" != "x$host_alias"; then
  1266.     cross_compiling=yes
  1267.   fi
  1268. fi
  1269.  
  1270. ac_tool_prefix=
  1271. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1272.  
  1273. test "$silent" = yes && exec 6>/dev/null
  1274.  
  1275.  
  1276. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1277. ac_ls_di=`ls -di .` &&
  1278. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1279.   as_fn_error $? "working directory cannot be determined"
  1280. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1281.   as_fn_error $? "pwd does not report name of working directory"
  1282.  
  1283.  
  1284. # Find the source files, if location was not specified.
  1285. if test -z "$srcdir"; then
  1286.   ac_srcdir_defaulted=yes
  1287.   # Try the directory containing this script, then the parent directory.
  1288.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1289. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1290.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1291.          X"$as_myself" : 'X\(//\)$' \| \
  1292.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1293. $as_echo X"$as_myself" |
  1294.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1295.             s//\1/
  1296.             q
  1297.           }
  1298.           /^X\(\/\/\)[^/].*/{
  1299.             s//\1/
  1300.             q
  1301.           }
  1302.           /^X\(\/\/\)$/{
  1303.             s//\1/
  1304.             q
  1305.           }
  1306.           /^X\(\/\).*/{
  1307.             s//\1/
  1308.             q
  1309.           }
  1310.           s/.*/./; q'`
  1311.   srcdir=$ac_confdir
  1312.   if test ! -r "$srcdir/$ac_unique_file"; then
  1313.     srcdir=..
  1314.   fi
  1315. else
  1316.   ac_srcdir_defaulted=no
  1317. fi
  1318. if test ! -r "$srcdir/$ac_unique_file"; then
  1319.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1320.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1321. fi
  1322. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1323. ac_abs_confdir=`(
  1324.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1325.         pwd)`
  1326. # When building in place, set srcdir=.
  1327. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1328.   srcdir=.
  1329. fi
  1330. # Remove unnecessary trailing slashes from srcdir.
  1331. # Double slashes in file names in object file debugging info
  1332. # mess up M-x gdb in Emacs.
  1333. case $srcdir in
  1334. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1335. esac
  1336. for ac_var in $ac_precious_vars; do
  1337.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1338.   eval ac_env_${ac_var}_value=\$${ac_var}
  1339.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1340.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1341. done
  1342.  
  1343. #
  1344. # Report the --help message.
  1345. #
  1346. if test "$ac_init_help" = "long"; then
  1347.   # Omit some internal or obsolete options to make the list less imposing.
  1348.   # This message is too long to be a string in the A/UX 3.1 sh.
  1349.   cat <<_ACEOF
  1350. \`configure' configures OpenJPEG 1.4.0 to adapt to many kinds of systems.
  1351.  
  1352. Usage: $0 [OPTION]... [VAR=VALUE]...
  1353.  
  1354. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1355. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1356.  
  1357. Defaults for the options are specified in brackets.
  1358.  
  1359. Configuration:
  1360.   -h, --help              display this help and exit
  1361.       --help=short        display options specific to this package
  1362.       --help=recursive    display the short help of all the included packages
  1363.   -V, --version           display version information and exit
  1364.   -q, --quiet, --silent   do not print \`checking ...' messages
  1365.       --cache-file=FILE   cache test results in FILE [disabled]
  1366.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1367.   -n, --no-create         do not create output files
  1368.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1369.  
  1370. Installation directories:
  1371.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1372.                           [$ac_default_prefix]
  1373.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1374.                           [PREFIX]
  1375.  
  1376. By default, \`make install' will install all the files in
  1377. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1378. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1379. for instance \`--prefix=\$HOME'.
  1380.  
  1381. For better control, use the options below.
  1382.  
  1383. Fine tuning of the installation directories:
  1384.   --bindir=DIR            user executables [EPREFIX/bin]
  1385.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1386.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1387.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1388.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1389.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1390.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1391.   --includedir=DIR        C header files [PREFIX/include]
  1392.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1393.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1394.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1395.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1396.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1397.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1398.   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjpeg-1.4.0]
  1399.   --htmldir=DIR           html documentation [DOCDIR]
  1400.   --dvidir=DIR            dvi documentation [DOCDIR]
  1401.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1402.   --psdir=DIR             ps documentation [DOCDIR]
  1403. _ACEOF
  1404.  
  1405.   cat <<\_ACEOF
  1406.  
  1407. Program names:
  1408.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1409.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1410.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1411.  
  1412. System types:
  1413.   --build=BUILD     configure for building on BUILD [guessed]
  1414.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1415.   --target=TARGET   configure for building compilers for TARGET [HOST]
  1416. _ACEOF
  1417. fi
  1418.  
  1419. if test -n "$ac_init_help"; then
  1420.   case $ac_init_help in
  1421.      short | recursive ) echo "Configuration of OpenJPEG 1.4.0:";;
  1422.    esac
  1423.   cat <<\_ACEOF
  1424.  
  1425. Optional Features:
  1426.   --disable-option-checking  ignore unrecognized --enable/--with options
  1427.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1428.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1429.   --disable-dependency-tracking  speeds up one-time build
  1430.   --enable-dependency-tracking   do not reject slow dependency extractors
  1431.   --disable-largefile     omit support for large files
  1432.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  1433.   --enable-static[=PKGS]  build static libraries [default=yes]
  1434.   --enable-fast-install[=PKGS]
  1435.                           optimize for fast installation [default=yes]
  1436.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1437.   --enable-png=[yes|no]          Build with PNG support  [default=yes]
  1438.   --enable-tiff=[yes|no]         Build with TIFF support  [default=yes]
  1439.   --enable-lcms2=[yes|no]        Build with LCMS-2 support  [default=yes]
  1440.   --enable-lcms1=[yes|no]        Build with LCMS-1 support  [default=yes]
  1441.   --enable-jpwl=[yes|no]         Build with JPWL support  [default=no]
  1442.   --enable-shared=[yes|no]       Build shared libs  [default=yes]
  1443.   --enable-jp3d=[yes|no]         Build jp3d libs  [default=no]
  1444.  
  1445. Optional Packages:
  1446.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1447.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1448.   --with-pic              try to use only PIC/non-PIC objects [default=use
  1449.                           both]
  1450.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1451.   --with-png-includes=DIR         PNG includes in nonstandard DIR
  1452.   --with-png-libraries=DIR        PNG library in nonstandard DIR
  1453.   --with-tiff-includes=DIR        TIFF includes in nonstandard DIR
  1454.   --with-tiff-libraries=DIR       TIFF library in nonstandard DIR
  1455.   --with-lcms2-includes=DIR       LCMS-2 includes in nonstandard DIR
  1456.   --with-lcms2-libraries=DIR      LCMS-2 library in nonstandard DIR
  1457.   --with-lcms1-includes=DIR       LCMS-1 includes in nonstandard DIR
  1458.   --with-lcms1-libraries=DIR      LCMS-1 library in nonstandard DIR
  1459.  
  1460. Some influential environment variables:
  1461.   CC          C compiler command
  1462.   CFLAGS      C compiler flags
  1463.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1464.               nonstandard directory <lib dir>
  1465.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1466.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1467.               you have headers in a nonstandard directory <include dir>
  1468.   CXX         C++ compiler command
  1469.   CXXFLAGS    C++ compiler flags
  1470.   CPP         C preprocessor
  1471.   CXXCPP      C++ preprocessor
  1472.  
  1473. Use these variables to override the choices made by `configure' or to help
  1474. it to find libraries and programs with nonstandard names/locations.
  1475.  
  1476. Report bugs to <http://code.google.com/p/openjpeg/>.
  1477. OpenJPEG home page: <http://www.openjpeg.org/>.
  1478. _ACEOF
  1479. ac_status=$?
  1480. fi
  1481.  
  1482. if test "$ac_init_help" = "recursive"; then
  1483.   # If there are subdirs, report their specific --help.
  1484.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1485.     test -d "$ac_dir" ||
  1486.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1487.       continue
  1488.     ac_builddir=.
  1489.  
  1490. case "$ac_dir" in
  1491. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1492. *)
  1493.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1494.   # A ".." for each directory in $ac_dir_suffix.
  1495.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1496.   case $ac_top_builddir_sub in
  1497.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1498.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1499.   esac ;;
  1500. esac
  1501. ac_abs_top_builddir=$ac_pwd
  1502. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1503. # for backward compatibility:
  1504. ac_top_builddir=$ac_top_build_prefix
  1505.  
  1506. case $srcdir in
  1507.   .)  # We are building in place.
  1508.     ac_srcdir=.
  1509.     ac_top_srcdir=$ac_top_builddir_sub
  1510.     ac_abs_top_srcdir=$ac_pwd ;;
  1511.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1512.     ac_srcdir=$srcdir$ac_dir_suffix;
  1513.     ac_top_srcdir=$srcdir
  1514.     ac_abs_top_srcdir=$srcdir ;;
  1515.   *) # Relative name.
  1516.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1517.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1518.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1519. esac
  1520. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1521.  
  1522.     cd "$ac_dir" || { ac_status=$?; continue; }
  1523.     # Check for guested configure.
  1524.     if test -f "$ac_srcdir/configure.gnu"; then
  1525.       echo &&
  1526.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1527.     elif test -f "$ac_srcdir/configure"; then
  1528.       echo &&
  1529.       $SHELL "$ac_srcdir/configure" --help=recursive
  1530.     else
  1531.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1532.     fi || ac_status=$?
  1533.     cd "$ac_pwd" || { ac_status=$?; break; }
  1534.   done
  1535. fi
  1536.  
  1537. test -n "$ac_init_help" && exit $ac_status
  1538. if $ac_init_version; then
  1539.   cat <<\_ACEOF
  1540. OpenJPEG configure 1.4.0
  1541. generated by GNU Autoconf 2.68
  1542.  
  1543. Copyright (C) 2010 Free Software Foundation, Inc.
  1544. This configure script is free software; the Free Software Foundation
  1545. gives unlimited permission to copy, distribute and modify it.
  1546. _ACEOF
  1547.   exit
  1548. fi
  1549.  
  1550. ## ------------------------ ##
  1551. ## Autoconf initialization. ##
  1552. ## ------------------------ ##
  1553.  
  1554. # ac_fn_c_try_compile LINENO
  1555. # --------------------------
  1556. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1557. ac_fn_c_try_compile ()
  1558. {
  1559.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1560.   rm -f conftest.$ac_objext
  1561.   if { { ac_try="$ac_compile"
  1562. case "(($ac_try" in
  1563.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1564.   *) ac_try_echo=$ac_try;;
  1565. esac
  1566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1567. $as_echo "$ac_try_echo"; } >&5
  1568.   (eval "$ac_compile") 2>conftest.err
  1569.   ac_status=$?
  1570.   if test -s conftest.err; then
  1571.     grep -v '^ *+' conftest.err >conftest.er1
  1572.     cat conftest.er1 >&5
  1573.     mv -f conftest.er1 conftest.err
  1574.   fi
  1575.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1576.   test $ac_status = 0; } && {
  1577.          test -z "$ac_c_werror_flag" ||
  1578.          test ! -s conftest.err
  1579.        } && test -s conftest.$ac_objext; then :
  1580.   ac_retval=0
  1581. else
  1582.   $as_echo "$as_me: failed program was:" >&5
  1583. sed 's/^/| /' conftest.$ac_ext >&5
  1584.  
  1585.         ac_retval=1
  1586. fi
  1587.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1588.   as_fn_set_status $ac_retval
  1589.  
  1590. } # ac_fn_c_try_compile
  1591.  
  1592. # ac_fn_cxx_try_compile LINENO
  1593. # ----------------------------
  1594. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1595. ac_fn_cxx_try_compile ()
  1596. {
  1597.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1598.   rm -f conftest.$ac_objext
  1599.   if { { ac_try="$ac_compile"
  1600. case "(($ac_try" in
  1601.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1602.   *) ac_try_echo=$ac_try;;
  1603. esac
  1604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1605. $as_echo "$ac_try_echo"; } >&5
  1606.   (eval "$ac_compile") 2>conftest.err
  1607.   ac_status=$?
  1608.   if test -s conftest.err; then
  1609.     grep -v '^ *+' conftest.err >conftest.er1
  1610.     cat conftest.er1 >&5
  1611.     mv -f conftest.er1 conftest.err
  1612.   fi
  1613.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1614.   test $ac_status = 0; } && {
  1615.          test -z "$ac_cxx_werror_flag" ||
  1616.          test ! -s conftest.err
  1617.        } && test -s conftest.$ac_objext; then :
  1618.   ac_retval=0
  1619. else
  1620.   $as_echo "$as_me: failed program was:" >&5
  1621. sed 's/^/| /' conftest.$ac_ext >&5
  1622.  
  1623.         ac_retval=1
  1624. fi
  1625.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1626.   as_fn_set_status $ac_retval
  1627.  
  1628. } # ac_fn_cxx_try_compile
  1629.  
  1630. # ac_fn_c_try_link LINENO
  1631. # -----------------------
  1632. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1633. ac_fn_c_try_link ()
  1634. {
  1635.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1636.   rm -f conftest.$ac_objext conftest$ac_exeext
  1637.   if { { ac_try="$ac_link"
  1638. case "(($ac_try" in
  1639.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1640.   *) ac_try_echo=$ac_try;;
  1641. esac
  1642. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1643. $as_echo "$ac_try_echo"; } >&5
  1644.   (eval "$ac_link") 2>conftest.err
  1645.   ac_status=$?
  1646.   if test -s conftest.err; then
  1647.     grep -v '^ *+' conftest.err >conftest.er1
  1648.     cat conftest.er1 >&5
  1649.     mv -f conftest.er1 conftest.err
  1650.   fi
  1651.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1652.   test $ac_status = 0; } && {
  1653.          test -z "$ac_c_werror_flag" ||
  1654.          test ! -s conftest.err
  1655.        } && test -s conftest$ac_exeext && {
  1656.          test "$cross_compiling" = yes ||
  1657.          $as_test_x conftest$ac_exeext
  1658.        }; then :
  1659.   ac_retval=0
  1660. else
  1661.   $as_echo "$as_me: failed program was:" >&5
  1662. sed 's/^/| /' conftest.$ac_ext >&5
  1663.  
  1664.         ac_retval=1
  1665. fi
  1666.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1667.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1668.   # interfere with the next link command; also delete a directory that is
  1669.   # left behind by Apple's compiler.  We do this before executing the actions.
  1670.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1671.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672.   as_fn_set_status $ac_retval
  1673.  
  1674. } # ac_fn_c_try_link
  1675.  
  1676. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1677. # -------------------------------------------------------
  1678. # Tests whether HEADER exists and can be compiled using the include files in
  1679. # INCLUDES, setting the cache variable VAR accordingly.
  1680. ac_fn_c_check_header_compile ()
  1681. {
  1682.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1683.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1684. $as_echo_n "checking for $2... " >&6; }
  1685. if eval \${$3+:} false; then :
  1686.   $as_echo_n "(cached) " >&6
  1687. else
  1688.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1689. /* end confdefs.h.  */
  1690. $4
  1691. #include <$2>
  1692. _ACEOF
  1693. if ac_fn_c_try_compile "$LINENO"; then :
  1694.   eval "$3=yes"
  1695. else
  1696.   eval "$3=no"
  1697. fi
  1698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1699. fi
  1700. eval ac_res=\$$3
  1701.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1702. $as_echo "$ac_res" >&6; }
  1703.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1704.  
  1705. } # ac_fn_c_check_header_compile
  1706.  
  1707. # ac_fn_c_try_cpp LINENO
  1708. # ----------------------
  1709. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1710. ac_fn_c_try_cpp ()
  1711. {
  1712.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1713.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1714. case "(($ac_try" in
  1715.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1716.   *) ac_try_echo=$ac_try;;
  1717. esac
  1718. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1719. $as_echo "$ac_try_echo"; } >&5
  1720.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1721.   ac_status=$?
  1722.   if test -s conftest.err; then
  1723.     grep -v '^ *+' conftest.err >conftest.er1
  1724.     cat conftest.er1 >&5
  1725.     mv -f conftest.er1 conftest.err
  1726.   fi
  1727.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1728.   test $ac_status = 0; } > conftest.i && {
  1729.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1730.          test ! -s conftest.err
  1731.        }; then :
  1732.   ac_retval=0
  1733. else
  1734.   $as_echo "$as_me: failed program was:" >&5
  1735. sed 's/^/| /' conftest.$ac_ext >&5
  1736.  
  1737.     ac_retval=1
  1738. fi
  1739.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1740.   as_fn_set_status $ac_retval
  1741.  
  1742. } # ac_fn_c_try_cpp
  1743.  
  1744. # ac_fn_c_try_run LINENO
  1745. # ----------------------
  1746. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1747. # that executables *can* be run.
  1748. ac_fn_c_try_run ()
  1749. {
  1750.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1751.   if { { ac_try="$ac_link"
  1752. case "(($ac_try" in
  1753.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1754.   *) ac_try_echo=$ac_try;;
  1755. esac
  1756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1757. $as_echo "$ac_try_echo"; } >&5
  1758.   (eval "$ac_link") 2>&5
  1759.   ac_status=$?
  1760.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1761.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1762.   { { case "(($ac_try" in
  1763.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1764.   *) ac_try_echo=$ac_try;;
  1765. esac
  1766. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1767. $as_echo "$ac_try_echo"; } >&5
  1768.   (eval "$ac_try") 2>&5
  1769.   ac_status=$?
  1770.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1771.   test $ac_status = 0; }; }; then :
  1772.   ac_retval=0
  1773. else
  1774.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1775.        $as_echo "$as_me: failed program was:" >&5
  1776. sed 's/^/| /' conftest.$ac_ext >&5
  1777.  
  1778.        ac_retval=$ac_status
  1779. fi
  1780.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1781.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1782.   as_fn_set_status $ac_retval
  1783.  
  1784. } # ac_fn_c_try_run
  1785.  
  1786. # ac_fn_c_check_func LINENO FUNC VAR
  1787. # ----------------------------------
  1788. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1789. ac_fn_c_check_func ()
  1790. {
  1791.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1792.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1793. $as_echo_n "checking for $2... " >&6; }
  1794. if eval \${$3+:} false; then :
  1795.   $as_echo_n "(cached) " >&6
  1796. else
  1797.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1798. /* end confdefs.h.  */
  1799. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1800.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1801. #define $2 innocuous_$2
  1802.  
  1803. /* System header to define __stub macros and hopefully few prototypes,
  1804.     which can conflict with char $2 (); below.
  1805.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1806.     <limits.h> exists even on freestanding compilers.  */
  1807.  
  1808. #ifdef __STDC__
  1809. # include <limits.h>
  1810. #else
  1811. # include <assert.h>
  1812. #endif
  1813.  
  1814. #undef $2
  1815.  
  1816. /* Override any GCC internal prototype to avoid an error.
  1817.    Use char because int might match the return type of a GCC
  1818.    builtin and then its argument prototype would still apply.  */
  1819. #ifdef __cplusplus
  1820. extern "C"
  1821. #endif
  1822. char $2 ();
  1823. /* The GNU C library defines this for functions which it implements
  1824.     to always fail with ENOSYS.  Some functions are actually named
  1825.     something starting with __ and the normal name is an alias.  */
  1826. #if defined __stub_$2 || defined __stub___$2
  1827. choke me
  1828. #endif
  1829.  
  1830. int
  1831. main ()
  1832. {
  1833. return $2 ();
  1834.   ;
  1835.   return 0;
  1836. }
  1837. _ACEOF
  1838. if ac_fn_c_try_link "$LINENO"; then :
  1839.   eval "$3=yes"
  1840. else
  1841.   eval "$3=no"
  1842. fi
  1843. rm -f core conftest.err conftest.$ac_objext \
  1844.     conftest$ac_exeext conftest.$ac_ext
  1845. fi
  1846. eval ac_res=\$$3
  1847.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1848. $as_echo "$ac_res" >&6; }
  1849.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1850.  
  1851. } # ac_fn_c_check_func
  1852.  
  1853. # ac_fn_cxx_try_cpp LINENO
  1854. # ------------------------
  1855. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1856. ac_fn_cxx_try_cpp ()
  1857. {
  1858.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1859.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1860. case "(($ac_try" in
  1861.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1862.   *) ac_try_echo=$ac_try;;
  1863. esac
  1864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1865. $as_echo "$ac_try_echo"; } >&5
  1866.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1867.   ac_status=$?
  1868.   if test -s conftest.err; then
  1869.     grep -v '^ *+' conftest.err >conftest.er1
  1870.     cat conftest.er1 >&5
  1871.     mv -f conftest.er1 conftest.err
  1872.   fi
  1873.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1874.   test $ac_status = 0; } > conftest.i && {
  1875.          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1876.          test ! -s conftest.err
  1877.        }; then :
  1878.   ac_retval=0
  1879. else
  1880.   $as_echo "$as_me: failed program was:" >&5
  1881. sed 's/^/| /' conftest.$ac_ext >&5
  1882.  
  1883.     ac_retval=1
  1884. fi
  1885.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886.   as_fn_set_status $ac_retval
  1887.  
  1888. } # ac_fn_cxx_try_cpp
  1889.  
  1890. # ac_fn_cxx_try_link LINENO
  1891. # -------------------------
  1892. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1893. ac_fn_cxx_try_link ()
  1894. {
  1895.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896.   rm -f conftest.$ac_objext conftest$ac_exeext
  1897.   if { { ac_try="$ac_link"
  1898. case "(($ac_try" in
  1899.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1900.   *) ac_try_echo=$ac_try;;
  1901. esac
  1902. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1903. $as_echo "$ac_try_echo"; } >&5
  1904.   (eval "$ac_link") 2>conftest.err
  1905.   ac_status=$?
  1906.   if test -s conftest.err; then
  1907.     grep -v '^ *+' conftest.err >conftest.er1
  1908.     cat conftest.er1 >&5
  1909.     mv -f conftest.er1 conftest.err
  1910.   fi
  1911.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1912.   test $ac_status = 0; } && {
  1913.          test -z "$ac_cxx_werror_flag" ||
  1914.          test ! -s conftest.err
  1915.        } && test -s conftest$ac_exeext && {
  1916.          test "$cross_compiling" = yes ||
  1917.          $as_test_x conftest$ac_exeext
  1918.        }; then :
  1919.   ac_retval=0
  1920. else
  1921.   $as_echo "$as_me: failed program was:" >&5
  1922. sed 's/^/| /' conftest.$ac_ext >&5
  1923.  
  1924.         ac_retval=1
  1925. fi
  1926.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1927.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1928.   # interfere with the next link command; also delete a directory that is
  1929.   # left behind by Apple's compiler.  We do this before executing the actions.
  1930.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1931.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1932.   as_fn_set_status $ac_retval
  1933.  
  1934. } # ac_fn_cxx_try_link
  1935.  
  1936. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1937. # -------------------------------------------------------
  1938. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1939. # the include files in INCLUDES and setting the cache variable VAR
  1940. # accordingly.
  1941. ac_fn_c_check_header_mongrel ()
  1942. {
  1943.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1944.   if eval \${$3+:} false; then :
  1945.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1946. $as_echo_n "checking for $2... " >&6; }
  1947. if eval \${$3+:} false; then :
  1948.   $as_echo_n "(cached) " >&6
  1949. fi
  1950. eval ac_res=\$$3
  1951.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1952. $as_echo "$ac_res" >&6; }
  1953. else
  1954.   # Is the header compilable?
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1956. $as_echo_n "checking $2 usability... " >&6; }
  1957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1958. /* end confdefs.h.  */
  1959. $4
  1960. #include <$2>
  1961. _ACEOF
  1962. if ac_fn_c_try_compile "$LINENO"; then :
  1963.   ac_header_compiler=yes
  1964. else
  1965.   ac_header_compiler=no
  1966. fi
  1967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1969. $as_echo "$ac_header_compiler" >&6; }
  1970.  
  1971. # Is the header present?
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1973. $as_echo_n "checking $2 presence... " >&6; }
  1974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1975. /* end confdefs.h.  */
  1976. #include <$2>
  1977. _ACEOF
  1978. if ac_fn_c_try_cpp "$LINENO"; then :
  1979.   ac_header_preproc=yes
  1980. else
  1981.   ac_header_preproc=no
  1982. fi
  1983. rm -f conftest.err conftest.i conftest.$ac_ext
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1985. $as_echo "$ac_header_preproc" >&6; }
  1986.  
  1987. # So?  What about this header?
  1988. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1989.   yes:no: )
  1990.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1991. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1992.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1993. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1994.     ;;
  1995.   no:yes:* )
  1996.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1997. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1998.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1999. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  2000.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2001. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2002.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  2003. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  2004.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2005. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2006. ( $as_echo "## ------------------------------------------------- ##
  2007. ## Report this to http://code.google.com/p/openjpeg/ ##
  2008. ## ------------------------------------------------- ##"
  2009.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  2010.     ;;
  2011. esac
  2012.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2013. $as_echo_n "checking for $2... " >&6; }
  2014. if eval \${$3+:} false; then :
  2015.   $as_echo_n "(cached) " >&6
  2016. else
  2017.   eval "$3=\$ac_header_compiler"
  2018. fi
  2019. eval ac_res=\$$3
  2020.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2021. $as_echo "$ac_res" >&6; }
  2022. fi
  2023.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2024.  
  2025. } # ac_fn_c_check_header_mongrel
  2026. cat >config.log <<_ACEOF
  2027. This file contains any messages produced by compilers while
  2028. running configure, to aid debugging if configure makes a mistake.
  2029.  
  2030. It was created by OpenJPEG $as_me 1.4.0, which was
  2031. generated by GNU Autoconf 2.68.  Invocation command line was
  2032.  
  2033.   $ $0 $@
  2034.  
  2035. _ACEOF
  2036. exec 5>>config.log
  2037. {
  2038. cat <<_ASUNAME
  2039. ## --------- ##
  2040. ## Platform. ##
  2041. ## --------- ##
  2042.  
  2043. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2044. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2045. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2046. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2047. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2048.  
  2049. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2050. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2051.  
  2052. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2053. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2054. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2055. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2056. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2057. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2058. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2059.  
  2060. _ASUNAME
  2061.  
  2062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2063. for as_dir in $PATH
  2064. do
  2065.   IFS=$as_save_IFS
  2066.   test -z "$as_dir" && as_dir=.
  2067.     $as_echo "PATH: $as_dir"
  2068.   done
  2069. IFS=$as_save_IFS
  2070.  
  2071. } >&5
  2072.  
  2073. cat >&5 <<_ACEOF
  2074.  
  2075.  
  2076. ## ----------- ##
  2077. ## Core tests. ##
  2078. ## ----------- ##
  2079.  
  2080. _ACEOF
  2081.  
  2082.  
  2083. # Keep a trace of the command line.
  2084. # Strip out --no-create and --no-recursion so they do not pile up.
  2085. # Strip out --silent because we don't want to record it for future runs.
  2086. # Also quote any args containing shell meta-characters.
  2087. # Make two passes to allow for proper duplicate-argument suppression.
  2088. ac_configure_args=
  2089. ac_configure_args0=
  2090. ac_configure_args1=
  2091. ac_must_keep_next=false
  2092. for ac_pass in 1 2
  2093. do
  2094.   for ac_arg
  2095.   do
  2096.     case $ac_arg in
  2097.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2098.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2099.     | -silent | --silent | --silen | --sile | --sil)
  2100.       continue ;;
  2101.     *\'*)
  2102.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2103.     esac
  2104.     case $ac_pass in
  2105.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2106.     2)
  2107.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2108.       if test $ac_must_keep_next = true; then
  2109.         ac_must_keep_next=false # Got value, back to normal.
  2110.       else
  2111.         case $ac_arg in
  2112.           *=* | --config-cache | -C | -disable-* | --disable-* \
  2113.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2114.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2115.           | -with-* | --with-* | -without-* | --without-* | --x)
  2116.             case "$ac_configure_args0 " in
  2117.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2118.             esac
  2119.             ;;
  2120.           -* ) ac_must_keep_next=true ;;
  2121.         esac
  2122.       fi
  2123.       as_fn_append ac_configure_args " '$ac_arg'"
  2124.       ;;
  2125.     esac
  2126.   done
  2127. done
  2128. { ac_configure_args0=; unset ac_configure_args0;}
  2129. { ac_configure_args1=; unset ac_configure_args1;}
  2130.  
  2131. # When interrupted or exit'd, cleanup temporary files, and complete
  2132. # config.log.  We remove comments because anyway the quotes in there
  2133. # would cause problems or look ugly.
  2134. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2135. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2136. trap 'exit_status=$?
  2137.   # Save into config.log some information that might help in debugging.
  2138.   {
  2139.     echo
  2140.  
  2141.     $as_echo "## ---------------- ##
  2142. ## Cache variables. ##
  2143. ## ---------------- ##"
  2144.     echo
  2145.     # The following way of writing the cache mishandles newlines in values,
  2146. (
  2147.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2148.     eval ac_val=\$$ac_var
  2149.     case $ac_val in #(
  2150.     *${as_nl}*)
  2151.       case $ac_var in #(
  2152.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2153. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2154.       esac
  2155.       case $ac_var in #(
  2156.       _ | IFS | as_nl) ;; #(
  2157.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2158.       *) { eval $ac_var=; unset $ac_var;} ;;
  2159.       esac ;;
  2160.     esac
  2161.   done
  2162.   (set) 2>&1 |
  2163.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2164.     *${as_nl}ac_space=\ *)
  2165.       sed -n \
  2166.         "s/'\''/'\''\\\\'\'''\''/g;
  2167.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2168.       ;; #(
  2169.     *)
  2170.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2171.       ;;
  2172.     esac |
  2173.     sort
  2174. )
  2175.     echo
  2176.  
  2177.     $as_echo "## ----------------- ##
  2178. ## Output variables. ##
  2179. ## ----------------- ##"
  2180.     echo
  2181.     for ac_var in $ac_subst_vars
  2182.     do
  2183.       eval ac_val=\$$ac_var
  2184.       case $ac_val in
  2185.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2186.       esac
  2187.       $as_echo "$ac_var='\''$ac_val'\''"
  2188.     done | sort
  2189.     echo
  2190.  
  2191.     if test -n "$ac_subst_files"; then
  2192.       $as_echo "## ------------------- ##
  2193. ## File substitutions. ##
  2194. ## ------------------- ##"
  2195.       echo
  2196.       for ac_var in $ac_subst_files
  2197.       do
  2198.         eval ac_val=\$$ac_var
  2199.         case $ac_val in
  2200.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2201.         esac
  2202.         $as_echo "$ac_var='\''$ac_val'\''"
  2203.       done | sort
  2204.       echo
  2205.     fi
  2206.  
  2207.     if test -s confdefs.h; then
  2208.       $as_echo "## ----------- ##
  2209. ## confdefs.h. ##
  2210. ## ----------- ##"
  2211.       echo
  2212.       cat confdefs.h
  2213.       echo
  2214.     fi
  2215.     test "$ac_signal" != 0 &&
  2216.       $as_echo "$as_me: caught signal $ac_signal"
  2217.     $as_echo "$as_me: exit $exit_status"
  2218.   } >&5
  2219.   rm -f core *.core core.conftest.* &&
  2220.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2221.     exit $exit_status
  2222. ' 0
  2223. for ac_signal in 1 2 13 15; do
  2224.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2225. done
  2226. ac_signal=0
  2227.  
  2228. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2229. rm -f -r conftest* confdefs.h
  2230.  
  2231. $as_echo "/* confdefs.h */" > confdefs.h
  2232.  
  2233. # Predefined preprocessor variables.
  2234.  
  2235. cat >>confdefs.h <<_ACEOF
  2236. #define PACKAGE_NAME "$PACKAGE_NAME"
  2237. _ACEOF
  2238.  
  2239. cat >>confdefs.h <<_ACEOF
  2240. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2241. _ACEOF
  2242.  
  2243. cat >>confdefs.h <<_ACEOF
  2244. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2245. _ACEOF
  2246.  
  2247. cat >>confdefs.h <<_ACEOF
  2248. #define PACKAGE_STRING "$PACKAGE_STRING"
  2249. _ACEOF
  2250.  
  2251. cat >>confdefs.h <<_ACEOF
  2252. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2253. _ACEOF
  2254.  
  2255. cat >>confdefs.h <<_ACEOF
  2256. #define PACKAGE_URL "$PACKAGE_URL"
  2257. _ACEOF
  2258.  
  2259.  
  2260. # Let the site file select an alternate cache file if it wants to.
  2261. # Prefer an explicitly selected file to automatically selected ones.
  2262. ac_site_file1=NONE
  2263. ac_site_file2=NONE
  2264. if test -n "$CONFIG_SITE"; then
  2265.   # We do not want a PATH search for config.site.
  2266.   case $CONFIG_SITE in #((
  2267.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2268.     */*) ac_site_file1=$CONFIG_SITE;;
  2269.     *)   ac_site_file1=./$CONFIG_SITE;;
  2270.   esac
  2271. elif test "x$prefix" != xNONE; then
  2272.   ac_site_file1=$prefix/share/config.site
  2273.   ac_site_file2=$prefix/etc/config.site
  2274. else
  2275.   ac_site_file1=$ac_default_prefix/share/config.site
  2276.   ac_site_file2=$ac_default_prefix/etc/config.site
  2277. fi
  2278. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2279. do
  2280.   test "x$ac_site_file" = xNONE && continue
  2281.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2282.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2283. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2284.     sed 's/^/| /' "$ac_site_file" >&5
  2285.     . "$ac_site_file" \
  2286.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2288. as_fn_error $? "failed to load site script $ac_site_file
  2289. See \`config.log' for more details" "$LINENO" 5; }
  2290.   fi
  2291. done
  2292.  
  2293. if test -r "$cache_file"; then
  2294.   # Some versions of bash will fail to source /dev/null (special files
  2295.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2296.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2297.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2298. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2299.     case $cache_file in
  2300.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2301.       *)                      . "./$cache_file";;
  2302.     esac
  2303.   fi
  2304. else
  2305.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2306. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2307.   >$cache_file
  2308. fi
  2309.  
  2310. # Check that the precious variables saved in the cache have kept the same
  2311. # value.
  2312. ac_cache_corrupted=false
  2313. for ac_var in $ac_precious_vars; do
  2314.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2315.   eval ac_new_set=\$ac_env_${ac_var}_set
  2316.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2317.   eval ac_new_val=\$ac_env_${ac_var}_value
  2318.   case $ac_old_set,$ac_new_set in
  2319.     set,)
  2320.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2321. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2322.       ac_cache_corrupted=: ;;
  2323.     ,set)
  2324.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2325. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2326.       ac_cache_corrupted=: ;;
  2327.     ,);;
  2328.     *)
  2329.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2330.         # differences in whitespace do not lead to failure.
  2331.         ac_old_val_w=`echo x $ac_old_val`
  2332.         ac_new_val_w=`echo x $ac_new_val`
  2333.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2334.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2335. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2336.           ac_cache_corrupted=:
  2337.         else
  2338.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2339. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2340.           eval $ac_var=\$ac_old_val
  2341.         fi
  2342.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2343. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2344.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2345. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2346.       fi;;
  2347.   esac
  2348.   # Pass precious variables to config.status.
  2349.   if test "$ac_new_set" = set; then
  2350.     case $ac_new_val in
  2351.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2352.     *) ac_arg=$ac_var=$ac_new_val ;;
  2353.     esac
  2354.     case " $ac_configure_args " in
  2355.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2356.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2357.     esac
  2358.   fi
  2359. done
  2360. if $ac_cache_corrupted; then
  2361.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2362. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2363.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2364. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2365.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2366. fi
  2367. ## -------------------- ##
  2368. ## Main body of script. ##
  2369. ## -------------------- ##
  2370.  
  2371. ac_ext=c
  2372. ac_cpp='$CPP $CPPFLAGS'
  2373. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2374. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2375. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2376.  
  2377.  
  2378.  
  2379. ac_config_headers="$ac_config_headers opj_config.h"
  2380.  
  2381. #
  2382. ac_aux_dir=
  2383. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2384.   if test -f "$ac_dir/install-sh"; then
  2385.     ac_aux_dir=$ac_dir
  2386.     ac_install_sh="$ac_aux_dir/install-sh -c"
  2387.     break
  2388.   elif test -f "$ac_dir/install.sh"; then
  2389.     ac_aux_dir=$ac_dir
  2390.     ac_install_sh="$ac_aux_dir/install.sh -c"
  2391.     break
  2392.   elif test -f "$ac_dir/shtool"; then
  2393.     ac_aux_dir=$ac_dir
  2394.     ac_install_sh="$ac_aux_dir/shtool install -c"
  2395.     break
  2396.   fi
  2397. done
  2398. if test -z "$ac_aux_dir"; then
  2399.   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2400. fi
  2401.  
  2402. # These three variables are undocumented and unsupported,
  2403. # and are intended to be withdrawn in a future Autoconf release.
  2404. # They can cause serious problems if a builder's source tree is in a directory
  2405. # whose full name contains unusual characters.
  2406. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2407. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2408. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2409.  
  2410.  
  2411. # Make sure we can run config.sub.
  2412. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2413.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2414.  
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2416. $as_echo_n "checking build system type... " >&6; }
  2417. if ${ac_cv_build+:} false; then :
  2418.   $as_echo_n "(cached) " >&6
  2419. else
  2420.   ac_build_alias=$build_alias
  2421. test "x$ac_build_alias" = x &&
  2422.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2423. test "x$ac_build_alias" = x &&
  2424.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2425. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2426.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2427.  
  2428. fi
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2430. $as_echo "$ac_cv_build" >&6; }
  2431. case $ac_cv_build in
  2432. *-*-*) ;;
  2433. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2434. esac
  2435. build=$ac_cv_build
  2436. ac_save_IFS=$IFS; IFS='-'
  2437. set x $ac_cv_build
  2438. shift
  2439. build_cpu=$1
  2440. build_vendor=$2
  2441. shift; shift
  2442. # Remember, the first character of IFS is used to create $*,
  2443. # except with old shells:
  2444. build_os=$*
  2445. IFS=$ac_save_IFS
  2446. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2447.  
  2448.  
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2450. $as_echo_n "checking host system type... " >&6; }
  2451. if ${ac_cv_host+:} false; then :
  2452.   $as_echo_n "(cached) " >&6
  2453. else
  2454.   if test "x$host_alias" = x; then
  2455.   ac_cv_host=$ac_cv_build
  2456. else
  2457.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2458.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2459. fi
  2460.  
  2461. fi
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2463. $as_echo "$ac_cv_host" >&6; }
  2464. case $ac_cv_host in
  2465. *-*-*) ;;
  2466. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2467. esac
  2468. host=$ac_cv_host
  2469. ac_save_IFS=$IFS; IFS='-'
  2470. set x $ac_cv_host
  2471. shift
  2472. host_cpu=$1
  2473. host_vendor=$2
  2474. shift; shift
  2475. # Remember, the first character of IFS is used to create $*,
  2476. # except with old shells:
  2477. host_os=$*
  2478. IFS=$ac_save_IFS
  2479. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2480.  
  2481.  
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2483. $as_echo_n "checking target system type... " >&6; }
  2484. if ${ac_cv_target+:} false; then :
  2485.   $as_echo_n "(cached) " >&6
  2486. else
  2487.   if test "x$target_alias" = x; then
  2488.   ac_cv_target=$ac_cv_host
  2489. else
  2490.   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2491.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2492. fi
  2493.  
  2494. fi
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2496. $as_echo "$ac_cv_target" >&6; }
  2497. case $ac_cv_target in
  2498. *-*-*) ;;
  2499. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2500. esac
  2501. target=$ac_cv_target
  2502. ac_save_IFS=$IFS; IFS='-'
  2503. set x $ac_cv_target
  2504. shift
  2505. target_cpu=$1
  2506. target_vendor=$2
  2507. shift; shift
  2508. # Remember, the first character of IFS is used to create $*,
  2509. # except with old shells:
  2510. target_os=$*
  2511. IFS=$ac_save_IFS
  2512. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2513.  
  2514.  
  2515. # The aliases save the names the user supplied, while $host etc.
  2516. # will get canonicalized.
  2517. test -n "$target_alias" &&
  2518.   test "$program_prefix$program_suffix$program_transform_name" = \
  2519.     NONENONEs,x,x, &&
  2520.   program_prefix=${target_alias}-
  2521.  
  2522. #foreign:package will not follow the GNU Standards
  2523. am__api_version='1.11'
  2524.  
  2525. # Find a good install program.  We prefer a C program (faster),
  2526. # so one script is as good as another.  But avoid the broken or
  2527. # incompatible versions:
  2528. # SysV /etc/install, /usr/sbin/install
  2529. # SunOS /usr/etc/install
  2530. # IRIX /sbin/install
  2531. # AIX /bin/install
  2532. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2533. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2534. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2535. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2536. # OS/2's system install, which has a completely different semantic
  2537. # ./install, which can be erroneously created by make from ./install.sh.
  2538. # Reject install programs that cannot install multiple files.
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2540. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2541. if test -z "$INSTALL"; then
  2542. if ${ac_cv_path_install+:} false; then :
  2543.   $as_echo_n "(cached) " >&6
  2544. else
  2545.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2546. for as_dir in $PATH
  2547. do
  2548.   IFS=$as_save_IFS
  2549.   test -z "$as_dir" && as_dir=.
  2550.     # Account for people who put trailing slashes in PATH elements.
  2551. case $as_dir/ in #((
  2552.   ./ | .// | /[cC]/* | \
  2553.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2554.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2555.   /usr/ucb/* ) ;;
  2556.   *)
  2557.     # OSF1 and SCO ODT 3.0 have their own names for install.
  2558.     # Don't use installbsd from OSF since it installs stuff as root
  2559.     # by default.
  2560.     for ac_prog in ginstall scoinst install; do
  2561.       for ac_exec_ext in '' $ac_executable_extensions; do
  2562.         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2563.           if test $ac_prog = install &&
  2564.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2565.             # AIX install.  It has an incompatible calling convention.
  2566.             :
  2567.           elif test $ac_prog = install &&
  2568.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2569.             # program-specific install script used by HP pwplus--don't use.
  2570.             :
  2571.           else
  2572.             rm -rf conftest.one conftest.two conftest.dir
  2573.             echo one > conftest.one
  2574.             echo two > conftest.two
  2575.             mkdir conftest.dir
  2576.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2577.               test -s conftest.one && test -s conftest.two &&
  2578.               test -s conftest.dir/conftest.one &&
  2579.               test -s conftest.dir/conftest.two
  2580.             then
  2581.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2582.               break 3
  2583.             fi
  2584.           fi
  2585.         fi
  2586.       done
  2587.     done
  2588.     ;;
  2589. esac
  2590.  
  2591.   done
  2592. IFS=$as_save_IFS
  2593.  
  2594. rm -rf conftest.one conftest.two conftest.dir
  2595.  
  2596. fi
  2597.   if test "${ac_cv_path_install+set}" = set; then
  2598.     INSTALL=$ac_cv_path_install
  2599.   else
  2600.     # As a last resort, use the slow shell script.  Don't cache a
  2601.     # value for INSTALL within a source directory, because that will
  2602.     # break other packages using the cache if that directory is
  2603.     # removed, or if the value is a relative name.
  2604.     INSTALL=$ac_install_sh
  2605.   fi
  2606. fi
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2608. $as_echo "$INSTALL" >&6; }
  2609.  
  2610. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2611. # It thinks the first close brace ends the variable substitution.
  2612. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2613.  
  2614. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2615.  
  2616. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2617.  
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2619. $as_echo_n "checking whether build environment is sane... " >&6; }
  2620. # Just in case
  2621. sleep 1
  2622. echo timestamp > conftest.file
  2623. # Reject unsafe characters in $srcdir or the absolute working directory
  2624. # name.  Accept space and tab only in the latter.
  2625. am_lf='
  2626. '
  2627. case `pwd` in
  2628.   *[\\\"\#\$\&\'\`$am_lf]*)
  2629.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2630. esac
  2631. case $srcdir in
  2632.   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
  2633.     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2634. esac
  2635.  
  2636. # Do `set' in a subshell so we don't clobber the current shell's
  2637. # arguments.  Must try -L first in case configure is actually a
  2638. # symlink; some systems play weird games with the mod time of symlinks
  2639. # (eg FreeBSD returns the mod time of the symlink's containing
  2640. # directory).
  2641. if (
  2642.    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2643.    if test "$*" = "X"; then
  2644.       # -L didn't work.
  2645.       set X `ls -t "$srcdir/configure" conftest.file`
  2646.    fi
  2647.    rm -f conftest.file
  2648.    if test "$*" != "X $srcdir/configure conftest.file" \
  2649.       && test "$*" != "X conftest.file $srcdir/configure"; then
  2650.  
  2651.       # If neither matched, then we have a broken ls.  This can happen
  2652.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2653.       # broken ls alias from the environment.  This has actually
  2654.       # happened.  Such a system could not be considered "sane".
  2655.       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  2656. alias in your environment" "$LINENO" 5
  2657.    fi
  2658.  
  2659.    test "$2" = conftest.file
  2660.    )
  2661. then
  2662.    # Ok.
  2663.    :
  2664. else
  2665.    as_fn_error $? "newly created file is older than distributed files!
  2666. Check your system clock" "$LINENO" 5
  2667. fi
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2669. $as_echo "yes" >&6; }
  2670. test "$program_prefix" != NONE &&
  2671.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2672. # Use a double $ so make ignores it.
  2673. test "$program_suffix" != NONE &&
  2674.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2675. # Double any \ or $.
  2676. # By default was `s,x,x', remove it if useless.
  2677. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2678. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2679.  
  2680. # expand $ac_aux_dir to an absolute path
  2681. am_aux_dir=`cd $ac_aux_dir && pwd`
  2682.  
  2683. if test x"${MISSING+set}" != xset; then
  2684.   case $am_aux_dir in
  2685.   *\ * | *\     *)
  2686.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2687.   *)
  2688.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2689.   esac
  2690. fi
  2691. # Use eval to expand $SHELL
  2692. if eval "$MISSING --run true"; then
  2693.   am_missing_run="$MISSING --run "
  2694. else
  2695.   am_missing_run=
  2696.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2697. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2698. fi
  2699.  
  2700. if test x"${install_sh}" != xset; then
  2701.   case $am_aux_dir in
  2702.   *\ * | *\     *)
  2703.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2704.   *)
  2705.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  2706.   esac
  2707. fi
  2708.  
  2709. # Installed binaries are usually stripped using `strip' when the user
  2710. # run `make install-strip'.  However `strip' might not be the right
  2711. # tool to use in cross-compilation environments, therefore Automake
  2712. # will honor the `STRIP' environment variable to overrule this program.
  2713. if test "$cross_compiling" != no; then
  2714.   if test -n "$ac_tool_prefix"; then
  2715.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2716. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2718. $as_echo_n "checking for $ac_word... " >&6; }
  2719. if ${ac_cv_prog_STRIP+:} false; then :
  2720.   $as_echo_n "(cached) " >&6
  2721. else
  2722.   if test -n "$STRIP"; then
  2723.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2724. else
  2725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2726. for as_dir in $PATH
  2727. do
  2728.   IFS=$as_save_IFS
  2729.   test -z "$as_dir" && as_dir=.
  2730.     for ac_exec_ext in '' $ac_executable_extensions; do
  2731.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2732.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2733.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2734.     break 2
  2735.   fi
  2736. done
  2737.   done
  2738. IFS=$as_save_IFS
  2739.  
  2740. fi
  2741. fi
  2742. STRIP=$ac_cv_prog_STRIP
  2743. if test -n "$STRIP"; then
  2744.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2745. $as_echo "$STRIP" >&6; }
  2746. else
  2747.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2748. $as_echo "no" >&6; }
  2749. fi
  2750.  
  2751.  
  2752. fi
  2753. if test -z "$ac_cv_prog_STRIP"; then
  2754.   ac_ct_STRIP=$STRIP
  2755.   # Extract the first word of "strip", so it can be a program name with args.
  2756. set dummy strip; ac_word=$2
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2758. $as_echo_n "checking for $ac_word... " >&6; }
  2759. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2760.   $as_echo_n "(cached) " >&6
  2761. else
  2762.   if test -n "$ac_ct_STRIP"; then
  2763.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2764. else
  2765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2766. for as_dir in $PATH
  2767. do
  2768.   IFS=$as_save_IFS
  2769.   test -z "$as_dir" && as_dir=.
  2770.     for ac_exec_ext in '' $ac_executable_extensions; do
  2771.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2772.     ac_cv_prog_ac_ct_STRIP="strip"
  2773.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2774.     break 2
  2775.   fi
  2776. done
  2777.   done
  2778. IFS=$as_save_IFS
  2779.  
  2780. fi
  2781. fi
  2782. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2783. if test -n "$ac_ct_STRIP"; then
  2784.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2785. $as_echo "$ac_ct_STRIP" >&6; }
  2786. else
  2787.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790.  
  2791.   if test "x$ac_ct_STRIP" = x; then
  2792.     STRIP=":"
  2793.   else
  2794.     case $cross_compiling:$ac_tool_warned in
  2795. yes:)
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2797. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2798. ac_tool_warned=yes ;;
  2799. esac
  2800.     STRIP=$ac_ct_STRIP
  2801.   fi
  2802. else
  2803.   STRIP="$ac_cv_prog_STRIP"
  2804. fi
  2805.  
  2806. fi
  2807. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2808.  
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2810. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2811. if test -z "$MKDIR_P"; then
  2812.   if ${ac_cv_path_mkdir+:} false; then :
  2813.   $as_echo_n "(cached) " >&6
  2814. else
  2815.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2816. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2817. do
  2818.   IFS=$as_save_IFS
  2819.   test -z "$as_dir" && as_dir=.
  2820.     for ac_prog in mkdir gmkdir; do
  2821.          for ac_exec_ext in '' $ac_executable_extensions; do
  2822.            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2823.            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2824.              'mkdir (GNU coreutils) '* | \
  2825.              'mkdir (coreutils) '* | \
  2826.              'mkdir (fileutils) '4.1*)
  2827.                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2828.                break 3;;
  2829.            esac
  2830.          done
  2831.        done
  2832.   done
  2833. IFS=$as_save_IFS
  2834.  
  2835. fi
  2836.  
  2837.   test -d ./--version && rmdir ./--version
  2838.   if test "${ac_cv_path_mkdir+set}" = set; then
  2839.     MKDIR_P="$ac_cv_path_mkdir -p"
  2840.   else
  2841.     # As a last resort, use the slow shell script.  Don't cache a
  2842.     # value for MKDIR_P within a source directory, because that will
  2843.     # break other packages using the cache if that directory is
  2844.     # removed, or if the value is a relative name.
  2845.     MKDIR_P="$ac_install_sh -d"
  2846.   fi
  2847. fi
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2849. $as_echo "$MKDIR_P" >&6; }
  2850.  
  2851. mkdir_p="$MKDIR_P"
  2852. case $mkdir_p in
  2853.   [\\/$]* | ?:[\\/]*) ;;
  2854.   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2855. esac
  2856.  
  2857. for ac_prog in gawk mawk nawk awk
  2858. do
  2859.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2860. set dummy $ac_prog; ac_word=$2
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2862. $as_echo_n "checking for $ac_word... " >&6; }
  2863. if ${ac_cv_prog_AWK+:} false; then :
  2864.   $as_echo_n "(cached) " >&6
  2865. else
  2866.   if test -n "$AWK"; then
  2867.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2868. else
  2869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2870. for as_dir in $PATH
  2871. do
  2872.   IFS=$as_save_IFS
  2873.   test -z "$as_dir" && as_dir=.
  2874.     for ac_exec_ext in '' $ac_executable_extensions; do
  2875.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2876.     ac_cv_prog_AWK="$ac_prog"
  2877.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2878.     break 2
  2879.   fi
  2880. done
  2881.   done
  2882. IFS=$as_save_IFS
  2883.  
  2884. fi
  2885. fi
  2886. AWK=$ac_cv_prog_AWK
  2887. if test -n "$AWK"; then
  2888.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2889. $as_echo "$AWK" >&6; }
  2890. else
  2891.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fi
  2894.  
  2895.  
  2896.   test -n "$AWK" && break
  2897. done
  2898.  
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2900. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2901. set x ${MAKE-make}
  2902. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2903. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2904.   $as_echo_n "(cached) " >&6
  2905. else
  2906.   cat >conftest.make <<\_ACEOF
  2907. SHELL = /bin/sh
  2908. all:
  2909.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  2910. _ACEOF
  2911. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2912. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2913.   *@@@%%%=?*=@@@%%%*)
  2914.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2915.   *)
  2916.     eval ac_cv_prog_make_${ac_make}_set=no;;
  2917. esac
  2918. rm -f conftest.make
  2919. fi
  2920. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2921.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2922. $as_echo "yes" >&6; }
  2923.   SET_MAKE=
  2924. else
  2925.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2926. $as_echo "no" >&6; }
  2927.   SET_MAKE="MAKE=${MAKE-make}"
  2928. fi
  2929.  
  2930. rm -rf .tst 2>/dev/null
  2931. mkdir .tst 2>/dev/null
  2932. if test -d .tst; then
  2933.   am__leading_dot=.
  2934. else
  2935.   am__leading_dot=_
  2936. fi
  2937. rmdir .tst 2>/dev/null
  2938.  
  2939. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2940.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2941.   # is not polluted with repeated "-I."
  2942.   am__isrc=' -I$(srcdir)'
  2943.   # test to see if srcdir already configured
  2944.   if test -f $srcdir/config.status; then
  2945.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2946.   fi
  2947. fi
  2948.  
  2949. # test whether we have cygpath
  2950. if test -z "$CYGPATH_W"; then
  2951.   if (cygpath --version) >/dev/null 2>/dev/null; then
  2952.     CYGPATH_W='cygpath -w'
  2953.   else
  2954.     CYGPATH_W=echo
  2955.   fi
  2956. fi
  2957.  
  2958.  
  2959. # Define the identity of the package.
  2960.  PACKAGE='openjpeg-1.4.0'
  2961.  VERSION='1.4.0'
  2962.  
  2963.  
  2964. cat >>confdefs.h <<_ACEOF
  2965. #define PACKAGE "$PACKAGE"
  2966. _ACEOF
  2967.  
  2968.  
  2969. cat >>confdefs.h <<_ACEOF
  2970. #define VERSION "$VERSION"
  2971. _ACEOF
  2972.  
  2973. # Some tools Automake needs.
  2974.  
  2975. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2976.  
  2977.  
  2978. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2979.  
  2980.  
  2981. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2982.  
  2983.  
  2984. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2985.  
  2986.  
  2987. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2988.  
  2989. # We need awk for the "check" target.  The system "awk" is bad on
  2990. # some platforms.
  2991. # Always define AMTAR for backward compatibility.
  2992.  
  2993. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2994.  
  2995. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001. #
  3002. MAJOR_NR=1
  3003. MINOR_NR=4
  3004. BUILD_NR=0
  3005.  
  3006.  
  3007.  
  3008. #
  3009. JP3D_MAJOR_NR=1
  3010. JP3D_MINOR_NR=3
  3011. JP3D_BUILD_NR=0
  3012.  
  3013.  
  3014.  
  3015. #
  3016. # Checks for programs.
  3017. ac_ext=c
  3018. ac_cpp='$CPP $CPPFLAGS'
  3019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3022. if test -n "$ac_tool_prefix"; then
  3023.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3024. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3026. $as_echo_n "checking for $ac_word... " >&6; }
  3027. if ${ac_cv_prog_CC+:} false; then :
  3028.   $as_echo_n "(cached) " >&6
  3029. else
  3030.   if test -n "$CC"; then
  3031.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3032. else
  3033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3034. for as_dir in $PATH
  3035. do
  3036.   IFS=$as_save_IFS
  3037.   test -z "$as_dir" && as_dir=.
  3038.     for ac_exec_ext in '' $ac_executable_extensions; do
  3039.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3040.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3041.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3042.     break 2
  3043.   fi
  3044. done
  3045.   done
  3046. IFS=$as_save_IFS
  3047.  
  3048. fi
  3049. fi
  3050. CC=$ac_cv_prog_CC
  3051. if test -n "$CC"; then
  3052.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3053. $as_echo "$CC" >&6; }
  3054. else
  3055.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3056. $as_echo "no" >&6; }
  3057. fi
  3058.  
  3059.  
  3060. fi
  3061. if test -z "$ac_cv_prog_CC"; then
  3062.   ac_ct_CC=$CC
  3063.   # Extract the first word of "gcc", so it can be a program name with args.
  3064. set dummy gcc; ac_word=$2
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3066. $as_echo_n "checking for $ac_word... " >&6; }
  3067. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3068.   $as_echo_n "(cached) " >&6
  3069. else
  3070.   if test -n "$ac_ct_CC"; then
  3071.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3072. else
  3073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3074. for as_dir in $PATH
  3075. do
  3076.   IFS=$as_save_IFS
  3077.   test -z "$as_dir" && as_dir=.
  3078.     for ac_exec_ext in '' $ac_executable_extensions; do
  3079.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3080.     ac_cv_prog_ac_ct_CC="gcc"
  3081.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3082.     break 2
  3083.   fi
  3084. done
  3085.   done
  3086. IFS=$as_save_IFS
  3087.  
  3088. fi
  3089. fi
  3090. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3091. if test -n "$ac_ct_CC"; then
  3092.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3093. $as_echo "$ac_ct_CC" >&6; }
  3094. else
  3095.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3096. $as_echo "no" >&6; }
  3097. fi
  3098.  
  3099.   if test "x$ac_ct_CC" = x; then
  3100.     CC=""
  3101.   else
  3102.     case $cross_compiling:$ac_tool_warned in
  3103. yes:)
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3105. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3106. ac_tool_warned=yes ;;
  3107. esac
  3108.     CC=$ac_ct_CC
  3109.   fi
  3110. else
  3111.   CC="$ac_cv_prog_CC"
  3112. fi
  3113.  
  3114. if test -z "$CC"; then
  3115.           if test -n "$ac_tool_prefix"; then
  3116.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3117. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3119. $as_echo_n "checking for $ac_word... " >&6; }
  3120. if ${ac_cv_prog_CC+:} false; then :
  3121.   $as_echo_n "(cached) " >&6
  3122. else
  3123.   if test -n "$CC"; then
  3124.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3125. else
  3126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3127. for as_dir in $PATH
  3128. do
  3129.   IFS=$as_save_IFS
  3130.   test -z "$as_dir" && as_dir=.
  3131.     for ac_exec_ext in '' $ac_executable_extensions; do
  3132.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3133.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3134.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3135.     break 2
  3136.   fi
  3137. done
  3138.   done
  3139. IFS=$as_save_IFS
  3140.  
  3141. fi
  3142. fi
  3143. CC=$ac_cv_prog_CC
  3144. if test -n "$CC"; then
  3145.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3146. $as_echo "$CC" >&6; }
  3147. else
  3148.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3149. $as_echo "no" >&6; }
  3150. fi
  3151.  
  3152.  
  3153.   fi
  3154. fi
  3155. if test -z "$CC"; then
  3156.   # Extract the first word of "cc", so it can be a program name with args.
  3157. set dummy cc; ac_word=$2
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3159. $as_echo_n "checking for $ac_word... " >&6; }
  3160. if ${ac_cv_prog_CC+:} false; then :
  3161.   $as_echo_n "(cached) " >&6
  3162. else
  3163.   if test -n "$CC"; then
  3164.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3165. else
  3166.   ac_prog_rejected=no
  3167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3168. for as_dir in $PATH
  3169. do
  3170.   IFS=$as_save_IFS
  3171.   test -z "$as_dir" && as_dir=.
  3172.     for ac_exec_ext in '' $ac_executable_extensions; do
  3173.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3174.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3175.        ac_prog_rejected=yes
  3176.        continue
  3177.      fi
  3178.     ac_cv_prog_CC="cc"
  3179.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3180.     break 2
  3181.   fi
  3182. done
  3183.   done
  3184. IFS=$as_save_IFS
  3185.  
  3186. if test $ac_prog_rejected = yes; then
  3187.   # We found a bogon in the path, so make sure we never use it.
  3188.   set dummy $ac_cv_prog_CC
  3189.   shift
  3190.   if test $# != 0; then
  3191.     # We chose a different compiler from the bogus one.
  3192.     # However, it has the same basename, so the bogon will be chosen
  3193.     # first if we set CC to just the basename; use the full file name.
  3194.     shift
  3195.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3196.   fi
  3197. fi
  3198. fi
  3199. fi
  3200. CC=$ac_cv_prog_CC
  3201. if test -n "$CC"; then
  3202.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3203. $as_echo "$CC" >&6; }
  3204. else
  3205.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3206. $as_echo "no" >&6; }
  3207. fi
  3208.  
  3209.  
  3210. fi
  3211. if test -z "$CC"; then
  3212.   if test -n "$ac_tool_prefix"; then
  3213.   for ac_prog in cl.exe
  3214.   do
  3215.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3216. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3218. $as_echo_n "checking for $ac_word... " >&6; }
  3219. if ${ac_cv_prog_CC+:} false; then :
  3220.   $as_echo_n "(cached) " >&6
  3221. else
  3222.   if test -n "$CC"; then
  3223.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3224. else
  3225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3226. for as_dir in $PATH
  3227. do
  3228.   IFS=$as_save_IFS
  3229.   test -z "$as_dir" && as_dir=.
  3230.     for ac_exec_ext in '' $ac_executable_extensions; do
  3231.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3232.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3233.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3234.     break 2
  3235.   fi
  3236. done
  3237.   done
  3238. IFS=$as_save_IFS
  3239.  
  3240. fi
  3241. fi
  3242. CC=$ac_cv_prog_CC
  3243. if test -n "$CC"; then
  3244.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3245. $as_echo "$CC" >&6; }
  3246. else
  3247.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3248. $as_echo "no" >&6; }
  3249. fi
  3250.  
  3251.  
  3252.     test -n "$CC" && break
  3253.   done
  3254. fi
  3255. if test -z "$CC"; then
  3256.   ac_ct_CC=$CC
  3257.   for ac_prog in cl.exe
  3258. do
  3259.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3260. set dummy $ac_prog; ac_word=$2
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3262. $as_echo_n "checking for $ac_word... " >&6; }
  3263. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3264.   $as_echo_n "(cached) " >&6
  3265. else
  3266.   if test -n "$ac_ct_CC"; then
  3267.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3268. else
  3269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3270. for as_dir in $PATH
  3271. do
  3272.   IFS=$as_save_IFS
  3273.   test -z "$as_dir" && as_dir=.
  3274.     for ac_exec_ext in '' $ac_executable_extensions; do
  3275.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3276.     ac_cv_prog_ac_ct_CC="$ac_prog"
  3277.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3278.     break 2
  3279.   fi
  3280. done
  3281.   done
  3282. IFS=$as_save_IFS
  3283.  
  3284. fi
  3285. fi
  3286. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3287. if test -n "$ac_ct_CC"; then
  3288.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3289. $as_echo "$ac_ct_CC" >&6; }
  3290. else
  3291.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3292. $as_echo "no" >&6; }
  3293. fi
  3294.  
  3295.  
  3296.   test -n "$ac_ct_CC" && break
  3297. done
  3298.  
  3299.   if test "x$ac_ct_CC" = x; then
  3300.     CC=""
  3301.   else
  3302.     case $cross_compiling:$ac_tool_warned in
  3303. yes:)
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3305. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3306. ac_tool_warned=yes ;;
  3307. esac
  3308.     CC=$ac_ct_CC
  3309.   fi
  3310. fi
  3311.  
  3312. fi
  3313.  
  3314.  
  3315. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3316. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3317. as_fn_error $? "no acceptable C compiler found in \$PATH
  3318. See \`config.log' for more details" "$LINENO" 5; }
  3319.  
  3320. # Provide some information about the compiler.
  3321. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3322. set X $ac_compile
  3323. ac_compiler=$2
  3324. for ac_option in --version -v -V -qversion; do
  3325.   { { ac_try="$ac_compiler $ac_option >&5"
  3326. case "(($ac_try" in
  3327.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3328.   *) ac_try_echo=$ac_try;;
  3329. esac
  3330. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3331. $as_echo "$ac_try_echo"; } >&5
  3332.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3333.   ac_status=$?
  3334.   if test -s conftest.err; then
  3335.     sed '10a\
  3336. ... rest of stderr output deleted ...
  3337.          10q' conftest.err >conftest.er1
  3338.     cat conftest.er1 >&5
  3339.   fi
  3340.   rm -f conftest.er1 conftest.err
  3341.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3342.   test $ac_status = 0; }
  3343. done
  3344.  
  3345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h.  */
  3347.  
  3348. int
  3349. main ()
  3350. {
  3351.  
  3352.   ;
  3353.   return 0;
  3354. }
  3355. _ACEOF
  3356. ac_clean_files_save=$ac_clean_files
  3357. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3358. # Try to create an executable without -o first, disregard a.out.
  3359. # It will help us diagnose broken compilers, and finding out an intuition
  3360. # of exeext.
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3362. $as_echo_n "checking whether the C compiler works... " >&6; }
  3363. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3364.  
  3365. # The possible output files:
  3366. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3367.  
  3368. ac_rmfiles=
  3369. for ac_file in $ac_files
  3370. do
  3371.   case $ac_file in
  3372.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3373.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3374.   esac
  3375. done
  3376. rm -f $ac_rmfiles
  3377.  
  3378. if { { ac_try="$ac_link_default"
  3379. case "(($ac_try" in
  3380.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3381.   *) ac_try_echo=$ac_try;;
  3382. esac
  3383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3384. $as_echo "$ac_try_echo"; } >&5
  3385.   (eval "$ac_link_default") 2>&5
  3386.   ac_status=$?
  3387.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3388.   test $ac_status = 0; }; then :
  3389.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3390. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3391. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3392. # so that the user can short-circuit this test for compilers unknown to
  3393. # Autoconf.
  3394. for ac_file in $ac_files ''
  3395. do
  3396.   test -f "$ac_file" || continue
  3397.   case $ac_file in
  3398.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3399.         ;;
  3400.     [ab].out )
  3401.         # We found the default executable, but exeext='' is most
  3402.         # certainly right.
  3403.         break;;
  3404.     *.* )
  3405.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3406.         then :; else
  3407.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3408.         fi
  3409.         # We set ac_cv_exeext here because the later test for it is not
  3410.         # safe: cross compilers may not add the suffix if given an `-o'
  3411.         # argument, so we may need to know it at that point already.
  3412.         # Even if this section looks crufty: it has the advantage of
  3413.         # actually working.
  3414.         break;;
  3415.     * )
  3416.         break;;
  3417.   esac
  3418. done
  3419. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3420.  
  3421. else
  3422.   ac_file=''
  3423. fi
  3424. if test -z "$ac_file"; then :
  3425.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3426. $as_echo "no" >&6; }
  3427. $as_echo "$as_me: failed program was:" >&5
  3428. sed 's/^/| /' conftest.$ac_ext >&5
  3429.  
  3430. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3431. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3432. as_fn_error 77 "C compiler cannot create executables
  3433. See \`config.log' for more details" "$LINENO" 5; }
  3434. else
  3435.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3436. $as_echo "yes" >&6; }
  3437. fi
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3439. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3441. $as_echo "$ac_file" >&6; }
  3442. ac_exeext=$ac_cv_exeext
  3443.  
  3444. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3445. ac_clean_files=$ac_clean_files_save
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3447. $as_echo_n "checking for suffix of executables... " >&6; }
  3448. if { { ac_try="$ac_link"
  3449. case "(($ac_try" in
  3450.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3451.   *) ac_try_echo=$ac_try;;
  3452. esac
  3453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3454. $as_echo "$ac_try_echo"; } >&5
  3455.   (eval "$ac_link") 2>&5
  3456.   ac_status=$?
  3457.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3458.   test $ac_status = 0; }; then :
  3459.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3460. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3461. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3462. # `rm'.
  3463. for ac_file in conftest.exe conftest conftest.*; do
  3464.   test -f "$ac_file" || continue
  3465.   case $ac_file in
  3466.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3467.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3468.           break;;
  3469.     * ) break;;
  3470.   esac
  3471. done
  3472. else
  3473.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3474. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3475. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3476. See \`config.log' for more details" "$LINENO" 5; }
  3477. fi
  3478. rm -f conftest conftest$ac_cv_exeext
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3480. $as_echo "$ac_cv_exeext" >&6; }
  3481.  
  3482. rm -f conftest.$ac_ext
  3483. EXEEXT=$ac_cv_exeext
  3484. ac_exeext=$EXEEXT
  3485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3486. /* end confdefs.h.  */
  3487. #include <stdio.h>
  3488. int
  3489. main ()
  3490. {
  3491. FILE *f = fopen ("conftest.out", "w");
  3492.  return ferror (f) || fclose (f) != 0;
  3493.  
  3494.   ;
  3495.   return 0;
  3496. }
  3497. _ACEOF
  3498. ac_clean_files="$ac_clean_files conftest.out"
  3499. # Check that the compiler produces executables we can run.  If not, either
  3500. # the compiler is broken, or we cross compile.
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3502. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3503. if test "$cross_compiling" != yes; then
  3504.   { { ac_try="$ac_link"
  3505. case "(($ac_try" in
  3506.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3507.   *) ac_try_echo=$ac_try;;
  3508. esac
  3509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3510. $as_echo "$ac_try_echo"; } >&5
  3511.   (eval "$ac_link") 2>&5
  3512.   ac_status=$?
  3513.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3514.   test $ac_status = 0; }
  3515.   if { ac_try='./conftest$ac_cv_exeext'
  3516.   { { case "(($ac_try" in
  3517.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3518.   *) ac_try_echo=$ac_try;;
  3519. esac
  3520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3521. $as_echo "$ac_try_echo"; } >&5
  3522.   (eval "$ac_try") 2>&5
  3523.   ac_status=$?
  3524.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3525.   test $ac_status = 0; }; }; then
  3526.     cross_compiling=no
  3527.   else
  3528.     if test "$cross_compiling" = maybe; then
  3529.         cross_compiling=yes
  3530.     else
  3531.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3532. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3533. as_fn_error $? "cannot run C compiled programs.
  3534. If you meant to cross compile, use \`--host'.
  3535. See \`config.log' for more details" "$LINENO" 5; }
  3536.     fi
  3537.   fi
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3540. $as_echo "$cross_compiling" >&6; }
  3541.  
  3542. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3543. ac_clean_files=$ac_clean_files_save
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3545. $as_echo_n "checking for suffix of object files... " >&6; }
  3546. if ${ac_cv_objext+:} false; then :
  3547.   $as_echo_n "(cached) " >&6
  3548. else
  3549.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3550. /* end confdefs.h.  */
  3551.  
  3552. int
  3553. main ()
  3554. {
  3555.  
  3556.   ;
  3557.   return 0;
  3558. }
  3559. _ACEOF
  3560. rm -f conftest.o conftest.obj
  3561. if { { ac_try="$ac_compile"
  3562. case "(($ac_try" in
  3563.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3564.   *) ac_try_echo=$ac_try;;
  3565. esac
  3566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3567. $as_echo "$ac_try_echo"; } >&5
  3568.   (eval "$ac_compile") 2>&5
  3569.   ac_status=$?
  3570.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3571.   test $ac_status = 0; }; then :
  3572.   for ac_file in conftest.o conftest.obj conftest.*; do
  3573.   test -f "$ac_file" || continue;
  3574.   case $ac_file in
  3575.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3576.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3577.        break;;
  3578.   esac
  3579. done
  3580. else
  3581.   $as_echo "$as_me: failed program was:" >&5
  3582. sed 's/^/| /' conftest.$ac_ext >&5
  3583.  
  3584. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3585. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3586. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3587. See \`config.log' for more details" "$LINENO" 5; }
  3588. fi
  3589. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3590. fi
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3592. $as_echo "$ac_cv_objext" >&6; }
  3593. OBJEXT=$ac_cv_objext
  3594. ac_objext=$OBJEXT
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3596. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3597. if ${ac_cv_c_compiler_gnu+:} false; then :
  3598.   $as_echo_n "(cached) " >&6
  3599. else
  3600.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3601. /* end confdefs.h.  */
  3602.  
  3603. int
  3604. main ()
  3605. {
  3606. #ifndef __GNUC__
  3607.        choke me
  3608. #endif
  3609.  
  3610.   ;
  3611.   return 0;
  3612. }
  3613. _ACEOF
  3614. if ac_fn_c_try_compile "$LINENO"; then :
  3615.   ac_compiler_gnu=yes
  3616. else
  3617.   ac_compiler_gnu=no
  3618. fi
  3619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3620. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3621.  
  3622. fi
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3624. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3625. if test $ac_compiler_gnu = yes; then
  3626.   GCC=yes
  3627. else
  3628.   GCC=
  3629. fi
  3630. ac_test_CFLAGS=${CFLAGS+set}
  3631. ac_save_CFLAGS=$CFLAGS
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3633. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3634. if ${ac_cv_prog_cc_g+:} false; then :
  3635.   $as_echo_n "(cached) " >&6
  3636. else
  3637.   ac_save_c_werror_flag=$ac_c_werror_flag
  3638.    ac_c_werror_flag=yes
  3639.    ac_cv_prog_cc_g=no
  3640.    CFLAGS="-g"
  3641.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3642. /* end confdefs.h.  */
  3643.  
  3644. int
  3645. main ()
  3646. {
  3647.  
  3648.   ;
  3649.   return 0;
  3650. }
  3651. _ACEOF
  3652. if ac_fn_c_try_compile "$LINENO"; then :
  3653.   ac_cv_prog_cc_g=yes
  3654. else
  3655.   CFLAGS=""
  3656.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3657. /* end confdefs.h.  */
  3658.  
  3659. int
  3660. main ()
  3661. {
  3662.  
  3663.   ;
  3664.   return 0;
  3665. }
  3666. _ACEOF
  3667. if ac_fn_c_try_compile "$LINENO"; then :
  3668.  
  3669. else
  3670.   ac_c_werror_flag=$ac_save_c_werror_flag
  3671.          CFLAGS="-g"
  3672.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h.  */
  3674.  
  3675. int
  3676. main ()
  3677. {
  3678.  
  3679.   ;
  3680.   return 0;
  3681. }
  3682. _ACEOF
  3683. if ac_fn_c_try_compile "$LINENO"; then :
  3684.   ac_cv_prog_cc_g=yes
  3685. fi
  3686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3687. fi
  3688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3689. fi
  3690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3691.    ac_c_werror_flag=$ac_save_c_werror_flag
  3692. fi
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3694. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3695. if test "$ac_test_CFLAGS" = set; then
  3696.   CFLAGS=$ac_save_CFLAGS
  3697. elif test $ac_cv_prog_cc_g = yes; then
  3698.   if test "$GCC" = yes; then
  3699.     CFLAGS="-g -O2"
  3700.   else
  3701.     CFLAGS="-g"
  3702.   fi
  3703. else
  3704.   if test "$GCC" = yes; then
  3705.     CFLAGS="-O2"
  3706.   else
  3707.     CFLAGS=
  3708.   fi
  3709. fi
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3711. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3712. if ${ac_cv_prog_cc_c89+:} false; then :
  3713.   $as_echo_n "(cached) " >&6
  3714. else
  3715.   ac_cv_prog_cc_c89=no
  3716. ac_save_CC=$CC
  3717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3718. /* end confdefs.h.  */
  3719. #include <stdarg.h>
  3720. #include <stdio.h>
  3721. #include <sys/types.h>
  3722. #include <sys/stat.h>
  3723. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3724. struct buf { int x; };
  3725. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3726. static char *e (p, i)
  3727.      char **p;
  3728.      int i;
  3729. {
  3730.   return p[i];
  3731. }
  3732. static char *f (char * (*g) (char **, int), char **p, ...)
  3733. {
  3734.   char *s;
  3735.   va_list v;
  3736.   va_start (v,p);
  3737.   s = g (p, va_arg (v,int));
  3738.   va_end (v);
  3739.   return s;
  3740. }
  3741.  
  3742. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3743.    function prototypes and stuff, but not '\xHH' hex character constants.
  3744.    These don't provoke an error unfortunately, instead are silently treated
  3745.    as 'x'.  The following induces an error, until -std is added to get
  3746.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3747.    array size at least.  It's necessary to write '\x00'==0 to get something
  3748.    that's true only with -std.  */
  3749. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3750.  
  3751. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3752.    inside strings and character constants.  */
  3753. #define FOO(x) 'x'
  3754. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3755.  
  3756. int test (int i, double x);
  3757. struct s1 {int (*f) (int a);};
  3758. struct s2 {int (*f) (double a);};
  3759. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3760. int argc;
  3761. char **argv;
  3762. int
  3763. main ()
  3764. {
  3765. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3766.   ;
  3767.   return 0;
  3768. }
  3769. _ACEOF
  3770. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3771.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3772. do
  3773.   CC="$ac_save_CC $ac_arg"
  3774.   if ac_fn_c_try_compile "$LINENO"; then :
  3775.   ac_cv_prog_cc_c89=$ac_arg
  3776. fi
  3777. rm -f core conftest.err conftest.$ac_objext
  3778.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3779. done
  3780. rm -f conftest.$ac_ext
  3781. CC=$ac_save_CC
  3782.  
  3783. fi
  3784. # AC_CACHE_VAL
  3785. case "x$ac_cv_prog_cc_c89" in
  3786.   x)
  3787.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3788. $as_echo "none needed" >&6; } ;;
  3789.   xno)
  3790.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3791. $as_echo "unsupported" >&6; } ;;
  3792.   *)
  3793.     CC="$CC $ac_cv_prog_cc_c89"
  3794.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3795. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3796. esac
  3797. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3798.  
  3799. fi
  3800.  
  3801. ac_ext=c
  3802. ac_cpp='$CPP $CPPFLAGS'
  3803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3806. DEPDIR="${am__leading_dot}deps"
  3807.  
  3808. ac_config_commands="$ac_config_commands depfiles"
  3809.  
  3810.  
  3811. am_make=${MAKE-make}
  3812. cat > confinc << 'END'
  3813. am__doit:
  3814.         @echo this is the am__doit target
  3815. .PHONY: am__doit
  3816. END
  3817. # If we don't find an include directive, just comment out the code.
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3819. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3820. am__include="#"
  3821. am__quote=
  3822. _am_result=none
  3823. # First try GNU make style include.
  3824. echo "include confinc" > confmf
  3825. # Ignore all kinds of additional output from `make'.
  3826. case `$am_make -s -f confmf 2> /dev/null` in #(
  3827. *the\ am__doit\ target*)
  3828.   am__include=include
  3829.   am__quote=
  3830.   _am_result=GNU
  3831.   ;;
  3832. esac
  3833. # Now try BSD make style include.
  3834. if test "$am__include" = "#"; then
  3835.    echo '.include "confinc"' > confmf
  3836.    case `$am_make -s -f confmf 2> /dev/null` in #(
  3837.    *the\ am__doit\ target*)
  3838.      am__include=.include
  3839.      am__quote="\""
  3840.      _am_result=BSD
  3841.      ;;
  3842.    esac
  3843. fi
  3844.  
  3845.  
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3847. $as_echo "$_am_result" >&6; }
  3848. rm -f confinc confmf
  3849.  
  3850. # Check whether --enable-dependency-tracking was given.
  3851. if test "${enable_dependency_tracking+set}" = set; then :
  3852.   enableval=$enable_dependency_tracking;
  3853. fi
  3854.  
  3855. if test "x$enable_dependency_tracking" != xno; then
  3856.   am_depcomp="$ac_aux_dir/depcomp"
  3857.   AMDEPBACKSLASH='\'
  3858. fi
  3859.  if test "x$enable_dependency_tracking" != xno; then
  3860.   AMDEP_TRUE=
  3861.   AMDEP_FALSE='#'
  3862. else
  3863.   AMDEP_TRUE='#'
  3864.   AMDEP_FALSE=
  3865. fi
  3866.  
  3867.  
  3868.  
  3869. depcc="$CC"   am_compiler_list=
  3870.  
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3872. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3873. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3874.   $as_echo_n "(cached) " >&6
  3875. else
  3876.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3877.   # We make a subdir and do the tests there.  Otherwise we can end up
  3878.   # making bogus files that we don't know about and never remove.  For
  3879.   # instance it was reported that on HP-UX the gcc test will end up
  3880.   # making a dummy file named `D' -- because `-MD' means `put the output
  3881.   # in D'.
  3882.   mkdir conftest.dir
  3883.   # Copy depcomp to subdir because otherwise we won't find it if we're
  3884.   # using a relative directory.
  3885.   cp "$am_depcomp" conftest.dir
  3886.   cd conftest.dir
  3887.   # We will build objects and dependencies in a subdirectory because
  3888.   # it helps to detect inapplicable dependency modes.  For instance
  3889.   # both Tru64's cc and ICC support -MD to output dependencies as a
  3890.   # side effect of compilation, but ICC will put the dependencies in
  3891.   # the current directory while Tru64 will put them in the object
  3892.   # directory.
  3893.   mkdir sub
  3894.  
  3895.   am_cv_CC_dependencies_compiler_type=none
  3896.   if test "$am_compiler_list" = ""; then
  3897.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3898.   fi
  3899.   am__universal=false
  3900.   case " $depcc " in #(
  3901.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3902.      esac
  3903.  
  3904.   for depmode in $am_compiler_list; do
  3905.     # Setup a source with many dependencies, because some compilers
  3906.     # like to wrap large dependency lists on column 80 (with \), and
  3907.     # we should not choose a depcomp mode which is confused by this.
  3908.     #
  3909.     # We need to recreate these files for each test, as the compiler may
  3910.     # overwrite some of them when testing with obscure command lines.
  3911.     # This happens at least with the AIX C compiler.
  3912.     : > sub/conftest.c
  3913.     for i in 1 2 3 4 5 6; do
  3914.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3915.       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3916.       # Solaris 8's {/usr,}/bin/sh.
  3917.       touch sub/conftst$i.h
  3918.     done
  3919.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3920.  
  3921.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3922.     # mode.  It turns out that the SunPro C++ compiler does not properly
  3923.     # handle `-M -o', and we need to detect this.  Also, some Intel
  3924.     # versions had trouble with output in subdirs
  3925.     am__obj=sub/conftest.${OBJEXT-o}
  3926.     am__minus_obj="-o $am__obj"
  3927.     case $depmode in
  3928.     gcc)
  3929.       # This depmode causes a compiler race in universal mode.
  3930.       test "$am__universal" = false || continue
  3931.       ;;
  3932.     nosideeffect)
  3933.       # after this tag, mechanisms are not by side-effect, so they'll
  3934.       # only be used when explicitly requested
  3935.       if test "x$enable_dependency_tracking" = xyes; then
  3936.         continue
  3937.       else
  3938.         break
  3939.       fi
  3940.       ;;
  3941.     msvisualcpp | msvcmsys)
  3942.       # This compiler won't grok `-c -o', but also, the minuso test has
  3943.       # not run yet.  These depmodes are late enough in the game, and
  3944.       # so weak that their functioning should not be impacted.
  3945.       am__obj=conftest.${OBJEXT-o}
  3946.       am__minus_obj=
  3947.       ;;
  3948.     none) break ;;
  3949.     esac
  3950.     if depmode=$depmode \
  3951.        source=sub/conftest.c object=$am__obj \
  3952.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3953.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3954.          >/dev/null 2>conftest.err &&
  3955.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3956.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3957.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3958.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3959.       # icc doesn't choke on unknown options, it will just issue warnings
  3960.       # or remarks (even with -Werror).  So we grep stderr for any message
  3961.       # that says an option was ignored or not supported.
  3962.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3963.       #   icc: Command line warning: ignoring option '-M'; no argument required
  3964.       # The diagnosis changed in icc 8.0:
  3965.       #   icc: Command line remark: option '-MP' not supported
  3966.       if (grep 'ignoring option' conftest.err ||
  3967.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3968.         am_cv_CC_dependencies_compiler_type=$depmode
  3969.         break
  3970.       fi
  3971.     fi
  3972.   done
  3973.  
  3974.   cd ..
  3975.   rm -rf conftest.dir
  3976. else
  3977.   am_cv_CC_dependencies_compiler_type=none
  3978. fi
  3979.  
  3980. fi
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3982. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3983. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3984.  
  3985.  if
  3986.   test "x$enable_dependency_tracking" != xno \
  3987.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3988.   am__fastdepCC_TRUE=
  3989.   am__fastdepCC_FALSE='#'
  3990. else
  3991.   am__fastdepCC_TRUE='#'
  3992.   am__fastdepCC_FALSE=
  3993. fi
  3994.  
  3995.  
  3996. ac_ext=cpp
  3997. ac_cpp='$CXXCPP $CPPFLAGS'
  3998. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3999. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4000. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4001. if test -z "$CXX"; then
  4002.   if test -n "$CCC"; then
  4003.     CXX=$CCC
  4004.   else
  4005.     if test -n "$ac_tool_prefix"; then
  4006.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4007.   do
  4008.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4009. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4011. $as_echo_n "checking for $ac_word... " >&6; }
  4012. if ${ac_cv_prog_CXX+:} false; then :
  4013.   $as_echo_n "(cached) " >&6
  4014. else
  4015.   if test -n "$CXX"; then
  4016.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4017. else
  4018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4019. for as_dir in $PATH
  4020. do
  4021.   IFS=$as_save_IFS
  4022.   test -z "$as_dir" && as_dir=.
  4023.     for ac_exec_ext in '' $ac_executable_extensions; do
  4024.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4025.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4026.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4027.     break 2
  4028.   fi
  4029. done
  4030.   done
  4031. IFS=$as_save_IFS
  4032.  
  4033. fi
  4034. fi
  4035. CXX=$ac_cv_prog_CXX
  4036. if test -n "$CXX"; then
  4037.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4038. $as_echo "$CXX" >&6; }
  4039. else
  4040.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4041. $as_echo "no" >&6; }
  4042. fi
  4043.  
  4044.  
  4045.     test -n "$CXX" && break
  4046.   done
  4047. fi
  4048. if test -z "$CXX"; then
  4049.   ac_ct_CXX=$CXX
  4050.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4051. do
  4052.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4053. set dummy $ac_prog; ac_word=$2
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4055. $as_echo_n "checking for $ac_word... " >&6; }
  4056. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4057.   $as_echo_n "(cached) " >&6
  4058. else
  4059.   if test -n "$ac_ct_CXX"; then
  4060.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4061. else
  4062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4063. for as_dir in $PATH
  4064. do
  4065.   IFS=$as_save_IFS
  4066.   test -z "$as_dir" && as_dir=.
  4067.     for ac_exec_ext in '' $ac_executable_extensions; do
  4068.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4069.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  4070.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4071.     break 2
  4072.   fi
  4073. done
  4074.   done
  4075. IFS=$as_save_IFS
  4076.  
  4077. fi
  4078. fi
  4079. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4080. if test -n "$ac_ct_CXX"; then
  4081.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4082. $as_echo "$ac_ct_CXX" >&6; }
  4083. else
  4084.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4085. $as_echo "no" >&6; }
  4086. fi
  4087.  
  4088.  
  4089.   test -n "$ac_ct_CXX" && break
  4090. done
  4091.  
  4092.   if test "x$ac_ct_CXX" = x; then
  4093.     CXX="g++"
  4094.   else
  4095.     case $cross_compiling:$ac_tool_warned in
  4096. yes:)
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4098. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4099. ac_tool_warned=yes ;;
  4100. esac
  4101.     CXX=$ac_ct_CXX
  4102.   fi
  4103. fi
  4104.  
  4105.   fi
  4106. fi
  4107. # Provide some information about the compiler.
  4108. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4109. set X $ac_compile
  4110. ac_compiler=$2
  4111. for ac_option in --version -v -V -qversion; do
  4112.   { { ac_try="$ac_compiler $ac_option >&5"
  4113. case "(($ac_try" in
  4114.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4115.   *) ac_try_echo=$ac_try;;
  4116. esac
  4117. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4118. $as_echo "$ac_try_echo"; } >&5
  4119.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4120.   ac_status=$?
  4121.   if test -s conftest.err; then
  4122.     sed '10a\
  4123. ... rest of stderr output deleted ...
  4124.          10q' conftest.err >conftest.er1
  4125.     cat conftest.er1 >&5
  4126.   fi
  4127.   rm -f conftest.er1 conftest.err
  4128.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4129.   test $ac_status = 0; }
  4130. done
  4131.  
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4133. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4134. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4135.   $as_echo_n "(cached) " >&6
  4136. else
  4137.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h.  */
  4139.  
  4140. int
  4141. main ()
  4142. {
  4143. #ifndef __GNUC__
  4144.        choke me
  4145. #endif
  4146.  
  4147.   ;
  4148.   return 0;
  4149. }
  4150. _ACEOF
  4151. if ac_fn_cxx_try_compile "$LINENO"; then :
  4152.   ac_compiler_gnu=yes
  4153. else
  4154.   ac_compiler_gnu=no
  4155. fi
  4156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4157. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4158.  
  4159. fi
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4161. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4162. if test $ac_compiler_gnu = yes; then
  4163.   GXX=yes
  4164. else
  4165.   GXX=
  4166. fi
  4167. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4168. ac_save_CXXFLAGS=$CXXFLAGS
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4170. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4171. if ${ac_cv_prog_cxx_g+:} false; then :
  4172.   $as_echo_n "(cached) " >&6
  4173. else
  4174.   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4175.    ac_cxx_werror_flag=yes
  4176.    ac_cv_prog_cxx_g=no
  4177.    CXXFLAGS="-g"
  4178.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4179. /* end confdefs.h.  */
  4180.  
  4181. int
  4182. main ()
  4183. {
  4184.  
  4185.   ;
  4186.   return 0;
  4187. }
  4188. _ACEOF
  4189. if ac_fn_cxx_try_compile "$LINENO"; then :
  4190.   ac_cv_prog_cxx_g=yes
  4191. else
  4192.   CXXFLAGS=""
  4193.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4194. /* end confdefs.h.  */
  4195.  
  4196. int
  4197. main ()
  4198. {
  4199.  
  4200.   ;
  4201.   return 0;
  4202. }
  4203. _ACEOF
  4204. if ac_fn_cxx_try_compile "$LINENO"; then :
  4205.  
  4206. else
  4207.   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4208.          CXXFLAGS="-g"
  4209.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4210. /* end confdefs.h.  */
  4211.  
  4212. int
  4213. main ()
  4214. {
  4215.  
  4216.   ;
  4217.   return 0;
  4218. }
  4219. _ACEOF
  4220. if ac_fn_cxx_try_compile "$LINENO"; then :
  4221.   ac_cv_prog_cxx_g=yes
  4222. fi
  4223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4224. fi
  4225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4226. fi
  4227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4228.    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4229. fi
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4231. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4232. if test "$ac_test_CXXFLAGS" = set; then
  4233.   CXXFLAGS=$ac_save_CXXFLAGS
  4234. elif test $ac_cv_prog_cxx_g = yes; then
  4235.   if test "$GXX" = yes; then
  4236.     CXXFLAGS="-g -O2"
  4237.   else
  4238.     CXXFLAGS="-g"
  4239.   fi
  4240. else
  4241.   if test "$GXX" = yes; then
  4242.     CXXFLAGS="-O2"
  4243.   else
  4244.     CXXFLAGS=
  4245.   fi
  4246. fi
  4247. ac_ext=c
  4248. ac_cpp='$CPP $CPPFLAGS'
  4249. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4250. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4251. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4252.  
  4253. depcc="$CXX"  am_compiler_list=
  4254.  
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4256. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4257. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4258.   $as_echo_n "(cached) " >&6
  4259. else
  4260.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4261.   # We make a subdir and do the tests there.  Otherwise we can end up
  4262.   # making bogus files that we don't know about and never remove.  For
  4263.   # instance it was reported that on HP-UX the gcc test will end up
  4264.   # making a dummy file named `D' -- because `-MD' means `put the output
  4265.   # in D'.
  4266.   mkdir conftest.dir
  4267.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4268.   # using a relative directory.
  4269.   cp "$am_depcomp" conftest.dir
  4270.   cd conftest.dir
  4271.   # We will build objects and dependencies in a subdirectory because
  4272.   # it helps to detect inapplicable dependency modes.  For instance
  4273.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4274.   # side effect of compilation, but ICC will put the dependencies in
  4275.   # the current directory while Tru64 will put them in the object
  4276.   # directory.
  4277.   mkdir sub
  4278.  
  4279.   am_cv_CXX_dependencies_compiler_type=none
  4280.   if test "$am_compiler_list" = ""; then
  4281.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4282.   fi
  4283.   am__universal=false
  4284.   case " $depcc " in #(
  4285.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4286.      esac
  4287.  
  4288.   for depmode in $am_compiler_list; do
  4289.     # Setup a source with many dependencies, because some compilers
  4290.     # like to wrap large dependency lists on column 80 (with \), and
  4291.     # we should not choose a depcomp mode which is confused by this.
  4292.     #
  4293.     # We need to recreate these files for each test, as the compiler may
  4294.     # overwrite some of them when testing with obscure command lines.
  4295.     # This happens at least with the AIX C compiler.
  4296.     : > sub/conftest.c
  4297.     for i in 1 2 3 4 5 6; do
  4298.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4299.       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4300.       # Solaris 8's {/usr,}/bin/sh.
  4301.       touch sub/conftst$i.h
  4302.     done
  4303.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4304.  
  4305.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4306.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4307.     # handle `-M -o', and we need to detect this.  Also, some Intel
  4308.     # versions had trouble with output in subdirs
  4309.     am__obj=sub/conftest.${OBJEXT-o}
  4310.     am__minus_obj="-o $am__obj"
  4311.     case $depmode in
  4312.     gcc)
  4313.       # This depmode causes a compiler race in universal mode.
  4314.       test "$am__universal" = false || continue
  4315.       ;;
  4316.     nosideeffect)
  4317.       # after this tag, mechanisms are not by side-effect, so they'll
  4318.       # only be used when explicitly requested
  4319.       if test "x$enable_dependency_tracking" = xyes; then
  4320.         continue
  4321.       else
  4322.         break
  4323.       fi
  4324.       ;;
  4325.     msvisualcpp | msvcmsys)
  4326.       # This compiler won't grok `-c -o', but also, the minuso test has
  4327.       # not run yet.  These depmodes are late enough in the game, and
  4328.       # so weak that their functioning should not be impacted.
  4329.       am__obj=conftest.${OBJEXT-o}
  4330.       am__minus_obj=
  4331.       ;;
  4332.     none) break ;;
  4333.     esac
  4334.     if depmode=$depmode \
  4335.        source=sub/conftest.c object=$am__obj \
  4336.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4337.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4338.          >/dev/null 2>conftest.err &&
  4339.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4340.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4341.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4342.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4343.       # icc doesn't choke on unknown options, it will just issue warnings
  4344.       # or remarks (even with -Werror).  So we grep stderr for any message
  4345.       # that says an option was ignored or not supported.
  4346.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4347.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4348.       # The diagnosis changed in icc 8.0:
  4349.       #   icc: Command line remark: option '-MP' not supported
  4350.       if (grep 'ignoring option' conftest.err ||
  4351.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4352.         am_cv_CXX_dependencies_compiler_type=$depmode
  4353.         break
  4354.       fi
  4355.     fi
  4356.   done
  4357.  
  4358.   cd ..
  4359.   rm -rf conftest.dir
  4360. else
  4361.   am_cv_CXX_dependencies_compiler_type=none
  4362. fi
  4363.  
  4364. fi
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4366. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4367. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4368.  
  4369.  if
  4370.   test "x$enable_dependency_tracking" != xno \
  4371.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4372.   am__fastdepCXX_TRUE=
  4373.   am__fastdepCXX_FALSE='#'
  4374. else
  4375.   am__fastdepCXX_TRUE='#'
  4376.   am__fastdepCXX_FALSE=
  4377. fi
  4378.  
  4379.  
  4380.  
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4382. $as_echo_n "checking whether ln -s works... " >&6; }
  4383. LN_S=$as_ln_s
  4384. if test "$LN_S" = "ln -s"; then
  4385.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4386. $as_echo "yes" >&6; }
  4387. else
  4388.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4389. $as_echo "no, using $LN_S" >&6; }
  4390. fi
  4391.  
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4393. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4394. if ${ac_cv_path_SED+:} false; then :
  4395.   $as_echo_n "(cached) " >&6
  4396. else
  4397.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4398.      for ac_i in 1 2 3 4 5 6 7; do
  4399.        ac_script="$ac_script$as_nl$ac_script"
  4400.      done
  4401.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4402.      { ac_script=; unset ac_script;}
  4403.      if test -z "$SED"; then
  4404.   ac_path_SED_found=false
  4405.   # Loop through the user's path and test for each of PROGNAME-LIST
  4406.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4407. for as_dir in $PATH
  4408. do
  4409.   IFS=$as_save_IFS
  4410.   test -z "$as_dir" && as_dir=.
  4411.     for ac_prog in sed gsed; do
  4412.     for ac_exec_ext in '' $ac_executable_extensions; do
  4413.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4414.       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4415. # Check for GNU ac_path_SED and select it if it is found.
  4416.   # Check for GNU $ac_path_SED
  4417. case `"$ac_path_SED" --version 2>&1` in
  4418. *GNU*)
  4419.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4420. *)
  4421.   ac_count=0
  4422.   $as_echo_n 0123456789 >"conftest.in"
  4423.   while :
  4424.   do
  4425.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4426.     mv "conftest.tmp" "conftest.in"
  4427.     cp "conftest.in" "conftest.nl"
  4428.     $as_echo '' >> "conftest.nl"
  4429.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4430.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4431.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4432.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  4433.       # Best one so far, save it but keep looking for a better one
  4434.       ac_cv_path_SED="$ac_path_SED"
  4435.       ac_path_SED_max=$ac_count
  4436.     fi
  4437.     # 10*(2^10) chars as input seems more than enough
  4438.     test $ac_count -gt 10 && break
  4439.   done
  4440.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4441. esac
  4442.  
  4443.       $ac_path_SED_found && break 3
  4444.     done
  4445.   done
  4446.   done
  4447. IFS=$as_save_IFS
  4448.   if test -z "$ac_cv_path_SED"; then
  4449.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4450.   fi
  4451. else
  4452.   ac_cv_path_SED=$SED
  4453. fi
  4454.  
  4455. fi
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4457. $as_echo "$ac_cv_path_SED" >&6; }
  4458.  SED="$ac_cv_path_SED"
  4459.   rm -f conftest.sed
  4460.  
  4461.  
  4462. # Check whether --enable-largefile was given.
  4463. if test "${enable_largefile+set}" = set; then :
  4464.   enableval=$enable_largefile;
  4465. fi
  4466.  
  4467. if test "$enable_largefile" != no; then
  4468.  
  4469.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  4470. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  4471. if ${ac_cv_sys_largefile_CC+:} false; then :
  4472.   $as_echo_n "(cached) " >&6
  4473. else
  4474.   ac_cv_sys_largefile_CC=no
  4475.      if test "$GCC" != yes; then
  4476.        ac_save_CC=$CC
  4477.        while :; do
  4478.          # IRIX 6.2 and later do not support large files by default,
  4479.          # so use the C compiler's -n32 option if that helps.
  4480.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4481. /* end confdefs.h.  */
  4482. #include <sys/types.h>
  4483.  /* Check that off_t can represent 2**63 - 1 correctly.
  4484.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4485.     since some C++ compilers masquerading as C compilers
  4486.     incorrectly reject 9223372036854775807.  */
  4487. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4488.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4489.                        && LARGE_OFF_T % 2147483647 == 1)
  4490.                       ? 1 : -1];
  4491. int
  4492. main ()
  4493. {
  4494.  
  4495.   ;
  4496.   return 0;
  4497. }
  4498. _ACEOF
  4499.          if ac_fn_c_try_compile "$LINENO"; then :
  4500.   break
  4501. fi
  4502. rm -f core conftest.err conftest.$ac_objext
  4503.          CC="$CC -n32"
  4504.          if ac_fn_c_try_compile "$LINENO"; then :
  4505.   ac_cv_sys_largefile_CC=' -n32'; break
  4506. fi
  4507. rm -f core conftest.err conftest.$ac_objext
  4508.          break
  4509.        done
  4510.        CC=$ac_save_CC
  4511.        rm -f conftest.$ac_ext
  4512.     fi
  4513. fi
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  4515. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  4516.   if test "$ac_cv_sys_largefile_CC" != no; then
  4517.     CC=$CC$ac_cv_sys_largefile_CC
  4518.   fi
  4519.  
  4520.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4521. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  4522. if ${ac_cv_sys_file_offset_bits+:} false; then :
  4523.   $as_echo_n "(cached) " >&6
  4524. else
  4525.   while :; do
  4526.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4527. /* end confdefs.h.  */
  4528. #include <sys/types.h>
  4529.  /* Check that off_t can represent 2**63 - 1 correctly.
  4530.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4531.     since some C++ compilers masquerading as C compilers
  4532.     incorrectly reject 9223372036854775807.  */
  4533. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4534.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4535.                        && LARGE_OFF_T % 2147483647 == 1)
  4536.                       ? 1 : -1];
  4537. int
  4538. main ()
  4539. {
  4540.  
  4541.   ;
  4542.   return 0;
  4543. }
  4544. _ACEOF
  4545. if ac_fn_c_try_compile "$LINENO"; then :
  4546.   ac_cv_sys_file_offset_bits=no; break
  4547. fi
  4548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4549.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4550. /* end confdefs.h.  */
  4551. #define _FILE_OFFSET_BITS 64
  4552. #include <sys/types.h>
  4553.  /* Check that off_t can represent 2**63 - 1 correctly.
  4554.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4555.     since some C++ compilers masquerading as C compilers
  4556.     incorrectly reject 9223372036854775807.  */
  4557. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4558.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4559.                        && LARGE_OFF_T % 2147483647 == 1)
  4560.                       ? 1 : -1];
  4561. int
  4562. main ()
  4563. {
  4564.  
  4565.   ;
  4566.   return 0;
  4567. }
  4568. _ACEOF
  4569. if ac_fn_c_try_compile "$LINENO"; then :
  4570.   ac_cv_sys_file_offset_bits=64; break
  4571. fi
  4572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4573.   ac_cv_sys_file_offset_bits=unknown
  4574.   break
  4575. done
  4576. fi
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  4578. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  4579. case $ac_cv_sys_file_offset_bits in #(
  4580.   no | unknown) ;;
  4581.   *)
  4582. cat >>confdefs.h <<_ACEOF
  4583. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4584. _ACEOF
  4585. ;;
  4586. esac
  4587. rm -rf conftest*
  4588.   if test $ac_cv_sys_file_offset_bits = unknown; then
  4589.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  4590. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  4591. if ${ac_cv_sys_large_files+:} false; then :
  4592.   $as_echo_n "(cached) " >&6
  4593. else
  4594.   while :; do
  4595.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4596. /* end confdefs.h.  */
  4597. #include <sys/types.h>
  4598.  /* Check that off_t can represent 2**63 - 1 correctly.
  4599.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4600.     since some C++ compilers masquerading as C compilers
  4601.     incorrectly reject 9223372036854775807.  */
  4602. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4603.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4604.                        && LARGE_OFF_T % 2147483647 == 1)
  4605.                       ? 1 : -1];
  4606. int
  4607. main ()
  4608. {
  4609.  
  4610.   ;
  4611.   return 0;
  4612. }
  4613. _ACEOF
  4614. if ac_fn_c_try_compile "$LINENO"; then :
  4615.   ac_cv_sys_large_files=no; break
  4616. fi
  4617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4618.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4619. /* end confdefs.h.  */
  4620. #define _LARGE_FILES 1
  4621. #include <sys/types.h>
  4622.  /* Check that off_t can represent 2**63 - 1 correctly.
  4623.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4624.     since some C++ compilers masquerading as C compilers
  4625.     incorrectly reject 9223372036854775807.  */
  4626. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4627.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4628.                        && LARGE_OFF_T % 2147483647 == 1)
  4629.                       ? 1 : -1];
  4630. int
  4631. main ()
  4632. {
  4633.  
  4634.   ;
  4635.   return 0;
  4636. }
  4637. _ACEOF
  4638. if ac_fn_c_try_compile "$LINENO"; then :
  4639.   ac_cv_sys_large_files=1; break
  4640. fi
  4641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4642.   ac_cv_sys_large_files=unknown
  4643.   break
  4644. done
  4645. fi
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  4647. $as_echo "$ac_cv_sys_large_files" >&6; }
  4648. case $ac_cv_sys_large_files in #(
  4649.   no | unknown) ;;
  4650.   *)
  4651. cat >>confdefs.h <<_ACEOF
  4652. #define _LARGE_FILES $ac_cv_sys_large_files
  4653. _ACEOF
  4654. ;;
  4655. esac
  4656. rm -rf conftest*
  4657.   fi
  4658. fi
  4659.  
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  4661. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  4662. if ${ac_cv_sys_largefile_source+:} false; then :
  4663.   $as_echo_n "(cached) " >&6
  4664. else
  4665.   while :; do
  4666.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4667. /* end confdefs.h.  */
  4668. #include <sys/types.h> /* for off_t */
  4669.      #include <stdio.h>
  4670. int
  4671. main ()
  4672. {
  4673. int (*fp) (FILE *, off_t, int) = fseeko;
  4674.      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  4675.   ;
  4676.   return 0;
  4677. }
  4678. _ACEOF
  4679. if ac_fn_c_try_link "$LINENO"; then :
  4680.   ac_cv_sys_largefile_source=no; break
  4681. fi
  4682. rm -f core conftest.err conftest.$ac_objext \
  4683.     conftest$ac_exeext conftest.$ac_ext
  4684.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4685. /* end confdefs.h.  */
  4686. #define _LARGEFILE_SOURCE 1
  4687. #include <sys/types.h> /* for off_t */
  4688.      #include <stdio.h>
  4689. int
  4690. main ()
  4691. {
  4692. int (*fp) (FILE *, off_t, int) = fseeko;
  4693.      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  4694.   ;
  4695.   return 0;
  4696. }
  4697. _ACEOF
  4698. if ac_fn_c_try_link "$LINENO"; then :
  4699.   ac_cv_sys_largefile_source=1; break
  4700. fi
  4701. rm -f core conftest.err conftest.$ac_objext \
  4702.     conftest$ac_exeext conftest.$ac_ext
  4703.   ac_cv_sys_largefile_source=unknown
  4704.   break
  4705. done
  4706. fi
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  4708. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  4709. case $ac_cv_sys_largefile_source in #(
  4710.   no | unknown) ;;
  4711.   *)
  4712. cat >>confdefs.h <<_ACEOF
  4713. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  4714. _ACEOF
  4715. ;;
  4716. esac
  4717. rm -rf conftest*
  4718.  
  4719. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  4720. # in glibc 2.1.3, but that breaks too many other things.
  4721. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  4722. if test $ac_cv_sys_largefile_source != unknown; then
  4723.  
  4724. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  4725.  
  4726. fi
  4727.  
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4729. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4730. set x ${MAKE-make}
  4731. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4732. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4733.   $as_echo_n "(cached) " >&6
  4734. else
  4735.   cat >conftest.make <<\_ACEOF
  4736. SHELL = /bin/sh
  4737. all:
  4738.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  4739. _ACEOF
  4740. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4741. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4742.   *@@@%%%=?*=@@@%%%*)
  4743.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  4744.   *)
  4745.     eval ac_cv_prog_make_${ac_make}_set=no;;
  4746. esac
  4747. rm -f conftest.make
  4748. fi
  4749. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4750.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4751. $as_echo "yes" >&6; }
  4752.   SET_MAKE=
  4753. else
  4754.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4755. $as_echo "no" >&6; }
  4756.   SET_MAKE="MAKE=${MAKE-make}"
  4757. fi
  4758.  
  4759. #AC_HEADER_DIRENT
  4760. #
  4761. # Tests for Windows
  4762. #
  4763.  
  4764.  
  4765. #
  4766. # Configure libtool
  4767. # Check whether --enable-shared was given.
  4768. if test "${enable_shared+set}" = set; then :
  4769.   enableval=$enable_shared; p=${PACKAGE-default}
  4770.     case $enableval in
  4771.     yes) enable_shared=yes ;;
  4772.     no) enable_shared=no ;;
  4773.     *)
  4774.       enable_shared=no
  4775.       # Look at the argument we got.  We use all the common list separators.
  4776.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4777.       for pkg in $enableval; do
  4778.         IFS="$lt_save_ifs"
  4779.         if test "X$pkg" = "X$p"; then
  4780.           enable_shared=yes
  4781.         fi
  4782.       done
  4783.       IFS="$lt_save_ifs"
  4784.       ;;
  4785.     esac
  4786. else
  4787.   enable_shared=yes
  4788. fi
  4789.  
  4790.  
  4791.  
  4792.  
  4793.  
  4794.  
  4795.  
  4796.  
  4797.  
  4798. enable_win32_dll=yes
  4799.  
  4800. case $host in
  4801. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4802.   if test -n "$ac_tool_prefix"; then
  4803.   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4804. set dummy ${ac_tool_prefix}as; ac_word=$2
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4806. $as_echo_n "checking for $ac_word... " >&6; }
  4807. if ${ac_cv_prog_AS+:} false; then :
  4808.   $as_echo_n "(cached) " >&6
  4809. else
  4810.   if test -n "$AS"; then
  4811.   ac_cv_prog_AS="$AS" # Let the user override the test.
  4812. else
  4813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4814. for as_dir in $PATH
  4815. do
  4816.   IFS=$as_save_IFS
  4817.   test -z "$as_dir" && as_dir=.
  4818.     for ac_exec_ext in '' $ac_executable_extensions; do
  4819.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4820.     ac_cv_prog_AS="${ac_tool_prefix}as"
  4821.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4822.     break 2
  4823.   fi
  4824. done
  4825.   done
  4826. IFS=$as_save_IFS
  4827.  
  4828. fi
  4829. fi
  4830. AS=$ac_cv_prog_AS
  4831. if test -n "$AS"; then
  4832.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4833. $as_echo "$AS" >&6; }
  4834. else
  4835.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4836. $as_echo "no" >&6; }
  4837. fi
  4838.  
  4839.  
  4840. fi
  4841. if test -z "$ac_cv_prog_AS"; then
  4842.   ac_ct_AS=$AS
  4843.   # Extract the first word of "as", so it can be a program name with args.
  4844. set dummy as; ac_word=$2
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4846. $as_echo_n "checking for $ac_word... " >&6; }
  4847. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4848.   $as_echo_n "(cached) " >&6
  4849. else
  4850.   if test -n "$ac_ct_AS"; then
  4851.   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4852. else
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH
  4855. do
  4856.   IFS=$as_save_IFS
  4857.   test -z "$as_dir" && as_dir=.
  4858.     for ac_exec_ext in '' $ac_executable_extensions; do
  4859.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4860.     ac_cv_prog_ac_ct_AS="as"
  4861.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4862.     break 2
  4863.   fi
  4864. done
  4865.   done
  4866. IFS=$as_save_IFS
  4867.  
  4868. fi
  4869. fi
  4870. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4871. if test -n "$ac_ct_AS"; then
  4872.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4873. $as_echo "$ac_ct_AS" >&6; }
  4874. else
  4875.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4876. $as_echo "no" >&6; }
  4877. fi
  4878.  
  4879.   if test "x$ac_ct_AS" = x; then
  4880.     AS="false"
  4881.   else
  4882.     case $cross_compiling:$ac_tool_warned in
  4883. yes:)
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4886. ac_tool_warned=yes ;;
  4887. esac
  4888.     AS=$ac_ct_AS
  4889.   fi
  4890. else
  4891.   AS="$ac_cv_prog_AS"
  4892. fi
  4893.  
  4894.   if test -n "$ac_tool_prefix"; then
  4895.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4896. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4898. $as_echo_n "checking for $ac_word... " >&6; }
  4899. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4900.   $as_echo_n "(cached) " >&6
  4901. else
  4902.   if test -n "$DLLTOOL"; then
  4903.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908.   IFS=$as_save_IFS
  4909.   test -z "$as_dir" && as_dir=.
  4910.     for ac_exec_ext in '' $ac_executable_extensions; do
  4911.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4912.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4913.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914.     break 2
  4915.   fi
  4916. done
  4917.   done
  4918. IFS=$as_save_IFS
  4919.  
  4920. fi
  4921. fi
  4922. DLLTOOL=$ac_cv_prog_DLLTOOL
  4923. if test -n "$DLLTOOL"; then
  4924.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4925. $as_echo "$DLLTOOL" >&6; }
  4926. else
  4927.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4928. $as_echo "no" >&6; }
  4929. fi
  4930.  
  4931.  
  4932. fi
  4933. if test -z "$ac_cv_prog_DLLTOOL"; then
  4934.   ac_ct_DLLTOOL=$DLLTOOL
  4935.   # Extract the first word of "dlltool", so it can be a program name with args.
  4936. set dummy dlltool; ac_word=$2
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4938. $as_echo_n "checking for $ac_word... " >&6; }
  4939. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4940.   $as_echo_n "(cached) " >&6
  4941. else
  4942.   if test -n "$ac_ct_DLLTOOL"; then
  4943.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4944. else
  4945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4946. for as_dir in $PATH
  4947. do
  4948.   IFS=$as_save_IFS
  4949.   test -z "$as_dir" && as_dir=.
  4950.     for ac_exec_ext in '' $ac_executable_extensions; do
  4951.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4952.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4953.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4954.     break 2
  4955.   fi
  4956. done
  4957.   done
  4958. IFS=$as_save_IFS
  4959.  
  4960. fi
  4961. fi
  4962. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4963. if test -n "$ac_ct_DLLTOOL"; then
  4964.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4965. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4966. else
  4967.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4968. $as_echo "no" >&6; }
  4969. fi
  4970.  
  4971.   if test "x$ac_ct_DLLTOOL" = x; then
  4972.     DLLTOOL="false"
  4973.   else
  4974.     case $cross_compiling:$ac_tool_warned in
  4975. yes:)
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4977. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4978. ac_tool_warned=yes ;;
  4979. esac
  4980.     DLLTOOL=$ac_ct_DLLTOOL
  4981.   fi
  4982. else
  4983.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  4984. fi
  4985.  
  4986.   if test -n "$ac_tool_prefix"; then
  4987.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4988. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4990. $as_echo_n "checking for $ac_word... " >&6; }
  4991. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4992.   $as_echo_n "(cached) " >&6
  4993. else
  4994.   if test -n "$OBJDUMP"; then
  4995.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4996. else
  4997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4998. for as_dir in $PATH
  4999. do
  5000.   IFS=$as_save_IFS
  5001.   test -z "$as_dir" && as_dir=.
  5002.     for ac_exec_ext in '' $ac_executable_extensions; do
  5003.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5004.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5005.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5006.     break 2
  5007.   fi
  5008. done
  5009.   done
  5010. IFS=$as_save_IFS
  5011.  
  5012. fi
  5013. fi
  5014. OBJDUMP=$ac_cv_prog_OBJDUMP
  5015. if test -n "$OBJDUMP"; then
  5016.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5017. $as_echo "$OBJDUMP" >&6; }
  5018. else
  5019.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5020. $as_echo "no" >&6; }
  5021. fi
  5022.  
  5023.  
  5024. fi
  5025. if test -z "$ac_cv_prog_OBJDUMP"; then
  5026.   ac_ct_OBJDUMP=$OBJDUMP
  5027.   # Extract the first word of "objdump", so it can be a program name with args.
  5028. set dummy objdump; ac_word=$2
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5030. $as_echo_n "checking for $ac_word... " >&6; }
  5031. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5032.   $as_echo_n "(cached) " >&6
  5033. else
  5034.   if test -n "$ac_ct_OBJDUMP"; then
  5035.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5036. else
  5037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5038. for as_dir in $PATH
  5039. do
  5040.   IFS=$as_save_IFS
  5041.   test -z "$as_dir" && as_dir=.
  5042.     for ac_exec_ext in '' $ac_executable_extensions; do
  5043.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5044.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5045.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5046.     break 2
  5047.   fi
  5048. done
  5049.   done
  5050. IFS=$as_save_IFS
  5051.  
  5052. fi
  5053. fi
  5054. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5055. if test -n "$ac_ct_OBJDUMP"; then
  5056.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5057. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5058. else
  5059.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5060. $as_echo "no" >&6; }
  5061. fi
  5062.  
  5063.   if test "x$ac_ct_OBJDUMP" = x; then
  5064.     OBJDUMP="false"
  5065.   else
  5066.     case $cross_compiling:$ac_tool_warned in
  5067. yes:)
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5069. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5070. ac_tool_warned=yes ;;
  5071. esac
  5072.     OBJDUMP=$ac_ct_OBJDUMP
  5073.   fi
  5074. else
  5075.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  5076. fi
  5077.  
  5078.   ;;
  5079. esac
  5080.  
  5081. test -z "$AS" && AS=as
  5082.  
  5083.  
  5084.  
  5085.  
  5086.  
  5087. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5088.  
  5089.  
  5090.  
  5091.  
  5092.  
  5093. test -z "$OBJDUMP" && OBJDUMP=objdump
  5094.  
  5095.  
  5096.  
  5097.  
  5098.  
  5099.  
  5100.  
  5101.  
  5102. case `pwd` in
  5103.   *\ * | *\     *)
  5104.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5105. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5106. esac
  5107.  
  5108.  
  5109.  
  5110. macro_version='2.2.8'
  5111. macro_revision='1.3169'
  5112.  
  5113.  
  5114.  
  5115.  
  5116.  
  5117.  
  5118.  
  5119.  
  5120.  
  5121.  
  5122.  
  5123.  
  5124.  
  5125. ltmain="$ac_aux_dir/ltmain.sh"
  5126.  
  5127. # Backslashify metacharacters that are still active within
  5128. # double-quoted strings.
  5129. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5130.  
  5131. # Same as above, but do not quote variable references.
  5132. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5133.  
  5134. # Sed substitution to delay expansion of an escaped shell variable in a
  5135. # double_quote_subst'ed string.
  5136. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5137.  
  5138. # Sed substitution to delay expansion of an escaped single quote.
  5139. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5140.  
  5141. # Sed substitution to avoid accidental globbing in evaled expressions
  5142. no_glob_subst='s/\*/\\\*/g'
  5143.  
  5144. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5145. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5146. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5147.  
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5149. $as_echo_n "checking how to print strings... " >&6; }
  5150. # Test print first, because it will be a builtin if present.
  5151. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5152.    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5153.   ECHO='print -r --'
  5154. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5155.   ECHO='printf %s\n'
  5156. else
  5157.   # Use this function as a fallback that always works.
  5158.   func_fallback_echo ()
  5159.   {
  5160.     eval 'cat <<_LTECHO_EOF
  5161. $1
  5162. _LTECHO_EOF'
  5163.   }
  5164.   ECHO='func_fallback_echo'
  5165. fi
  5166.  
  5167. # func_echo_all arg...
  5168. # Invoke $ECHO with all args, space-separated.
  5169. func_echo_all ()
  5170. {
  5171.     $ECHO ""
  5172. }
  5173.  
  5174. case "$ECHO" in
  5175.   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5176. $as_echo "printf" >&6; } ;;
  5177.   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5178. $as_echo "print -r" >&6; } ;;
  5179.   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5180. $as_echo "cat" >&6; } ;;
  5181. esac
  5182.  
  5183.  
  5184.  
  5185.  
  5186.  
  5187.  
  5188.  
  5189.  
  5190.  
  5191.  
  5192.  
  5193.  
  5194.  
  5195.  
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5197. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5198. if ${ac_cv_path_SED+:} false; then :
  5199.   $as_echo_n "(cached) " >&6
  5200. else
  5201.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5202.      for ac_i in 1 2 3 4 5 6 7; do
  5203.        ac_script="$ac_script$as_nl$ac_script"
  5204.      done
  5205.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5206.      { ac_script=; unset ac_script;}
  5207.      if test -z "$SED"; then
  5208.   ac_path_SED_found=false
  5209.   # Loop through the user's path and test for each of PROGNAME-LIST
  5210.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5211. for as_dir in $PATH
  5212. do
  5213.   IFS=$as_save_IFS
  5214.   test -z "$as_dir" && as_dir=.
  5215.     for ac_prog in sed gsed; do
  5216.     for ac_exec_ext in '' $ac_executable_extensions; do
  5217.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5218.       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5219. # Check for GNU ac_path_SED and select it if it is found.
  5220.   # Check for GNU $ac_path_SED
  5221. case `"$ac_path_SED" --version 2>&1` in
  5222. *GNU*)
  5223.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5224. *)
  5225.   ac_count=0
  5226.   $as_echo_n 0123456789 >"conftest.in"
  5227.   while :
  5228.   do
  5229.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5230.     mv "conftest.tmp" "conftest.in"
  5231.     cp "conftest.in" "conftest.nl"
  5232.     $as_echo '' >> "conftest.nl"
  5233.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5234.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5235.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  5236.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  5237.       # Best one so far, save it but keep looking for a better one
  5238.       ac_cv_path_SED="$ac_path_SED"
  5239.       ac_path_SED_max=$ac_count
  5240.     fi
  5241.     # 10*(2^10) chars as input seems more than enough
  5242.     test $ac_count -gt 10 && break
  5243.   done
  5244.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5245. esac
  5246.  
  5247.       $ac_path_SED_found && break 3
  5248.     done
  5249.   done
  5250.   done
  5251. IFS=$as_save_IFS
  5252.   if test -z "$ac_cv_path_SED"; then
  5253.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5254.   fi
  5255. else
  5256.   ac_cv_path_SED=$SED
  5257. fi
  5258.  
  5259. fi
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5261. $as_echo "$ac_cv_path_SED" >&6; }
  5262.  SED="$ac_cv_path_SED"
  5263.   rm -f conftest.sed
  5264.  
  5265. test -z "$SED" && SED=sed
  5266. Xsed="$SED -e 1s/^X//"
  5267.  
  5268.  
  5269.  
  5270.  
  5271.  
  5272.  
  5273.  
  5274.  
  5275.  
  5276.  
  5277.  
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5279. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5280. if ${ac_cv_path_GREP+:} false; then :
  5281.   $as_echo_n "(cached) " >&6
  5282. else
  5283.   if test -z "$GREP"; then
  5284.   ac_path_GREP_found=false
  5285.   # Loop through the user's path and test for each of PROGNAME-LIST
  5286.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5287. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5288. do
  5289.   IFS=$as_save_IFS
  5290.   test -z "$as_dir" && as_dir=.
  5291.     for ac_prog in grep ggrep; do
  5292.     for ac_exec_ext in '' $ac_executable_extensions; do
  5293.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5294.       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5295. # Check for GNU ac_path_GREP and select it if it is found.
  5296.   # Check for GNU $ac_path_GREP
  5297. case `"$ac_path_GREP" --version 2>&1` in
  5298. *GNU*)
  5299.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5300. *)
  5301.   ac_count=0
  5302.   $as_echo_n 0123456789 >"conftest.in"
  5303.   while :
  5304.   do
  5305.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5306.     mv "conftest.tmp" "conftest.in"
  5307.     cp "conftest.in" "conftest.nl"
  5308.     $as_echo 'GREP' >> "conftest.nl"
  5309.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5310.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5311.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  5312.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5313.       # Best one so far, save it but keep looking for a better one
  5314.       ac_cv_path_GREP="$ac_path_GREP"
  5315.       ac_path_GREP_max=$ac_count
  5316.     fi
  5317.     # 10*(2^10) chars as input seems more than enough
  5318.     test $ac_count -gt 10 && break
  5319.   done
  5320.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5321. esac
  5322.  
  5323.       $ac_path_GREP_found && break 3
  5324.     done
  5325.   done
  5326.   done
  5327. IFS=$as_save_IFS
  5328.   if test -z "$ac_cv_path_GREP"; then
  5329.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5330.   fi
  5331. else
  5332.   ac_cv_path_GREP=$GREP
  5333. fi
  5334.  
  5335. fi
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5337. $as_echo "$ac_cv_path_GREP" >&6; }
  5338.  GREP="$ac_cv_path_GREP"
  5339.  
  5340.  
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5342. $as_echo_n "checking for egrep... " >&6; }
  5343. if ${ac_cv_path_EGREP+:} false; then :
  5344.   $as_echo_n "(cached) " >&6
  5345. else
  5346.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5347.    then ac_cv_path_EGREP="$GREP -E"
  5348.    else
  5349.      if test -z "$EGREP"; then
  5350.   ac_path_EGREP_found=false
  5351.   # Loop through the user's path and test for each of PROGNAME-LIST
  5352.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5353. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5354. do
  5355.   IFS=$as_save_IFS
  5356.   test -z "$as_dir" && as_dir=.
  5357.     for ac_prog in egrep; do
  5358.     for ac_exec_ext in '' $ac_executable_extensions; do
  5359.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5360.       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5361. # Check for GNU ac_path_EGREP and select it if it is found.
  5362.   # Check for GNU $ac_path_EGREP
  5363. case `"$ac_path_EGREP" --version 2>&1` in
  5364. *GNU*)
  5365.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5366. *)
  5367.   ac_count=0
  5368.   $as_echo_n 0123456789 >"conftest.in"
  5369.   while :
  5370.   do
  5371.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5372.     mv "conftest.tmp" "conftest.in"
  5373.     cp "conftest.in" "conftest.nl"
  5374.     $as_echo 'EGREP' >> "conftest.nl"
  5375.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5376.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5377.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  5378.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5379.       # Best one so far, save it but keep looking for a better one
  5380.       ac_cv_path_EGREP="$ac_path_EGREP"
  5381.       ac_path_EGREP_max=$ac_count
  5382.     fi
  5383.     # 10*(2^10) chars as input seems more than enough
  5384.     test $ac_count -gt 10 && break
  5385.   done
  5386.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5387. esac
  5388.  
  5389.       $ac_path_EGREP_found && break 3
  5390.     done
  5391.   done
  5392.   done
  5393. IFS=$as_save_IFS
  5394.   if test -z "$ac_cv_path_EGREP"; then
  5395.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5396.   fi
  5397. else
  5398.   ac_cv_path_EGREP=$EGREP
  5399. fi
  5400.  
  5401.    fi
  5402. fi
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5404. $as_echo "$ac_cv_path_EGREP" >&6; }
  5405.  EGREP="$ac_cv_path_EGREP"
  5406.  
  5407.  
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5409. $as_echo_n "checking for fgrep... " >&6; }
  5410. if ${ac_cv_path_FGREP+:} false; then :
  5411.   $as_echo_n "(cached) " >&6
  5412. else
  5413.   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5414.    then ac_cv_path_FGREP="$GREP -F"
  5415.    else
  5416.      if test -z "$FGREP"; then
  5417.   ac_path_FGREP_found=false
  5418.   # Loop through the user's path and test for each of PROGNAME-LIST
  5419.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5420. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5421. do
  5422.   IFS=$as_save_IFS
  5423.   test -z "$as_dir" && as_dir=.
  5424.     for ac_prog in fgrep; do
  5425.     for ac_exec_ext in '' $ac_executable_extensions; do
  5426.       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5427.       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5428. # Check for GNU ac_path_FGREP and select it if it is found.
  5429.   # Check for GNU $ac_path_FGREP
  5430. case `"$ac_path_FGREP" --version 2>&1` in
  5431. *GNU*)
  5432.   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5433. *)
  5434.   ac_count=0
  5435.   $as_echo_n 0123456789 >"conftest.in"
  5436.   while :
  5437.   do
  5438.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5439.     mv "conftest.tmp" "conftest.in"
  5440.     cp "conftest.in" "conftest.nl"
  5441.     $as_echo 'FGREP' >> "conftest.nl"
  5442.     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5443.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5444.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  5445.     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5446.       # Best one so far, save it but keep looking for a better one
  5447.       ac_cv_path_FGREP="$ac_path_FGREP"
  5448.       ac_path_FGREP_max=$ac_count
  5449.     fi
  5450.     # 10*(2^10) chars as input seems more than enough
  5451.     test $ac_count -gt 10 && break
  5452.   done
  5453.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5454. esac
  5455.  
  5456.       $ac_path_FGREP_found && break 3
  5457.     done
  5458.   done
  5459.   done
  5460. IFS=$as_save_IFS
  5461.   if test -z "$ac_cv_path_FGREP"; then
  5462.     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5463.   fi
  5464. else
  5465.   ac_cv_path_FGREP=$FGREP
  5466. fi
  5467.  
  5468.    fi
  5469. fi
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5471. $as_echo "$ac_cv_path_FGREP" >&6; }
  5472.  FGREP="$ac_cv_path_FGREP"
  5473.  
  5474.  
  5475. test -z "$GREP" && GREP=grep
  5476.  
  5477.  
  5478.  
  5479.  
  5480.  
  5481.  
  5482.  
  5483.  
  5484.  
  5485.  
  5486.  
  5487.  
  5488.  
  5489.  
  5490.  
  5491.  
  5492.  
  5493.  
  5494.  
  5495. # Check whether --with-gnu-ld was given.
  5496. if test "${with_gnu_ld+set}" = set; then :
  5497.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5498. else
  5499.   with_gnu_ld=no
  5500. fi
  5501.  
  5502. ac_prog=ld
  5503. if test "$GCC" = yes; then
  5504.   # Check if gcc -print-prog-name=ld gives a path.
  5505.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5506. $as_echo_n "checking for ld used by $CC... " >&6; }
  5507.   case $host in
  5508.   *-*-mingw*)
  5509.     # gcc leaves a trailing carriage return which upsets mingw
  5510.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5511.   *)
  5512.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5513.   esac
  5514.   case $ac_prog in
  5515.     # Accept absolute paths.
  5516.     [\\/]* | ?:[\\/]*)
  5517.       re_direlt='/[^/][^/]*/\.\./'
  5518.       # Canonicalize the pathname of ld
  5519.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5520.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5521.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5522.       done
  5523.       test -z "$LD" && LD="$ac_prog"
  5524.       ;;
  5525.   "")
  5526.     # If it fails, then pretend we aren't using GCC.
  5527.     ac_prog=ld
  5528.     ;;
  5529.   *)
  5530.     # If it is relative, then search for the first ld in PATH.
  5531.     with_gnu_ld=unknown
  5532.     ;;
  5533.   esac
  5534. elif test "$with_gnu_ld" = yes; then
  5535.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5536. $as_echo_n "checking for GNU ld... " >&6; }
  5537. else
  5538.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5539. $as_echo_n "checking for non-GNU ld... " >&6; }
  5540. fi
  5541. if ${lt_cv_path_LD+:} false; then :
  5542.   $as_echo_n "(cached) " >&6
  5543. else
  5544.   if test -z "$LD"; then
  5545.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5546.   for ac_dir in $PATH; do
  5547.     IFS="$lt_save_ifs"
  5548.     test -z "$ac_dir" && ac_dir=.
  5549.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5550.       lt_cv_path_LD="$ac_dir/$ac_prog"
  5551.       # Check to see if the program is GNU ld.  I'd rather use --version,
  5552.       # but apparently some variants of GNU ld only accept -v.
  5553.       # Break only if it was the GNU/non-GNU ld that we prefer.
  5554.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5555.       *GNU* | *'with BFD'*)
  5556.         test "$with_gnu_ld" != no && break
  5557.         ;;
  5558.       *)
  5559.         test "$with_gnu_ld" != yes && break
  5560.         ;;
  5561.       esac
  5562.     fi
  5563.   done
  5564.   IFS="$lt_save_ifs"
  5565. else
  5566.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5567. fi
  5568. fi
  5569.  
  5570. LD="$lt_cv_path_LD"
  5571. if test -n "$LD"; then
  5572.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5573. $as_echo "$LD" >&6; }
  5574. else
  5575.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5576. $as_echo "no" >&6; }
  5577. fi
  5578. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5580. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5581. if ${lt_cv_prog_gnu_ld+:} false; then :
  5582.   $as_echo_n "(cached) " >&6
  5583. else
  5584.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5585. case `$LD -v 2>&1 </dev/null` in
  5586. *GNU* | *'with BFD'*)
  5587.   lt_cv_prog_gnu_ld=yes
  5588.   ;;
  5589. *)
  5590.   lt_cv_prog_gnu_ld=no
  5591.   ;;
  5592. esac
  5593. fi
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5595. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5596. with_gnu_ld=$lt_cv_prog_gnu_ld
  5597.  
  5598.  
  5599.  
  5600.  
  5601.  
  5602.  
  5603.  
  5604.  
  5605.  
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5607. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5608. if ${lt_cv_path_NM+:} false; then :
  5609.   $as_echo_n "(cached) " >&6
  5610. else
  5611.   if test -n "$NM"; then
  5612.   # Let the user override the test.
  5613.   lt_cv_path_NM="$NM"
  5614. else
  5615.   lt_nm_to_check="${ac_tool_prefix}nm"
  5616.   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5617.     lt_nm_to_check="$lt_nm_to_check nm"
  5618.   fi
  5619.   for lt_tmp_nm in $lt_nm_to_check; do
  5620.     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5621.     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5622.       IFS="$lt_save_ifs"
  5623.       test -z "$ac_dir" && ac_dir=.
  5624.       tmp_nm="$ac_dir/$lt_tmp_nm"
  5625.       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5626.         # Check to see if the nm accepts a BSD-compat flag.
  5627.         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5628.         #   nm: unknown option "B" ignored
  5629.         # Tru64's nm complains that /dev/null is an invalid object file
  5630.         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5631.         */dev/null* | *'Invalid file or object type'*)
  5632.           lt_cv_path_NM="$tmp_nm -B"
  5633.           break
  5634.           ;;
  5635.         *)
  5636.           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5637.           */dev/null*)
  5638.             lt_cv_path_NM="$tmp_nm -p"
  5639.             break
  5640.             ;;
  5641.           *)
  5642.             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5643.             continue # so that we can try to find one that supports BSD flags
  5644.             ;;
  5645.           esac
  5646.           ;;
  5647.         esac
  5648.       fi
  5649.     done
  5650.     IFS="$lt_save_ifs"
  5651.   done
  5652.   : ${lt_cv_path_NM=no}
  5653. fi
  5654. fi
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5656. $as_echo "$lt_cv_path_NM" >&6; }
  5657. if test "$lt_cv_path_NM" != "no"; then
  5658.   NM="$lt_cv_path_NM"
  5659. else
  5660.   # Didn't find any BSD compatible name lister, look for dumpbin.
  5661.   if test -n "$DUMPBIN"; then :
  5662.     # Let the user override the test.
  5663.   else
  5664.     if test -n "$ac_tool_prefix"; then
  5665.   for ac_prog in dumpbin "link -dump"
  5666.   do
  5667.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5668. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5670. $as_echo_n "checking for $ac_word... " >&6; }
  5671. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5672.   $as_echo_n "(cached) " >&6
  5673. else
  5674.   if test -n "$DUMPBIN"; then
  5675.   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5676. else
  5677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5678. for as_dir in $PATH
  5679. do
  5680.   IFS=$as_save_IFS
  5681.   test -z "$as_dir" && as_dir=.
  5682.     for ac_exec_ext in '' $ac_executable_extensions; do
  5683.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5684.     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5685.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5686.     break 2
  5687.   fi
  5688. done
  5689.   done
  5690. IFS=$as_save_IFS
  5691.  
  5692. fi
  5693. fi
  5694. DUMPBIN=$ac_cv_prog_DUMPBIN
  5695. if test -n "$DUMPBIN"; then
  5696.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5697. $as_echo "$DUMPBIN" >&6; }
  5698. else
  5699.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5700. $as_echo "no" >&6; }
  5701. fi
  5702.  
  5703.  
  5704.     test -n "$DUMPBIN" && break
  5705.   done
  5706. fi
  5707. if test -z "$DUMPBIN"; then
  5708.   ac_ct_DUMPBIN=$DUMPBIN
  5709.   for ac_prog in dumpbin "link -dump"
  5710. do
  5711.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5712. set dummy $ac_prog; ac_word=$2
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5714. $as_echo_n "checking for $ac_word... " >&6; }
  5715. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5716.   $as_echo_n "(cached) " >&6
  5717. else
  5718.   if test -n "$ac_ct_DUMPBIN"; then
  5719.   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5720. else
  5721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5722. for as_dir in $PATH
  5723. do
  5724.   IFS=$as_save_IFS
  5725.   test -z "$as_dir" && as_dir=.
  5726.     for ac_exec_ext in '' $ac_executable_extensions; do
  5727.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5728.     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5729.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5730.     break 2
  5731.   fi
  5732. done
  5733.   done
  5734. IFS=$as_save_IFS
  5735.  
  5736. fi
  5737. fi
  5738. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5739. if test -n "$ac_ct_DUMPBIN"; then
  5740.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5741. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5742. else
  5743.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5744. $as_echo "no" >&6; }
  5745. fi
  5746.  
  5747.  
  5748.   test -n "$ac_ct_DUMPBIN" && break
  5749. done
  5750.  
  5751.   if test "x$ac_ct_DUMPBIN" = x; then
  5752.     DUMPBIN=":"
  5753.   else
  5754.     case $cross_compiling:$ac_tool_warned in
  5755. yes:)
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5757. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5758. ac_tool_warned=yes ;;
  5759. esac
  5760.     DUMPBIN=$ac_ct_DUMPBIN
  5761.   fi
  5762. fi
  5763.  
  5764.     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5765.     *COFF*)
  5766.       DUMPBIN="$DUMPBIN -symbols"
  5767.       ;;
  5768.     *)
  5769.       DUMPBIN=:
  5770.       ;;
  5771.     esac
  5772.   fi
  5773.  
  5774.   if test "$DUMPBIN" != ":"; then
  5775.     NM="$DUMPBIN"
  5776.   fi
  5777. fi
  5778. test -z "$NM" && NM=nm
  5779.  
  5780.  
  5781.  
  5782.  
  5783.  
  5784.  
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5786. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5787. if ${lt_cv_nm_interface+:} false; then :
  5788.   $as_echo_n "(cached) " >&6
  5789. else
  5790.   lt_cv_nm_interface="BSD nm"
  5791.   echo "int some_variable = 0;" > conftest.$ac_ext
  5792.   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5793.   (eval "$ac_compile" 2>conftest.err)
  5794.   cat conftest.err >&5
  5795.   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5796.   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5797.   cat conftest.err >&5
  5798.   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5799.   cat conftest.out >&5
  5800.   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5801.     lt_cv_nm_interface="MS dumpbin"
  5802.   fi
  5803.   rm -f conftest*
  5804. fi
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5806. $as_echo "$lt_cv_nm_interface" >&6; }
  5807.  
  5808. # find the maximum length of command line arguments
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5810. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5811. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5812.   $as_echo_n "(cached) " >&6
  5813. else
  5814.     i=0
  5815.   teststring="ABCD"
  5816.  
  5817.   case $build_os in
  5818.   msdosdjgpp*)
  5819.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  5820.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  5821.     # during glob expansion).  Even if it were fixed, the result of this
  5822.     # check would be larger than it should be.
  5823.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  5824.     ;;
  5825.  
  5826.   gnu*)
  5827.     # Under GNU Hurd, this test is not required because there is
  5828.     # no limit to the length of command line arguments.
  5829.     # Libtool will interpret -1 as no limit whatsoever
  5830.     lt_cv_sys_max_cmd_len=-1;
  5831.     ;;
  5832.  
  5833.   cygwin* | mingw* | cegcc*)
  5834.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  5835.     # about 5 minutes as the teststring grows exponentially.
  5836.     # Worse, since 9x/ME are not pre-emptively multitasking,
  5837.     # you end up with a "frozen" computer, even though with patience
  5838.     # the test eventually succeeds (with a max line length of 256k).
  5839.     # Instead, let's just punt: use the minimum linelength reported by
  5840.     # all of the supported platforms: 8192 (on NT/2K/XP).
  5841.     lt_cv_sys_max_cmd_len=8192;
  5842.     ;;
  5843.  
  5844.   mint*)
  5845.     # On MiNT this can take a long time and run out of memory.
  5846.     lt_cv_sys_max_cmd_len=8192;
  5847.     ;;
  5848.  
  5849.   amigaos*)
  5850.     # On AmigaOS with pdksh, this test takes hours, literally.
  5851.     # So we just punt and use a minimum line length of 8192.
  5852.     lt_cv_sys_max_cmd_len=8192;
  5853.     ;;
  5854.  
  5855.   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5856.     # This has been around since 386BSD, at least.  Likely further.
  5857.     if test -x /sbin/sysctl; then
  5858.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5859.     elif test -x /usr/sbin/sysctl; then
  5860.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5861.     else
  5862.       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
  5863.     fi
  5864.     # And add a safety zone
  5865.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5866.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5867.     ;;
  5868.  
  5869.   interix*)
  5870.     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5871.     lt_cv_sys_max_cmd_len=196608
  5872.     ;;
  5873.  
  5874.   osf*)
  5875.     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5876.     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5877.     # nice to cause kernel panics so lets avoid the loop below.
  5878.     # First set a reasonable default.
  5879.     lt_cv_sys_max_cmd_len=16384
  5880.     #
  5881.     if test -x /sbin/sysconfig; then
  5882.       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5883.         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5884.       esac
  5885.     fi
  5886.     ;;
  5887.   sco3.2v5*)
  5888.     lt_cv_sys_max_cmd_len=102400
  5889.     ;;
  5890.   sysv5* | sco5v6* | sysv4.2uw2*)
  5891.     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5892.     if test -n "$kargmax"; then
  5893.       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
  5894.     else
  5895.       lt_cv_sys_max_cmd_len=32768
  5896.     fi
  5897.     ;;
  5898.   *)
  5899.     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5900.     if test -n "$lt_cv_sys_max_cmd_len"; then
  5901.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5902.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5903.     else
  5904.       # Make teststring a little bigger before we do anything with it.
  5905.       # a 1K string should be a reasonable start.
  5906.       for i in 1 2 3 4 5 6 7 8 ; do
  5907.         teststring=$teststring$teststring
  5908.       done
  5909.       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5910.       # If test is not a shell built-in, we'll probably end up computing a
  5911.       # maximum length that is only half of the actual maximum length, but
  5912.       # we can't tell.
  5913.       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5914.                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5915.               test $i != 17 # 1/2 MB should be enough
  5916.       do
  5917.         i=`expr $i + 1`
  5918.         teststring=$teststring$teststring
  5919.       done
  5920.       # Only check the string length outside the loop.
  5921.       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5922.       teststring=
  5923.       # Add a significant safety factor because C++ compilers can tack on
  5924.       # massive amounts of additional arguments before passing them to the
  5925.       # linker.  It appears as though 1/2 is a usable value.
  5926.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5927.     fi
  5928.     ;;
  5929.   esac
  5930.  
  5931. fi
  5932.  
  5933. if test -n $lt_cv_sys_max_cmd_len ; then
  5934.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5935. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5936. else
  5937.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5938. $as_echo "none" >&6; }
  5939. fi
  5940. max_cmd_len=$lt_cv_sys_max_cmd_len
  5941.  
  5942.  
  5943.  
  5944.  
  5945.  
  5946.  
  5947. : ${CP="cp -f"}
  5948. : ${MV="mv -f"}
  5949. : ${RM="rm -f"}
  5950.  
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5952. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5953. # Try some XSI features
  5954. xsi_shell=no
  5955. ( _lt_dummy="a/b/c"
  5956.   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5957.       = c,a/b,, \
  5958.     && eval 'test $(( 1 + 1 )) -eq 2 \
  5959.     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5960.   && xsi_shell=yes
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5962. $as_echo "$xsi_shell" >&6; }
  5963.  
  5964.  
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5966. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5967. lt_shell_append=no
  5968. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5969.     >/dev/null 2>&1 \
  5970.   && lt_shell_append=yes
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5972. $as_echo "$lt_shell_append" >&6; }
  5973.  
  5974.  
  5975. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5976.   lt_unset=unset
  5977. else
  5978.   lt_unset=false
  5979. fi
  5980.  
  5981.  
  5982.  
  5983.  
  5984.  
  5985. # test EBCDIC or ASCII
  5986. case `echo X|tr X '\101'` in
  5987.  A) # ASCII based system
  5988.     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5989.   lt_SP2NL='tr \040 \012'
  5990.   lt_NL2SP='tr \015\012 \040\040'
  5991.   ;;
  5992.  *) # EBCDIC based system
  5993.   lt_SP2NL='tr \100 \n'
  5994.   lt_NL2SP='tr \r\n \100\100'
  5995.   ;;
  5996. esac
  5997.  
  5998.  
  5999.  
  6000.  
  6001.  
  6002.  
  6003.  
  6004.  
  6005.  
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6007. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6008. if ${lt_cv_ld_reload_flag+:} false; then :
  6009.   $as_echo_n "(cached) " >&6
  6010. else
  6011.   lt_cv_ld_reload_flag='-r'
  6012. fi
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6014. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6015. reload_flag=$lt_cv_ld_reload_flag
  6016. case $reload_flag in
  6017. "" | " "*) ;;
  6018. *) reload_flag=" $reload_flag" ;;
  6019. esac
  6020. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6021. case $host_os in
  6022.   darwin*)
  6023.     if test "$GCC" = yes; then
  6024.       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6025.     else
  6026.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6027.     fi
  6028.     ;;
  6029. esac
  6030.  
  6031.  
  6032.  
  6033.  
  6034.  
  6035.  
  6036.  
  6037.  
  6038.  
  6039. if test -n "$ac_tool_prefix"; then
  6040.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6041. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6043. $as_echo_n "checking for $ac_word... " >&6; }
  6044. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6045.   $as_echo_n "(cached) " >&6
  6046. else
  6047.   if test -n "$OBJDUMP"; then
  6048.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6049. else
  6050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6051. for as_dir in $PATH
  6052. do
  6053.   IFS=$as_save_IFS
  6054.   test -z "$as_dir" && as_dir=.
  6055.     for ac_exec_ext in '' $ac_executable_extensions; do
  6056.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6057.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6058.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6059.     break 2
  6060.   fi
  6061. done
  6062.   done
  6063. IFS=$as_save_IFS
  6064.  
  6065. fi
  6066. fi
  6067. OBJDUMP=$ac_cv_prog_OBJDUMP
  6068. if test -n "$OBJDUMP"; then
  6069.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6070. $as_echo "$OBJDUMP" >&6; }
  6071. else
  6072.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6073. $as_echo "no" >&6; }
  6074. fi
  6075.  
  6076.  
  6077. fi
  6078. if test -z "$ac_cv_prog_OBJDUMP"; then
  6079.   ac_ct_OBJDUMP=$OBJDUMP
  6080.   # Extract the first word of "objdump", so it can be a program name with args.
  6081. set dummy objdump; ac_word=$2
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6083. $as_echo_n "checking for $ac_word... " >&6; }
  6084. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6085.   $as_echo_n "(cached) " >&6
  6086. else
  6087.   if test -n "$ac_ct_OBJDUMP"; then
  6088.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6089. else
  6090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6091. for as_dir in $PATH
  6092. do
  6093.   IFS=$as_save_IFS
  6094.   test -z "$as_dir" && as_dir=.
  6095.     for ac_exec_ext in '' $ac_executable_extensions; do
  6096.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6097.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6098.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6099.     break 2
  6100.   fi
  6101. done
  6102.   done
  6103. IFS=$as_save_IFS
  6104.  
  6105. fi
  6106. fi
  6107. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6108. if test -n "$ac_ct_OBJDUMP"; then
  6109.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6110. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6111. else
  6112.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6113. $as_echo "no" >&6; }
  6114. fi
  6115.  
  6116.   if test "x$ac_ct_OBJDUMP" = x; then
  6117.     OBJDUMP="false"
  6118.   else
  6119.     case $cross_compiling:$ac_tool_warned in
  6120. yes:)
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6122. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6123. ac_tool_warned=yes ;;
  6124. esac
  6125.     OBJDUMP=$ac_ct_OBJDUMP
  6126.   fi
  6127. else
  6128.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  6129. fi
  6130.  
  6131. test -z "$OBJDUMP" && OBJDUMP=objdump
  6132.  
  6133.  
  6134.  
  6135.  
  6136.  
  6137.  
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6139. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6140. if ${lt_cv_deplibs_check_method+:} false; then :
  6141.   $as_echo_n "(cached) " >&6
  6142. else
  6143.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  6144. lt_cv_file_magic_test_file=
  6145. lt_cv_deplibs_check_method='unknown'
  6146. # Need to set the preceding variable on all platforms that support
  6147. # interlibrary dependencies.
  6148. # 'none' -- dependencies not supported.
  6149. # `unknown' -- same as none, but documents that we really don't know.
  6150. # 'pass_all' -- all dependencies passed with no checks.
  6151. # 'test_compile' -- check by making test program.
  6152. # 'file_magic [[regex]]' -- check by looking for files in library path
  6153. # which responds to the $file_magic_cmd with a given extended regex.
  6154. # If you have `file' or equivalent on your system and you're not sure
  6155. # whether `pass_all' will *always* work, you probably want this one.
  6156.  
  6157. case $host_os in
  6158. aix[4-9]*)
  6159.   lt_cv_deplibs_check_method=pass_all
  6160.   ;;
  6161.  
  6162. beos*)
  6163.   lt_cv_deplibs_check_method=pass_all
  6164.   ;;
  6165.  
  6166. bsdi[45]*)
  6167.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6168.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  6169.   lt_cv_file_magic_test_file=/shlib/libc.so
  6170.   ;;
  6171.  
  6172. cygwin*)
  6173.   # func_win32_libid is a shell function defined in ltmain.sh
  6174.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6175.   lt_cv_file_magic_cmd='func_win32_libid'
  6176.   ;;
  6177.  
  6178. mingw* | pw32*)
  6179.   # Base MSYS/MinGW do not provide the 'file' command needed by
  6180.   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6181.   # unless we find 'file', for example because we are cross-compiling.
  6182.   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6183.   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6184.     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6185.     lt_cv_file_magic_cmd='func_win32_libid'
  6186.   else
  6187.     # Keep this pattern in sync with the one in func_win32_libid.
  6188.     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6189.     lt_cv_file_magic_cmd='$OBJDUMP -f'
  6190.   fi
  6191.   ;;
  6192.  
  6193. cegcc*)
  6194.   # use the weaker test based on 'objdump'. See mingw*.
  6195.   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6196.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  6197.   ;;
  6198.  
  6199. darwin* | rhapsody*)
  6200.   lt_cv_deplibs_check_method=pass_all
  6201.   ;;
  6202.  
  6203. freebsd* | dragonfly*)
  6204.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6205.     case $host_cpu in
  6206.     i*86 )
  6207.       # Not sure whether the presence of OpenBSD here was a mistake.
  6208.       # Let's accept both of them until this is cleared up.
  6209.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6210.       lt_cv_file_magic_cmd=/usr/bin/file
  6211.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6212.       ;;
  6213.     esac
  6214.   else
  6215.     lt_cv_deplibs_check_method=pass_all
  6216.   fi
  6217.   ;;
  6218.  
  6219. gnu*)
  6220.   lt_cv_deplibs_check_method=pass_all
  6221.   ;;
  6222.  
  6223. haiku*)
  6224.   lt_cv_deplibs_check_method=pass_all
  6225.   ;;
  6226.  
  6227. hpux10.20* | hpux11*)
  6228.   lt_cv_file_magic_cmd=/usr/bin/file
  6229.   case $host_cpu in
  6230.   ia64*)
  6231.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6232.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6233.     ;;
  6234.   hppa*64*)
  6235.     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]'
  6236.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6237.     ;;
  6238.   *)
  6239.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6240.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6241.     ;;
  6242.   esac
  6243.   ;;
  6244.  
  6245. interix[3-9]*)
  6246.   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6247.   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6248.   ;;
  6249.  
  6250. irix5* | irix6* | nonstopux*)
  6251.   case $LD in
  6252.   *-32|*"-32 ") libmagic=32-bit;;
  6253.   *-n32|*"-n32 ") libmagic=N32;;
  6254.   *-64|*"-64 ") libmagic=64-bit;;
  6255.   *) libmagic=never-match;;
  6256.   esac
  6257.   lt_cv_deplibs_check_method=pass_all
  6258.   ;;
  6259.  
  6260. # This must be Linux ELF.
  6261. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6262.   lt_cv_deplibs_check_method=pass_all
  6263.   ;;
  6264.  
  6265. netbsd*)
  6266.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6267.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6268.   else
  6269.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6270.   fi
  6271.   ;;
  6272.  
  6273. newos6*)
  6274.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6275.   lt_cv_file_magic_cmd=/usr/bin/file
  6276.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6277.   ;;
  6278.  
  6279. *nto* | *qnx*)
  6280.   lt_cv_deplibs_check_method=pass_all
  6281.   ;;
  6282.  
  6283. openbsd*)
  6284.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6285.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6286.   else
  6287.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6288.   fi
  6289.   ;;
  6290.  
  6291. osf3* | osf4* | osf5*)
  6292.   lt_cv_deplibs_check_method=pass_all
  6293.   ;;
  6294.  
  6295. rdos*)
  6296.   lt_cv_deplibs_check_method=pass_all
  6297.   ;;
  6298.  
  6299. solaris*)
  6300.   lt_cv_deplibs_check_method=pass_all
  6301.   ;;
  6302.  
  6303. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6304.   lt_cv_deplibs_check_method=pass_all
  6305.   ;;
  6306.  
  6307. sysv4 | sysv4.3*)
  6308.   case $host_vendor in
  6309.   motorola)
  6310.     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]'
  6311.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6312.     ;;
  6313.   ncr)
  6314.     lt_cv_deplibs_check_method=pass_all
  6315.     ;;
  6316.   sequent)
  6317.     lt_cv_file_magic_cmd='/bin/file'
  6318.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6319.     ;;
  6320.   sni)
  6321.     lt_cv_file_magic_cmd='/bin/file'
  6322.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6323.     lt_cv_file_magic_test_file=/lib/libc.so
  6324.     ;;
  6325.   siemens)
  6326.     lt_cv_deplibs_check_method=pass_all
  6327.     ;;
  6328.   pc)
  6329.     lt_cv_deplibs_check_method=pass_all
  6330.     ;;
  6331.   esac
  6332.   ;;
  6333.  
  6334. tpf*)
  6335.   lt_cv_deplibs_check_method=pass_all
  6336.   ;;
  6337. esac
  6338.  
  6339. fi
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6341. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6342. file_magic_cmd=$lt_cv_file_magic_cmd
  6343. deplibs_check_method=$lt_cv_deplibs_check_method
  6344. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6345.  
  6346.  
  6347.  
  6348.  
  6349.  
  6350.  
  6351.  
  6352.  
  6353.  
  6354.  
  6355.  
  6356.  
  6357. if test -n "$ac_tool_prefix"; then
  6358.   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6359. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6361. $as_echo_n "checking for $ac_word... " >&6; }
  6362. if ${ac_cv_prog_AR+:} false; then :
  6363.   $as_echo_n "(cached) " >&6
  6364. else
  6365.   if test -n "$AR"; then
  6366.   ac_cv_prog_AR="$AR" # Let the user override the test.
  6367. else
  6368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6369. for as_dir in $PATH
  6370. do
  6371.   IFS=$as_save_IFS
  6372.   test -z "$as_dir" && as_dir=.
  6373.     for ac_exec_ext in '' $ac_executable_extensions; do
  6374.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6375.     ac_cv_prog_AR="${ac_tool_prefix}ar"
  6376.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6377.     break 2
  6378.   fi
  6379. done
  6380.   done
  6381. IFS=$as_save_IFS
  6382.  
  6383. fi
  6384. fi
  6385. AR=$ac_cv_prog_AR
  6386. if test -n "$AR"; then
  6387.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6388. $as_echo "$AR" >&6; }
  6389. else
  6390.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6391. $as_echo "no" >&6; }
  6392. fi
  6393.  
  6394.  
  6395. fi
  6396. if test -z "$ac_cv_prog_AR"; then
  6397.   ac_ct_AR=$AR
  6398.   # Extract the first word of "ar", so it can be a program name with args.
  6399. set dummy ar; ac_word=$2
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6401. $as_echo_n "checking for $ac_word... " >&6; }
  6402. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6403.   $as_echo_n "(cached) " >&6
  6404. else
  6405.   if test -n "$ac_ct_AR"; then
  6406.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6407. else
  6408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6409. for as_dir in $PATH
  6410. do
  6411.   IFS=$as_save_IFS
  6412.   test -z "$as_dir" && as_dir=.
  6413.     for ac_exec_ext in '' $ac_executable_extensions; do
  6414.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6415.     ac_cv_prog_ac_ct_AR="ar"
  6416.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6417.     break 2
  6418.   fi
  6419. done
  6420.   done
  6421. IFS=$as_save_IFS
  6422.  
  6423. fi
  6424. fi
  6425. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6426. if test -n "$ac_ct_AR"; then
  6427.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6428. $as_echo "$ac_ct_AR" >&6; }
  6429. else
  6430.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6431. $as_echo "no" >&6; }
  6432. fi
  6433.  
  6434.   if test "x$ac_ct_AR" = x; then
  6435.     AR="false"
  6436.   else
  6437.     case $cross_compiling:$ac_tool_warned in
  6438. yes:)
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6441. ac_tool_warned=yes ;;
  6442. esac
  6443.     AR=$ac_ct_AR
  6444.   fi
  6445. else
  6446.   AR="$ac_cv_prog_AR"
  6447. fi
  6448.  
  6449. test -z "$AR" && AR=ar
  6450. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6451.  
  6452.  
  6453.  
  6454.  
  6455.  
  6456.  
  6457.  
  6458.  
  6459.  
  6460.  
  6461.  
  6462. if test -n "$ac_tool_prefix"; then
  6463.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6464. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6466. $as_echo_n "checking for $ac_word... " >&6; }
  6467. if ${ac_cv_prog_STRIP+:} false; then :
  6468.   $as_echo_n "(cached) " >&6
  6469. else
  6470.   if test -n "$STRIP"; then
  6471.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6472. else
  6473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6474. for as_dir in $PATH
  6475. do
  6476.   IFS=$as_save_IFS
  6477.   test -z "$as_dir" && as_dir=.
  6478.     for ac_exec_ext in '' $ac_executable_extensions; do
  6479.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6480.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6481.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6482.     break 2
  6483.   fi
  6484. done
  6485.   done
  6486. IFS=$as_save_IFS
  6487.  
  6488. fi
  6489. fi
  6490. STRIP=$ac_cv_prog_STRIP
  6491. if test -n "$STRIP"; then
  6492.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6493. $as_echo "$STRIP" >&6; }
  6494. else
  6495.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6496. $as_echo "no" >&6; }
  6497. fi
  6498.  
  6499.  
  6500. fi
  6501. if test -z "$ac_cv_prog_STRIP"; then
  6502.   ac_ct_STRIP=$STRIP
  6503.   # Extract the first word of "strip", so it can be a program name with args.
  6504. set dummy strip; ac_word=$2
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6506. $as_echo_n "checking for $ac_word... " >&6; }
  6507. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6508.   $as_echo_n "(cached) " >&6
  6509. else
  6510.   if test -n "$ac_ct_STRIP"; then
  6511.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6512. else
  6513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6514. for as_dir in $PATH
  6515. do
  6516.   IFS=$as_save_IFS
  6517.   test -z "$as_dir" && as_dir=.
  6518.     for ac_exec_ext in '' $ac_executable_extensions; do
  6519.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6520.     ac_cv_prog_ac_ct_STRIP="strip"
  6521.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6522.     break 2
  6523.   fi
  6524. done
  6525.   done
  6526. IFS=$as_save_IFS
  6527.  
  6528. fi
  6529. fi
  6530. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6531. if test -n "$ac_ct_STRIP"; then
  6532.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6533. $as_echo "$ac_ct_STRIP" >&6; }
  6534. else
  6535.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6536. $as_echo "no" >&6; }
  6537. fi
  6538.  
  6539.   if test "x$ac_ct_STRIP" = x; then
  6540.     STRIP=":"
  6541.   else
  6542.     case $cross_compiling:$ac_tool_warned in
  6543. yes:)
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6545. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6546. ac_tool_warned=yes ;;
  6547. esac
  6548.     STRIP=$ac_ct_STRIP
  6549.   fi
  6550. else
  6551.   STRIP="$ac_cv_prog_STRIP"
  6552. fi
  6553.  
  6554. test -z "$STRIP" && STRIP=:
  6555.  
  6556.  
  6557.  
  6558.  
  6559.  
  6560.  
  6561. if test -n "$ac_tool_prefix"; then
  6562.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6563. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6565. $as_echo_n "checking for $ac_word... " >&6; }
  6566. if ${ac_cv_prog_RANLIB+:} false; then :
  6567.   $as_echo_n "(cached) " >&6
  6568. else
  6569.   if test -n "$RANLIB"; then
  6570.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6571. else
  6572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6573. for as_dir in $PATH
  6574. do
  6575.   IFS=$as_save_IFS
  6576.   test -z "$as_dir" && as_dir=.
  6577.     for ac_exec_ext in '' $ac_executable_extensions; do
  6578.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6579.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6580.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6581.     break 2
  6582.   fi
  6583. done
  6584.   done
  6585. IFS=$as_save_IFS
  6586.  
  6587. fi
  6588. fi
  6589. RANLIB=$ac_cv_prog_RANLIB
  6590. if test -n "$RANLIB"; then
  6591.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6592. $as_echo "$RANLIB" >&6; }
  6593. else
  6594.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6595. $as_echo "no" >&6; }
  6596. fi
  6597.  
  6598.  
  6599. fi
  6600. if test -z "$ac_cv_prog_RANLIB"; then
  6601.   ac_ct_RANLIB=$RANLIB
  6602.   # Extract the first word of "ranlib", so it can be a program name with args.
  6603. set dummy ranlib; ac_word=$2
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6605. $as_echo_n "checking for $ac_word... " >&6; }
  6606. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6607.   $as_echo_n "(cached) " >&6
  6608. else
  6609.   if test -n "$ac_ct_RANLIB"; then
  6610.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6611. else
  6612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6613. for as_dir in $PATH
  6614. do
  6615.   IFS=$as_save_IFS
  6616.   test -z "$as_dir" && as_dir=.
  6617.     for ac_exec_ext in '' $ac_executable_extensions; do
  6618.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6619.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  6620.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6621.     break 2
  6622.   fi
  6623. done
  6624.   done
  6625. IFS=$as_save_IFS
  6626.  
  6627. fi
  6628. fi
  6629. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6630. if test -n "$ac_ct_RANLIB"; then
  6631.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6632. $as_echo "$ac_ct_RANLIB" >&6; }
  6633. else
  6634.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6635. $as_echo "no" >&6; }
  6636. fi
  6637.  
  6638.   if test "x$ac_ct_RANLIB" = x; then
  6639.     RANLIB=":"
  6640.   else
  6641.     case $cross_compiling:$ac_tool_warned in
  6642. yes:)
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6645. ac_tool_warned=yes ;;
  6646. esac
  6647.     RANLIB=$ac_ct_RANLIB
  6648.   fi
  6649. else
  6650.   RANLIB="$ac_cv_prog_RANLIB"
  6651. fi
  6652.  
  6653. test -z "$RANLIB" && RANLIB=:
  6654.  
  6655.  
  6656.  
  6657.  
  6658.  
  6659.  
  6660. # Determine commands to create old-style static archives.
  6661. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6662. old_postinstall_cmds='chmod 644 $oldlib'
  6663. old_postuninstall_cmds=
  6664.  
  6665. if test -n "$RANLIB"; then
  6666.   case $host_os in
  6667.   openbsd*)
  6668.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6669.     ;;
  6670.   *)
  6671.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6672.     ;;
  6673.   esac
  6674.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6675. fi
  6676.  
  6677. case $host_os in
  6678.   darwin*)
  6679.     lock_old_archive_extraction=yes ;;
  6680.   *)
  6681.     lock_old_archive_extraction=no ;;
  6682. esac
  6683.  
  6684.  
  6685.  
  6686.  
  6687.  
  6688.  
  6689.  
  6690.  
  6691.  
  6692.  
  6693.  
  6694.  
  6695.  
  6696.  
  6697.  
  6698.  
  6699.  
  6700.  
  6701.  
  6702.  
  6703.  
  6704.  
  6705.  
  6706.  
  6707.  
  6708.  
  6709.  
  6710.  
  6711.  
  6712.  
  6713.  
  6714.  
  6715.  
  6716.  
  6717.  
  6718.  
  6719.  
  6720.  
  6721.  
  6722. # If no C compiler was specified, use CC.
  6723. LTCC=${LTCC-"$CC"}
  6724.  
  6725. # If no C compiler flags were specified, use CFLAGS.
  6726. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6727.  
  6728. # Allow CC to be a program name with arguments.
  6729. compiler=$CC
  6730.  
  6731.  
  6732. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6734. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6735. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6736.   $as_echo_n "(cached) " >&6
  6737. else
  6738.  
  6739. # These are sane defaults that work on at least a few old systems.
  6740. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  6741.  
  6742. # Character class describing NM global symbol codes.
  6743. symcode='[BCDEGRST]'
  6744.  
  6745. # Regexp to match symbols that can be accessed directly from C.
  6746. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6747.  
  6748. # Define system-specific variables.
  6749. case $host_os in
  6750. aix*)
  6751.   symcode='[BCDT]'
  6752.   ;;
  6753. cygwin* | mingw* | pw32* | cegcc*)
  6754.   symcode='[ABCDGISTW]'
  6755.   ;;
  6756. hpux*)
  6757.   if test "$host_cpu" = ia64; then
  6758.     symcode='[ABCDEGRST]'
  6759.   fi
  6760.   ;;
  6761. irix* | nonstopux*)
  6762.   symcode='[BCDEGRST]'
  6763.   ;;
  6764. osf*)
  6765.   symcode='[BCDEGQRST]'
  6766.   ;;
  6767. solaris*)
  6768.   symcode='[BDRT]'
  6769.   ;;
  6770. sco3.2v5*)
  6771.   symcode='[DT]'
  6772.   ;;
  6773. sysv4.2uw2*)
  6774.   symcode='[DT]'
  6775.   ;;
  6776. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6777.   symcode='[ABDT]'
  6778.   ;;
  6779. sysv4)
  6780.   symcode='[DFNSTU]'
  6781.   ;;
  6782. esac
  6783.  
  6784. # If we're using GNU nm, then use its standard symbol codes.
  6785. case `$NM -V 2>&1` in
  6786. *GNU* | *'with BFD'*)
  6787.   symcode='[ABCDGIRSTW]' ;;
  6788. esac
  6789.  
  6790. # Transform an extracted symbol line into a proper C declaration.
  6791. # Some systems (esp. on ia64) link data and code symbols differently,
  6792. # so use this general approach.
  6793. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6794.  
  6795. # Transform an extracted symbol line into symbol name and symbol address
  6796. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
  6797. 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'"
  6798.  
  6799. # Handle CRLF in mingw tool chain
  6800. opt_cr=
  6801. case $build_os in
  6802. mingw*)
  6803.   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6804.   ;;
  6805. esac
  6806.  
  6807. # Try without a prefix underscore, then with it.
  6808. for ac_symprfx in "" "_"; do
  6809.  
  6810.   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6811.   symxfrm="\\1 $ac_symprfx\\2 \\2"
  6812.  
  6813.   # Write the raw and C identifiers.
  6814.   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6815.     # Fake it for dumpbin and say T for any non-static function
  6816.     # and D for any global variable.
  6817.     # Also find C++ and __fastcall symbols from MSVC++,
  6818.     # which start with @ or ?.
  6819.     lt_cv_sys_global_symbol_pipe="$AWK '"\
  6820. "     {last_section=section; section=\$ 3};"\
  6821. "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6822. "     \$ 0!~/External *\|/{next};"\
  6823. "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6824. "     {if(hide[section]) next};"\
  6825. "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6826. "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6827. "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6828. "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6829. "     ' prfx=^$ac_symprfx"
  6830.   else
  6831.     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6832.   fi
  6833.  
  6834.   # Check to see that the pipe works correctly.
  6835.   pipe_works=no
  6836.  
  6837.   rm -f conftest*
  6838.   cat > conftest.$ac_ext <<_LT_EOF
  6839. #ifdef __cplusplus
  6840. extern "C" {
  6841. #endif
  6842. char nm_test_var;
  6843. void nm_test_func(void);
  6844. void nm_test_func(void){}
  6845. #ifdef __cplusplus
  6846. }
  6847. #endif
  6848. int main(){nm_test_var='a';nm_test_func();return(0);}
  6849. _LT_EOF
  6850.  
  6851.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6852.   (eval $ac_compile) 2>&5
  6853.   ac_status=$?
  6854.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6855.   test $ac_status = 0; }; then
  6856.     # Now try to grab the symbols.
  6857.     nlist=conftest.nm
  6858.     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6859.   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6860.   ac_status=$?
  6861.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6862.   test $ac_status = 0; } && test -s "$nlist"; then
  6863.       # Try sorting and uniquifying the output.
  6864.       if sort "$nlist" | uniq > "$nlist"T; then
  6865.         mv -f "$nlist"T "$nlist"
  6866.       else
  6867.         rm -f "$nlist"T
  6868.       fi
  6869.  
  6870.       # Make sure that we snagged all the symbols we need.
  6871.       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6872.         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6873.           cat <<_LT_EOF > conftest.$ac_ext
  6874. #ifdef __cplusplus
  6875. extern "C" {
  6876. #endif
  6877.  
  6878. _LT_EOF
  6879.           # Now generate the symbol file.
  6880.           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6881.  
  6882.           cat <<_LT_EOF >> conftest.$ac_ext
  6883.  
  6884. /* The mapping between symbol names and symbols.  */
  6885. const struct {
  6886.   const char *name;
  6887.   void       *address;
  6888. }
  6889. lt__PROGRAM__LTX_preloaded_symbols[] =
  6890. {
  6891.   { "@PROGRAM@", (void *) 0 },
  6892. _LT_EOF
  6893.           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6894.           cat <<\_LT_EOF >> conftest.$ac_ext
  6895.   {0, (void *) 0}
  6896. };
  6897.  
  6898. /* This works around a problem in FreeBSD linker */
  6899. #ifdef FREEBSD_WORKAROUND
  6900. static const void *lt_preloaded_setup() {
  6901.   return lt__PROGRAM__LTX_preloaded_symbols;
  6902. }
  6903. #endif
  6904.  
  6905. #ifdef __cplusplus
  6906. }
  6907. #endif
  6908. _LT_EOF
  6909.           # Now try linking the two files.
  6910.           mv conftest.$ac_objext conftstm.$ac_objext
  6911.           lt_save_LIBS="$LIBS"
  6912.           lt_save_CFLAGS="$CFLAGS"
  6913.           LIBS="conftstm.$ac_objext"
  6914.           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6915.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6916.   (eval $ac_link) 2>&5
  6917.   ac_status=$?
  6918.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6919.   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6920.             pipe_works=yes
  6921.           fi
  6922.           LIBS="$lt_save_LIBS"
  6923.           CFLAGS="$lt_save_CFLAGS"
  6924.         else
  6925.           echo "cannot find nm_test_func in $nlist" >&5
  6926.         fi
  6927.       else
  6928.         echo "cannot find nm_test_var in $nlist" >&5
  6929.       fi
  6930.     else
  6931.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6932.     fi
  6933.   else
  6934.     echo "$progname: failed program was:" >&5
  6935.     cat conftest.$ac_ext >&5
  6936.   fi
  6937.   rm -rf conftest* conftst*
  6938.  
  6939.   # Do not use the global_symbol_pipe unless it works.
  6940.   if test "$pipe_works" = yes; then
  6941.     break
  6942.   else
  6943.     lt_cv_sys_global_symbol_pipe=
  6944.   fi
  6945. done
  6946.  
  6947. fi
  6948.  
  6949. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6950.   lt_cv_sys_global_symbol_to_cdecl=
  6951. fi
  6952. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6953.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6954. $as_echo "failed" >&6; }
  6955. else
  6956.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6957. $as_echo "ok" >&6; }
  6958. fi
  6959.  
  6960.  
  6961.  
  6962.  
  6963.  
  6964.  
  6965.  
  6966.  
  6967.  
  6968.  
  6969.  
  6970.  
  6971.  
  6972.  
  6973.  
  6974.  
  6975.  
  6976.  
  6977.  
  6978.  
  6979.  
  6980.  
  6981. # Check whether --enable-libtool-lock was given.
  6982. if test "${enable_libtool_lock+set}" = set; then :
  6983.   enableval=$enable_libtool_lock;
  6984. fi
  6985.  
  6986. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6987.  
  6988. # Some flags need to be propagated to the compiler or linker for good
  6989. # libtool support.
  6990. case $host in
  6991. ia64-*-hpux*)
  6992.   # Find out which ABI we are using.
  6993.   echo 'int i;' > conftest.$ac_ext
  6994.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6995.   (eval $ac_compile) 2>&5
  6996.   ac_status=$?
  6997.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6998.   test $ac_status = 0; }; then
  6999.     case `/usr/bin/file conftest.$ac_objext` in
  7000.       *ELF-32*)
  7001.         HPUX_IA64_MODE="32"
  7002.         ;;
  7003.       *ELF-64*)
  7004.         HPUX_IA64_MODE="64"
  7005.         ;;
  7006.     esac
  7007.   fi
  7008.   rm -rf conftest*
  7009.   ;;
  7010. *-*-irix6*)
  7011.   # Find out which ABI we are using.
  7012.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7013.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7014.   (eval $ac_compile) 2>&5
  7015.   ac_status=$?
  7016.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7017.   test $ac_status = 0; }; then
  7018.     if test "$lt_cv_prog_gnu_ld" = yes; then
  7019.       case `/usr/bin/file conftest.$ac_objext` in
  7020.         *32-bit*)
  7021.           LD="${LD-ld} -melf32bsmip"
  7022.           ;;
  7023.         *N32*)
  7024.           LD="${LD-ld} -melf32bmipn32"
  7025.           ;;
  7026.         *64-bit*)
  7027.           LD="${LD-ld} -melf64bmip"
  7028.         ;;
  7029.       esac
  7030.     else
  7031.       case `/usr/bin/file conftest.$ac_objext` in
  7032.         *32-bit*)
  7033.           LD="${LD-ld} -32"
  7034.           ;;
  7035.         *N32*)
  7036.           LD="${LD-ld} -n32"
  7037.           ;;
  7038.         *64-bit*)
  7039.           LD="${LD-ld} -64"
  7040.           ;;
  7041.       esac
  7042.     fi
  7043.   fi
  7044.   rm -rf conftest*
  7045.   ;;
  7046.  
  7047. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7048. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7049.   # Find out which ABI we are using.
  7050.   echo 'int i;' > conftest.$ac_ext
  7051.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7052.   (eval $ac_compile) 2>&5
  7053.   ac_status=$?
  7054.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7055.   test $ac_status = 0; }; then
  7056.     case `/usr/bin/file conftest.o` in
  7057.       *32-bit*)
  7058.         case $host in
  7059.           x86_64-*kfreebsd*-gnu)
  7060.             LD="${LD-ld} -m elf_i386_fbsd"
  7061.             ;;
  7062.           x86_64-*linux*)
  7063.             LD="${LD-ld} -m elf_i386"
  7064.             ;;
  7065.           ppc64-*linux*|powerpc64-*linux*)
  7066.             LD="${LD-ld} -m elf32ppclinux"
  7067.             ;;
  7068.           s390x-*linux*)
  7069.             LD="${LD-ld} -m elf_s390"
  7070.             ;;
  7071.           sparc64-*linux*)
  7072.             LD="${LD-ld} -m elf32_sparc"
  7073.             ;;
  7074.         esac
  7075.         ;;
  7076.       *64-bit*)
  7077.         case $host in
  7078.           x86_64-*kfreebsd*-gnu)
  7079.             LD="${LD-ld} -m elf_x86_64_fbsd"
  7080.             ;;
  7081.           x86_64-*linux*)
  7082.             LD="${LD-ld} -m elf_x86_64"
  7083.             ;;
  7084.           ppc*-*linux*|powerpc*-*linux*)
  7085.             LD="${LD-ld} -m elf64ppc"
  7086.             ;;
  7087.           s390*-*linux*|s390*-*tpf*)
  7088.             LD="${LD-ld} -m elf64_s390"
  7089.             ;;
  7090.           sparc*-*linux*)
  7091.             LD="${LD-ld} -m elf64_sparc"
  7092.             ;;
  7093.         esac
  7094.         ;;
  7095.     esac
  7096.   fi
  7097.   rm -rf conftest*
  7098.   ;;
  7099.  
  7100. *-*-sco3.2v5*)
  7101.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7102.   SAVE_CFLAGS="$CFLAGS"
  7103.   CFLAGS="$CFLAGS -belf"
  7104.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7105. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7106. if ${lt_cv_cc_needs_belf+:} false; then :
  7107.   $as_echo_n "(cached) " >&6
  7108. else
  7109.   ac_ext=c
  7110. ac_cpp='$CPP $CPPFLAGS'
  7111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7114.  
  7115.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7116. /* end confdefs.h.  */
  7117.  
  7118. int
  7119. main ()
  7120. {
  7121.  
  7122.   ;
  7123.   return 0;
  7124. }
  7125. _ACEOF
  7126. if ac_fn_c_try_link "$LINENO"; then :
  7127.   lt_cv_cc_needs_belf=yes
  7128. else
  7129.   lt_cv_cc_needs_belf=no
  7130. fi
  7131. rm -f core conftest.err conftest.$ac_objext \
  7132.     conftest$ac_exeext conftest.$ac_ext
  7133.      ac_ext=c
  7134. ac_cpp='$CPP $CPPFLAGS'
  7135. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7136. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7137. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7138.  
  7139. fi
  7140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7141. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7142.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7143.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7144.     CFLAGS="$SAVE_CFLAGS"
  7145.   fi
  7146.   ;;
  7147. sparc*-*solaris*)
  7148.   # Find out which ABI we are using.
  7149.   echo 'int i;' > conftest.$ac_ext
  7150.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7151.   (eval $ac_compile) 2>&5
  7152.   ac_status=$?
  7153.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7154.   test $ac_status = 0; }; then
  7155.     case `/usr/bin/file conftest.o` in
  7156.     *64-bit*)
  7157.       case $lt_cv_prog_gnu_ld in
  7158.       yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7159.       *)
  7160.         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7161.           LD="${LD-ld} -64"
  7162.         fi
  7163.         ;;
  7164.       esac
  7165.       ;;
  7166.     esac
  7167.   fi
  7168.   rm -rf conftest*
  7169.   ;;
  7170. esac
  7171.  
  7172. need_locks="$enable_libtool_lock"
  7173.  
  7174.  
  7175.   case $host_os in
  7176.     rhapsody* | darwin*)
  7177.     if test -n "$ac_tool_prefix"; then
  7178.   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7179. set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
  7183.   $as_echo_n "(cached) " >&6
  7184. else
  7185.   if test -n "$DSYMUTIL"; then
  7186.   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7195.     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  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. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7206. if test -n "$DSYMUTIL"; then
  7207.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7208. $as_echo "$DSYMUTIL" >&6; }
  7209. else
  7210.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7211. $as_echo "no" >&6; }
  7212. fi
  7213.  
  7214.  
  7215. fi
  7216. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7217.   ac_ct_DSYMUTIL=$DSYMUTIL
  7218.   # Extract the first word of "dsymutil", so it can be a program name with args.
  7219. set dummy dsymutil; ac_word=$2
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7221. $as_echo_n "checking for $ac_word... " >&6; }
  7222. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7223.   $as_echo_n "(cached) " >&6
  7224. else
  7225.   if test -n "$ac_ct_DSYMUTIL"; then
  7226.   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7227. else
  7228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7229. for as_dir in $PATH
  7230. do
  7231.   IFS=$as_save_IFS
  7232.   test -z "$as_dir" && as_dir=.
  7233.     for ac_exec_ext in '' $ac_executable_extensions; do
  7234.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7235.     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7236.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7237.     break 2
  7238.   fi
  7239. done
  7240.   done
  7241. IFS=$as_save_IFS
  7242.  
  7243. fi
  7244. fi
  7245. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7246. if test -n "$ac_ct_DSYMUTIL"; then
  7247.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7248. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7249. else
  7250.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7251. $as_echo "no" >&6; }
  7252. fi
  7253.  
  7254.   if test "x$ac_ct_DSYMUTIL" = x; then
  7255.     DSYMUTIL=":"
  7256.   else
  7257.     case $cross_compiling:$ac_tool_warned in
  7258. yes:)
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7260. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7261. ac_tool_warned=yes ;;
  7262. esac
  7263.     DSYMUTIL=$ac_ct_DSYMUTIL
  7264.   fi
  7265. else
  7266.   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7267. fi
  7268.  
  7269.     if test -n "$ac_tool_prefix"; then
  7270.   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7271. set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then :
  7275.   $as_echo_n "(cached) " >&6
  7276. else
  7277.   if test -n "$NMEDIT"; then
  7278.   ac_cv_prog_NMEDIT="$NMEDIT" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7287.     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  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. NMEDIT=$ac_cv_prog_NMEDIT
  7298. if test -n "$NMEDIT"; then
  7299.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7300. $as_echo "$NMEDIT" >&6; }
  7301. else
  7302.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7303. $as_echo "no" >&6; }
  7304. fi
  7305.  
  7306.  
  7307. fi
  7308. if test -z "$ac_cv_prog_NMEDIT"; then
  7309.   ac_ct_NMEDIT=$NMEDIT
  7310.   # Extract the first word of "nmedit", so it can be a program name with args.
  7311. set dummy nmedit; ac_word=$2
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7313. $as_echo_n "checking for $ac_word... " >&6; }
  7314. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7315.   $as_echo_n "(cached) " >&6
  7316. else
  7317.   if test -n "$ac_ct_NMEDIT"; then
  7318.   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7319. else
  7320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7321. for as_dir in $PATH
  7322. do
  7323.   IFS=$as_save_IFS
  7324.   test -z "$as_dir" && as_dir=.
  7325.     for ac_exec_ext in '' $ac_executable_extensions; do
  7326.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7327.     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7328.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7329.     break 2
  7330.   fi
  7331. done
  7332.   done
  7333. IFS=$as_save_IFS
  7334.  
  7335. fi
  7336. fi
  7337. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7338. if test -n "$ac_ct_NMEDIT"; then
  7339.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7340. $as_echo "$ac_ct_NMEDIT" >&6; }
  7341. else
  7342.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7343. $as_echo "no" >&6; }
  7344. fi
  7345.  
  7346.   if test "x$ac_ct_NMEDIT" = x; then
  7347.     NMEDIT=":"
  7348.   else
  7349.     case $cross_compiling:$ac_tool_warned in
  7350. yes:)
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7352. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7353. ac_tool_warned=yes ;;
  7354. esac
  7355.     NMEDIT=$ac_ct_NMEDIT
  7356.   fi
  7357. else
  7358.   NMEDIT="$ac_cv_prog_NMEDIT"
  7359. fi
  7360.  
  7361.     if test -n "$ac_tool_prefix"; then
  7362.   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7363. set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
  7367.   $as_echo_n "(cached) " >&6
  7368. else
  7369.   if test -n "$LIPO"; then
  7370.   ac_cv_prog_LIPO="$LIPO" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7379.     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  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. LIPO=$ac_cv_prog_LIPO
  7390. if test -n "$LIPO"; then
  7391.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7392. $as_echo "$LIPO" >&6; }
  7393. else
  7394.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7395. $as_echo "no" >&6; }
  7396. fi
  7397.  
  7398.  
  7399. fi
  7400. if test -z "$ac_cv_prog_LIPO"; then
  7401.   ac_ct_LIPO=$LIPO
  7402.   # Extract the first word of "lipo", so it can be a program name with args.
  7403. set dummy lipo; ac_word=$2
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7405. $as_echo_n "checking for $ac_word... " >&6; }
  7406. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7407.   $as_echo_n "(cached) " >&6
  7408. else
  7409.   if test -n "$ac_ct_LIPO"; then
  7410.   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7411. else
  7412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7413. for as_dir in $PATH
  7414. do
  7415.   IFS=$as_save_IFS
  7416.   test -z "$as_dir" && as_dir=.
  7417.     for ac_exec_ext in '' $ac_executable_extensions; do
  7418.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7419.     ac_cv_prog_ac_ct_LIPO="lipo"
  7420.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7421.     break 2
  7422.   fi
  7423. done
  7424.   done
  7425. IFS=$as_save_IFS
  7426.  
  7427. fi
  7428. fi
  7429. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7430. if test -n "$ac_ct_LIPO"; then
  7431.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7432. $as_echo "$ac_ct_LIPO" >&6; }
  7433. else
  7434.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7435. $as_echo "no" >&6; }
  7436. fi
  7437.  
  7438.   if test "x$ac_ct_LIPO" = x; then
  7439.     LIPO=":"
  7440.   else
  7441.     case $cross_compiling:$ac_tool_warned in
  7442. yes:)
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7444. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7445. ac_tool_warned=yes ;;
  7446. esac
  7447.     LIPO=$ac_ct_LIPO
  7448.   fi
  7449. else
  7450.   LIPO="$ac_cv_prog_LIPO"
  7451. fi
  7452.  
  7453.     if test -n "$ac_tool_prefix"; then
  7454.   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7455. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7457. $as_echo_n "checking for $ac_word... " >&6; }
  7458. if ${ac_cv_prog_OTOOL+:} false; then :
  7459.   $as_echo_n "(cached) " >&6
  7460. else
  7461.   if test -n "$OTOOL"; then
  7462.   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7463. else
  7464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7465. for as_dir in $PATH
  7466. do
  7467.   IFS=$as_save_IFS
  7468.   test -z "$as_dir" && as_dir=.
  7469.     for ac_exec_ext in '' $ac_executable_extensions; do
  7470.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7471.     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7472.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7473.     break 2
  7474.   fi
  7475. done
  7476.   done
  7477. IFS=$as_save_IFS
  7478.  
  7479. fi
  7480. fi
  7481. OTOOL=$ac_cv_prog_OTOOL
  7482. if test -n "$OTOOL"; then
  7483.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7484. $as_echo "$OTOOL" >&6; }
  7485. else
  7486.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7487. $as_echo "no" >&6; }
  7488. fi
  7489.  
  7490.  
  7491. fi
  7492. if test -z "$ac_cv_prog_OTOOL"; then
  7493.   ac_ct_OTOOL=$OTOOL
  7494.   # Extract the first word of "otool", so it can be a program name with args.
  7495. set dummy otool; ac_word=$2
  7496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7497. $as_echo_n "checking for $ac_word... " >&6; }
  7498. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7499.   $as_echo_n "(cached) " >&6
  7500. else
  7501.   if test -n "$ac_ct_OTOOL"; then
  7502.   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7503. else
  7504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7505. for as_dir in $PATH
  7506. do
  7507.   IFS=$as_save_IFS
  7508.   test -z "$as_dir" && as_dir=.
  7509.     for ac_exec_ext in '' $ac_executable_extensions; do
  7510.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7511.     ac_cv_prog_ac_ct_OTOOL="otool"
  7512.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7513.     break 2
  7514.   fi
  7515. done
  7516.   done
  7517. IFS=$as_save_IFS
  7518.  
  7519. fi
  7520. fi
  7521. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7522. if test -n "$ac_ct_OTOOL"; then
  7523.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7524. $as_echo "$ac_ct_OTOOL" >&6; }
  7525. else
  7526.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7527. $as_echo "no" >&6; }
  7528. fi
  7529.  
  7530.   if test "x$ac_ct_OTOOL" = x; then
  7531.     OTOOL=":"
  7532.   else
  7533.     case $cross_compiling:$ac_tool_warned in
  7534. yes:)
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7536. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7537. ac_tool_warned=yes ;;
  7538. esac
  7539.     OTOOL=$ac_ct_OTOOL
  7540.   fi
  7541. else
  7542.   OTOOL="$ac_cv_prog_OTOOL"
  7543. fi
  7544.  
  7545.     if test -n "$ac_tool_prefix"; then
  7546.   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7547. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7549. $as_echo_n "checking for $ac_word... " >&6; }
  7550. if ${ac_cv_prog_OTOOL64+:} false; then :
  7551.   $as_echo_n "(cached) " >&6
  7552. else
  7553.   if test -n "$OTOOL64"; then
  7554.   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7555. else
  7556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7557. for as_dir in $PATH
  7558. do
  7559.   IFS=$as_save_IFS
  7560.   test -z "$as_dir" && as_dir=.
  7561.     for ac_exec_ext in '' $ac_executable_extensions; do
  7562.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7563.     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7564.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7565.     break 2
  7566.   fi
  7567. done
  7568.   done
  7569. IFS=$as_save_IFS
  7570.  
  7571. fi
  7572. fi
  7573. OTOOL64=$ac_cv_prog_OTOOL64
  7574. if test -n "$OTOOL64"; then
  7575.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7576. $as_echo "$OTOOL64" >&6; }
  7577. else
  7578.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7579. $as_echo "no" >&6; }
  7580. fi
  7581.  
  7582.  
  7583. fi
  7584. if test -z "$ac_cv_prog_OTOOL64"; then
  7585.   ac_ct_OTOOL64=$OTOOL64
  7586.   # Extract the first word of "otool64", so it can be a program name with args.
  7587. set dummy otool64; ac_word=$2
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7589. $as_echo_n "checking for $ac_word... " >&6; }
  7590. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7591.   $as_echo_n "(cached) " >&6
  7592. else
  7593.   if test -n "$ac_ct_OTOOL64"; then
  7594.   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7595. else
  7596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7597. for as_dir in $PATH
  7598. do
  7599.   IFS=$as_save_IFS
  7600.   test -z "$as_dir" && as_dir=.
  7601.     for ac_exec_ext in '' $ac_executable_extensions; do
  7602.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7603.     ac_cv_prog_ac_ct_OTOOL64="otool64"
  7604.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7605.     break 2
  7606.   fi
  7607. done
  7608.   done
  7609. IFS=$as_save_IFS
  7610.  
  7611. fi
  7612. fi
  7613. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7614. if test -n "$ac_ct_OTOOL64"; then
  7615.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7616. $as_echo "$ac_ct_OTOOL64" >&6; }
  7617. else
  7618.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7619. $as_echo "no" >&6; }
  7620. fi
  7621.  
  7622.   if test "x$ac_ct_OTOOL64" = x; then
  7623.     OTOOL64=":"
  7624.   else
  7625.     case $cross_compiling:$ac_tool_warned in
  7626. yes:)
  7627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7628. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7629. ac_tool_warned=yes ;;
  7630. esac
  7631.     OTOOL64=$ac_ct_OTOOL64
  7632.   fi
  7633. else
  7634.   OTOOL64="$ac_cv_prog_OTOOL64"
  7635. fi
  7636.  
  7637.  
  7638.  
  7639.  
  7640.  
  7641.  
  7642.  
  7643.  
  7644.  
  7645.  
  7646.  
  7647.  
  7648.  
  7649.  
  7650.  
  7651.  
  7652.  
  7653.  
  7654.  
  7655.  
  7656.  
  7657.  
  7658.  
  7659.  
  7660.  
  7661.  
  7662.  
  7663.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7664. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7665. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7666.   $as_echo_n "(cached) " >&6
  7667. else
  7668.   lt_cv_apple_cc_single_mod=no
  7669.       if test -z "${LT_MULTI_MODULE}"; then
  7670.         # By default we will add the -single_module flag. You can override
  7671.         # by either setting the environment variable LT_MULTI_MODULE
  7672.         # non-empty at configure time, or by adding -multi_module to the
  7673.         # link flags.
  7674.         rm -rf libconftest.dylib*
  7675.         echo "int foo(void){return 1;}" > conftest.c
  7676.         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7677. -dynamiclib -Wl,-single_module conftest.c" >&5
  7678.         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7679.           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7680.         _lt_result=$?
  7681.         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7682.           lt_cv_apple_cc_single_mod=yes
  7683.         else
  7684.           cat conftest.err >&5
  7685.         fi
  7686.         rm -rf libconftest.dylib*
  7687.         rm -f conftest.*
  7688.       fi
  7689. fi
  7690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7691. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7692.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7693. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7694. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7695.   $as_echo_n "(cached) " >&6
  7696. else
  7697.   lt_cv_ld_exported_symbols_list=no
  7698.       save_LDFLAGS=$LDFLAGS
  7699.       echo "_main" > conftest.sym
  7700.       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7701.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7702. /* end confdefs.h.  */
  7703.  
  7704. int
  7705. main ()
  7706. {
  7707.  
  7708.   ;
  7709.   return 0;
  7710. }
  7711. _ACEOF
  7712. if ac_fn_c_try_link "$LINENO"; then :
  7713.   lt_cv_ld_exported_symbols_list=yes
  7714. else
  7715.   lt_cv_ld_exported_symbols_list=no
  7716. fi
  7717. rm -f core conftest.err conftest.$ac_objext \
  7718.     conftest$ac_exeext conftest.$ac_ext
  7719.         LDFLAGS="$save_LDFLAGS"
  7720.  
  7721. fi
  7722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7723. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7724.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7725. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7726. if ${lt_cv_ld_force_load+:} false; then :
  7727.   $as_echo_n "(cached) " >&6
  7728. else
  7729.   lt_cv_ld_force_load=no
  7730.       cat > conftest.c << _LT_EOF
  7731. int forced_loaded() { return 2;}
  7732. _LT_EOF
  7733.       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7734.       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7735.       echo "$AR cru libconftest.a conftest.o" >&5
  7736.       $AR cru libconftest.a conftest.o 2>&5
  7737.       echo "$RANLIB libconftest.a" >&5
  7738.       $RANLIB libconftest.a 2>&5
  7739.       cat > conftest.c << _LT_EOF
  7740. int main() { return 0;}
  7741. _LT_EOF
  7742.       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7743.       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7744.       _lt_result=$?
  7745.       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7746.         lt_cv_ld_force_load=yes
  7747.       else
  7748.         cat conftest.err >&5
  7749.       fi
  7750.         rm -f conftest.err libconftest.a conftest conftest.c
  7751.         rm -rf conftest.dSYM
  7752.  
  7753. fi
  7754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7755. $as_echo "$lt_cv_ld_force_load" >&6; }
  7756.     case $host_os in
  7757.     rhapsody* | darwin1.[012])
  7758.       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7759.     darwin1.*)
  7760.       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7761.     darwin*) # darwin 5.x on
  7762.       # if running on 10.5 or later, the deployment target defaults
  7763.       # to the OS version, if on x86, and 10.4, the deployment
  7764.       # target defaults to 10.4. Don't you love it?
  7765.       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7766.         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7767.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7768.         10.[012]*)
  7769.           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7770.         10.*)
  7771.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7772.       esac
  7773.     ;;
  7774.   esac
  7775.     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7776.       _lt_dar_single_mod='$single_module'
  7777.     fi
  7778.     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7779.       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7780.     else
  7781.       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7782.     fi
  7783.     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7784.       _lt_dsymutil='~$DSYMUTIL $lib || :'
  7785.     else
  7786.       _lt_dsymutil=
  7787.     fi
  7788.     ;;
  7789.   esac
  7790.  
  7791. ac_ext=c
  7792. ac_cpp='$CPP $CPPFLAGS'
  7793. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7794. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7795. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7797. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7798. # On Suns, sometimes $CPP names a directory.
  7799. if test -n "$CPP" && test -d "$CPP"; then
  7800.   CPP=
  7801. fi
  7802. if test -z "$CPP"; then
  7803.   if ${ac_cv_prog_CPP+:} false; then :
  7804.   $as_echo_n "(cached) " >&6
  7805. else
  7806.       # Double quotes because CPP needs to be expanded
  7807.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7808.     do
  7809.       ac_preproc_ok=false
  7810. for ac_c_preproc_warn_flag in '' yes
  7811. do
  7812.   # Use a header file that comes with gcc, so configuring glibc
  7813.   # with a fresh cross-compiler works.
  7814.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7815.   # <limits.h> exists even on freestanding compilers.
  7816.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7817.   # not just through cpp. "Syntax error" is here to catch this case.
  7818.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7819. /* end confdefs.h.  */
  7820. #ifdef __STDC__
  7821. # include <limits.h>
  7822. #else
  7823. # include <assert.h>
  7824. #endif
  7825.                      Syntax error
  7826. _ACEOF
  7827. if ac_fn_c_try_cpp "$LINENO"; then :
  7828.  
  7829. else
  7830.   # Broken: fails on valid input.
  7831. continue
  7832. fi
  7833. rm -f conftest.err conftest.i conftest.$ac_ext
  7834.  
  7835.   # OK, works on sane cases.  Now check whether nonexistent headers
  7836.   # can be detected and how.
  7837.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7838. /* end confdefs.h.  */
  7839. #include <ac_nonexistent.h>
  7840. _ACEOF
  7841. if ac_fn_c_try_cpp "$LINENO"; then :
  7842.   # Broken: success on invalid input.
  7843. continue
  7844. else
  7845.   # Passes both tests.
  7846. ac_preproc_ok=:
  7847. break
  7848. fi
  7849. rm -f conftest.err conftest.i conftest.$ac_ext
  7850.  
  7851. done
  7852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7853. rm -f conftest.i conftest.err conftest.$ac_ext
  7854. if $ac_preproc_ok; then :
  7855.   break
  7856. fi
  7857.  
  7858.     done
  7859.     ac_cv_prog_CPP=$CPP
  7860.  
  7861. fi
  7862.   CPP=$ac_cv_prog_CPP
  7863. else
  7864.   ac_cv_prog_CPP=$CPP
  7865. fi
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7867. $as_echo "$CPP" >&6; }
  7868. ac_preproc_ok=false
  7869. for ac_c_preproc_warn_flag in '' yes
  7870. do
  7871.   # Use a header file that comes with gcc, so configuring glibc
  7872.   # with a fresh cross-compiler works.
  7873.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7874.   # <limits.h> exists even on freestanding compilers.
  7875.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7876.   # not just through cpp. "Syntax error" is here to catch this case.
  7877.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7878. /* end confdefs.h.  */
  7879. #ifdef __STDC__
  7880. # include <limits.h>
  7881. #else
  7882. # include <assert.h>
  7883. #endif
  7884.                      Syntax error
  7885. _ACEOF
  7886. if ac_fn_c_try_cpp "$LINENO"; then :
  7887.  
  7888. else
  7889.   # Broken: fails on valid input.
  7890. continue
  7891. fi
  7892. rm -f conftest.err conftest.i conftest.$ac_ext
  7893.  
  7894.   # OK, works on sane cases.  Now check whether nonexistent headers
  7895.   # can be detected and how.
  7896.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7897. /* end confdefs.h.  */
  7898. #include <ac_nonexistent.h>
  7899. _ACEOF
  7900. if ac_fn_c_try_cpp "$LINENO"; then :
  7901.   # Broken: success on invalid input.
  7902. continue
  7903. else
  7904.   # Passes both tests.
  7905. ac_preproc_ok=:
  7906. break
  7907. fi
  7908. rm -f conftest.err conftest.i conftest.$ac_ext
  7909.  
  7910. done
  7911. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7912. rm -f conftest.i conftest.err conftest.$ac_ext
  7913. if $ac_preproc_ok; then :
  7914.  
  7915. else
  7916.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7918. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7919. See \`config.log' for more details" "$LINENO" 5; }
  7920. fi
  7921.  
  7922. ac_ext=c
  7923. ac_cpp='$CPP $CPPFLAGS'
  7924. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7925. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7926. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7927.  
  7928.  
  7929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7930. $as_echo_n "checking for ANSI C header files... " >&6; }
  7931. if ${ac_cv_header_stdc+:} false; then :
  7932.   $as_echo_n "(cached) " >&6
  7933. else
  7934.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7935. /* end confdefs.h.  */
  7936. #include <stdlib.h>
  7937. #include <stdarg.h>
  7938. #include <string.h>
  7939. #include <float.h>
  7940.  
  7941. int
  7942. main ()
  7943. {
  7944.  
  7945.   ;
  7946.   return 0;
  7947. }
  7948. _ACEOF
  7949. if ac_fn_c_try_compile "$LINENO"; then :
  7950.   ac_cv_header_stdc=yes
  7951. else
  7952.   ac_cv_header_stdc=no
  7953. fi
  7954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7955.  
  7956. if test $ac_cv_header_stdc = yes; then
  7957.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7958.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7959. /* end confdefs.h.  */
  7960. #include <string.h>
  7961.  
  7962. _ACEOF
  7963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7964.   $EGREP "memchr" >/dev/null 2>&1; then :
  7965.  
  7966. else
  7967.   ac_cv_header_stdc=no
  7968. fi
  7969. rm -f conftest*
  7970.  
  7971. fi
  7972.  
  7973. if test $ac_cv_header_stdc = yes; then
  7974.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7975.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7976. /* end confdefs.h.  */
  7977. #include <stdlib.h>
  7978.  
  7979. _ACEOF
  7980. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7981.   $EGREP "free" >/dev/null 2>&1; then :
  7982.  
  7983. else
  7984.   ac_cv_header_stdc=no
  7985. fi
  7986. rm -f conftest*
  7987.  
  7988. fi
  7989.  
  7990. if test $ac_cv_header_stdc = yes; then
  7991.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7992.   if test "$cross_compiling" = yes; then :
  7993.   :
  7994. else
  7995.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7996. /* end confdefs.h.  */
  7997. #include <ctype.h>
  7998. #include <stdlib.h>
  7999. #if ((' ' & 0x0FF) == 0x020)
  8000. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8001. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8002. #else
  8003. # define ISLOWER(c) \
  8004.                    (('a' <= (c) && (c) <= 'i') \
  8005.                      || ('j' <= (c) && (c) <= 'r') \
  8006.                      || ('s' <= (c) && (c) <= 'z'))
  8007. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8008. #endif
  8009.  
  8010. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8011. int
  8012. main ()
  8013. {
  8014.   int i;
  8015.   for (i = 0; i < 256; i++)
  8016.     if (XOR (islower (i), ISLOWER (i))
  8017.         || toupper (i) != TOUPPER (i))
  8018.       return 2;
  8019.   return 0;
  8020. }
  8021. _ACEOF
  8022. if ac_fn_c_try_run "$LINENO"; then :
  8023.  
  8024. else
  8025.   ac_cv_header_stdc=no
  8026. fi
  8027. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8028.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  8029. fi
  8030.  
  8031. fi
  8032. fi
  8033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8034. $as_echo "$ac_cv_header_stdc" >&6; }
  8035. if test $ac_cv_header_stdc = yes; then
  8036.  
  8037. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8038.  
  8039. fi
  8040.  
  8041. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8042. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8043.                   inttypes.h stdint.h unistd.h
  8044. do :
  8045.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8046. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8047. "
  8048. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8049.   cat >>confdefs.h <<_ACEOF
  8050. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8051. _ACEOF
  8052.  
  8053. fi
  8054.  
  8055. done
  8056.  
  8057.  
  8058. for ac_header in dlfcn.h
  8059. do :
  8060.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8061. "
  8062. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8063.   cat >>confdefs.h <<_ACEOF
  8064. #define HAVE_DLFCN_H 1
  8065. _ACEOF
  8066.  
  8067. fi
  8068.  
  8069. done
  8070.  
  8071.  
  8072.  
  8073.  
  8074.  
  8075.  
  8076. # Set options
  8077.  
  8078.  
  8079.  
  8080.         enable_dlopen=no
  8081.  
  8082.  
  8083.  
  8084.  
  8085.   # Check whether --enable-static was given.
  8086. if test "${enable_static+set}" = set; then :
  8087.   enableval=$enable_static; p=${PACKAGE-default}
  8088.     case $enableval in
  8089.     yes) enable_static=yes ;;
  8090.     no) enable_static=no ;;
  8091.     *)
  8092.      enable_static=no
  8093.       # Look at the argument we got.  We use all the common list separators.
  8094.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8095.       for pkg in $enableval; do
  8096.         IFS="$lt_save_ifs"
  8097.         if test "X$pkg" = "X$p"; then
  8098.           enable_static=yes
  8099.         fi
  8100.       done
  8101.       IFS="$lt_save_ifs"
  8102.       ;;
  8103.     esac
  8104. else
  8105.   enable_static=yes
  8106. fi
  8107.  
  8108.  
  8109.  
  8110.  
  8111.  
  8112.  
  8113.  
  8114.  
  8115.  
  8116.  
  8117. # Check whether --with-pic was given.
  8118. if test "${with_pic+set}" = set; then :
  8119.   withval=$with_pic; pic_mode="$withval"
  8120. else
  8121.   pic_mode=default
  8122. fi
  8123.  
  8124.  
  8125. test -z "$pic_mode" && pic_mode=default
  8126.  
  8127.  
  8128.  
  8129.  
  8130.  
  8131.  
  8132.  
  8133.   # Check whether --enable-fast-install was given.
  8134. if test "${enable_fast_install+set}" = set; then :
  8135.   enableval=$enable_fast_install; p=${PACKAGE-default}
  8136.     case $enableval in
  8137.     yes) enable_fast_install=yes ;;
  8138.     no) enable_fast_install=no ;;
  8139.     *)
  8140.       enable_fast_install=no
  8141.       # Look at the argument we got.  We use all the common list separators.
  8142.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8143.       for pkg in $enableval; do
  8144.         IFS="$lt_save_ifs"
  8145.         if test "X$pkg" = "X$p"; then
  8146.           enable_fast_install=yes
  8147.         fi
  8148.       done
  8149.       IFS="$lt_save_ifs"
  8150.       ;;
  8151.     esac
  8152. else
  8153.   enable_fast_install=yes
  8154. fi
  8155.  
  8156.  
  8157.  
  8158.  
  8159.  
  8160.  
  8161.  
  8162.  
  8163.  
  8164.  
  8165.  
  8166. # This can be used to rebuild libtool when needed
  8167. LIBTOOL_DEPS="$ltmain"
  8168.  
  8169. # Always use our own libtool.
  8170. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8171.  
  8172.  
  8173.  
  8174.  
  8175.  
  8176.  
  8177.  
  8178.  
  8179.  
  8180.  
  8181.  
  8182.  
  8183.  
  8184.  
  8185.  
  8186.  
  8187.  
  8188.  
  8189.  
  8190.  
  8191.  
  8192.  
  8193.  
  8194.  
  8195.  
  8196.  
  8197. test -z "$LN_S" && LN_S="ln -s"
  8198.  
  8199.  
  8200.  
  8201.  
  8202.  
  8203.  
  8204.  
  8205.  
  8206.  
  8207.  
  8208.  
  8209.  
  8210.  
  8211.  
  8212. if test -n "${ZSH_VERSION+set}" ; then
  8213.    setopt NO_GLOB_SUBST
  8214. fi
  8215.  
  8216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8217. $as_echo_n "checking for objdir... " >&6; }
  8218. if ${lt_cv_objdir+:} false; then :
  8219.   $as_echo_n "(cached) " >&6
  8220. else
  8221.   rm -f .libs 2>/dev/null
  8222. mkdir .libs 2>/dev/null
  8223. if test -d .libs; then
  8224.   lt_cv_objdir=.libs
  8225. else
  8226.   # MS-DOS does not allow filenames that begin with a dot.
  8227.   lt_cv_objdir=_libs
  8228. fi
  8229. rmdir .libs 2>/dev/null
  8230. fi
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8232. $as_echo "$lt_cv_objdir" >&6; }
  8233. objdir=$lt_cv_objdir
  8234.  
  8235.  
  8236.  
  8237.  
  8238.  
  8239. cat >>confdefs.h <<_ACEOF
  8240. #define LT_OBJDIR "$lt_cv_objdir/"
  8241. _ACEOF
  8242.  
  8243.  
  8244.  
  8245.  
  8246. case $host_os in
  8247. aix3*)
  8248.   # AIX sometimes has problems with the GCC collect2 program.  For some
  8249.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  8250.   # vanish in a puff of smoke.
  8251.   if test "X${COLLECT_NAMES+set}" != Xset; then
  8252.     COLLECT_NAMES=
  8253.     export COLLECT_NAMES
  8254.   fi
  8255.   ;;
  8256. esac
  8257.  
  8258. # Global variables:
  8259. ofile=libtool
  8260. can_build_shared=yes
  8261.  
  8262. # All known linkers require a `.a' archive for static linking (except MSVC,
  8263. # which needs '.lib').
  8264. libext=a
  8265.  
  8266. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8267.  
  8268. old_CC="$CC"
  8269. old_CFLAGS="$CFLAGS"
  8270.  
  8271. # Set sane defaults for various variables
  8272. test -z "$CC" && CC=cc
  8273. test -z "$LTCC" && LTCC=$CC
  8274. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8275. test -z "$LD" && LD=ld
  8276. test -z "$ac_objext" && ac_objext=o
  8277.  
  8278. for cc_temp in $compiler""; do
  8279.   case $cc_temp in
  8280.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8281.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8282.     \-*) ;;
  8283.     *) break;;
  8284.   esac
  8285. done
  8286. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8287.  
  8288.  
  8289. # Only perform the check for file, if the check method requires it
  8290. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8291. case $deplibs_check_method in
  8292. file_magic*)
  8293.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8294.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8295. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8296. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8297.   $as_echo_n "(cached) " >&6
  8298. else
  8299.   case $MAGIC_CMD in
  8300. [\\/*] |  ?:[\\/]*)
  8301.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8302.   ;;
  8303. *)
  8304.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8305.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8306.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8307.   for ac_dir in $ac_dummy; do
  8308.     IFS="$lt_save_ifs"
  8309.     test -z "$ac_dir" && ac_dir=.
  8310.     if test -f $ac_dir/${ac_tool_prefix}file; then
  8311.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8312.       if test -n "$file_magic_test_file"; then
  8313.         case $deplibs_check_method in
  8314.         "file_magic "*)
  8315.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8316.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8317.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8318.             $EGREP "$file_magic_regex" > /dev/null; then
  8319.             :
  8320.           else
  8321.             cat <<_LT_EOF 1>&2
  8322.  
  8323. *** Warning: the command libtool uses to detect shared libraries,
  8324. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8325. *** The result is that libtool may fail to recognize shared libraries
  8326. *** as such.  This will affect the creation of libtool libraries that
  8327. *** depend on shared libraries, but programs linked with such libtool
  8328. *** libraries will work regardless of this problem.  Nevertheless, you
  8329. *** may want to report the problem to your system manager and/or to
  8330. *** bug-libtool@gnu.org
  8331.  
  8332. _LT_EOF
  8333.           fi ;;
  8334.         esac
  8335.       fi
  8336.       break
  8337.     fi
  8338.   done
  8339.   IFS="$lt_save_ifs"
  8340.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8341.   ;;
  8342. esac
  8343. fi
  8344.  
  8345. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8346. if test -n "$MAGIC_CMD"; then
  8347.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8348. $as_echo "$MAGIC_CMD" >&6; }
  8349. else
  8350.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8351. $as_echo "no" >&6; }
  8352. fi
  8353.  
  8354.  
  8355.  
  8356.  
  8357.  
  8358. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8359.   if test -n "$ac_tool_prefix"; then
  8360.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8361. $as_echo_n "checking for file... " >&6; }
  8362. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8363.   $as_echo_n "(cached) " >&6
  8364. else
  8365.   case $MAGIC_CMD in
  8366. [\\/*] |  ?:[\\/]*)
  8367.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8368.   ;;
  8369. *)
  8370.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8371.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8372.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8373.   for ac_dir in $ac_dummy; do
  8374.     IFS="$lt_save_ifs"
  8375.     test -z "$ac_dir" && ac_dir=.
  8376.     if test -f $ac_dir/file; then
  8377.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8378.       if test -n "$file_magic_test_file"; then
  8379.         case $deplibs_check_method in
  8380.         "file_magic "*)
  8381.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8382.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8383.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8384.             $EGREP "$file_magic_regex" > /dev/null; then
  8385.             :
  8386.           else
  8387.             cat <<_LT_EOF 1>&2
  8388.  
  8389. *** Warning: the command libtool uses to detect shared libraries,
  8390. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8391. *** The result is that libtool may fail to recognize shared libraries
  8392. *** as such.  This will affect the creation of libtool libraries that
  8393. *** depend on shared libraries, but programs linked with such libtool
  8394. *** libraries will work regardless of this problem.  Nevertheless, you
  8395. *** may want to report the problem to your system manager and/or to
  8396. *** bug-libtool@gnu.org
  8397.  
  8398. _LT_EOF
  8399.           fi ;;
  8400.         esac
  8401.       fi
  8402.       break
  8403.     fi
  8404.   done
  8405.   IFS="$lt_save_ifs"
  8406.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8407.   ;;
  8408. esac
  8409. fi
  8410.  
  8411. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8412. if test -n "$MAGIC_CMD"; then
  8413.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8414. $as_echo "$MAGIC_CMD" >&6; }
  8415. else
  8416.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8417. $as_echo "no" >&6; }
  8418. fi
  8419.  
  8420.  
  8421.   else
  8422.     MAGIC_CMD=:
  8423.   fi
  8424. fi
  8425.  
  8426.   fi
  8427.   ;;
  8428. esac
  8429.  
  8430. # Use C for the default configuration in the libtool script
  8431.  
  8432. lt_save_CC="$CC"
  8433. ac_ext=c
  8434. ac_cpp='$CPP $CPPFLAGS'
  8435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8438.  
  8439.  
  8440. # Source file extension for C test sources.
  8441. ac_ext=c
  8442.  
  8443. # Object file extension for compiled C test sources.
  8444. objext=o
  8445. objext=$objext
  8446.  
  8447. # Code to be used in simple compile tests
  8448. lt_simple_compile_test_code="int some_variable = 0;"
  8449.  
  8450. # Code to be used in simple link tests
  8451. lt_simple_link_test_code='int main(){return(0);}'
  8452.  
  8453.  
  8454.  
  8455.  
  8456.  
  8457.  
  8458.  
  8459. # If no C compiler was specified, use CC.
  8460. LTCC=${LTCC-"$CC"}
  8461.  
  8462. # If no C compiler flags were specified, use CFLAGS.
  8463. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8464.  
  8465. # Allow CC to be a program name with arguments.
  8466. compiler=$CC
  8467.  
  8468. # Save the default compiler, since it gets overwritten when the other
  8469. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8470. compiler_DEFAULT=$CC
  8471.  
  8472. # save warnings/boilerplate of simple test code
  8473. ac_outfile=conftest.$ac_objext
  8474. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8475. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8476. _lt_compiler_boilerplate=`cat conftest.err`
  8477. $RM conftest*
  8478.  
  8479. ac_outfile=conftest.$ac_objext
  8480. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8481. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8482. _lt_linker_boilerplate=`cat conftest.err`
  8483. $RM -r conftest*
  8484.  
  8485.  
  8486. if test -n "$compiler"; then
  8487.  
  8488. lt_prog_compiler_no_builtin_flag=
  8489.  
  8490. if test "$GCC" = yes; then
  8491.   case $cc_basename in
  8492.   nvcc*)
  8493.     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8494.   *)
  8495.     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8496.   esac
  8497.  
  8498.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8499. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8500. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8501.   $as_echo_n "(cached) " >&6
  8502. else
  8503.   lt_cv_prog_compiler_rtti_exceptions=no
  8504.    ac_outfile=conftest.$ac_objext
  8505.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8506.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  8507.    # Insert the option either (1) after the last *FLAGS variable, or
  8508.    # (2) before a word containing "conftest.", or (3) at the end.
  8509.    # Note that $ac_compile itself does not contain backslashes and begins
  8510.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8511.    # The option is referenced via a variable to avoid confusing sed.
  8512.    lt_compile=`echo "$ac_compile" | $SED \
  8513.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8514.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8515.    -e 's:$: $lt_compiler_flag:'`
  8516.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8517.    (eval "$lt_compile" 2>conftest.err)
  8518.    ac_status=$?
  8519.    cat conftest.err >&5
  8520.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8521.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8522.      # The compiler can only warn and ignore the option if not recognized
  8523.      # So say no if there are warnings other than the usual output.
  8524.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8525.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8526.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8527.        lt_cv_prog_compiler_rtti_exceptions=yes
  8528.      fi
  8529.    fi
  8530.    $RM conftest*
  8531.  
  8532. fi
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8534. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8535.  
  8536. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8537.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8538. else
  8539.     :
  8540. fi
  8541.  
  8542. fi
  8543.  
  8544.  
  8545.  
  8546.  
  8547.  
  8548.  
  8549.   lt_prog_compiler_wl=
  8550. lt_prog_compiler_pic=
  8551. lt_prog_compiler_static=
  8552.  
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8554. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8555.  
  8556.   if test "$GCC" = yes; then
  8557.     lt_prog_compiler_wl='-Wl,'
  8558.     lt_prog_compiler_static='-static'
  8559.  
  8560.     case $host_os in
  8561.       aix*)
  8562.       # All AIX code is PIC.
  8563.       if test "$host_cpu" = ia64; then
  8564.         # AIX 5 now supports IA64 processor
  8565.         lt_prog_compiler_static='-Bstatic'
  8566.       fi
  8567.       ;;
  8568.  
  8569.     amigaos*)
  8570.       case $host_cpu in
  8571.       powerpc)
  8572.             # see comment about AmigaOS4 .so support
  8573.             lt_prog_compiler_pic='-fPIC'
  8574.         ;;
  8575.       m68k)
  8576.             # FIXME: we need at least 68020 code to build shared libraries, but
  8577.             # adding the `-m68020' flag to GCC prevents building anything better,
  8578.             # like `-m68040'.
  8579.             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8580.         ;;
  8581.       esac
  8582.       ;;
  8583.  
  8584.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8585.       # PIC is the default for these OSes.
  8586.       ;;
  8587.  
  8588.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8589.       # This hack is so that the source file can tell whether it is being
  8590.       # built for inclusion in a dll (and should export symbols for example).
  8591.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8592.       # (--disable-auto-import) libraries
  8593.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8594.       ;;
  8595.  
  8596.     darwin* | rhapsody*)
  8597.       # PIC is the default on this platform
  8598.       # Common symbols not allowed in MH_DYLIB files
  8599.       lt_prog_compiler_pic='-fno-common'
  8600.       ;;
  8601.  
  8602.     haiku*)
  8603.       # PIC is the default for Haiku.
  8604.       # The "-static" flag exists, but is broken.
  8605.       lt_prog_compiler_static=
  8606.       ;;
  8607.  
  8608.     hpux*)
  8609.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8610.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  8611.       # sets the default TLS model and affects inlining.
  8612.       case $host_cpu in
  8613.       hppa*64*)
  8614.         # +Z the default
  8615.         ;;
  8616.       *)
  8617.         lt_prog_compiler_pic='-fPIC'
  8618.         ;;
  8619.       esac
  8620.       ;;
  8621.  
  8622.     interix[3-9]*)
  8623.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8624.       # Instead, we relocate shared libraries at runtime.
  8625.       ;;
  8626.  
  8627.     msdosdjgpp*)
  8628.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  8629.       # on systems that don't support them.
  8630.       lt_prog_compiler_can_build_shared=no
  8631.       enable_shared=no
  8632.       ;;
  8633.  
  8634.     *nto* | *qnx*)
  8635.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8636.       # it will coredump.
  8637.       lt_prog_compiler_pic='-fPIC -shared'
  8638.       ;;
  8639.  
  8640.     sysv4*MP*)
  8641.       if test -d /usr/nec; then
  8642.         lt_prog_compiler_pic=-Kconform_pic
  8643.       fi
  8644.       ;;
  8645.  
  8646.     *)
  8647.       lt_prog_compiler_pic='-fPIC'
  8648.       ;;
  8649.     esac
  8650.  
  8651.     case $cc_basename in
  8652.     nvcc*) # Cuda Compiler Driver 2.2
  8653.       lt_prog_compiler_wl='-Xlinker '
  8654.       lt_prog_compiler_pic='-Xcompiler -fPIC'
  8655.       ;;
  8656.     esac
  8657.   else
  8658.     # PORTME Check for flag to pass linker flags through the system compiler.
  8659.     case $host_os in
  8660.     aix*)
  8661.       lt_prog_compiler_wl='-Wl,'
  8662.       if test "$host_cpu" = ia64; then
  8663.         # AIX 5 now supports IA64 processor
  8664.         lt_prog_compiler_static='-Bstatic'
  8665.       else
  8666.         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8667.       fi
  8668.       ;;
  8669.  
  8670.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8671.       # This hack is so that the source file can tell whether it is being
  8672.       # built for inclusion in a dll (and should export symbols for example).
  8673.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8674.       ;;
  8675.  
  8676.     hpux9* | hpux10* | hpux11*)
  8677.       lt_prog_compiler_wl='-Wl,'
  8678.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8679.       # not for PA HP-UX.
  8680.       case $host_cpu in
  8681.       hppa*64*|ia64*)
  8682.         # +Z the default
  8683.         ;;
  8684.       *)
  8685.         lt_prog_compiler_pic='+Z'
  8686.         ;;
  8687.       esac
  8688.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8689.       lt_prog_compiler_static='${wl}-a ${wl}archive'
  8690.       ;;
  8691.  
  8692.     irix5* | irix6* | nonstopux*)
  8693.       lt_prog_compiler_wl='-Wl,'
  8694.       # PIC (with -KPIC) is the default.
  8695.       lt_prog_compiler_static='-non_shared'
  8696.       ;;
  8697.  
  8698.     linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8699.       case $cc_basename in
  8700.       # old Intel for x86_64 which still supported -KPIC.
  8701.       ecc*)
  8702.         lt_prog_compiler_wl='-Wl,'
  8703.         lt_prog_compiler_pic='-KPIC'
  8704.         lt_prog_compiler_static='-static'
  8705.         ;;
  8706.       # icc used to be incompatible with GCC.
  8707.       # ICC 10 doesn't accept -KPIC any more.
  8708.       icc* | ifort*)
  8709.         lt_prog_compiler_wl='-Wl,'
  8710.         lt_prog_compiler_pic='-fPIC'
  8711.         lt_prog_compiler_static='-static'
  8712.         ;;
  8713.       # Lahey Fortran 8.1.
  8714.       lf95*)
  8715.         lt_prog_compiler_wl='-Wl,'
  8716.         lt_prog_compiler_pic='--shared'
  8717.         lt_prog_compiler_static='--static'
  8718.         ;;
  8719.       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8720.         # Portland Group compilers (*not* the Pentium gcc compiler,
  8721.         # which looks to be a dead project)
  8722.         lt_prog_compiler_wl='-Wl,'
  8723.         lt_prog_compiler_pic='-fpic'
  8724.         lt_prog_compiler_static='-Bstatic'
  8725.         ;;
  8726.       ccc*)
  8727.         lt_prog_compiler_wl='-Wl,'
  8728.         # All Alpha code is PIC.
  8729.         lt_prog_compiler_static='-non_shared'
  8730.         ;;
  8731.       xl* | bgxl* | bgf* | mpixl*)
  8732.         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8733.         lt_prog_compiler_wl='-Wl,'
  8734.         lt_prog_compiler_pic='-qpic'
  8735.         lt_prog_compiler_static='-qstaticlink'
  8736.         ;;
  8737.       *)
  8738.         case `$CC -V 2>&1 | sed 5q` in
  8739.         *Sun\ F* | *Sun*Fortran*)
  8740.           # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8741.           lt_prog_compiler_pic='-KPIC'
  8742.           lt_prog_compiler_static='-Bstatic'
  8743.           lt_prog_compiler_wl=''
  8744.           ;;
  8745.         *Sun\ C*)
  8746.           # Sun C 5.9
  8747.           lt_prog_compiler_pic='-KPIC'
  8748.           lt_prog_compiler_static='-Bstatic'
  8749.           lt_prog_compiler_wl='-Wl,'
  8750.           ;;
  8751.         esac
  8752.         ;;
  8753.       esac
  8754.       ;;
  8755.  
  8756.     newsos6)
  8757.       lt_prog_compiler_pic='-KPIC'
  8758.       lt_prog_compiler_static='-Bstatic'
  8759.       ;;
  8760.  
  8761.     *nto* | *qnx*)
  8762.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8763.       # it will coredump.
  8764.       lt_prog_compiler_pic='-fPIC -shared'
  8765.       ;;
  8766.  
  8767.     osf3* | osf4* | osf5*)
  8768.       lt_prog_compiler_wl='-Wl,'
  8769.       # All OSF/1 code is PIC.
  8770.       lt_prog_compiler_static='-non_shared'
  8771.       ;;
  8772.  
  8773.     rdos*)
  8774.       lt_prog_compiler_static='-non_shared'
  8775.       ;;
  8776.  
  8777.     solaris*)
  8778.       lt_prog_compiler_pic='-KPIC'
  8779.       lt_prog_compiler_static='-Bstatic'
  8780.       case $cc_basename in
  8781.       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8782.         lt_prog_compiler_wl='-Qoption ld ';;
  8783.       *)
  8784.         lt_prog_compiler_wl='-Wl,';;
  8785.       esac
  8786.       ;;
  8787.  
  8788.     sunos4*)
  8789.       lt_prog_compiler_wl='-Qoption ld '
  8790.       lt_prog_compiler_pic='-PIC'
  8791.       lt_prog_compiler_static='-Bstatic'
  8792.       ;;
  8793.  
  8794.     sysv4 | sysv4.2uw2* | sysv4.3*)
  8795.       lt_prog_compiler_wl='-Wl,'
  8796.       lt_prog_compiler_pic='-KPIC'
  8797.       lt_prog_compiler_static='-Bstatic'
  8798.       ;;
  8799.  
  8800.     sysv4*MP*)
  8801.       if test -d /usr/nec ;then
  8802.         lt_prog_compiler_pic='-Kconform_pic'
  8803.         lt_prog_compiler_static='-Bstatic'
  8804.       fi
  8805.       ;;
  8806.  
  8807.     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8808.       lt_prog_compiler_wl='-Wl,'
  8809.       lt_prog_compiler_pic='-KPIC'
  8810.       lt_prog_compiler_static='-Bstatic'
  8811.       ;;
  8812.  
  8813.     unicos*)
  8814.       lt_prog_compiler_wl='-Wl,'
  8815.       lt_prog_compiler_can_build_shared=no
  8816.       ;;
  8817.  
  8818.     uts4*)
  8819.       lt_prog_compiler_pic='-pic'
  8820.       lt_prog_compiler_static='-Bstatic'
  8821.       ;;
  8822.  
  8823.     *)
  8824.       lt_prog_compiler_can_build_shared=no
  8825.       ;;
  8826.     esac
  8827.   fi
  8828.  
  8829. case $host_os in
  8830.   # For platforms which do not support PIC, -DPIC is meaningless:
  8831.   *djgpp*)
  8832.     lt_prog_compiler_pic=
  8833.     ;;
  8834.   *)
  8835.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8836.     ;;
  8837. esac
  8838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8839. $as_echo "$lt_prog_compiler_pic" >&6; }
  8840.  
  8841.  
  8842.  
  8843.  
  8844.  
  8845.  
  8846. #
  8847. # Check to make sure the PIC flag actually works.
  8848. #
  8849. if test -n "$lt_prog_compiler_pic"; then
  8850.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8851. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8852. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8853.   $as_echo_n "(cached) " >&6
  8854. else
  8855.   lt_cv_prog_compiler_pic_works=no
  8856.    ac_outfile=conftest.$ac_objext
  8857.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8858.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8859.    # Insert the option either (1) after the last *FLAGS variable, or
  8860.    # (2) before a word containing "conftest.", or (3) at the end.
  8861.    # Note that $ac_compile itself does not contain backslashes and begins
  8862.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8863.    # The option is referenced via a variable to avoid confusing sed.
  8864.    lt_compile=`echo "$ac_compile" | $SED \
  8865.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8866.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8867.    -e 's:$: $lt_compiler_flag:'`
  8868.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8869.    (eval "$lt_compile" 2>conftest.err)
  8870.    ac_status=$?
  8871.    cat conftest.err >&5
  8872.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8873.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8874.      # The compiler can only warn and ignore the option if not recognized
  8875.      # So say no if there are warnings other than the usual output.
  8876.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8877.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8878.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8879.        lt_cv_prog_compiler_pic_works=yes
  8880.      fi
  8881.    fi
  8882.    $RM conftest*
  8883.  
  8884. fi
  8885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8886. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8887.  
  8888. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8889.     case $lt_prog_compiler_pic in
  8890.      "" | " "*) ;;
  8891.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8892.      esac
  8893. else
  8894.     lt_prog_compiler_pic=
  8895.      lt_prog_compiler_can_build_shared=no
  8896. fi
  8897.  
  8898. fi
  8899.  
  8900.  
  8901.  
  8902.  
  8903.  
  8904.  
  8905. #
  8906. # Check to make sure the static flag actually works.
  8907. #
  8908. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8910. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8911. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8912.   $as_echo_n "(cached) " >&6
  8913. else
  8914.   lt_cv_prog_compiler_static_works=no
  8915.    save_LDFLAGS="$LDFLAGS"
  8916.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8917.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8918.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8919.      # The linker can only warn and ignore the option if not recognized
  8920.      # So say no if there are warnings
  8921.      if test -s conftest.err; then
  8922.        # Append any errors to the config.log.
  8923.        cat conftest.err 1>&5
  8924.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8925.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8926.        if diff conftest.exp conftest.er2 >/dev/null; then
  8927.          lt_cv_prog_compiler_static_works=yes
  8928.        fi
  8929.      else
  8930.        lt_cv_prog_compiler_static_works=yes
  8931.      fi
  8932.    fi
  8933.    $RM -r conftest*
  8934.    LDFLAGS="$save_LDFLAGS"
  8935.  
  8936. fi
  8937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8938. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8939.  
  8940. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8941.     :
  8942. else
  8943.     lt_prog_compiler_static=
  8944. fi
  8945.  
  8946.  
  8947.  
  8948.  
  8949.  
  8950.  
  8951.  
  8952.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8953. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8954. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8955.   $as_echo_n "(cached) " >&6
  8956. else
  8957.   lt_cv_prog_compiler_c_o=no
  8958.    $RM -r conftest 2>/dev/null
  8959.    mkdir conftest
  8960.    cd conftest
  8961.    mkdir out
  8962.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8963.  
  8964.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  8965.    # Insert the option either (1) after the last *FLAGS variable, or
  8966.    # (2) before a word containing "conftest.", or (3) at the end.
  8967.    # Note that $ac_compile itself does not contain backslashes and begins
  8968.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8969.    lt_compile=`echo "$ac_compile" | $SED \
  8970.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8971.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8972.    -e 's:$: $lt_compiler_flag:'`
  8973.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8974.    (eval "$lt_compile" 2>out/conftest.err)
  8975.    ac_status=$?
  8976.    cat out/conftest.err >&5
  8977.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8978.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8979.    then
  8980.      # The compiler can only warn and ignore the option if not recognized
  8981.      # So say no if there are warnings
  8982.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8983.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8984.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8985.        lt_cv_prog_compiler_c_o=yes
  8986.      fi
  8987.    fi
  8988.    chmod u+w . 2>&5
  8989.    $RM conftest*
  8990.    # SGI C++ compiler will create directory out/ii_files/ for
  8991.    # template instantiation
  8992.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8993.    $RM out/* && rmdir out
  8994.    cd ..
  8995.    $RM -r conftest
  8996.    $RM conftest*
  8997.  
  8998. fi
  8999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9000. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9001.  
  9002.  
  9003.  
  9004.  
  9005.  
  9006.  
  9007.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9008. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9009. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9010.   $as_echo_n "(cached) " >&6
  9011. else
  9012.   lt_cv_prog_compiler_c_o=no
  9013.    $RM -r conftest 2>/dev/null
  9014.    mkdir conftest
  9015.    cd conftest
  9016.    mkdir out
  9017.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9018.  
  9019.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  9020.    # Insert the option either (1) after the last *FLAGS variable, or
  9021.    # (2) before a word containing "conftest.", or (3) at the end.
  9022.    # Note that $ac_compile itself does not contain backslashes and begins
  9023.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  9024.    lt_compile=`echo "$ac_compile" | $SED \
  9025.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9026.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9027.    -e 's:$: $lt_compiler_flag:'`
  9028.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9029.    (eval "$lt_compile" 2>out/conftest.err)
  9030.    ac_status=$?
  9031.    cat out/conftest.err >&5
  9032.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9033.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9034.    then
  9035.      # The compiler can only warn and ignore the option if not recognized
  9036.      # So say no if there are warnings
  9037.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9038.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9039.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9040.        lt_cv_prog_compiler_c_o=yes
  9041.      fi
  9042.    fi
  9043.    chmod u+w . 2>&5
  9044.    $RM conftest*
  9045.    # SGI C++ compiler will create directory out/ii_files/ for
  9046.    # template instantiation
  9047.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9048.    $RM out/* && rmdir out
  9049.    cd ..
  9050.    $RM -r conftest
  9051.    $RM conftest*
  9052.  
  9053. fi
  9054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9055. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9056.  
  9057.  
  9058.  
  9059.  
  9060. hard_links="nottested"
  9061. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9062.   # do not overwrite the value of need_locks provided by the user
  9063.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9064. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9065.   hard_links=yes
  9066.   $RM conftest*
  9067.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9068.   touch conftest.a
  9069.   ln conftest.a conftest.b 2>&5 || hard_links=no
  9070.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9071.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9072. $as_echo "$hard_links" >&6; }
  9073.   if test "$hard_links" = no; then
  9074.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9075. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9076.     need_locks=warn
  9077.   fi
  9078. else
  9079.   need_locks=no
  9080. fi
  9081.  
  9082.  
  9083.  
  9084.  
  9085.  
  9086.  
  9087.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9088. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9089.  
  9090.   runpath_var=
  9091.   allow_undefined_flag=
  9092.   always_export_symbols=no
  9093.   archive_cmds=
  9094.   archive_expsym_cmds=
  9095.   compiler_needs_object=no
  9096.   enable_shared_with_static_runtimes=no
  9097.   export_dynamic_flag_spec=
  9098.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9099.   hardcode_automatic=no
  9100.   hardcode_direct=no
  9101.   hardcode_direct_absolute=no
  9102.   hardcode_libdir_flag_spec=
  9103.   hardcode_libdir_flag_spec_ld=
  9104.   hardcode_libdir_separator=
  9105.   hardcode_minus_L=no
  9106.   hardcode_shlibpath_var=unsupported
  9107.   inherit_rpath=no
  9108.   link_all_deplibs=unknown
  9109.   module_cmds=
  9110.   module_expsym_cmds=
  9111.   old_archive_from_new_cmds=
  9112.   old_archive_from_expsyms_cmds=
  9113.   thread_safe_flag_spec=
  9114.   whole_archive_flag_spec=
  9115.   # include_expsyms should be a list of space-separated symbols to be *always*
  9116.   # included in the symbol list
  9117.   include_expsyms=
  9118.   # exclude_expsyms can be an extended regexp of symbols to exclude
  9119.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9120.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9121.   # as well as any symbol that contains `d'.
  9122.   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9123.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9124.   # platforms (ab)use it in PIC code, but their linkers get confused if
  9125.   # the symbol is explicitly referenced.  Since portable code cannot
  9126.   # rely on this symbol name, it's probably fine to never include it in
  9127.   # preloaded symbol tables.
  9128.   # Exclude shared library initialization/finalization symbols.
  9129.   extract_expsyms_cmds=
  9130.  
  9131.   case $host_os in
  9132.   cygwin* | mingw* | pw32* | cegcc*)
  9133.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9134.     # When not using gcc, we currently assume that we are using
  9135.     # Microsoft Visual C++.
  9136.     if test "$GCC" != yes; then
  9137.       with_gnu_ld=no
  9138.     fi
  9139.     ;;
  9140.   interix*)
  9141.     # we just hope/assume this is gcc and not c89 (= MSVC++)
  9142.     with_gnu_ld=yes
  9143.     ;;
  9144.   openbsd*)
  9145.     with_gnu_ld=no
  9146.     ;;
  9147.   esac
  9148.  
  9149.   ld_shlibs=yes
  9150.  
  9151.   # On some targets, GNU ld is compatible enough with the native linker
  9152.   # that we're better off using the native interface for both.
  9153.   lt_use_gnu_ld_interface=no
  9154.   if test "$with_gnu_ld" = yes; then
  9155.     case $host_os in
  9156.       aix*)
  9157.         # The AIX port of GNU ld has always aspired to compatibility
  9158.         # with the native linker.  However, as the warning in the GNU ld
  9159.         # block says, versions before 2.19.5* couldn't really create working
  9160.         # shared libraries, regardless of the interface used.
  9161.         case `$LD -v 2>&1` in
  9162.           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9163.           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9164.           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9165.           *)
  9166.             lt_use_gnu_ld_interface=yes
  9167.             ;;
  9168.         esac
  9169.         ;;
  9170.       *)
  9171.         lt_use_gnu_ld_interface=yes
  9172.         ;;
  9173.     esac
  9174.   fi
  9175.  
  9176.   if test "$lt_use_gnu_ld_interface" = yes; then
  9177.     # If archive_cmds runs LD, not CC, wlarc should be empty
  9178.     wlarc='${wl}'
  9179.  
  9180.     # Set some defaults for GNU ld with shared library support. These
  9181.     # are reset later if shared libraries are not supported. Putting them
  9182.     # here allows them to be overridden if necessary.
  9183.     runpath_var=LD_RUN_PATH
  9184.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9185.     export_dynamic_flag_spec='${wl}--export-dynamic'
  9186.     # ancient GNU ld didn't support --whole-archive et. al.
  9187.     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9188.       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9189.     else
  9190.       whole_archive_flag_spec=
  9191.     fi
  9192.     supports_anon_versioning=no
  9193.     case `$LD -v 2>&1` in
  9194.       *GNU\ gold*) supports_anon_versioning=yes ;;
  9195.       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9196.       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9197.       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9198.       *\ 2.11.*) ;; # other 2.11 versions
  9199.       *) supports_anon_versioning=yes ;;
  9200.     esac
  9201.  
  9202.     # See if GNU ld supports shared libraries.
  9203.     case $host_os in
  9204.     aix[3-9]*)
  9205.       # On AIX/PPC, the GNU linker is very broken
  9206.       if test "$host_cpu" != ia64; then
  9207.         ld_shlibs=no
  9208.         cat <<_LT_EOF 1>&2
  9209.  
  9210. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9211. *** to be unable to reliably create shared libraries on AIX.
  9212. *** Therefore, libtool is disabling shared libraries support.  If you
  9213. *** really care for shared libraries, you may want to install binutils
  9214. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9215. *** You will then need to restart the configuration process.
  9216.  
  9217. _LT_EOF
  9218.       fi
  9219.       ;;
  9220.  
  9221.     amigaos*)
  9222.       case $host_cpu in
  9223.       powerpc)
  9224.             # see comment about AmigaOS4 .so support
  9225.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9226.             archive_expsym_cmds=''
  9227.         ;;
  9228.       m68k)
  9229.             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)'
  9230.             hardcode_libdir_flag_spec='-L$libdir'
  9231.             hardcode_minus_L=yes
  9232.         ;;
  9233.       esac
  9234.       ;;
  9235.  
  9236.     beos*)
  9237.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9238.         allow_undefined_flag=unsupported
  9239.         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9240.         # support --undefined.  This deserves some investigation.  FIXME
  9241.         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9242.       else
  9243.         ld_shlibs=no
  9244.       fi
  9245.       ;;
  9246.  
  9247.     cygwin* | mingw* | pw32* | cegcc*)
  9248.       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9249.       # as there is no search path for DLLs.
  9250.       hardcode_libdir_flag_spec='-L$libdir'
  9251.       export_dynamic_flag_spec='${wl}--export-all-symbols'
  9252.       allow_undefined_flag=unsupported
  9253.       always_export_symbols=no
  9254.       enable_shared_with_static_runtimes=yes
  9255.       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9256.  
  9257.       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9258.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9259.         # If the export-symbols file already is a .def file (1st line
  9260.         # is EXPORTS), use it as is; otherwise, prepend...
  9261.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9262.           cp $export_symbols $output_objdir/$soname.def;
  9263.         else
  9264.           echo EXPORTS > $output_objdir/$soname.def;
  9265.           cat $export_symbols >> $output_objdir/$soname.def;
  9266.         fi~
  9267.         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9268.       else
  9269.         ld_shlibs=no
  9270.       fi
  9271.       ;;
  9272.  
  9273.     haiku*)
  9274.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9275.       link_all_deplibs=yes
  9276.       ;;
  9277.  
  9278.     interix[3-9]*)
  9279.       hardcode_direct=no
  9280.       hardcode_shlibpath_var=no
  9281.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9282.       export_dynamic_flag_spec='${wl}-E'
  9283.       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9284.       # Instead, shared libraries are loaded at an image base (0x10000000 by
  9285.       # default) and relocated if they conflict, which is a slow very memory
  9286.       # consuming and fragmenting process.  To avoid this, we pick a random,
  9287.       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9288.       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  9289.       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9290.       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'
  9291.       ;;
  9292.  
  9293.     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9294.       tmp_diet=no
  9295.       if test "$host_os" = linux-dietlibc; then
  9296.         case $cc_basename in
  9297.           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
  9298.         esac
  9299.       fi
  9300.       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9301.          && test "$tmp_diet" = no
  9302.       then
  9303.         tmp_addflag=
  9304.         tmp_sharedflag='-shared'
  9305.         case $cc_basename,$host_cpu in
  9306.         pgcc*)                          # Portland Group C compiler
  9307.           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'
  9308.           tmp_addflag=' $pic_flag'
  9309.           ;;
  9310.         pgf77* | pgf90* | pgf95* | pgfortran*)
  9311.                                         # Portland Group f77 and f90 compilers
  9312.           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'
  9313.           tmp_addflag=' $pic_flag -Mnomain' ;;
  9314.         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
  9315.           tmp_addflag=' -i_dynamic' ;;
  9316.         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
  9317.           tmp_addflag=' -i_dynamic -nofor_main' ;;
  9318.         ifc* | ifort*)                  # Intel Fortran compiler
  9319.           tmp_addflag=' -nofor_main' ;;
  9320.         lf95*)                          # Lahey Fortran 8.1
  9321.           whole_archive_flag_spec=
  9322.           tmp_sharedflag='--shared' ;;
  9323.         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9324.           tmp_sharedflag='-qmkshrobj'
  9325.           tmp_addflag= ;;
  9326.         nvcc*)  # Cuda Compiler Driver 2.2
  9327.           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'
  9328.           compiler_needs_object=yes
  9329.           ;;
  9330.         esac
  9331.         case `$CC -V 2>&1 | sed 5q` in
  9332.         *Sun\ C*)                       # Sun C 5.9
  9333.           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'
  9334.           compiler_needs_object=yes
  9335.           tmp_sharedflag='-G' ;;
  9336.         *Sun\ F*)                       # Sun Fortran 8.3
  9337.           tmp_sharedflag='-G' ;;
  9338.         esac
  9339.         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9340.  
  9341.         if test "x$supports_anon_versioning" = xyes; then
  9342.           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9343.             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9344.             echo "local: *; };" >> $output_objdir/$libname.ver~
  9345.             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9346.         fi
  9347.  
  9348.         case $cc_basename in
  9349.         xlf* | bgf* | bgxlf* | mpixlf*)
  9350.           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9351.           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9352.           hardcode_libdir_flag_spec=
  9353.           hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9354.           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9355.           if test "x$supports_anon_versioning" = xyes; then
  9356.             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9357.               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9358.               echo "local: *; };" >> $output_objdir/$libname.ver~
  9359.               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9360.           fi
  9361.           ;;
  9362.         esac
  9363.       else
  9364.         ld_shlibs=no
  9365.       fi
  9366.       ;;
  9367.  
  9368.     netbsd*)
  9369.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9370.         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9371.         wlarc=
  9372.       else
  9373.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9374.         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9375.       fi
  9376.       ;;
  9377.  
  9378.     solaris*)
  9379.       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9380.         ld_shlibs=no
  9381.         cat <<_LT_EOF 1>&2
  9382.  
  9383. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9384. *** create shared libraries on Solaris systems.  Therefore, libtool
  9385. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9386. *** binutils to release 2.9.1 or newer.  Another option is to modify
  9387. *** your PATH or compiler configuration so that the native linker is
  9388. *** used, and then restart.
  9389.  
  9390. _LT_EOF
  9391.       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9392.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9393.         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9394.       else
  9395.         ld_shlibs=no
  9396.       fi
  9397.       ;;
  9398.  
  9399.     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9400.       case `$LD -v 2>&1` in
  9401.         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9402.         ld_shlibs=no
  9403.         cat <<_LT_EOF 1>&2
  9404.  
  9405. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9406. *** reliably create shared libraries on SCO systems.  Therefore, libtool
  9407. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9408. *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  9409. *** your PATH or compiler configuration so that the native linker is
  9410. *** used, and then restart.
  9411.  
  9412. _LT_EOF
  9413.         ;;
  9414.         *)
  9415.           # For security reasons, it is highly recommended that you always
  9416.           # use absolute paths for naming shared libraries, and exclude the
  9417.           # DT_RUNPATH tag from executables and libraries.  But doing so
  9418.           # requires that you compile everything twice, which is a pain.
  9419.           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9420.             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9421.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9422.             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9423.           else
  9424.             ld_shlibs=no
  9425.           fi
  9426.         ;;
  9427.       esac
  9428.       ;;
  9429.  
  9430.     sunos4*)
  9431.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9432.       wlarc=
  9433.       hardcode_direct=yes
  9434.       hardcode_shlibpath_var=no
  9435.       ;;
  9436.  
  9437.     *)
  9438.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9439.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9440.         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9441.       else
  9442.         ld_shlibs=no
  9443.       fi
  9444.       ;;
  9445.     esac
  9446.  
  9447.     if test "$ld_shlibs" = no; then
  9448.       runpath_var=
  9449.       hardcode_libdir_flag_spec=
  9450.       export_dynamic_flag_spec=
  9451.       whole_archive_flag_spec=
  9452.     fi
  9453.   else
  9454.     # PORTME fill in a description of your system's linker (not GNU ld)
  9455.     case $host_os in
  9456.     aix3*)
  9457.       allow_undefined_flag=unsupported
  9458.       always_export_symbols=yes
  9459.       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'
  9460.       # Note: this linker hardcodes the directories in LIBPATH if there
  9461.       # are no directories specified by -L.
  9462.       hardcode_minus_L=yes
  9463.       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9464.         # Neither direct hardcoding nor static linking is supported with a
  9465.         # broken collect2.
  9466.         hardcode_direct=unsupported
  9467.       fi
  9468.       ;;
  9469.  
  9470.     aix[4-9]*)
  9471.       if test "$host_cpu" = ia64; then
  9472.         # On IA64, the linker does run time linking by default, so we don't
  9473.         # have to do anything special.
  9474.         aix_use_runtimelinking=no
  9475.         exp_sym_flag='-Bexport'
  9476.         no_entry_flag=""
  9477.       else
  9478.         # If we're using GNU nm, then we don't want the "-C" option.
  9479.         # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9480.         # Also, AIX nm treats weak defined symbols like other global
  9481.         # defined symbols, whereas GNU nm marks them as "W".
  9482.         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9483.           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'
  9484.         else
  9485.           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'
  9486.         fi
  9487.         aix_use_runtimelinking=no
  9488.  
  9489.         # Test if we are trying to use run time linking or normal
  9490.         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9491.         # need to do runtime linking.
  9492.         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9493.           for ld_flag in $LDFLAGS; do
  9494.           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9495.             aix_use_runtimelinking=yes
  9496.             break
  9497.           fi
  9498.           done
  9499.           ;;
  9500.         esac
  9501.  
  9502.         exp_sym_flag='-bexport'
  9503.         no_entry_flag='-bnoentry'
  9504.       fi
  9505.  
  9506.       # When large executables or shared objects are built, AIX ld can
  9507.       # have problems creating the table of contents.  If linking a library
  9508.       # or program results in "error TOC overflow" add -mminimal-toc to
  9509.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  9510.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9511.  
  9512.       archive_cmds=''
  9513.       hardcode_direct=yes
  9514.       hardcode_direct_absolute=yes
  9515.       hardcode_libdir_separator=':'
  9516.       link_all_deplibs=yes
  9517.       file_list_spec='${wl}-f,'
  9518.  
  9519.       if test "$GCC" = yes; then
  9520.         case $host_os in aix4.[012]|aix4.[012].*)
  9521.         # We only want to do this on AIX 4.2 and lower, the check
  9522.         # below for broken collect2 doesn't work under 4.3+
  9523.           collect2name=`${CC} -print-prog-name=collect2`
  9524.           if test -f "$collect2name" &&
  9525.            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9526.           then
  9527.           # We have reworked collect2
  9528.           :
  9529.           else
  9530.           # We have old collect2
  9531.           hardcode_direct=unsupported
  9532.           # It fails to find uninstalled libraries when the uninstalled
  9533.           # path is not listed in the libpath.  Setting hardcode_minus_L
  9534.           # to unsupported forces relinking
  9535.           hardcode_minus_L=yes
  9536.           hardcode_libdir_flag_spec='-L$libdir'
  9537.           hardcode_libdir_separator=
  9538.           fi
  9539.           ;;
  9540.         esac
  9541.         shared_flag='-shared'
  9542.         if test "$aix_use_runtimelinking" = yes; then
  9543.           shared_flag="$shared_flag "'${wl}-G'
  9544.         fi
  9545.       else
  9546.         # not using gcc
  9547.         if test "$host_cpu" = ia64; then
  9548.         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9549.         # chokes on -Wl,-G. The following line is correct:
  9550.           shared_flag='-G'
  9551.         else
  9552.           if test "$aix_use_runtimelinking" = yes; then
  9553.             shared_flag='${wl}-G'
  9554.           else
  9555.             shared_flag='${wl}-bM:SRE'
  9556.           fi
  9557.         fi
  9558.       fi
  9559.  
  9560.       export_dynamic_flag_spec='${wl}-bexpall'
  9561.       # It seems that -bexpall does not export symbols beginning with
  9562.       # underscore (_), so it is better to generate a list of symbols to export.
  9563.       always_export_symbols=yes
  9564.       if test "$aix_use_runtimelinking" = yes; then
  9565.         # Warning - without using the other runtime loading flags (-brtl),
  9566.         # -berok will link without error, but may produce a broken library.
  9567.         allow_undefined_flag='-berok'
  9568.         # Determine the default libpath from the value encoded in an
  9569.         # empty executable.
  9570.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9571. /* end confdefs.h.  */
  9572.  
  9573. int
  9574. main ()
  9575. {
  9576.  
  9577.   ;
  9578.   return 0;
  9579. }
  9580. _ACEOF
  9581. if ac_fn_c_try_link "$LINENO"; then :
  9582.  
  9583. lt_aix_libpath_sed='
  9584.     /Import File Strings/,/^$/ {
  9585.         /^0/ {
  9586.             s/^0  *\(.*\)$/\1/
  9587.             p
  9588.         }
  9589.     }'
  9590. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9591. # Check for a 64-bit object if we didn't find anything.
  9592. if test -z "$aix_libpath"; then
  9593.   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9594. fi
  9595. fi
  9596. rm -f core conftest.err conftest.$ac_objext \
  9597.     conftest$ac_exeext conftest.$ac_ext
  9598. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9599.  
  9600.         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9601.         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"
  9602.       else
  9603.         if test "$host_cpu" = ia64; then
  9604.           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9605.           allow_undefined_flag="-z nodefs"
  9606.           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"
  9607.         else
  9608.          # Determine the default libpath from the value encoded in an
  9609.          # empty executable.
  9610.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9611. /* end confdefs.h.  */
  9612.  
  9613. int
  9614. main ()
  9615. {
  9616.  
  9617.   ;
  9618.   return 0;
  9619. }
  9620. _ACEOF
  9621. if ac_fn_c_try_link "$LINENO"; then :
  9622.  
  9623. lt_aix_libpath_sed='
  9624.     /Import File Strings/,/^$/ {
  9625.         /^0/ {
  9626.             s/^0  *\(.*\)$/\1/
  9627.             p
  9628.         }
  9629.     }'
  9630. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9631. # Check for a 64-bit object if we didn't find anything.
  9632. if test -z "$aix_libpath"; then
  9633.   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9634. fi
  9635. fi
  9636. rm -f core conftest.err conftest.$ac_objext \
  9637.     conftest$ac_exeext conftest.$ac_ext
  9638. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9639.  
  9640.          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9641.           # Warning - without using the other run time loading flags,
  9642.           # -berok will link without error, but may produce a broken library.
  9643.           no_undefined_flag=' ${wl}-bernotok'
  9644.           allow_undefined_flag=' ${wl}-berok'
  9645.           if test "$with_gnu_ld" = yes; then
  9646.             # We only use this code for GNU lds that support --whole-archive.
  9647.             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9648.           else
  9649.             # Exported symbols can be pulled into shared objects from archives
  9650.             whole_archive_flag_spec='$convenience'
  9651.           fi
  9652.           archive_cmds_need_lc=yes
  9653.           # This is similar to how AIX traditionally builds its shared libraries.
  9654.           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'
  9655.         fi
  9656.       fi
  9657.       ;;
  9658.  
  9659.     amigaos*)
  9660.       case $host_cpu in
  9661.       powerpc)
  9662.             # see comment about AmigaOS4 .so support
  9663.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9664.             archive_expsym_cmds=''
  9665.         ;;
  9666.       m68k)
  9667.             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)'
  9668.             hardcode_libdir_flag_spec='-L$libdir'
  9669.             hardcode_minus_L=yes
  9670.         ;;
  9671.       esac
  9672.       ;;
  9673.  
  9674.     bsdi[45]*)
  9675.       export_dynamic_flag_spec=-rdynamic
  9676.       ;;
  9677.  
  9678.     cygwin* | mingw* | pw32* | cegcc*)
  9679.       # When not using gcc, we currently assume that we are using
  9680.       # Microsoft Visual C++.
  9681.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  9682.       # no search path for DLLs.
  9683.       hardcode_libdir_flag_spec=' '
  9684.       allow_undefined_flag=unsupported
  9685.       # Tell ltmain to make .lib files, not .a files.
  9686.       libext=lib
  9687.       # Tell ltmain to make .dll files, not .so files.
  9688.       shrext_cmds=".dll"
  9689.       # FIXME: Setting linknames here is a bad hack.
  9690.       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9691.       # The linker will automatically build a .lib file if we build a DLL.
  9692.       old_archive_from_new_cmds='true'
  9693.       # FIXME: Should let the user specify the lib program.
  9694.       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9695.       fix_srcfile_path='`cygpath -w "$srcfile"`'
  9696.       enable_shared_with_static_runtimes=yes
  9697.       ;;
  9698.  
  9699.     darwin* | rhapsody*)
  9700.  
  9701.  
  9702.   archive_cmds_need_lc=no
  9703.   hardcode_direct=no
  9704.   hardcode_automatic=yes
  9705.   hardcode_shlibpath_var=unsupported
  9706.   if test "$lt_cv_ld_force_load" = "yes"; then
  9707.     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\"`'
  9708.   else
  9709.     whole_archive_flag_spec=''
  9710.   fi
  9711.   link_all_deplibs=yes
  9712.   allow_undefined_flag="$_lt_dar_allow_undefined"
  9713.   case $cc_basename in
  9714.      ifort*) _lt_dar_can_shared=yes ;;
  9715.      *) _lt_dar_can_shared=$GCC ;;
  9716.   esac
  9717.   if test "$_lt_dar_can_shared" = "yes"; then
  9718.     output_verbose_link_cmd=func_echo_all
  9719.     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9720.     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9721.     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}"
  9722.     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}"
  9723.  
  9724.   else
  9725.   ld_shlibs=no
  9726.   fi
  9727.  
  9728.       ;;
  9729.  
  9730.     dgux*)
  9731.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9732.       hardcode_libdir_flag_spec='-L$libdir'
  9733.       hardcode_shlibpath_var=no
  9734.       ;;
  9735.  
  9736.     freebsd1*)
  9737.       ld_shlibs=no
  9738.       ;;
  9739.  
  9740.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9741.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  9742.     # does not break anything, and helps significantly (at the cost of a little
  9743.     # extra space).
  9744.     freebsd2.2*)
  9745.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9746.       hardcode_libdir_flag_spec='-R$libdir'
  9747.       hardcode_direct=yes
  9748.       hardcode_shlibpath_var=no
  9749.       ;;
  9750.  
  9751.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9752.     freebsd2*)
  9753.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9754.       hardcode_direct=yes
  9755.       hardcode_minus_L=yes
  9756.       hardcode_shlibpath_var=no
  9757.       ;;
  9758.  
  9759.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9760.     freebsd* | dragonfly*)
  9761.       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9762.       hardcode_libdir_flag_spec='-R$libdir'
  9763.       hardcode_direct=yes
  9764.       hardcode_shlibpath_var=no
  9765.       ;;
  9766.  
  9767.     hpux9*)
  9768.       if test "$GCC" = yes; then
  9769.         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9770.       else
  9771.         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'
  9772.       fi
  9773.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9774.       hardcode_libdir_separator=:
  9775.       hardcode_direct=yes
  9776.  
  9777.       # hardcode_minus_L: Not really in the search PATH,
  9778.       # but as the default location of the library.
  9779.       hardcode_minus_L=yes
  9780.       export_dynamic_flag_spec='${wl}-E'
  9781.       ;;
  9782.  
  9783.     hpux10*)
  9784.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9785.         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9786.       else
  9787.         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9788.       fi
  9789.       if test "$with_gnu_ld" = no; then
  9790.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9791.         hardcode_libdir_flag_spec_ld='+b $libdir'
  9792.         hardcode_libdir_separator=:
  9793.         hardcode_direct=yes
  9794.         hardcode_direct_absolute=yes
  9795.         export_dynamic_flag_spec='${wl}-E'
  9796.         # hardcode_minus_L: Not really in the search PATH,
  9797.         # but as the default location of the library.
  9798.         hardcode_minus_L=yes
  9799.       fi
  9800.       ;;
  9801.  
  9802.     hpux11*)
  9803.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9804.         case $host_cpu in
  9805.         hppa*64*)
  9806.           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9807.           ;;
  9808.         ia64*)
  9809.           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9810.           ;;
  9811.         *)
  9812.           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9813.           ;;
  9814.         esac
  9815.       else
  9816.         case $host_cpu in
  9817.         hppa*64*)
  9818.           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9819.           ;;
  9820.         ia64*)
  9821.           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9822.           ;;
  9823.         *)
  9824.  
  9825.           # Older versions of the 11.00 compiler do not understand -b yet
  9826.           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9827.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9828. $as_echo_n "checking if $CC understands -b... " >&6; }
  9829. if ${lt_cv_prog_compiler__b+:} false; then :
  9830.   $as_echo_n "(cached) " >&6
  9831. else
  9832.   lt_cv_prog_compiler__b=no
  9833.    save_LDFLAGS="$LDFLAGS"
  9834.    LDFLAGS="$LDFLAGS -b"
  9835.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9836.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9837.      # The linker can only warn and ignore the option if not recognized
  9838.      # So say no if there are warnings
  9839.      if test -s conftest.err; then
  9840.        # Append any errors to the config.log.
  9841.        cat conftest.err 1>&5
  9842.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9843.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9844.        if diff conftest.exp conftest.er2 >/dev/null; then
  9845.          lt_cv_prog_compiler__b=yes
  9846.        fi
  9847.      else
  9848.        lt_cv_prog_compiler__b=yes
  9849.      fi
  9850.    fi
  9851.    $RM -r conftest*
  9852.    LDFLAGS="$save_LDFLAGS"
  9853.  
  9854. fi
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9856. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9857.  
  9858. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9859.     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9860. else
  9861.     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9862. fi
  9863.  
  9864.           ;;
  9865.         esac
  9866.       fi
  9867.       if test "$with_gnu_ld" = no; then
  9868.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9869.         hardcode_libdir_separator=:
  9870.  
  9871.         case $host_cpu in
  9872.         hppa*64*|ia64*)
  9873.           hardcode_direct=no
  9874.           hardcode_shlibpath_var=no
  9875.           ;;
  9876.         *)
  9877.           hardcode_direct=yes
  9878.           hardcode_direct_absolute=yes
  9879.           export_dynamic_flag_spec='${wl}-E'
  9880.  
  9881.           # hardcode_minus_L: Not really in the search PATH,
  9882.           # but as the default location of the library.
  9883.           hardcode_minus_L=yes
  9884.           ;;
  9885.         esac
  9886.       fi
  9887.       ;;
  9888.  
  9889.     irix5* | irix6* | nonstopux*)
  9890.       if test "$GCC" = yes; then
  9891.         archive_cmds='$CC -shared $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'
  9892.         # Try to use the -exported_symbol ld option, if it does not
  9893.         # work, assume that -exports_file does not work either and
  9894.         # implicitly export all symbols.
  9895.         save_LDFLAGS="$LDFLAGS"
  9896.         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9897.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9898. /* end confdefs.h.  */
  9899. int foo(void) {}
  9900. _ACEOF
  9901. if ac_fn_c_try_link "$LINENO"; then :
  9902.   archive_expsym_cmds='$CC -shared $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'
  9903.  
  9904. fi
  9905. rm -f core conftest.err conftest.$ac_objext \
  9906.     conftest$ac_exeext conftest.$ac_ext
  9907.         LDFLAGS="$save_LDFLAGS"
  9908.       else
  9909.         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'
  9910.         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'
  9911.       fi
  9912.       archive_cmds_need_lc='no'
  9913.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9914.       hardcode_libdir_separator=:
  9915.       inherit_rpath=yes
  9916.       link_all_deplibs=yes
  9917.       ;;
  9918.  
  9919.     netbsd*)
  9920.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9921.         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  9922.       else
  9923.         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  9924.       fi
  9925.       hardcode_libdir_flag_spec='-R$libdir'
  9926.       hardcode_direct=yes
  9927.       hardcode_shlibpath_var=no
  9928.       ;;
  9929.  
  9930.     newsos6)
  9931.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9932.       hardcode_direct=yes
  9933.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9934.       hardcode_libdir_separator=:
  9935.       hardcode_shlibpath_var=no
  9936.       ;;
  9937.  
  9938.     *nto* | *qnx*)
  9939.       ;;
  9940.  
  9941.     openbsd*)
  9942.       if test -f /usr/libexec/ld.so; then
  9943.         hardcode_direct=yes
  9944.         hardcode_shlibpath_var=no
  9945.         hardcode_direct_absolute=yes
  9946.         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9947.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9948.           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9949.           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9950.           export_dynamic_flag_spec='${wl}-E'
  9951.         else
  9952.           case $host_os in
  9953.            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9954.              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9955.              hardcode_libdir_flag_spec='-R$libdir'
  9956.              ;;
  9957.            *)
  9958.              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9959.              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9960.              ;;
  9961.           esac
  9962.         fi
  9963.       else
  9964.         ld_shlibs=no
  9965.       fi
  9966.       ;;
  9967.  
  9968.     os2*)
  9969.       hardcode_libdir_flag_spec='-L$libdir'
  9970.       hardcode_minus_L=yes
  9971.       allow_undefined_flag=unsupported
  9972.       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'
  9973.       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9974.       ;;
  9975.  
  9976.     osf3*)
  9977.       if test "$GCC" = yes; then
  9978.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9979.         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'
  9980.       else
  9981.         allow_undefined_flag=' -expect_unresolved \*'
  9982.         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'
  9983.       fi
  9984.       archive_cmds_need_lc='no'
  9985.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9986.       hardcode_libdir_separator=:
  9987.       ;;
  9988.  
  9989.     osf4* | osf5*)      # as osf3* with the addition of -msym flag
  9990.       if test "$GCC" = yes; then
  9991.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9992.         archive_cmds='$CC -shared${allow_undefined_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'
  9993.         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9994.       else
  9995.         allow_undefined_flag=' -expect_unresolved \*'
  9996.         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'
  9997.         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~
  9998.         $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'
  9999.  
  10000.         # Both c and cxx compiler support -rpath directly
  10001.         hardcode_libdir_flag_spec='-rpath $libdir'
  10002.       fi
  10003.       archive_cmds_need_lc='no'
  10004.       hardcode_libdir_separator=:
  10005.       ;;
  10006.  
  10007.     solaris*)
  10008.       no_undefined_flag=' -z defs'
  10009.       if test "$GCC" = yes; then
  10010.         wlarc='${wl}'
  10011.         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10012.         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10013.           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10014.       else
  10015.         case `$CC -V 2>&1` in
  10016.         *"Compilers 5.0"*)
  10017.           wlarc=''
  10018.           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10019.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10020.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10021.           ;;
  10022.         *)
  10023.           wlarc='${wl}'
  10024.           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10025.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10026.           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10027.           ;;
  10028.         esac
  10029.       fi
  10030.       hardcode_libdir_flag_spec='-R$libdir'
  10031.       hardcode_shlibpath_var=no
  10032.       case $host_os in
  10033.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  10034.       *)
  10035.         # The compiler driver will combine and reorder linker options,
  10036.         # but understands `-z linker_flag'.  GCC discards it without `$wl',
  10037.         # but is careful enough not to reorder.
  10038.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  10039.         if test "$GCC" = yes; then
  10040.           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10041.         else
  10042.           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10043.         fi
  10044.         ;;
  10045.       esac
  10046.       link_all_deplibs=yes
  10047.       ;;
  10048.  
  10049.     sunos4*)
  10050.       if test "x$host_vendor" = xsequent; then
  10051.         # Use $CC to link under sequent, because it throws in some extra .o
  10052.         # files that make .init and .fini sections work.
  10053.         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10054.       else
  10055.         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10056.       fi
  10057.       hardcode_libdir_flag_spec='-L$libdir'
  10058.       hardcode_direct=yes
  10059.       hardcode_minus_L=yes
  10060.       hardcode_shlibpath_var=no
  10061.       ;;
  10062.  
  10063.     sysv4)
  10064.       case $host_vendor in
  10065.         sni)
  10066.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10067.           hardcode_direct=yes # is this really true???
  10068.         ;;
  10069.         siemens)
  10070.           ## LD is ld it makes a PLAMLIB
  10071.           ## CC just makes a GrossModule.
  10072.           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10073.           reload_cmds='$CC -r -o $output$reload_objs'
  10074.           hardcode_direct=no
  10075.         ;;
  10076.         motorola)
  10077.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10078.           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10079.         ;;
  10080.       esac
  10081.       runpath_var='LD_RUN_PATH'
  10082.       hardcode_shlibpath_var=no
  10083.       ;;
  10084.  
  10085.     sysv4.3*)
  10086.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10087.       hardcode_shlibpath_var=no
  10088.       export_dynamic_flag_spec='-Bexport'
  10089.       ;;
  10090.  
  10091.     sysv4*MP*)
  10092.       if test -d /usr/nec; then
  10093.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10094.         hardcode_shlibpath_var=no
  10095.         runpath_var=LD_RUN_PATH
  10096.         hardcode_runpath_var=yes
  10097.         ld_shlibs=yes
  10098.       fi
  10099.       ;;
  10100.  
  10101.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10102.       no_undefined_flag='${wl}-z,text'
  10103.       archive_cmds_need_lc=no
  10104.       hardcode_shlibpath_var=no
  10105.       runpath_var='LD_RUN_PATH'
  10106.  
  10107.       if test "$GCC" = yes; then
  10108.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10109.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10110.       else
  10111.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10112.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10113.       fi
  10114.       ;;
  10115.  
  10116.     sysv5* | sco3.2v5* | sco5v6*)
  10117.       # Note: We can NOT use -z defs as we might desire, because we do not
  10118.       # link with -lc, and that would cause any symbols used from libc to
  10119.       # always be unresolved, which means just about no library would
  10120.       # ever link correctly.  If we're not using GNU ld we use -z text
  10121.       # though, which does catch some bad symbols but isn't as heavy-handed
  10122.       # as -z defs.
  10123.       no_undefined_flag='${wl}-z,text'
  10124.       allow_undefined_flag='${wl}-z,nodefs'
  10125.       archive_cmds_need_lc=no
  10126.       hardcode_shlibpath_var=no
  10127.       hardcode_libdir_flag_spec='${wl}-R,$libdir'
  10128.       hardcode_libdir_separator=':'
  10129.       link_all_deplibs=yes
  10130.       export_dynamic_flag_spec='${wl}-Bexport'
  10131.       runpath_var='LD_RUN_PATH'
  10132.  
  10133.       if test "$GCC" = yes; then
  10134.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10135.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10136.       else
  10137.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10138.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10139.       fi
  10140.       ;;
  10141.  
  10142.     uts4*)
  10143.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10144.       hardcode_libdir_flag_spec='-L$libdir'
  10145.       hardcode_shlibpath_var=no
  10146.       ;;
  10147.  
  10148.     *)
  10149.       ld_shlibs=no
  10150.       ;;
  10151.     esac
  10152.  
  10153.     if test x$host_vendor = xsni; then
  10154.       case $host in
  10155.       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10156.         export_dynamic_flag_spec='${wl}-Blargedynsym'
  10157.         ;;
  10158.       esac
  10159.     fi
  10160.   fi
  10161.  
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10163. $as_echo "$ld_shlibs" >&6; }
  10164. test "$ld_shlibs" = no && can_build_shared=no
  10165.  
  10166. with_gnu_ld=$with_gnu_ld
  10167.  
  10168.  
  10169.  
  10170.  
  10171.  
  10172.  
  10173.  
  10174.  
  10175.  
  10176.  
  10177.  
  10178.  
  10179.  
  10180.  
  10181.  
  10182. #
  10183. # Do we need to explicitly link libc?
  10184. #
  10185. case "x$archive_cmds_need_lc" in
  10186. x|xyes)
  10187.   # Assume -lc should be added
  10188.   archive_cmds_need_lc=yes
  10189.  
  10190.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  10191.     case $archive_cmds in
  10192.     *'~'*)
  10193.       # FIXME: we may have to deal with multi-command sequences.
  10194.       ;;
  10195.     '$CC '*)
  10196.       # Test whether the compiler implicitly links with -lc since on some
  10197.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10198.       # to ld, don't add -lc before -lgcc.
  10199.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10200. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10201. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10202.   $as_echo_n "(cached) " >&6
  10203. else
  10204.   $RM conftest*
  10205.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10206.  
  10207.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10208.   (eval $ac_compile) 2>&5
  10209.   ac_status=$?
  10210.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10211.   test $ac_status = 0; } 2>conftest.err; then
  10212.           soname=conftest
  10213.           lib=conftest
  10214.           libobjs=conftest.$ac_objext
  10215.           deplibs=
  10216.           wl=$lt_prog_compiler_wl
  10217.           pic_flag=$lt_prog_compiler_pic
  10218.           compiler_flags=-v
  10219.           linker_flags=-v
  10220.           verstring=
  10221.           output_objdir=.
  10222.           libname=conftest
  10223.           lt_save_allow_undefined_flag=$allow_undefined_flag
  10224.           allow_undefined_flag=
  10225.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10226.   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10227.   ac_status=$?
  10228.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10229.   test $ac_status = 0; }
  10230.           then
  10231.             lt_cv_archive_cmds_need_lc=no
  10232.           else
  10233.             lt_cv_archive_cmds_need_lc=yes
  10234.           fi
  10235.           allow_undefined_flag=$lt_save_allow_undefined_flag
  10236.         else
  10237.           cat conftest.err 1>&5
  10238.         fi
  10239.         $RM conftest*
  10240.  
  10241. fi
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10243. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10244.       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10245.       ;;
  10246.     esac
  10247.   fi
  10248.   ;;
  10249. esac
  10250.  
  10251.  
  10252.  
  10253.  
  10254.  
  10255.  
  10256.  
  10257.  
  10258.  
  10259.  
  10260.  
  10261.  
  10262.  
  10263.  
  10264.  
  10265.  
  10266.  
  10267.  
  10268.  
  10269.  
  10270.  
  10271.  
  10272.  
  10273.  
  10274.  
  10275.  
  10276.  
  10277.  
  10278.  
  10279.  
  10280.  
  10281.  
  10282.  
  10283.  
  10284.  
  10285.  
  10286.  
  10287.  
  10288.  
  10289.  
  10290.  
  10291.  
  10292.  
  10293.  
  10294.  
  10295.  
  10296.  
  10297.  
  10298.  
  10299.  
  10300.  
  10301.  
  10302.  
  10303.  
  10304.  
  10305.  
  10306.  
  10307.  
  10308.  
  10309.  
  10310.  
  10311.  
  10312.  
  10313.  
  10314.  
  10315.  
  10316.  
  10317.  
  10318.  
  10319.  
  10320.  
  10321.  
  10322.  
  10323.  
  10324.  
  10325.  
  10326.  
  10327.  
  10328.  
  10329.  
  10330.  
  10331.  
  10332.  
  10333.  
  10334.  
  10335.  
  10336.  
  10337.  
  10338.  
  10339.  
  10340.  
  10341.  
  10342.  
  10343.  
  10344.  
  10345.  
  10346.  
  10347.  
  10348.  
  10349.  
  10350.  
  10351.  
  10352.  
  10353.  
  10354.  
  10355.  
  10356.  
  10357.  
  10358.  
  10359.  
  10360.  
  10361.  
  10362.  
  10363.  
  10364.  
  10365.  
  10366.  
  10367.  
  10368.  
  10369.  
  10370.  
  10371.  
  10372.  
  10373.  
  10374.  
  10375.  
  10376.  
  10377.  
  10378.  
  10379.  
  10380.  
  10381.  
  10382.  
  10383.  
  10384.  
  10385.  
  10386.  
  10387.  
  10388.  
  10389.  
  10390.  
  10391.  
  10392.  
  10393.  
  10394.  
  10395.  
  10396.  
  10397.  
  10398.  
  10399.  
  10400.  
  10401.  
  10402.  
  10403.  
  10404.  
  10405.  
  10406.  
  10407.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10408. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10409.  
  10410. if test "$GCC" = yes; then
  10411.   case $host_os in
  10412.     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10413.     *) lt_awk_arg="/^libraries:/" ;;
  10414.   esac
  10415.   case $host_os in
  10416.     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  10417.     *) lt_sed_strip_eq="s,=/,/,g" ;;
  10418.   esac
  10419.   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10420.   case $lt_search_path_spec in
  10421.   *\;*)
  10422.     # if the path contains ";" then we assume it to be the separator
  10423.     # otherwise default to the standard path separator (i.e. ":") - it is
  10424.     # assumed that no part of a normal pathname contains ";" but that should
  10425.     # okay in the real world where ";" in dirpaths is itself problematic.
  10426.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10427.     ;;
  10428.   *)
  10429.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10430.     ;;
  10431.   esac
  10432.   # Ok, now we have the path, separated by spaces, we can step through it
  10433.   # and add multilib dir if necessary.
  10434.   lt_tmp_lt_search_path_spec=
  10435.   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10436.   for lt_sys_path in $lt_search_path_spec; do
  10437.     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10438.       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10439.     else
  10440.       test -d "$lt_sys_path" && \
  10441.         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10442.     fi
  10443.   done
  10444.   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10445. BEGIN {RS=" "; FS="/|\n";} {
  10446.   lt_foo="";
  10447.   lt_count=0;
  10448.   for (lt_i = NF; lt_i > 0; lt_i--) {
  10449.     if ($lt_i != "" && $lt_i != ".") {
  10450.       if ($lt_i == "..") {
  10451.         lt_count++;
  10452.       } else {
  10453.         if (lt_count == 0) {
  10454.           lt_foo="/" $lt_i lt_foo;
  10455.         } else {
  10456.           lt_count--;
  10457.         }
  10458.       }
  10459.     }
  10460.   }
  10461.   if (lt_foo != "") { lt_freq[lt_foo]++; }
  10462.   if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10463. }'`
  10464.   # AWK program above erroneously prepends '/' to C:/dos/paths
  10465.   # for these hosts.
  10466.   case $host_os in
  10467.     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10468.       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  10469.   esac
  10470.   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10471. else
  10472.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10473. fi
  10474. library_names_spec=
  10475. libname_spec='lib$name'
  10476. soname_spec=
  10477. shrext_cmds=".so"
  10478. postinstall_cmds=
  10479. postuninstall_cmds=
  10480. finish_cmds=
  10481. finish_eval=
  10482. shlibpath_var=
  10483. shlibpath_overrides_runpath=unknown
  10484. version_type=none
  10485. dynamic_linker="$host_os ld.so"
  10486. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10487. need_lib_prefix=unknown
  10488. hardcode_into_libs=no
  10489.  
  10490. # when you set need_version to no, make sure it does not cause -set_version
  10491. # flags to be left without arguments
  10492. need_version=unknown
  10493.  
  10494. case $host_os in
  10495. aix3*)
  10496.   version_type=linux
  10497.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10498.   shlibpath_var=LIBPATH
  10499.  
  10500.   # AIX 3 has no versioning support, so we append a major version to the name.
  10501.   soname_spec='${libname}${release}${shared_ext}$major'
  10502.   ;;
  10503.  
  10504. aix[4-9]*)
  10505.   version_type=linux
  10506.   need_lib_prefix=no
  10507.   need_version=no
  10508.   hardcode_into_libs=yes
  10509.   if test "$host_cpu" = ia64; then
  10510.     # AIX 5 supports IA64
  10511.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10512.     shlibpath_var=LD_LIBRARY_PATH
  10513.   else
  10514.     # With GCC up to 2.95.x, collect2 would create an import file
  10515.     # for dependence libraries.  The import file would start with
  10516.     # the line `#! .'.  This would cause the generated library to
  10517.     # depend on `.', always an invalid library.  This was fixed in
  10518.     # development snapshots of GCC prior to 3.0.
  10519.     case $host_os in
  10520.       aix4 | aix4.[01] | aix4.[01].*)
  10521.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10522.            echo ' yes '
  10523.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10524.         :
  10525.       else
  10526.         can_build_shared=no
  10527.       fi
  10528.       ;;
  10529.     esac
  10530.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10531.     # soname into executable. Probably we can add versioning support to
  10532.     # collect2, so additional links can be useful in future.
  10533.     if test "$aix_use_runtimelinking" = yes; then
  10534.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10535.       # instead of lib<name>.a to let people know that these are not
  10536.       # typical AIX shared libraries.
  10537.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10538.     else
  10539.       # We preserve .a as extension for shared libraries through AIX4.2
  10540.       # and later when we are not doing run time linking.
  10541.       library_names_spec='${libname}${release}.a $libname.a'
  10542.       soname_spec='${libname}${release}${shared_ext}$major'
  10543.     fi
  10544.     shlibpath_var=LIBPATH
  10545.   fi
  10546.   ;;
  10547.  
  10548. amigaos*)
  10549.   case $host_cpu in
  10550.   powerpc)
  10551.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  10552.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10553.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10554.     ;;
  10555.   m68k)
  10556.     library_names_spec='$libname.ixlibrary $libname.a'
  10557.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10558.     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'
  10559.     ;;
  10560.   esac
  10561.   ;;
  10562.  
  10563. beos*)
  10564.   library_names_spec='${libname}${shared_ext}'
  10565.   dynamic_linker="$host_os ld.so"
  10566.   shlibpath_var=LIBRARY_PATH
  10567.   ;;
  10568.  
  10569. bsdi[45]*)
  10570.   version_type=linux
  10571.   need_version=no
  10572.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10573.   soname_spec='${libname}${release}${shared_ext}$major'
  10574.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10575.   shlibpath_var=LD_LIBRARY_PATH
  10576.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10577.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10578.   # the default ld.so.conf also contains /usr/contrib/lib and
  10579.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10580.   # libtool to hard-code these into programs
  10581.   ;;
  10582.  
  10583. cygwin* | mingw* | pw32* | cegcc*)
  10584.   version_type=windows
  10585.   shrext_cmds=".dll"
  10586.   need_version=no
  10587.   need_lib_prefix=no
  10588.  
  10589.   case $GCC,$host_os in
  10590.   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  10591.     library_names_spec='$libname.dll.a'
  10592.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10593.     postinstall_cmds='base_file=`basename \${file}`~
  10594.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10595.       dldir=$destdir/`dirname \$dlpath`~
  10596.       test -d \$dldir || mkdir -p \$dldir~
  10597.       $install_prog $dir/$dlname \$dldir/$dlname~
  10598.       chmod a+x \$dldir/$dlname~
  10599.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10600.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10601.       fi'
  10602.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10603.       dlpath=$dir/\$dldll~
  10604.        $RM \$dlpath'
  10605.     shlibpath_overrides_runpath=yes
  10606.  
  10607.     case $host_os in
  10608.     cygwin*)
  10609.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10610.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10611.  
  10612.       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10613.       ;;
  10614.     mingw* | cegcc*)
  10615.       # MinGW DLLs use traditional 'lib' prefix
  10616.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10617.       ;;
  10618.     pw32*)
  10619.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  10620.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10621.       ;;
  10622.     esac
  10623.     ;;
  10624.  
  10625.   *)
  10626.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10627.     ;;
  10628.   esac
  10629.   dynamic_linker='Win32 ld.exe'
  10630.   # FIXME: first we should search . and the directory the executable is in
  10631.   shlibpath_var=PATH
  10632.   ;;
  10633.  
  10634. darwin* | rhapsody*)
  10635.   dynamic_linker="$host_os dyld"
  10636.   version_type=darwin
  10637.   need_lib_prefix=no
  10638.   need_version=no
  10639.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10640.   soname_spec='${libname}${release}${major}$shared_ext'
  10641.   shlibpath_overrides_runpath=yes
  10642.   shlibpath_var=DYLD_LIBRARY_PATH
  10643.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10644.  
  10645.   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10646.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10647.   ;;
  10648.  
  10649. dgux*)
  10650.   version_type=linux
  10651.   need_lib_prefix=no
  10652.   need_version=no
  10653.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10654.   soname_spec='${libname}${release}${shared_ext}$major'
  10655.   shlibpath_var=LD_LIBRARY_PATH
  10656.   ;;
  10657.  
  10658. freebsd1*)
  10659.   dynamic_linker=no
  10660.   ;;
  10661.  
  10662. freebsd* | dragonfly*)
  10663.   # DragonFly does not have aout.  When/if they implement a new
  10664.   # versioning mechanism, adjust this.
  10665.   if test -x /usr/bin/objformat; then
  10666.     objformat=`/usr/bin/objformat`
  10667.   else
  10668.     case $host_os in
  10669.     freebsd[123]*) objformat=aout ;;
  10670.     *) objformat=elf ;;
  10671.     esac
  10672.   fi
  10673.   version_type=freebsd-$objformat
  10674.   case $version_type in
  10675.     freebsd-elf*)
  10676.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10677.       need_version=no
  10678.       need_lib_prefix=no
  10679.       ;;
  10680.     freebsd-*)
  10681.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10682.       need_version=yes
  10683.       ;;
  10684.   esac
  10685.   shlibpath_var=LD_LIBRARY_PATH
  10686.   case $host_os in
  10687.   freebsd2*)
  10688.     shlibpath_overrides_runpath=yes
  10689.     ;;
  10690.   freebsd3.[01]* | freebsdelf3.[01]*)
  10691.     shlibpath_overrides_runpath=yes
  10692.     hardcode_into_libs=yes
  10693.     ;;
  10694.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10695.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10696.     shlibpath_overrides_runpath=no
  10697.     hardcode_into_libs=yes
  10698.     ;;
  10699.   *) # from 4.6 on, and DragonFly
  10700.     shlibpath_overrides_runpath=yes
  10701.     hardcode_into_libs=yes
  10702.     ;;
  10703.   esac
  10704.   ;;
  10705.  
  10706. gnu*)
  10707.   version_type=linux
  10708.   need_lib_prefix=no
  10709.   need_version=no
  10710.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10711.   soname_spec='${libname}${release}${shared_ext}$major'
  10712.   shlibpath_var=LD_LIBRARY_PATH
  10713.   hardcode_into_libs=yes
  10714.   ;;
  10715.  
  10716. haiku*)
  10717.   version_type=linux
  10718.   need_lib_prefix=no
  10719.   need_version=no
  10720.   dynamic_linker="$host_os runtime_loader"
  10721.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10722.   soname_spec='${libname}${release}${shared_ext}$major'
  10723.   shlibpath_var=LIBRARY_PATH
  10724.   shlibpath_overrides_runpath=yes
  10725.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10726.   hardcode_into_libs=yes
  10727.   ;;
  10728.  
  10729. hpux9* | hpux10* | hpux11*)
  10730.   # Give a soname corresponding to the major version so that dld.sl refuses to
  10731.   # link against other versions.
  10732.   version_type=sunos
  10733.   need_lib_prefix=no
  10734.   need_version=no
  10735.   case $host_cpu in
  10736.   ia64*)
  10737.     shrext_cmds='.so'
  10738.     hardcode_into_libs=yes
  10739.     dynamic_linker="$host_os dld.so"
  10740.     shlibpath_var=LD_LIBRARY_PATH
  10741.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10742.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10743.     soname_spec='${libname}${release}${shared_ext}$major'
  10744.     if test "X$HPUX_IA64_MODE" = X32; then
  10745.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10746.     else
  10747.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10748.     fi
  10749.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10750.     ;;
  10751.   hppa*64*)
  10752.     shrext_cmds='.sl'
  10753.     hardcode_into_libs=yes
  10754.     dynamic_linker="$host_os dld.sl"
  10755.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10756.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10757.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10758.     soname_spec='${libname}${release}${shared_ext}$major'
  10759.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10760.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10761.     ;;
  10762.   *)
  10763.     shrext_cmds='.sl'
  10764.     dynamic_linker="$host_os dld.sl"
  10765.     shlibpath_var=SHLIB_PATH
  10766.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10767.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10768.     soname_spec='${libname}${release}${shared_ext}$major'
  10769.     ;;
  10770.   esac
  10771.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10772.   postinstall_cmds='chmod 555 $lib'
  10773.   # or fails outright, so override atomically:
  10774.   install_override_mode=555
  10775.   ;;
  10776.  
  10777. interix[3-9]*)
  10778.   version_type=linux
  10779.   need_lib_prefix=no
  10780.   need_version=no
  10781.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10782.   soname_spec='${libname}${release}${shared_ext}$major'
  10783.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10784.   shlibpath_var=LD_LIBRARY_PATH
  10785.   shlibpath_overrides_runpath=no
  10786.   hardcode_into_libs=yes
  10787.   ;;
  10788.  
  10789. irix5* | irix6* | nonstopux*)
  10790.   case $host_os in
  10791.     nonstopux*) version_type=nonstopux ;;
  10792.     *)
  10793.         if test "$lt_cv_prog_gnu_ld" = yes; then
  10794.                 version_type=linux
  10795.         else
  10796.                 version_type=irix
  10797.         fi ;;
  10798.   esac
  10799.   need_lib_prefix=no
  10800.   need_version=no
  10801.   soname_spec='${libname}${release}${shared_ext}$major'
  10802.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10803.   case $host_os in
  10804.   irix5* | nonstopux*)
  10805.     libsuff= shlibsuff=
  10806.     ;;
  10807.   *)
  10808.     case $LD in # libtool.m4 will add one of these switches to LD
  10809.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10810.       libsuff= shlibsuff= libmagic=32-bit;;
  10811.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10812.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  10813.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10814.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10815.     *) libsuff= shlibsuff= libmagic=never-match;;
  10816.     esac
  10817.     ;;
  10818.   esac
  10819.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10820.   shlibpath_overrides_runpath=no
  10821.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10822.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10823.   hardcode_into_libs=yes
  10824.   ;;
  10825.  
  10826. # No shared lib support for Linux oldld, aout, or coff.
  10827. linux*oldld* | linux*aout* | linux*coff*)
  10828.   dynamic_linker=no
  10829.   ;;
  10830.  
  10831. # This must be Linux ELF.
  10832. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10833.   version_type=linux
  10834.   need_lib_prefix=no
  10835.   need_version=no
  10836.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10837.   soname_spec='${libname}${release}${shared_ext}$major'
  10838.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10839.   shlibpath_var=LD_LIBRARY_PATH
  10840.   shlibpath_overrides_runpath=no
  10841.  
  10842.   # Some binutils ld are patched to set DT_RUNPATH
  10843.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10844.   $as_echo_n "(cached) " >&6
  10845. else
  10846.   lt_cv_shlibpath_overrides_runpath=no
  10847.     save_LDFLAGS=$LDFLAGS
  10848.     save_libdir=$libdir
  10849.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10850.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10851.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10852. /* end confdefs.h.  */
  10853.  
  10854. int
  10855. main ()
  10856. {
  10857.  
  10858.   ;
  10859.   return 0;
  10860. }
  10861. _ACEOF
  10862. if ac_fn_c_try_link "$LINENO"; then :
  10863.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10864.   lt_cv_shlibpath_overrides_runpath=yes
  10865. fi
  10866. fi
  10867. rm -f core conftest.err conftest.$ac_objext \
  10868.     conftest$ac_exeext conftest.$ac_ext
  10869.     LDFLAGS=$save_LDFLAGS
  10870.     libdir=$save_libdir
  10871.  
  10872. fi
  10873.  
  10874.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10875.  
  10876.   # This implies no fast_install, which is unacceptable.
  10877.   # Some rework will be needed to allow for fast_install
  10878.   # before this can be enabled.
  10879.   hardcode_into_libs=yes
  10880.  
  10881.   # Append ld.so.conf contents to the search path
  10882.   if test -f /etc/ld.so.conf; then
  10883.     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' ' '`
  10884.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10885.   fi
  10886.  
  10887.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  10888.   # powerpc, because MkLinux only supported shared libraries with the
  10889.   # GNU dynamic linker.  Since this was broken with cross compilers,
  10890.   # most powerpc-linux boxes support dynamic linking these days and
  10891.   # people can always --disable-shared, the test was removed, and we
  10892.   # assume the GNU/Linux dynamic linker is in use.
  10893.   dynamic_linker='GNU/Linux ld.so'
  10894.   ;;
  10895.  
  10896. netbsd*)
  10897.   version_type=sunos
  10898.   need_lib_prefix=no
  10899.   need_version=no
  10900.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10901.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10902.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10903.     dynamic_linker='NetBSD (a.out) ld.so'
  10904.   else
  10905.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10906.     soname_spec='${libname}${release}${shared_ext}$major'
  10907.     dynamic_linker='NetBSD ld.elf_so'
  10908.   fi
  10909.   shlibpath_var=LD_LIBRARY_PATH
  10910.   shlibpath_overrides_runpath=yes
  10911.   hardcode_into_libs=yes
  10912.   ;;
  10913.  
  10914. newsos6)
  10915.   version_type=linux
  10916.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10917.   shlibpath_var=LD_LIBRARY_PATH
  10918.   shlibpath_overrides_runpath=yes
  10919.   ;;
  10920.  
  10921. *nto* | *qnx*)
  10922.   version_type=qnx
  10923.   need_lib_prefix=no
  10924.   need_version=no
  10925.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10926.   soname_spec='${libname}${release}${shared_ext}$major'
  10927.   shlibpath_var=LD_LIBRARY_PATH
  10928.   shlibpath_overrides_runpath=no
  10929.   hardcode_into_libs=yes
  10930.   dynamic_linker='ldqnx.so'
  10931.   ;;
  10932.  
  10933. openbsd*)
  10934.   version_type=sunos
  10935.   sys_lib_dlsearch_path_spec="/usr/lib"
  10936.   need_lib_prefix=no
  10937.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10938.   case $host_os in
  10939.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  10940.     *)                          need_version=no  ;;
  10941.   esac
  10942.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10943.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10944.   shlibpath_var=LD_LIBRARY_PATH
  10945.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10946.     case $host_os in
  10947.       openbsd2.[89] | openbsd2.[89].*)
  10948.         shlibpath_overrides_runpath=no
  10949.         ;;
  10950.       *)
  10951.         shlibpath_overrides_runpath=yes
  10952.         ;;
  10953.       esac
  10954.   else
  10955.     shlibpath_overrides_runpath=yes
  10956.   fi
  10957.   ;;
  10958.  
  10959. os2*)
  10960.   libname_spec='$name'
  10961.   shrext_cmds=".dll"
  10962.   need_lib_prefix=no
  10963.   library_names_spec='$libname${shared_ext} $libname.a'
  10964.   dynamic_linker='OS/2 ld.exe'
  10965.   shlibpath_var=LIBPATH
  10966.   ;;
  10967.  
  10968. osf3* | osf4* | osf5*)
  10969.   version_type=osf
  10970.   need_lib_prefix=no
  10971.   need_version=no
  10972.   soname_spec='${libname}${release}${shared_ext}$major'
  10973.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10974.   shlibpath_var=LD_LIBRARY_PATH
  10975.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10976.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10977.   ;;
  10978.  
  10979. rdos*)
  10980.   dynamic_linker=no
  10981.   ;;
  10982.  
  10983. solaris*)
  10984.   version_type=linux
  10985.   need_lib_prefix=no
  10986.   need_version=no
  10987.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10988.   soname_spec='${libname}${release}${shared_ext}$major'
  10989.   shlibpath_var=LD_LIBRARY_PATH
  10990.   shlibpath_overrides_runpath=yes
  10991.   hardcode_into_libs=yes
  10992.   # ldd complains unless libraries are executable
  10993.   postinstall_cmds='chmod +x $lib'
  10994.   ;;
  10995.  
  10996. sunos4*)
  10997.   version_type=sunos
  10998.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10999.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11000.   shlibpath_var=LD_LIBRARY_PATH
  11001.   shlibpath_overrides_runpath=yes
  11002.   if test "$with_gnu_ld" = yes; then
  11003.     need_lib_prefix=no
  11004.   fi
  11005.   need_version=yes
  11006.   ;;
  11007.  
  11008. sysv4 | sysv4.3*)
  11009.   version_type=linux
  11010.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11011.   soname_spec='${libname}${release}${shared_ext}$major'
  11012.   shlibpath_var=LD_LIBRARY_PATH
  11013.   case $host_vendor in
  11014.     sni)
  11015.       shlibpath_overrides_runpath=no
  11016.       need_lib_prefix=no
  11017.       runpath_var=LD_RUN_PATH
  11018.       ;;
  11019.     siemens)
  11020.       need_lib_prefix=no
  11021.       ;;
  11022.     motorola)
  11023.       need_lib_prefix=no
  11024.       need_version=no
  11025.       shlibpath_overrides_runpath=no
  11026.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11027.       ;;
  11028.   esac
  11029.   ;;
  11030.  
  11031. sysv4*MP*)
  11032.   if test -d /usr/nec ;then
  11033.     version_type=linux
  11034.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11035.     soname_spec='$libname${shared_ext}.$major'
  11036.     shlibpath_var=LD_LIBRARY_PATH
  11037.   fi
  11038.   ;;
  11039.  
  11040. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11041.   version_type=freebsd-elf
  11042.   need_lib_prefix=no
  11043.   need_version=no
  11044.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11045.   soname_spec='${libname}${release}${shared_ext}$major'
  11046.   shlibpath_var=LD_LIBRARY_PATH
  11047.   shlibpath_overrides_runpath=yes
  11048.   hardcode_into_libs=yes
  11049.   if test "$with_gnu_ld" = yes; then
  11050.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11051.   else
  11052.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11053.     case $host_os in
  11054.       sco3.2v5*)
  11055.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11056.         ;;
  11057.     esac
  11058.   fi
  11059.   sys_lib_dlsearch_path_spec='/usr/lib'
  11060.   ;;
  11061.  
  11062. tpf*)
  11063.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  11064.   version_type=linux
  11065.   need_lib_prefix=no
  11066.   need_version=no
  11067.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11068.   shlibpath_var=LD_LIBRARY_PATH
  11069.   shlibpath_overrides_runpath=no
  11070.   hardcode_into_libs=yes
  11071.   ;;
  11072.  
  11073. uts4*)
  11074.   version_type=linux
  11075.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11076.   soname_spec='${libname}${release}${shared_ext}$major'
  11077.   shlibpath_var=LD_LIBRARY_PATH
  11078.   ;;
  11079.  
  11080. *)
  11081.   dynamic_linker=no
  11082.   ;;
  11083. esac
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11085. $as_echo "$dynamic_linker" >&6; }
  11086. test "$dynamic_linker" = no && can_build_shared=no
  11087.  
  11088. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11089. if test "$GCC" = yes; then
  11090.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11091. fi
  11092.  
  11093. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11094.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11095. fi
  11096. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11097.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11098. fi
  11099.  
  11100.  
  11101.  
  11102.  
  11103.  
  11104.  
  11105.  
  11106.  
  11107.  
  11108.  
  11109.  
  11110.  
  11111.  
  11112.  
  11113.  
  11114.  
  11115.  
  11116.  
  11117.  
  11118.  
  11119.  
  11120.  
  11121.  
  11122.  
  11123.  
  11124.  
  11125.  
  11126.  
  11127.  
  11128.  
  11129.  
  11130.  
  11131.  
  11132.  
  11133.  
  11134.  
  11135.  
  11136.  
  11137.  
  11138.  
  11139.  
  11140.  
  11141.  
  11142.  
  11143.  
  11144.  
  11145.  
  11146.  
  11147.  
  11148.  
  11149.  
  11150.  
  11151.  
  11152.  
  11153.  
  11154.  
  11155.  
  11156.  
  11157.  
  11158.  
  11159.  
  11160.  
  11161.  
  11162.  
  11163.  
  11164.  
  11165.  
  11166.  
  11167.  
  11168.  
  11169.  
  11170.  
  11171.  
  11172.  
  11173.  
  11174.  
  11175.  
  11176.  
  11177.  
  11178.  
  11179.  
  11180.  
  11181.  
  11182.  
  11183.  
  11184.  
  11185.  
  11186.  
  11187.  
  11188.  
  11189.  
  11190.  
  11191.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11192. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11193. hardcode_action=
  11194. if test -n "$hardcode_libdir_flag_spec" ||
  11195.    test -n "$runpath_var" ||
  11196.    test "X$hardcode_automatic" = "Xyes" ; then
  11197.  
  11198.   # We can hardcode non-existent directories.
  11199.   if test "$hardcode_direct" != no &&
  11200.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11201.      # have to relink, otherwise we might link with an installed library
  11202.      # when we should be linking with a yet-to-be-installed one
  11203.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11204.      test "$hardcode_minus_L" != no; then
  11205.     # Linking always hardcodes the temporary library directory.
  11206.     hardcode_action=relink
  11207.   else
  11208.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11209.     hardcode_action=immediate
  11210.   fi
  11211. else
  11212.   # We cannot hardcode anything, or else we can only hardcode existing
  11213.   # directories.
  11214.   hardcode_action=unsupported
  11215. fi
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11217. $as_echo "$hardcode_action" >&6; }
  11218.  
  11219. if test "$hardcode_action" = relink ||
  11220.    test "$inherit_rpath" = yes; then
  11221.   # Fast installation is not supported
  11222.   enable_fast_install=no
  11223. elif test "$shlibpath_overrides_runpath" = yes ||
  11224.      test "$enable_shared" = no; then
  11225.   # Fast installation is not necessary
  11226.   enable_fast_install=needless
  11227. fi
  11228.  
  11229.  
  11230.  
  11231.  
  11232.  
  11233.  
  11234.   if test "x$enable_dlopen" != xyes; then
  11235.   enable_dlopen=unknown
  11236.   enable_dlopen_self=unknown
  11237.   enable_dlopen_self_static=unknown
  11238. else
  11239.   lt_cv_dlopen=no
  11240.   lt_cv_dlopen_libs=
  11241.  
  11242.   case $host_os in
  11243.   beos*)
  11244.     lt_cv_dlopen="load_add_on"
  11245.     lt_cv_dlopen_libs=
  11246.     lt_cv_dlopen_self=yes
  11247.     ;;
  11248.  
  11249.   mingw* | pw32* | cegcc*)
  11250.     lt_cv_dlopen="LoadLibrary"
  11251.     lt_cv_dlopen_libs=
  11252.     ;;
  11253.  
  11254.   cygwin*)
  11255.     lt_cv_dlopen="dlopen"
  11256.     lt_cv_dlopen_libs=
  11257.     ;;
  11258.  
  11259.   darwin*)
  11260.   # if libdl is installed we need to link against it
  11261.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11262. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11263. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11264.   $as_echo_n "(cached) " >&6
  11265. else
  11266.   ac_check_lib_save_LIBS=$LIBS
  11267. LIBS="-ldl  $LIBS"
  11268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11269. /* end confdefs.h.  */
  11270.  
  11271. /* Override any GCC internal prototype to avoid an error.
  11272.    Use char because int might match the return type of a GCC
  11273.    builtin and then its argument prototype would still apply.  */
  11274. #ifdef __cplusplus
  11275. extern "C"
  11276. #endif
  11277. char dlopen ();
  11278. int
  11279. main ()
  11280. {
  11281. return dlopen ();
  11282.   ;
  11283.   return 0;
  11284. }
  11285. _ACEOF
  11286. if ac_fn_c_try_link "$LINENO"; then :
  11287.   ac_cv_lib_dl_dlopen=yes
  11288. else
  11289.   ac_cv_lib_dl_dlopen=no
  11290. fi
  11291. rm -f core conftest.err conftest.$ac_objext \
  11292.     conftest$ac_exeext conftest.$ac_ext
  11293. LIBS=$ac_check_lib_save_LIBS
  11294. fi
  11295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11296. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11297. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11298.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11299. else
  11300.  
  11301.     lt_cv_dlopen="dyld"
  11302.     lt_cv_dlopen_libs=
  11303.     lt_cv_dlopen_self=yes
  11304.  
  11305. fi
  11306.  
  11307.     ;;
  11308.  
  11309.   *)
  11310.     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11311. if test "x$ac_cv_func_shl_load" = xyes; then :
  11312.   lt_cv_dlopen="shl_load"
  11313. else
  11314.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11315. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11316. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11317.   $as_echo_n "(cached) " >&6
  11318. else
  11319.   ac_check_lib_save_LIBS=$LIBS
  11320. LIBS="-ldld  $LIBS"
  11321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11322. /* end confdefs.h.  */
  11323.  
  11324. /* Override any GCC internal prototype to avoid an error.
  11325.    Use char because int might match the return type of a GCC
  11326.    builtin and then its argument prototype would still apply.  */
  11327. #ifdef __cplusplus
  11328. extern "C"
  11329. #endif
  11330. char shl_load ();
  11331. int
  11332. main ()
  11333. {
  11334. return shl_load ();
  11335.   ;
  11336.   return 0;
  11337. }
  11338. _ACEOF
  11339. if ac_fn_c_try_link "$LINENO"; then :
  11340.   ac_cv_lib_dld_shl_load=yes
  11341. else
  11342.   ac_cv_lib_dld_shl_load=no
  11343. fi
  11344. rm -f core conftest.err conftest.$ac_objext \
  11345.     conftest$ac_exeext conftest.$ac_ext
  11346. LIBS=$ac_check_lib_save_LIBS
  11347. fi
  11348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11349. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11350. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11351.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11352. else
  11353.   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11354. if test "x$ac_cv_func_dlopen" = xyes; then :
  11355.   lt_cv_dlopen="dlopen"
  11356. else
  11357.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11358. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11359. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11360.   $as_echo_n "(cached) " >&6
  11361. else
  11362.   ac_check_lib_save_LIBS=$LIBS
  11363. LIBS="-ldl  $LIBS"
  11364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11365. /* end confdefs.h.  */
  11366.  
  11367. /* Override any GCC internal prototype to avoid an error.
  11368.    Use char because int might match the return type of a GCC
  11369.    builtin and then its argument prototype would still apply.  */
  11370. #ifdef __cplusplus
  11371. extern "C"
  11372. #endif
  11373. char dlopen ();
  11374. int
  11375. main ()
  11376. {
  11377. return dlopen ();
  11378.   ;
  11379.   return 0;
  11380. }
  11381. _ACEOF
  11382. if ac_fn_c_try_link "$LINENO"; then :
  11383.   ac_cv_lib_dl_dlopen=yes
  11384. else
  11385.   ac_cv_lib_dl_dlopen=no
  11386. fi
  11387. rm -f core conftest.err conftest.$ac_objext \
  11388.     conftest$ac_exeext conftest.$ac_ext
  11389. LIBS=$ac_check_lib_save_LIBS
  11390. fi
  11391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11392. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11393. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11394.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11395. else
  11396.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11397. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11398. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11399.   $as_echo_n "(cached) " >&6
  11400. else
  11401.   ac_check_lib_save_LIBS=$LIBS
  11402. LIBS="-lsvld  $LIBS"
  11403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11404. /* end confdefs.h.  */
  11405.  
  11406. /* Override any GCC internal prototype to avoid an error.
  11407.    Use char because int might match the return type of a GCC
  11408.    builtin and then its argument prototype would still apply.  */
  11409. #ifdef __cplusplus
  11410. extern "C"
  11411. #endif
  11412. char dlopen ();
  11413. int
  11414. main ()
  11415. {
  11416. return dlopen ();
  11417.   ;
  11418.   return 0;
  11419. }
  11420. _ACEOF
  11421. if ac_fn_c_try_link "$LINENO"; then :
  11422.   ac_cv_lib_svld_dlopen=yes
  11423. else
  11424.   ac_cv_lib_svld_dlopen=no
  11425. fi
  11426. rm -f core conftest.err conftest.$ac_objext \
  11427.     conftest$ac_exeext conftest.$ac_ext
  11428. LIBS=$ac_check_lib_save_LIBS
  11429. fi
  11430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11431. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11432. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11433.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11434. else
  11435.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11436. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11437. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11438.   $as_echo_n "(cached) " >&6
  11439. else
  11440.   ac_check_lib_save_LIBS=$LIBS
  11441. LIBS="-ldld  $LIBS"
  11442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11443. /* end confdefs.h.  */
  11444.  
  11445. /* Override any GCC internal prototype to avoid an error.
  11446.    Use char because int might match the return type of a GCC
  11447.    builtin and then its argument prototype would still apply.  */
  11448. #ifdef __cplusplus
  11449. extern "C"
  11450. #endif
  11451. char dld_link ();
  11452. int
  11453. main ()
  11454. {
  11455. return dld_link ();
  11456.   ;
  11457.   return 0;
  11458. }
  11459. _ACEOF
  11460. if ac_fn_c_try_link "$LINENO"; then :
  11461.   ac_cv_lib_dld_dld_link=yes
  11462. else
  11463.   ac_cv_lib_dld_dld_link=no
  11464. fi
  11465. rm -f core conftest.err conftest.$ac_objext \
  11466.     conftest$ac_exeext conftest.$ac_ext
  11467. LIBS=$ac_check_lib_save_LIBS
  11468. fi
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11470. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11471. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11472.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11473. fi
  11474.  
  11475.  
  11476. fi
  11477.  
  11478.  
  11479. fi
  11480.  
  11481.  
  11482. fi
  11483.  
  11484.  
  11485. fi
  11486.  
  11487.  
  11488. fi
  11489.  
  11490.     ;;
  11491.   esac
  11492.  
  11493.   if test "x$lt_cv_dlopen" != xno; then
  11494.     enable_dlopen=yes
  11495.   else
  11496.     enable_dlopen=no
  11497.   fi
  11498.  
  11499.   case $lt_cv_dlopen in
  11500.   dlopen)
  11501.     save_CPPFLAGS="$CPPFLAGS"
  11502.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11503.  
  11504.     save_LDFLAGS="$LDFLAGS"
  11505.     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11506.  
  11507.     save_LIBS="$LIBS"
  11508.     LIBS="$lt_cv_dlopen_libs $LIBS"
  11509.  
  11510.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11511. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11512. if ${lt_cv_dlopen_self+:} false; then :
  11513.   $as_echo_n "(cached) " >&6
  11514. else
  11515.           if test "$cross_compiling" = yes; then :
  11516.   lt_cv_dlopen_self=cross
  11517. else
  11518.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11519.   lt_status=$lt_dlunknown
  11520.   cat > conftest.$ac_ext <<_LT_EOF
  11521. #line $LINENO "configure"
  11522. #include "confdefs.h"
  11523.  
  11524. #if HAVE_DLFCN_H
  11525. #include <dlfcn.h>
  11526. #endif
  11527.  
  11528. #include <stdio.h>
  11529.  
  11530. #ifdef RTLD_GLOBAL
  11531. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11532. #else
  11533. #  ifdef DL_GLOBAL
  11534. #    define LT_DLGLOBAL         DL_GLOBAL
  11535. #  else
  11536. #    define LT_DLGLOBAL         0
  11537. #  endif
  11538. #endif
  11539.  
  11540. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11541.    find out it does not work in some platform. */
  11542. #ifndef LT_DLLAZY_OR_NOW
  11543. #  ifdef RTLD_LAZY
  11544. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11545. #  else
  11546. #    ifdef DL_LAZY
  11547. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11548. #    else
  11549. #      ifdef RTLD_NOW
  11550. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11551. #      else
  11552. #        ifdef DL_NOW
  11553. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11554. #        else
  11555. #          define LT_DLLAZY_OR_NOW      0
  11556. #        endif
  11557. #      endif
  11558. #    endif
  11559. #  endif
  11560. #endif
  11561.  
  11562. /* When -fvisbility=hidden is used, assume the code has been annotated
  11563.    correspondingly for the symbols needed.  */
  11564. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11565. void fnord () __attribute__((visibility("default")));
  11566. #endif
  11567.  
  11568. void fnord () { int i=42; }
  11569. int main ()
  11570. {
  11571.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11572.   int status = $lt_dlunknown;
  11573.  
  11574.   if (self)
  11575.     {
  11576.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11577.       else
  11578.         {
  11579.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11580.           else puts (dlerror ());
  11581.         }
  11582.       /* dlclose (self); */
  11583.     }
  11584.   else
  11585.     puts (dlerror ());
  11586.  
  11587.   return status;
  11588. }
  11589. _LT_EOF
  11590.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11591.   (eval $ac_link) 2>&5
  11592.   ac_status=$?
  11593.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11594.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11595.     (./conftest; exit; ) >&5 2>/dev/null
  11596.     lt_status=$?
  11597.     case x$lt_status in
  11598.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11599.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11600.       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11601.     esac
  11602.   else :
  11603.     # compilation failed
  11604.     lt_cv_dlopen_self=no
  11605.   fi
  11606. fi
  11607. rm -fr conftest*
  11608.  
  11609.  
  11610. fi
  11611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11612. $as_echo "$lt_cv_dlopen_self" >&6; }
  11613.  
  11614.     if test "x$lt_cv_dlopen_self" = xyes; then
  11615.       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11616.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11617. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11618. if ${lt_cv_dlopen_self_static+:} false; then :
  11619.   $as_echo_n "(cached) " >&6
  11620. else
  11621.           if test "$cross_compiling" = yes; then :
  11622.   lt_cv_dlopen_self_static=cross
  11623. else
  11624.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11625.   lt_status=$lt_dlunknown
  11626.   cat > conftest.$ac_ext <<_LT_EOF
  11627. #line $LINENO "configure"
  11628. #include "confdefs.h"
  11629.  
  11630. #if HAVE_DLFCN_H
  11631. #include <dlfcn.h>
  11632. #endif
  11633.  
  11634. #include <stdio.h>
  11635.  
  11636. #ifdef RTLD_GLOBAL
  11637. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11638. #else
  11639. #  ifdef DL_GLOBAL
  11640. #    define LT_DLGLOBAL         DL_GLOBAL
  11641. #  else
  11642. #    define LT_DLGLOBAL         0
  11643. #  endif
  11644. #endif
  11645.  
  11646. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11647.    find out it does not work in some platform. */
  11648. #ifndef LT_DLLAZY_OR_NOW
  11649. #  ifdef RTLD_LAZY
  11650. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11651. #  else
  11652. #    ifdef DL_LAZY
  11653. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11654. #    else
  11655. #      ifdef RTLD_NOW
  11656. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11657. #      else
  11658. #        ifdef DL_NOW
  11659. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11660. #        else
  11661. #          define LT_DLLAZY_OR_NOW      0
  11662. #        endif
  11663. #      endif
  11664. #    endif
  11665. #  endif
  11666. #endif
  11667.  
  11668. /* When -fvisbility=hidden is used, assume the code has been annotated
  11669.    correspondingly for the symbols needed.  */
  11670. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11671. void fnord () __attribute__((visibility("default")));
  11672. #endif
  11673.  
  11674. void fnord () { int i=42; }
  11675. int main ()
  11676. {
  11677.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11678.   int status = $lt_dlunknown;
  11679.  
  11680.   if (self)
  11681.     {
  11682.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11683.       else
  11684.         {
  11685.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11686.           else puts (dlerror ());
  11687.         }
  11688.       /* dlclose (self); */
  11689.     }
  11690.   else
  11691.     puts (dlerror ());
  11692.  
  11693.   return status;
  11694. }
  11695. _LT_EOF
  11696.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11697.   (eval $ac_link) 2>&5
  11698.   ac_status=$?
  11699.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11700.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11701.     (./conftest; exit; ) >&5 2>/dev/null
  11702.     lt_status=$?
  11703.     case x$lt_status in
  11704.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11705.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11706.       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11707.     esac
  11708.   else :
  11709.     # compilation failed
  11710.     lt_cv_dlopen_self_static=no
  11711.   fi
  11712. fi
  11713. rm -fr conftest*
  11714.  
  11715.  
  11716. fi
  11717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11718. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11719.     fi
  11720.  
  11721.     CPPFLAGS="$save_CPPFLAGS"
  11722.     LDFLAGS="$save_LDFLAGS"
  11723.     LIBS="$save_LIBS"
  11724.     ;;
  11725.   esac
  11726.  
  11727.   case $lt_cv_dlopen_self in
  11728.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11729.   *) enable_dlopen_self=unknown ;;
  11730.   esac
  11731.  
  11732.   case $lt_cv_dlopen_self_static in
  11733.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11734.   *) enable_dlopen_self_static=unknown ;;
  11735.   esac
  11736. fi
  11737.  
  11738.  
  11739.  
  11740.  
  11741.  
  11742.  
  11743.  
  11744.  
  11745.  
  11746.  
  11747.  
  11748.  
  11749.  
  11750.  
  11751.  
  11752.  
  11753.  
  11754. striplib=
  11755. old_striplib=
  11756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11757. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11758. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11759.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11760.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11761.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11762. $as_echo "yes" >&6; }
  11763. else
  11764. # FIXME - insert some real tests, host_os isn't really good enough
  11765.   case $host_os in
  11766.   darwin*)
  11767.     if test -n "$STRIP" ; then
  11768.       striplib="$STRIP -x"
  11769.       old_striplib="$STRIP -S"
  11770.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11771. $as_echo "yes" >&6; }
  11772.     else
  11773.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11774. $as_echo "no" >&6; }
  11775.     fi
  11776.     ;;
  11777.   *)
  11778.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11779. $as_echo "no" >&6; }
  11780.     ;;
  11781.   esac
  11782. fi
  11783.  
  11784.  
  11785.  
  11786.  
  11787.  
  11788.  
  11789.  
  11790.  
  11791.  
  11792.  
  11793.  
  11794.  
  11795.   # Report which library types will actually be built
  11796.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11797. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11798.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11799. $as_echo "$can_build_shared" >&6; }
  11800.  
  11801.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11802. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11803.   test "$can_build_shared" = "no" && enable_shared=no
  11804.  
  11805.   # On AIX, shared libraries and static libraries use the same namespace, and
  11806.   # are all built from PIC.
  11807.   case $host_os in
  11808.   aix3*)
  11809.     test "$enable_shared" = yes && enable_static=no
  11810.     if test -n "$RANLIB"; then
  11811.       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11812.       postinstall_cmds='$RANLIB $lib'
  11813.     fi
  11814.     ;;
  11815.  
  11816.   aix[4-9]*)
  11817.     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11818.       test "$enable_shared" = yes && enable_static=no
  11819.     fi
  11820.     ;;
  11821.   esac
  11822.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11823. $as_echo "$enable_shared" >&6; }
  11824.  
  11825.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11826. $as_echo_n "checking whether to build static libraries... " >&6; }
  11827.   # Make sure either enable_shared or enable_static is yes.
  11828.   test "$enable_shared" = yes || enable_static=yes
  11829.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11830. $as_echo "$enable_static" >&6; }
  11831.  
  11832.  
  11833.  
  11834.  
  11835. fi
  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.  
  11842. CC="$lt_save_CC"
  11843.  
  11844.       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11845.     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11846.     (test "X$CXX" != "Xg++"))) ; then
  11847.   ac_ext=cpp
  11848. ac_cpp='$CXXCPP $CPPFLAGS'
  11849. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11850. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11851. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11853. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11854. if test -z "$CXXCPP"; then
  11855.   if ${ac_cv_prog_CXXCPP+:} false; then :
  11856.   $as_echo_n "(cached) " >&6
  11857. else
  11858.       # Double quotes because CXXCPP needs to be expanded
  11859.     for CXXCPP in "$CXX -E" "/lib/cpp"
  11860.     do
  11861.       ac_preproc_ok=false
  11862. for ac_cxx_preproc_warn_flag in '' yes
  11863. do
  11864.   # Use a header file that comes with gcc, so configuring glibc
  11865.   # with a fresh cross-compiler works.
  11866.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11867.   # <limits.h> exists even on freestanding compilers.
  11868.   # On the NeXT, cc -E runs the code through the compiler's parser,
  11869.   # not just through cpp. "Syntax error" is here to catch this case.
  11870.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11871. /* end confdefs.h.  */
  11872. #ifdef __STDC__
  11873. # include <limits.h>
  11874. #else
  11875. # include <assert.h>
  11876. #endif
  11877.                      Syntax error
  11878. _ACEOF
  11879. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11880.  
  11881. else
  11882.   # Broken: fails on valid input.
  11883. continue
  11884. fi
  11885. rm -f conftest.err conftest.i conftest.$ac_ext
  11886.  
  11887.   # OK, works on sane cases.  Now check whether nonexistent headers
  11888.   # can be detected and how.
  11889.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11890. /* end confdefs.h.  */
  11891. #include <ac_nonexistent.h>
  11892. _ACEOF
  11893. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11894.   # Broken: success on invalid input.
  11895. continue
  11896. else
  11897.   # Passes both tests.
  11898. ac_preproc_ok=:
  11899. break
  11900. fi
  11901. rm -f conftest.err conftest.i conftest.$ac_ext
  11902.  
  11903. done
  11904. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11905. rm -f conftest.i conftest.err conftest.$ac_ext
  11906. if $ac_preproc_ok; then :
  11907.   break
  11908. fi
  11909.  
  11910.     done
  11911.     ac_cv_prog_CXXCPP=$CXXCPP
  11912.  
  11913. fi
  11914.   CXXCPP=$ac_cv_prog_CXXCPP
  11915. else
  11916.   ac_cv_prog_CXXCPP=$CXXCPP
  11917. fi
  11918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11919. $as_echo "$CXXCPP" >&6; }
  11920. ac_preproc_ok=false
  11921. for ac_cxx_preproc_warn_flag in '' yes
  11922. do
  11923.   # Use a header file that comes with gcc, so configuring glibc
  11924.   # with a fresh cross-compiler works.
  11925.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11926.   # <limits.h> exists even on freestanding compilers.
  11927.   # On the NeXT, cc -E runs the code through the compiler's parser,
  11928.   # not just through cpp. "Syntax error" is here to catch this case.
  11929.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11930. /* end confdefs.h.  */
  11931. #ifdef __STDC__
  11932. # include <limits.h>
  11933. #else
  11934. # include <assert.h>
  11935. #endif
  11936.                      Syntax error
  11937. _ACEOF
  11938. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11939.  
  11940. else
  11941.   # Broken: fails on valid input.
  11942. continue
  11943. fi
  11944. rm -f conftest.err conftest.i conftest.$ac_ext
  11945.  
  11946.   # OK, works on sane cases.  Now check whether nonexistent headers
  11947.   # can be detected and how.
  11948.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11949. /* end confdefs.h.  */
  11950. #include <ac_nonexistent.h>
  11951. _ACEOF
  11952. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11953.   # Broken: success on invalid input.
  11954. continue
  11955. else
  11956.   # Passes both tests.
  11957. ac_preproc_ok=:
  11958. break
  11959. fi
  11960. rm -f conftest.err conftest.i conftest.$ac_ext
  11961.  
  11962. done
  11963. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11964. rm -f conftest.i conftest.err conftest.$ac_ext
  11965. if $ac_preproc_ok; then :
  11966.  
  11967. else
  11968.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11969. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11970. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11971. See \`config.log' for more details" "$LINENO" 5; }
  11972. fi
  11973.  
  11974. ac_ext=c
  11975. ac_cpp='$CPP $CPPFLAGS'
  11976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11979.  
  11980. else
  11981.   _lt_caught_CXX_error=yes
  11982. fi
  11983.  
  11984. ac_ext=cpp
  11985. ac_cpp='$CXXCPP $CPPFLAGS'
  11986. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11987. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11988. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11989.  
  11990. archive_cmds_need_lc_CXX=no
  11991. allow_undefined_flag_CXX=
  11992. always_export_symbols_CXX=no
  11993. archive_expsym_cmds_CXX=
  11994. compiler_needs_object_CXX=no
  11995. export_dynamic_flag_spec_CXX=
  11996. hardcode_direct_CXX=no
  11997. hardcode_direct_absolute_CXX=no
  11998. hardcode_libdir_flag_spec_CXX=
  11999. hardcode_libdir_flag_spec_ld_CXX=
  12000. hardcode_libdir_separator_CXX=
  12001. hardcode_minus_L_CXX=no
  12002. hardcode_shlibpath_var_CXX=unsupported
  12003. hardcode_automatic_CXX=no
  12004. inherit_rpath_CXX=no
  12005. module_cmds_CXX=
  12006. module_expsym_cmds_CXX=
  12007. link_all_deplibs_CXX=unknown
  12008. old_archive_cmds_CXX=$old_archive_cmds
  12009. reload_flag_CXX=$reload_flag
  12010. reload_cmds_CXX=$reload_cmds
  12011. no_undefined_flag_CXX=
  12012. whole_archive_flag_spec_CXX=
  12013. enable_shared_with_static_runtimes_CXX=no
  12014.  
  12015. # Source file extension for C++ test sources.
  12016. ac_ext=cpp
  12017.  
  12018. # Object file extension for compiled C++ test sources.
  12019. objext=o
  12020. objext_CXX=$objext
  12021.  
  12022. # No sense in running all these tests if we already determined that
  12023. # the CXX compiler isn't working.  Some variables (like enable_shared)
  12024. # are currently assumed to apply to all compilers on this platform,
  12025. # and will be corrupted by setting them based on a non-working compiler.
  12026. if test "$_lt_caught_CXX_error" != yes; then
  12027.   # Code to be used in simple compile tests
  12028.   lt_simple_compile_test_code="int some_variable = 0;"
  12029.  
  12030.   # Code to be used in simple link tests
  12031.   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12032.  
  12033.   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12034.  
  12035.  
  12036.  
  12037.  
  12038.  
  12039.  
  12040. # If no C compiler was specified, use CC.
  12041. LTCC=${LTCC-"$CC"}
  12042.  
  12043. # If no C compiler flags were specified, use CFLAGS.
  12044. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12045.  
  12046. # Allow CC to be a program name with arguments.
  12047. compiler=$CC
  12048.  
  12049.  
  12050.   # save warnings/boilerplate of simple test code
  12051.   ac_outfile=conftest.$ac_objext
  12052. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12053. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12054. _lt_compiler_boilerplate=`cat conftest.err`
  12055. $RM conftest*
  12056.  
  12057.   ac_outfile=conftest.$ac_objext
  12058. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12059. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12060. _lt_linker_boilerplate=`cat conftest.err`
  12061. $RM -r conftest*
  12062.  
  12063.  
  12064.   # Allow CC to be a program name with arguments.
  12065.   lt_save_CC=$CC
  12066.   lt_save_LD=$LD
  12067.   lt_save_GCC=$GCC
  12068.   GCC=$GXX
  12069.   lt_save_with_gnu_ld=$with_gnu_ld
  12070.   lt_save_path_LD=$lt_cv_path_LD
  12071.   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12072.     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12073.   else
  12074.     $as_unset lt_cv_prog_gnu_ld
  12075.   fi
  12076.   if test -n "${lt_cv_path_LDCXX+set}"; then
  12077.     lt_cv_path_LD=$lt_cv_path_LDCXX
  12078.   else
  12079.     $as_unset lt_cv_path_LD
  12080.   fi
  12081.   test -z "${LDCXX+set}" || LD=$LDCXX
  12082.   CC=${CXX-"c++"}
  12083.   compiler=$CC
  12084.   compiler_CXX=$CC
  12085.   for cc_temp in $compiler""; do
  12086.   case $cc_temp in
  12087.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12088.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12089.     \-*) ;;
  12090.     *) break;;
  12091.   esac
  12092. done
  12093. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12094.  
  12095.  
  12096.   if test -n "$compiler"; then
  12097.     # We don't want -fno-exception when compiling C++ code, so set the
  12098.     # no_builtin_flag separately
  12099.     if test "$GXX" = yes; then
  12100.       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12101.     else
  12102.       lt_prog_compiler_no_builtin_flag_CXX=
  12103.     fi
  12104.  
  12105.     if test "$GXX" = yes; then
  12106.       # Set up default GNU C++ configuration
  12107.  
  12108.  
  12109.  
  12110. # Check whether --with-gnu-ld was given.
  12111. if test "${with_gnu_ld+set}" = set; then :
  12112.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  12113. else
  12114.   with_gnu_ld=no
  12115. fi
  12116.  
  12117. ac_prog=ld
  12118. if test "$GCC" = yes; then
  12119.   # Check if gcc -print-prog-name=ld gives a path.
  12120.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12121. $as_echo_n "checking for ld used by $CC... " >&6; }
  12122.   case $host in
  12123.   *-*-mingw*)
  12124.     # gcc leaves a trailing carriage return which upsets mingw
  12125.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12126.   *)
  12127.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12128.   esac
  12129.   case $ac_prog in
  12130.     # Accept absolute paths.
  12131.     [\\/]* | ?:[\\/]*)
  12132.       re_direlt='/[^/][^/]*/\.\./'
  12133.       # Canonicalize the pathname of ld
  12134.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12135.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12136.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12137.       done
  12138.       test -z "$LD" && LD="$ac_prog"
  12139.       ;;
  12140.   "")
  12141.     # If it fails, then pretend we aren't using GCC.
  12142.     ac_prog=ld
  12143.     ;;
  12144.   *)
  12145.     # If it is relative, then search for the first ld in PATH.
  12146.     with_gnu_ld=unknown
  12147.     ;;
  12148.   esac
  12149. elif test "$with_gnu_ld" = yes; then
  12150.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12151. $as_echo_n "checking for GNU ld... " >&6; }
  12152. else
  12153.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12154. $as_echo_n "checking for non-GNU ld... " >&6; }
  12155. fi
  12156. if ${lt_cv_path_LD+:} false; then :
  12157.   $as_echo_n "(cached) " >&6
  12158. else
  12159.   if test -z "$LD"; then
  12160.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12161.   for ac_dir in $PATH; do
  12162.     IFS="$lt_save_ifs"
  12163.     test -z "$ac_dir" && ac_dir=.
  12164.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12165.       lt_cv_path_LD="$ac_dir/$ac_prog"
  12166.       # Check to see if the program is GNU ld.  I'd rather use --version,
  12167.       # but apparently some variants of GNU ld only accept -v.
  12168.       # Break only if it was the GNU/non-GNU ld that we prefer.
  12169.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12170.       *GNU* | *'with BFD'*)
  12171.         test "$with_gnu_ld" != no && break
  12172.         ;;
  12173.       *)
  12174.         test "$with_gnu_ld" != yes && break
  12175.         ;;
  12176.       esac
  12177.     fi
  12178.   done
  12179.   IFS="$lt_save_ifs"
  12180. else
  12181.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12182. fi
  12183. fi
  12184.  
  12185. LD="$lt_cv_path_LD"
  12186. if test -n "$LD"; then
  12187.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12188. $as_echo "$LD" >&6; }
  12189. else
  12190.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12191. $as_echo "no" >&6; }
  12192. fi
  12193. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12195. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12196. if ${lt_cv_prog_gnu_ld+:} false; then :
  12197.   $as_echo_n "(cached) " >&6
  12198. else
  12199.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12200. case `$LD -v 2>&1 </dev/null` in
  12201. *GNU* | *'with BFD'*)
  12202.   lt_cv_prog_gnu_ld=yes
  12203.   ;;
  12204. *)
  12205.   lt_cv_prog_gnu_ld=no
  12206.   ;;
  12207. esac
  12208. fi
  12209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12210. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12211. with_gnu_ld=$lt_cv_prog_gnu_ld
  12212.  
  12213.  
  12214.  
  12215.  
  12216.  
  12217.  
  12218.  
  12219.       # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12220.       # archiving commands below assume that GNU ld is being used.
  12221.       if test "$with_gnu_ld" = yes; then
  12222.         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12223.         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12224.  
  12225.         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12226.         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12227.  
  12228.         # If archive_cmds runs LD, not CC, wlarc should be empty
  12229.         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12230.         #     investigate it a little bit more. (MM)
  12231.         wlarc='${wl}'
  12232.  
  12233.         # ancient GNU ld didn't support --whole-archive et. al.
  12234.         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12235.           $GREP 'no-whole-archive' > /dev/null; then
  12236.           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12237.         else
  12238.           whole_archive_flag_spec_CXX=
  12239.         fi
  12240.       else
  12241.         with_gnu_ld=no
  12242.         wlarc=
  12243.  
  12244.         # A generic and very simple default shared library creation
  12245.         # command for GNU C++ for the case where it uses the native
  12246.         # linker, instead of GNU ld.  If possible, this setting should
  12247.         # overridden to take advantage of the native linker features on
  12248.         # the platform it is being used on.
  12249.         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12250.       fi
  12251.  
  12252.       # Commands to make compiler produce verbose output that lists
  12253.       # what "hidden" libraries, object files and flags are used when
  12254.       # linking a shared library.
  12255.       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12256.  
  12257.     else
  12258.       GXX=no
  12259.       with_gnu_ld=no
  12260.       wlarc=
  12261.     fi
  12262.  
  12263.     # PORTME: fill in a description of your system's C++ link characteristics
  12264.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12265. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12266.     ld_shlibs_CXX=yes
  12267.     case $host_os in
  12268.       aix3*)
  12269.         # FIXME: insert proper C++ library support
  12270.         ld_shlibs_CXX=no
  12271.         ;;
  12272.       aix[4-9]*)
  12273.         if test "$host_cpu" = ia64; then
  12274.           # On IA64, the linker does run time linking by default, so we don't
  12275.           # have to do anything special.
  12276.           aix_use_runtimelinking=no
  12277.           exp_sym_flag='-Bexport'
  12278.           no_entry_flag=""
  12279.         else
  12280.           aix_use_runtimelinking=no
  12281.  
  12282.           # Test if we are trying to use run time linking or normal
  12283.           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12284.           # need to do runtime linking.
  12285.           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12286.             for ld_flag in $LDFLAGS; do
  12287.               case $ld_flag in
  12288.               *-brtl*)
  12289.                 aix_use_runtimelinking=yes
  12290.                 break
  12291.                 ;;
  12292.               esac
  12293.             done
  12294.             ;;
  12295.           esac
  12296.  
  12297.           exp_sym_flag='-bexport'
  12298.           no_entry_flag='-bnoentry'
  12299.         fi
  12300.  
  12301.         # When large executables or shared objects are built, AIX ld can
  12302.         # have problems creating the table of contents.  If linking a library
  12303.         # or program results in "error TOC overflow" add -mminimal-toc to
  12304.         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  12305.         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12306.  
  12307.         archive_cmds_CXX=''
  12308.         hardcode_direct_CXX=yes
  12309.         hardcode_direct_absolute_CXX=yes
  12310.         hardcode_libdir_separator_CXX=':'
  12311.         link_all_deplibs_CXX=yes
  12312.         file_list_spec_CXX='${wl}-f,'
  12313.  
  12314.         if test "$GXX" = yes; then
  12315.           case $host_os in aix4.[012]|aix4.[012].*)
  12316.           # We only want to do this on AIX 4.2 and lower, the check
  12317.           # below for broken collect2 doesn't work under 4.3+
  12318.           collect2name=`${CC} -print-prog-name=collect2`
  12319.           if test -f "$collect2name" &&
  12320.              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12321.           then
  12322.             # We have reworked collect2
  12323.             :
  12324.           else
  12325.             # We have old collect2
  12326.             hardcode_direct_CXX=unsupported
  12327.             # It fails to find uninstalled libraries when the uninstalled
  12328.             # path is not listed in the libpath.  Setting hardcode_minus_L
  12329.             # to unsupported forces relinking
  12330.             hardcode_minus_L_CXX=yes
  12331.             hardcode_libdir_flag_spec_CXX='-L$libdir'
  12332.             hardcode_libdir_separator_CXX=
  12333.           fi
  12334.           esac
  12335.           shared_flag='-shared'
  12336.           if test "$aix_use_runtimelinking" = yes; then
  12337.             shared_flag="$shared_flag "'${wl}-G'
  12338.           fi
  12339.         else
  12340.           # not using gcc
  12341.           if test "$host_cpu" = ia64; then
  12342.           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12343.           # chokes on -Wl,-G. The following line is correct:
  12344.           shared_flag='-G'
  12345.           else
  12346.             if test "$aix_use_runtimelinking" = yes; then
  12347.               shared_flag='${wl}-G'
  12348.             else
  12349.               shared_flag='${wl}-bM:SRE'
  12350.             fi
  12351.           fi
  12352.         fi
  12353.  
  12354.         export_dynamic_flag_spec_CXX='${wl}-bexpall'
  12355.         # It seems that -bexpall does not export symbols beginning with
  12356.         # underscore (_), so it is better to generate a list of symbols to
  12357.         # export.
  12358.         always_export_symbols_CXX=yes
  12359.         if test "$aix_use_runtimelinking" = yes; then
  12360.           # Warning - without using the other runtime loading flags (-brtl),
  12361.           # -berok will link without error, but may produce a broken library.
  12362.           allow_undefined_flag_CXX='-berok'
  12363.           # Determine the default libpath from the value encoded in an empty
  12364.           # executable.
  12365.           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12366. /* end confdefs.h.  */
  12367.  
  12368. int
  12369. main ()
  12370. {
  12371.  
  12372.   ;
  12373.   return 0;
  12374. }
  12375. _ACEOF
  12376. if ac_fn_cxx_try_link "$LINENO"; then :
  12377.  
  12378. lt_aix_libpath_sed='
  12379.     /Import File Strings/,/^$/ {
  12380.         /^0/ {
  12381.             s/^0  *\(.*\)$/\1/
  12382.             p
  12383.         }
  12384.     }'
  12385. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12386. # Check for a 64-bit object if we didn't find anything.
  12387. if test -z "$aix_libpath"; then
  12388.   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12389. fi
  12390. fi
  12391. rm -f core conftest.err conftest.$ac_objext \
  12392.     conftest$ac_exeext conftest.$ac_ext
  12393. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12394.  
  12395.           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12396.  
  12397.           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"
  12398.         else
  12399.           if test "$host_cpu" = ia64; then
  12400.             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  12401.             allow_undefined_flag_CXX="-z nodefs"
  12402.             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"
  12403.           else
  12404.             # Determine the default libpath from the value encoded in an
  12405.             # empty executable.
  12406.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12407. /* end confdefs.h.  */
  12408.  
  12409. int
  12410. main ()
  12411. {
  12412.  
  12413.   ;
  12414.   return 0;
  12415. }
  12416. _ACEOF
  12417. if ac_fn_cxx_try_link "$LINENO"; then :
  12418.  
  12419. lt_aix_libpath_sed='
  12420.     /Import File Strings/,/^$/ {
  12421.         /^0/ {
  12422.             s/^0  *\(.*\)$/\1/
  12423.             p
  12424.         }
  12425.     }'
  12426. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12427. # Check for a 64-bit object if we didn't find anything.
  12428. if test -z "$aix_libpath"; then
  12429.   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12430. fi
  12431. fi
  12432. rm -f core conftest.err conftest.$ac_objext \
  12433.     conftest$ac_exeext conftest.$ac_ext
  12434. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12435.  
  12436.             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12437.             # Warning - without using the other run time loading flags,
  12438.             # -berok will link without error, but may produce a broken library.
  12439.             no_undefined_flag_CXX=' ${wl}-bernotok'
  12440.             allow_undefined_flag_CXX=' ${wl}-berok'
  12441.             if test "$with_gnu_ld" = yes; then
  12442.               # We only use this code for GNU lds that support --whole-archive.
  12443.               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12444.             else
  12445.               # Exported symbols can be pulled into shared objects from archives
  12446.               whole_archive_flag_spec_CXX='$convenience'
  12447.             fi
  12448.             archive_cmds_need_lc_CXX=yes
  12449.             # This is similar to how AIX traditionally builds its shared
  12450.             # libraries.
  12451.             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'
  12452.           fi
  12453.         fi
  12454.         ;;
  12455.  
  12456.       beos*)
  12457.         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12458.           allow_undefined_flag_CXX=unsupported
  12459.           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12460.           # support --undefined.  This deserves some investigation.  FIXME
  12461.           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12462.         else
  12463.           ld_shlibs_CXX=no
  12464.         fi
  12465.         ;;
  12466.  
  12467.       chorus*)
  12468.         case $cc_basename in
  12469.           *)
  12470.           # FIXME: insert proper C++ library support
  12471.           ld_shlibs_CXX=no
  12472.           ;;
  12473.         esac
  12474.         ;;
  12475.  
  12476.       cygwin* | mingw* | pw32* | cegcc*)
  12477.         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12478.         # as there is no search path for DLLs.
  12479.         hardcode_libdir_flag_spec_CXX='-L$libdir'
  12480.         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  12481.         allow_undefined_flag_CXX=unsupported
  12482.         always_export_symbols_CXX=no
  12483.         enable_shared_with_static_runtimes_CXX=yes
  12484.  
  12485.         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12486.           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'
  12487.           # If the export-symbols file already is a .def file (1st line
  12488.           # is EXPORTS), use it as is; otherwise, prepend...
  12489.           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12490.             cp $export_symbols $output_objdir/$soname.def;
  12491.           else
  12492.             echo EXPORTS > $output_objdir/$soname.def;
  12493.             cat $export_symbols >> $output_objdir/$soname.def;
  12494.           fi~
  12495.           $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'
  12496.         else
  12497.           ld_shlibs_CXX=no
  12498.         fi
  12499.         ;;
  12500.       darwin* | rhapsody*)
  12501.  
  12502.  
  12503.   archive_cmds_need_lc_CXX=no
  12504.   hardcode_direct_CXX=no
  12505.   hardcode_automatic_CXX=yes
  12506.   hardcode_shlibpath_var_CXX=unsupported
  12507.   if test "$lt_cv_ld_force_load" = "yes"; then
  12508.     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\"`'
  12509.   else
  12510.     whole_archive_flag_spec_CXX=''
  12511.   fi
  12512.   link_all_deplibs_CXX=yes
  12513.   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  12514.   case $cc_basename in
  12515.      ifort*) _lt_dar_can_shared=yes ;;
  12516.      *) _lt_dar_can_shared=$GCC ;;
  12517.   esac
  12518.   if test "$_lt_dar_can_shared" = "yes"; then
  12519.     output_verbose_link_cmd=func_echo_all
  12520.     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}"
  12521.     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12522.     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}"
  12523.     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}"
  12524.        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  12525.       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}"
  12526.       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}"
  12527.     fi
  12528.  
  12529.   else
  12530.   ld_shlibs_CXX=no
  12531.   fi
  12532.  
  12533.         ;;
  12534.  
  12535.       dgux*)
  12536.         case $cc_basename in
  12537.           ec++*)
  12538.             # FIXME: insert proper C++ library support
  12539.             ld_shlibs_CXX=no
  12540.             ;;
  12541.           ghcx*)
  12542.             # Green Hills C++ Compiler
  12543.             # FIXME: insert proper C++ library support
  12544.             ld_shlibs_CXX=no
  12545.             ;;
  12546.           *)
  12547.             # FIXME: insert proper C++ library support
  12548.             ld_shlibs_CXX=no
  12549.             ;;
  12550.         esac
  12551.         ;;
  12552.  
  12553.       freebsd[12]*)
  12554.         # C++ shared libraries reported to be fairly broken before
  12555.         # switch to ELF
  12556.         ld_shlibs_CXX=no
  12557.         ;;
  12558.  
  12559.       freebsd-elf*)
  12560.         archive_cmds_need_lc_CXX=no
  12561.         ;;
  12562.  
  12563.       freebsd* | dragonfly*)
  12564.         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12565.         # conventions
  12566.         ld_shlibs_CXX=yes
  12567.         ;;
  12568.  
  12569.       gnu*)
  12570.         ;;
  12571.  
  12572.       haiku*)
  12573.         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12574.         link_all_deplibs_CXX=yes
  12575.         ;;
  12576.  
  12577.       hpux9*)
  12578.         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12579.         hardcode_libdir_separator_CXX=:
  12580.         export_dynamic_flag_spec_CXX='${wl}-E'
  12581.         hardcode_direct_CXX=yes
  12582.         hardcode_minus_L_CXX=yes # Not in the search PATH,
  12583.                                              # but as the default
  12584.                                              # location of the library.
  12585.  
  12586.         case $cc_basename in
  12587.           CC*)
  12588.             # FIXME: insert proper C++ library support
  12589.             ld_shlibs_CXX=no
  12590.             ;;
  12591.           aCC*)
  12592.             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'
  12593.             # Commands to make compiler produce verbose output that lists
  12594.             # what "hidden" libraries, object files and flags are used when
  12595.             # linking a shared library.
  12596.             #
  12597.             # There doesn't appear to be a way to prevent this compiler from
  12598.             # explicitly linking system object files so we need to strip them
  12599.             # from the output so that they don't get included in the library
  12600.             # dependencies.
  12601.             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"'
  12602.             ;;
  12603.           *)
  12604.             if test "$GXX" = yes; then
  12605.               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  12606.             else
  12607.               # FIXME: insert proper C++ library support
  12608.               ld_shlibs_CXX=no
  12609.             fi
  12610.             ;;
  12611.         esac
  12612.         ;;
  12613.  
  12614.       hpux10*|hpux11*)
  12615.         if test $with_gnu_ld = no; then
  12616.           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12617.           hardcode_libdir_separator_CXX=:
  12618.  
  12619.           case $host_cpu in
  12620.             hppa*64*|ia64*)
  12621.               ;;
  12622.             *)
  12623.               export_dynamic_flag_spec_CXX='${wl}-E'
  12624.               ;;
  12625.           esac
  12626.         fi
  12627.         case $host_cpu in
  12628.           hppa*64*|ia64*)
  12629.             hardcode_direct_CXX=no
  12630.             hardcode_shlibpath_var_CXX=no
  12631.             ;;
  12632.           *)
  12633.             hardcode_direct_CXX=yes
  12634.             hardcode_direct_absolute_CXX=yes
  12635.             hardcode_minus_L_CXX=yes # Not in the search PATH,
  12636.                                                  # but as the default
  12637.                                                  # location of the library.
  12638.             ;;
  12639.         esac
  12640.  
  12641.         case $cc_basename in
  12642.           CC*)
  12643.             # FIXME: insert proper C++ library support
  12644.             ld_shlibs_CXX=no
  12645.             ;;
  12646.           aCC*)
  12647.             case $host_cpu in
  12648.               hppa*64*)
  12649.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12650.                 ;;
  12651.               ia64*)
  12652.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12653.                 ;;
  12654.               *)
  12655.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12656.                 ;;
  12657.             esac
  12658.             # Commands to make compiler produce verbose output that lists
  12659.             # what "hidden" libraries, object files and flags are used when
  12660.             # linking a shared library.
  12661.             #
  12662.             # There doesn't appear to be a way to prevent this compiler from
  12663.             # explicitly linking system object files so we need to strip them
  12664.             # from the output so that they don't get included in the library
  12665.             # dependencies.
  12666.             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"'
  12667.             ;;
  12668.           *)
  12669.             if test "$GXX" = yes; then
  12670.               if test $with_gnu_ld = no; then
  12671.                 case $host_cpu in
  12672.                   hppa*64*)
  12673.                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12674.                     ;;
  12675.                   ia64*)
  12676.                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12677.                     ;;
  12678.                   *)
  12679.                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12680.                     ;;
  12681.                 esac
  12682.               fi
  12683.             else
  12684.               # FIXME: insert proper C++ library support
  12685.               ld_shlibs_CXX=no
  12686.             fi
  12687.             ;;
  12688.         esac
  12689.         ;;
  12690.  
  12691.       interix[3-9]*)
  12692.         hardcode_direct_CXX=no
  12693.         hardcode_shlibpath_var_CXX=no
  12694.         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12695.         export_dynamic_flag_spec_CXX='${wl}-E'
  12696.         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12697.         # Instead, shared libraries are loaded at an image base (0x10000000 by
  12698.         # default) and relocated if they conflict, which is a slow very memory
  12699.         # consuming and fragmenting process.  To avoid this, we pick a random,
  12700.         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12701.         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  12702.         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'
  12703.         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'
  12704.         ;;
  12705.       irix5* | irix6*)
  12706.         case $cc_basename in
  12707.           CC*)
  12708.             # SGI C++
  12709.             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'
  12710.  
  12711.             # Archives containing C++ object files must be created using
  12712.             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  12713.             # necessary to make sure instantiated templates are included
  12714.             # in the archive.
  12715.             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12716.             ;;
  12717.           *)
  12718.             if test "$GXX" = yes; then
  12719.               if test "$with_gnu_ld" = no; then
  12720.                 archive_cmds_CXX='$CC -shared -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'
  12721.               else
  12722.                 archive_cmds_CXX='$CC -shared -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'
  12723.               fi
  12724.             fi
  12725.             link_all_deplibs_CXX=yes
  12726.             ;;
  12727.         esac
  12728.         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12729.         hardcode_libdir_separator_CXX=:
  12730.         inherit_rpath_CXX=yes
  12731.         ;;
  12732.  
  12733.       linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12734.         case $cc_basename in
  12735.           KCC*)
  12736.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  12737.  
  12738.             # KCC will only create a shared library if the output file
  12739.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12740.             # to its proper name (with version) after linking.
  12741.             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'
  12742.             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'
  12743.             # Commands to make compiler produce verbose output that lists
  12744.             # what "hidden" libraries, object files and flags are used when
  12745.             # linking a shared library.
  12746.             #
  12747.             # There doesn't appear to be a way to prevent this compiler from
  12748.             # explicitly linking system object files so we need to strip them
  12749.             # from the output so that they don't get included in the library
  12750.             # dependencies.
  12751.             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"'
  12752.  
  12753.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12754.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12755.  
  12756.             # Archives containing C++ object files must be created using
  12757.             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12758.             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12759.             ;;
  12760.           icpc* | ecpc* )
  12761.             # Intel C++
  12762.             with_gnu_ld=yes
  12763.             # version 8.0 and above of icpc choke on multiply defined symbols
  12764.             # if we add $predep_objects and $postdep_objects, however 7.1 and
  12765.             # earlier do not add the objects themselves.
  12766.             case `$CC -V 2>&1` in
  12767.               *"Version 7."*)
  12768.                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12769.                 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'
  12770.                 ;;
  12771.               *)  # Version 8.0 or newer
  12772.                 tmp_idyn=
  12773.                 case $host_cpu in
  12774.                   ia64*) tmp_idyn=' -i_dynamic';;
  12775.                 esac
  12776.                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12777.                 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'
  12778.                 ;;
  12779.             esac
  12780.             archive_cmds_need_lc_CXX=no
  12781.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12782.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12783.             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12784.             ;;
  12785.           pgCC* | pgcpp*)
  12786.             # Portland Group C++ compiler
  12787.             case `$CC -V` in
  12788.             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12789.               prelink_cmds_CXX='tpldir=Template.dir~
  12790.                 rm -rf $tpldir~
  12791.                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12792.                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12793.               old_archive_cmds_CXX='tpldir=Template.dir~
  12794.                 rm -rf $tpldir~
  12795.                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12796.                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12797.                 $RANLIB $oldlib'
  12798.               archive_cmds_CXX='tpldir=Template.dir~
  12799.                 rm -rf $tpldir~
  12800.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12801.                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12802.               archive_expsym_cmds_CXX='tpldir=Template.dir~
  12803.                 rm -rf $tpldir~
  12804.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12805.                 $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'
  12806.               ;;
  12807.             *) # Version 6 and above use weak symbols
  12808.               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12809.               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'
  12810.               ;;
  12811.             esac
  12812.  
  12813.             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12814.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12815.             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'
  12816.             ;;
  12817.           cxx*)
  12818.             # Compaq C++
  12819.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12820.             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'
  12821.  
  12822.             runpath_var=LD_RUN_PATH
  12823.             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12824.             hardcode_libdir_separator_CXX=:
  12825.  
  12826.             # Commands to make compiler produce verbose output that lists
  12827.             # what "hidden" libraries, object files and flags are used when
  12828.             # linking a shared library.
  12829.             #
  12830.             # There doesn't appear to be a way to prevent this compiler from
  12831.             # explicitly linking system object files so we need to strip them
  12832.             # from the output so that they don't get included in the library
  12833.             # dependencies.
  12834.             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'
  12835.             ;;
  12836.           xl* | mpixl* | bgxl*)
  12837.             # IBM XL 8.0 on PPC, with GNU ld
  12838.             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12839.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12840.             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12841.             if test "x$supports_anon_versioning" = xyes; then
  12842.               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12843.                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12844.                 echo "local: *; };" >> $output_objdir/$libname.ver~
  12845.                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12846.             fi
  12847.             ;;
  12848.           *)
  12849.             case `$CC -V 2>&1 | sed 5q` in
  12850.             *Sun\ C*)
  12851.               # Sun C++ 5.9
  12852.               no_undefined_flag_CXX=' -zdefs'
  12853.               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12854.               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'
  12855.               hardcode_libdir_flag_spec_CXX='-R$libdir'
  12856.               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'
  12857.               compiler_needs_object_CXX=yes
  12858.  
  12859.               # Not sure whether something based on
  12860.               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12861.               # would be better.
  12862.               output_verbose_link_cmd='func_echo_all'
  12863.  
  12864.               # Archives containing C++ object files must be created using
  12865.               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  12866.               # necessary to make sure instantiated templates are included
  12867.               # in the archive.
  12868.               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12869.               ;;
  12870.             esac
  12871.             ;;
  12872.         esac
  12873.         ;;
  12874.  
  12875.       lynxos*)
  12876.         # FIXME: insert proper C++ library support
  12877.         ld_shlibs_CXX=no
  12878.         ;;
  12879.  
  12880.       m88k*)
  12881.         # FIXME: insert proper C++ library support
  12882.         ld_shlibs_CXX=no
  12883.         ;;
  12884.  
  12885.       mvs*)
  12886.         case $cc_basename in
  12887.           cxx*)
  12888.             # FIXME: insert proper C++ library support
  12889.             ld_shlibs_CXX=no
  12890.             ;;
  12891.           *)
  12892.             # FIXME: insert proper C++ library support
  12893.             ld_shlibs_CXX=no
  12894.             ;;
  12895.         esac
  12896.         ;;
  12897.  
  12898.       netbsd*)
  12899.         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12900.           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12901.           wlarc=
  12902.           hardcode_libdir_flag_spec_CXX='-R$libdir'
  12903.           hardcode_direct_CXX=yes
  12904.           hardcode_shlibpath_var_CXX=no
  12905.         fi
  12906.         # Workaround some broken pre-1.5 toolchains
  12907.         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12908.         ;;
  12909.  
  12910.       *nto* | *qnx*)
  12911.         ld_shlibs_CXX=yes
  12912.         ;;
  12913.  
  12914.       openbsd2*)
  12915.         # C++ shared libraries are fairly broken
  12916.         ld_shlibs_CXX=no
  12917.         ;;
  12918.  
  12919.       openbsd*)
  12920.         if test -f /usr/libexec/ld.so; then
  12921.           hardcode_direct_CXX=yes
  12922.           hardcode_shlibpath_var_CXX=no
  12923.           hardcode_direct_absolute_CXX=yes
  12924.           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12925.           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12926.           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12927.             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12928.             export_dynamic_flag_spec_CXX='${wl}-E'
  12929.             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12930.           fi
  12931.           output_verbose_link_cmd=func_echo_all
  12932.         else
  12933.           ld_shlibs_CXX=no
  12934.         fi
  12935.         ;;
  12936.  
  12937.       osf3* | osf4* | osf5*)
  12938.         case $cc_basename in
  12939.           KCC*)
  12940.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  12941.  
  12942.             # KCC will only create a shared library if the output file
  12943.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12944.             # to its proper name (with version) after linking.
  12945.             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'
  12946.  
  12947.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12948.             hardcode_libdir_separator_CXX=:
  12949.  
  12950.             # Archives containing C++ object files must be created using
  12951.             # the KAI C++ compiler.
  12952.             case $host in
  12953.               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12954.               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12955.             esac
  12956.             ;;
  12957.           RCC*)
  12958.             # Rational C++ 2.4.1
  12959.             # FIXME: insert proper C++ library support
  12960.             ld_shlibs_CXX=no
  12961.             ;;
  12962.           cxx*)
  12963.             case $host in
  12964.               osf3*)
  12965.                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12966.                 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'
  12967.                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12968.                 ;;
  12969.               *)
  12970.                 allow_undefined_flag_CXX=' -expect_unresolved \*'
  12971.                 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'
  12972.                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12973.                   echo "-hidden">> $lib.exp~
  12974.                   $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~
  12975.                   $RM $lib.exp'
  12976.                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12977.                 ;;
  12978.             esac
  12979.  
  12980.             hardcode_libdir_separator_CXX=:
  12981.  
  12982.             # Commands to make compiler produce verbose output that lists
  12983.             # what "hidden" libraries, object files and flags are used when
  12984.             # linking a shared library.
  12985.             #
  12986.             # There doesn't appear to be a way to prevent this compiler from
  12987.             # explicitly linking system object files so we need to strip them
  12988.             # from the output so that they don't get included in the library
  12989.             # dependencies.
  12990.             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"'
  12991.             ;;
  12992.           *)
  12993.             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12994.               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12995.               case $host in
  12996.                 osf3*)
  12997.                   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'
  12998.                   ;;
  12999.                 *)
  13000.                   archive_cmds_CXX='$CC -shared -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'
  13001.                   ;;
  13002.               esac
  13003.  
  13004.               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13005.               hardcode_libdir_separator_CXX=:
  13006.  
  13007.               # Commands to make compiler produce verbose output that lists
  13008.               # what "hidden" libraries, object files and flags are used when
  13009.               # linking a shared library.
  13010.               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13011.  
  13012.             else
  13013.               # FIXME: insert proper C++ library support
  13014.               ld_shlibs_CXX=no
  13015.             fi
  13016.             ;;
  13017.         esac
  13018.         ;;
  13019.  
  13020.       psos*)
  13021.         # FIXME: insert proper C++ library support
  13022.         ld_shlibs_CXX=no
  13023.         ;;
  13024.  
  13025.       sunos4*)
  13026.         case $cc_basename in
  13027.           CC*)
  13028.             # Sun C++ 4.x
  13029.             # FIXME: insert proper C++ library support
  13030.             ld_shlibs_CXX=no
  13031.             ;;
  13032.           lcc*)
  13033.             # Lucid
  13034.             # FIXME: insert proper C++ library support
  13035.             ld_shlibs_CXX=no
  13036.             ;;
  13037.           *)
  13038.             # FIXME: insert proper C++ library support
  13039.             ld_shlibs_CXX=no
  13040.             ;;
  13041.         esac
  13042.         ;;
  13043.  
  13044.       solaris*)
  13045.         case $cc_basename in
  13046.           CC* | sunCC*)
  13047.             # Sun C++ 4.2, 5.x and Centerline C++
  13048.             archive_cmds_need_lc_CXX=yes
  13049.             no_undefined_flag_CXX=' -zdefs'
  13050.             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13051.             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13052.               $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'
  13053.  
  13054.             hardcode_libdir_flag_spec_CXX='-R$libdir'
  13055.             hardcode_shlibpath_var_CXX=no
  13056.             case $host_os in
  13057.               solaris2.[0-5] | solaris2.[0-5].*) ;;
  13058.               *)
  13059.                 # The compiler driver will combine and reorder linker options,
  13060.                 # but understands `-z linker_flag'.
  13061.                 # Supported since Solaris 2.6 (maybe 2.5.1?)
  13062.                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13063.                 ;;
  13064.             esac
  13065.             link_all_deplibs_CXX=yes
  13066.  
  13067.             output_verbose_link_cmd='func_echo_all'
  13068.  
  13069.             # Archives containing C++ object files must be created using
  13070.             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  13071.             # necessary to make sure instantiated templates are included
  13072.             # in the archive.
  13073.             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13074.             ;;
  13075.           gcx*)
  13076.             # Green Hills C++ Compiler
  13077.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13078.  
  13079.             # The C++ compiler must be used to create the archive.
  13080.             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13081.             ;;
  13082.           *)
  13083.             # GNU C++ compiler with Solaris linker
  13084.             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13085.               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  13086.               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13087.                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13088.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13089.                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13090.  
  13091.                 # Commands to make compiler produce verbose output that lists
  13092.                 # what "hidden" libraries, object files and flags are used when
  13093.                 # linking a shared library.
  13094.                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13095.               else
  13096.                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
  13097.                 # platform.
  13098.                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13099.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13100.                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13101.  
  13102.                 # Commands to make compiler produce verbose output that lists
  13103.                 # what "hidden" libraries, object files and flags are used when
  13104.                 # linking a shared library.
  13105.                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13106.               fi
  13107.  
  13108.               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  13109.               case $host_os in
  13110.                 solaris2.[0-5] | solaris2.[0-5].*) ;;
  13111.                 *)
  13112.                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13113.                   ;;
  13114.               esac
  13115.             fi
  13116.             ;;
  13117.         esac
  13118.         ;;
  13119.  
  13120.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13121.       no_undefined_flag_CXX='${wl}-z,text'
  13122.       archive_cmds_need_lc_CXX=no
  13123.       hardcode_shlibpath_var_CXX=no
  13124.       runpath_var='LD_RUN_PATH'
  13125.  
  13126.       case $cc_basename in
  13127.         CC*)
  13128.           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13129.           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13130.           ;;
  13131.         *)
  13132.           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13133.           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13134.           ;;
  13135.       esac
  13136.       ;;
  13137.  
  13138.       sysv5* | sco3.2v5* | sco5v6*)
  13139.         # Note: We can NOT use -z defs as we might desire, because we do not
  13140.         # link with -lc, and that would cause any symbols used from libc to
  13141.         # always be unresolved, which means just about no library would
  13142.         # ever link correctly.  If we're not using GNU ld we use -z text
  13143.         # though, which does catch some bad symbols but isn't as heavy-handed
  13144.         # as -z defs.
  13145.         no_undefined_flag_CXX='${wl}-z,text'
  13146.         allow_undefined_flag_CXX='${wl}-z,nodefs'
  13147.         archive_cmds_need_lc_CXX=no
  13148.         hardcode_shlibpath_var_CXX=no
  13149.         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  13150.         hardcode_libdir_separator_CXX=':'
  13151.         link_all_deplibs_CXX=yes
  13152.         export_dynamic_flag_spec_CXX='${wl}-Bexport'
  13153.         runpath_var='LD_RUN_PATH'
  13154.  
  13155.         case $cc_basename in
  13156.           CC*)
  13157.             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13158.             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13159.             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13160.               '"$old_archive_cmds_CXX"
  13161.             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13162.               '"$reload_cmds_CXX"
  13163.             ;;
  13164.           *)
  13165.             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13166.             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13167.             ;;
  13168.         esac
  13169.       ;;
  13170.  
  13171.       tandem*)
  13172.         case $cc_basename in
  13173.           NCC*)
  13174.             # NonStop-UX NCC 3.20
  13175.             # FIXME: insert proper C++ library support
  13176.             ld_shlibs_CXX=no
  13177.             ;;
  13178.           *)
  13179.             # FIXME: insert proper C++ library support
  13180.             ld_shlibs_CXX=no
  13181.             ;;
  13182.         esac
  13183.         ;;
  13184.  
  13185.       vxworks*)
  13186.         # FIXME: insert proper C++ library support
  13187.         ld_shlibs_CXX=no
  13188.         ;;
  13189.  
  13190.       *)
  13191.         # FIXME: insert proper C++ library support
  13192.         ld_shlibs_CXX=no
  13193.         ;;
  13194.     esac
  13195.  
  13196.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13197. $as_echo "$ld_shlibs_CXX" >&6; }
  13198.     test "$ld_shlibs_CXX" = no && can_build_shared=no
  13199.  
  13200.     GCC_CXX="$GXX"
  13201.     LD_CXX="$LD"
  13202.  
  13203.     ## CAVEAT EMPTOR:
  13204.     ## There is no encapsulation within the following macros, do not change
  13205.     ## the running order or otherwise move them around unless you know exactly
  13206.     ## what you are doing...
  13207.     # Dependencies to place before and after the object being linked:
  13208. predep_objects_CXX=
  13209. postdep_objects_CXX=
  13210. predeps_CXX=
  13211. postdeps_CXX=
  13212. compiler_lib_search_path_CXX=
  13213.  
  13214. cat > conftest.$ac_ext <<_LT_EOF
  13215. class Foo
  13216. {
  13217. public:
  13218.   Foo (void) { a = 0; }
  13219. private:
  13220.   int a;
  13221. };
  13222. _LT_EOF
  13223.  
  13224. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13225.   (eval $ac_compile) 2>&5
  13226.   ac_status=$?
  13227.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13228.   test $ac_status = 0; }; then
  13229.   # Parse the compiler output and extract the necessary
  13230.   # objects, libraries and library flags.
  13231.  
  13232.   # Sentinel used to keep track of whether or not we are before
  13233.   # the conftest object file.
  13234.   pre_test_object_deps_done=no
  13235.  
  13236.   for p in `eval "$output_verbose_link_cmd"`; do
  13237.     case $p in
  13238.  
  13239.     -L* | -R* | -l*)
  13240.        # Some compilers place space between "-{L,R}" and the path.
  13241.        # Remove the space.
  13242.        if test $p = "-L" ||
  13243.           test $p = "-R"; then
  13244.          prev=$p
  13245.          continue
  13246.        else
  13247.          prev=
  13248.        fi
  13249.  
  13250.        if test "$pre_test_object_deps_done" = no; then
  13251.          case $p in
  13252.          -L* | -R*)
  13253.            # Internal compiler library paths should come after those
  13254.            # provided the user.  The postdeps already come after the
  13255.            # user supplied libs so there is no need to process them.
  13256.            if test -z "$compiler_lib_search_path_CXX"; then
  13257.              compiler_lib_search_path_CXX="${prev}${p}"
  13258.            else
  13259.              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  13260.            fi
  13261.            ;;
  13262.          # The "-l" case would never come before the object being
  13263.          # linked, so don't bother handling this case.
  13264.          esac
  13265.        else
  13266.          if test -z "$postdeps_CXX"; then
  13267.            postdeps_CXX="${prev}${p}"
  13268.          else
  13269.            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  13270.          fi
  13271.        fi
  13272.        ;;
  13273.  
  13274.     *.$objext)
  13275.        # This assumes that the test object file only shows up
  13276.        # once in the compiler output.
  13277.        if test "$p" = "conftest.$objext"; then
  13278.          pre_test_object_deps_done=yes
  13279.          continue
  13280.        fi
  13281.  
  13282.        if test "$pre_test_object_deps_done" = no; then
  13283.          if test -z "$predep_objects_CXX"; then
  13284.            predep_objects_CXX="$p"
  13285.          else
  13286.            predep_objects_CXX="$predep_objects_CXX $p"
  13287.          fi
  13288.        else
  13289.          if test -z "$postdep_objects_CXX"; then
  13290.            postdep_objects_CXX="$p"
  13291.          else
  13292.            postdep_objects_CXX="$postdep_objects_CXX $p"
  13293.          fi
  13294.        fi
  13295.        ;;
  13296.  
  13297.     *) ;; # Ignore the rest.
  13298.  
  13299.     esac
  13300.   done
  13301.  
  13302.   # Clean up.
  13303.   rm -f a.out a.exe
  13304. else
  13305.   echo "libtool.m4: error: problem compiling CXX test program"
  13306. fi
  13307.  
  13308. $RM -f confest.$objext
  13309.  
  13310. # PORTME: override above test on systems where it is broken
  13311. case $host_os in
  13312. interix[3-9]*)
  13313.   # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13314.   # hack all around it, let's just trust "g++" to DTRT.
  13315.   predep_objects_CXX=
  13316.   postdep_objects_CXX=
  13317.   postdeps_CXX=
  13318.   ;;
  13319.  
  13320. linux*)
  13321.   case `$CC -V 2>&1 | sed 5q` in
  13322.   *Sun\ C*)
  13323.     # Sun C++ 5.9
  13324.  
  13325.     # The more standards-conforming stlport4 library is
  13326.     # incompatible with the Cstd library. Avoid specifying
  13327.     # it if it's in CXXFLAGS. Ignore libCrun as
  13328.     # -library=stlport4 depends on it.
  13329.     case " $CXX $CXXFLAGS " in
  13330.     *" -library=stlport4 "*)
  13331.       solaris_use_stlport4=yes
  13332.       ;;
  13333.     esac
  13334.  
  13335.     if test "$solaris_use_stlport4" != yes; then
  13336.       postdeps_CXX='-library=Cstd -library=Crun'
  13337.     fi
  13338.     ;;
  13339.   esac
  13340.   ;;
  13341.  
  13342. solaris*)
  13343.   case $cc_basename in
  13344.   CC* | sunCC*)
  13345.     # The more standards-conforming stlport4 library is
  13346.     # incompatible with the Cstd library. Avoid specifying
  13347.     # it if it's in CXXFLAGS. Ignore libCrun as
  13348.     # -library=stlport4 depends on it.
  13349.     case " $CXX $CXXFLAGS " in
  13350.     *" -library=stlport4 "*)
  13351.       solaris_use_stlport4=yes
  13352.       ;;
  13353.     esac
  13354.  
  13355.     # Adding this requires a known-good setup of shared libraries for
  13356.     # Sun compiler versions before 5.6, else PIC objects from an old
  13357.     # archive will be linked into the output, leading to subtle bugs.
  13358.     if test "$solaris_use_stlport4" != yes; then
  13359.       postdeps_CXX='-library=Cstd -library=Crun'
  13360.     fi
  13361.     ;;
  13362.   esac
  13363.   ;;
  13364. esac
  13365.  
  13366.  
  13367. case " $postdeps_CXX " in
  13368. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13369. esac
  13370.  compiler_lib_search_dirs_CXX=
  13371. if test -n "${compiler_lib_search_path_CXX}"; then
  13372.  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  13373. fi
  13374.  
  13375.  
  13376.  
  13377.  
  13378.  
  13379.  
  13380.  
  13381.  
  13382.  
  13383.  
  13384.  
  13385.  
  13386.  
  13387.  
  13388.  
  13389.  
  13390.  
  13391.  
  13392.  
  13393.  
  13394.  
  13395.  
  13396.  
  13397.  
  13398.  
  13399.  
  13400.  
  13401.  
  13402.  
  13403.  
  13404.  
  13405.     lt_prog_compiler_wl_CXX=
  13406. lt_prog_compiler_pic_CXX=
  13407. lt_prog_compiler_static_CXX=
  13408.  
  13409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13410. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13411.  
  13412.   # C++ specific cases for pic, static, wl, etc.
  13413.   if test "$GXX" = yes; then
  13414.     lt_prog_compiler_wl_CXX='-Wl,'
  13415.     lt_prog_compiler_static_CXX='-static'
  13416.  
  13417.     case $host_os in
  13418.     aix*)
  13419.       # All AIX code is PIC.
  13420.       if test "$host_cpu" = ia64; then
  13421.         # AIX 5 now supports IA64 processor
  13422.         lt_prog_compiler_static_CXX='-Bstatic'
  13423.       fi
  13424.       ;;
  13425.  
  13426.     amigaos*)
  13427.       case $host_cpu in
  13428.       powerpc)
  13429.             # see comment about AmigaOS4 .so support
  13430.             lt_prog_compiler_pic_CXX='-fPIC'
  13431.         ;;
  13432.       m68k)
  13433.             # FIXME: we need at least 68020 code to build shared libraries, but
  13434.             # adding the `-m68020' flag to GCC prevents building anything better,
  13435.             # like `-m68040'.
  13436.             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13437.         ;;
  13438.       esac
  13439.       ;;
  13440.  
  13441.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13442.       # PIC is the default for these OSes.
  13443.       ;;
  13444.     mingw* | cygwin* | os2* | pw32* | cegcc*)
  13445.       # This hack is so that the source file can tell whether it is being
  13446.       # built for inclusion in a dll (and should export symbols for example).
  13447.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13448.       # (--disable-auto-import) libraries
  13449.       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13450.       ;;
  13451.     darwin* | rhapsody*)
  13452.       # PIC is the default on this platform
  13453.       # Common symbols not allowed in MH_DYLIB files
  13454.       lt_prog_compiler_pic_CXX='-fno-common'
  13455.       ;;
  13456.     *djgpp*)
  13457.       # DJGPP does not support shared libraries at all
  13458.       lt_prog_compiler_pic_CXX=
  13459.       ;;
  13460.     haiku*)
  13461.       # PIC is the default for Haiku.
  13462.       # The "-static" flag exists, but is broken.
  13463.       lt_prog_compiler_static_CXX=
  13464.       ;;
  13465.     interix[3-9]*)
  13466.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13467.       # Instead, we relocate shared libraries at runtime.
  13468.       ;;
  13469.     sysv4*MP*)
  13470.       if test -d /usr/nec; then
  13471.         lt_prog_compiler_pic_CXX=-Kconform_pic
  13472.       fi
  13473.       ;;
  13474.     hpux*)
  13475.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13476.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  13477.       # sets the default TLS model and affects inlining.
  13478.       case $host_cpu in
  13479.       hppa*64*)
  13480.         ;;
  13481.       *)
  13482.         lt_prog_compiler_pic_CXX='-fPIC'
  13483.         ;;
  13484.       esac
  13485.       ;;
  13486.     *qnx* | *nto*)
  13487.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  13488.       # it will coredump.
  13489.       lt_prog_compiler_pic_CXX='-fPIC -shared'
  13490.       ;;
  13491.     *)
  13492.       lt_prog_compiler_pic_CXX='-fPIC'
  13493.       ;;
  13494.     esac
  13495.   else
  13496.     case $host_os in
  13497.       aix[4-9]*)
  13498.         # All AIX code is PIC.
  13499.         if test "$host_cpu" = ia64; then
  13500.           # AIX 5 now supports IA64 processor
  13501.           lt_prog_compiler_static_CXX='-Bstatic'
  13502.         else
  13503.           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13504.         fi
  13505.         ;;
  13506.       chorus*)
  13507.         case $cc_basename in
  13508.         cxch68*)
  13509.           # Green Hills C++ Compiler
  13510.           # _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"
  13511.           ;;
  13512.         esac
  13513.         ;;
  13514.       dgux*)
  13515.         case $cc_basename in
  13516.           ec++*)
  13517.             lt_prog_compiler_pic_CXX='-KPIC'
  13518.             ;;
  13519.           ghcx*)
  13520.             # Green Hills C++ Compiler
  13521.             lt_prog_compiler_pic_CXX='-pic'
  13522.             ;;
  13523.           *)
  13524.             ;;
  13525.         esac
  13526.         ;;
  13527.       freebsd* | dragonfly*)
  13528.         # FreeBSD uses GNU C++
  13529.         ;;
  13530.       hpux9* | hpux10* | hpux11*)
  13531.         case $cc_basename in
  13532.           CC*)
  13533.             lt_prog_compiler_wl_CXX='-Wl,'
  13534.             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13535.             if test "$host_cpu" != ia64; then
  13536.               lt_prog_compiler_pic_CXX='+Z'
  13537.             fi
  13538.             ;;
  13539.           aCC*)
  13540.             lt_prog_compiler_wl_CXX='-Wl,'
  13541.             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13542.             case $host_cpu in
  13543.             hppa*64*|ia64*)
  13544.               # +Z the default
  13545.               ;;
  13546.             *)
  13547.               lt_prog_compiler_pic_CXX='+Z'
  13548.               ;;
  13549.             esac
  13550.             ;;
  13551.           *)
  13552.             ;;
  13553.         esac
  13554.         ;;
  13555.       interix*)
  13556.         # This is c89, which is MS Visual C++ (no shared libs)
  13557.         # Anyone wants to do a port?
  13558.         ;;
  13559.       irix5* | irix6* | nonstopux*)
  13560.         case $cc_basename in
  13561.           CC*)
  13562.             lt_prog_compiler_wl_CXX='-Wl,'
  13563.             lt_prog_compiler_static_CXX='-non_shared'
  13564.             # CC pic flag -KPIC is the default.
  13565.             ;;
  13566.           *)
  13567.             ;;
  13568.         esac
  13569.         ;;
  13570.       linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13571.         case $cc_basename in
  13572.           KCC*)
  13573.             # KAI C++ Compiler
  13574.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  13575.             lt_prog_compiler_pic_CXX='-fPIC'
  13576.             ;;
  13577.           ecpc* )
  13578.             # old Intel C++ for x86_64 which still supported -KPIC.
  13579.             lt_prog_compiler_wl_CXX='-Wl,'
  13580.             lt_prog_compiler_pic_CXX='-KPIC'
  13581.             lt_prog_compiler_static_CXX='-static'
  13582.             ;;
  13583.           icpc* )
  13584.             # Intel C++, used to be incompatible with GCC.
  13585.             # ICC 10 doesn't accept -KPIC any more.
  13586.             lt_prog_compiler_wl_CXX='-Wl,'
  13587.             lt_prog_compiler_pic_CXX='-fPIC'
  13588.             lt_prog_compiler_static_CXX='-static'
  13589.             ;;
  13590.           pgCC* | pgcpp*)
  13591.             # Portland Group C++ compiler
  13592.             lt_prog_compiler_wl_CXX='-Wl,'
  13593.             lt_prog_compiler_pic_CXX='-fpic'
  13594.             lt_prog_compiler_static_CXX='-Bstatic'
  13595.             ;;
  13596.           cxx*)
  13597.             # Compaq C++
  13598.             # Make sure the PIC flag is empty.  It appears that all Alpha
  13599.             # Linux and Compaq Tru64 Unix objects are PIC.
  13600.             lt_prog_compiler_pic_CXX=
  13601.             lt_prog_compiler_static_CXX='-non_shared'
  13602.             ;;
  13603.           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13604.             # IBM XL 8.0, 9.0 on PPC and BlueGene
  13605.             lt_prog_compiler_wl_CXX='-Wl,'
  13606.             lt_prog_compiler_pic_CXX='-qpic'
  13607.             lt_prog_compiler_static_CXX='-qstaticlink'
  13608.             ;;
  13609.           *)
  13610.             case `$CC -V 2>&1 | sed 5q` in
  13611.             *Sun\ C*)
  13612.               # Sun C++ 5.9
  13613.               lt_prog_compiler_pic_CXX='-KPIC'
  13614.               lt_prog_compiler_static_CXX='-Bstatic'
  13615.               lt_prog_compiler_wl_CXX='-Qoption ld '
  13616.               ;;
  13617.             esac
  13618.             ;;
  13619.         esac
  13620.         ;;
  13621.       lynxos*)
  13622.         ;;
  13623.       m88k*)
  13624.         ;;
  13625.       mvs*)
  13626.         case $cc_basename in
  13627.           cxx*)
  13628.             lt_prog_compiler_pic_CXX='-W c,exportall'
  13629.             ;;
  13630.           *)
  13631.             ;;
  13632.         esac
  13633.         ;;
  13634.       netbsd*)
  13635.         ;;
  13636.       *qnx* | *nto*)
  13637.         # QNX uses GNU C++, but need to define -shared option too, otherwise
  13638.         # it will coredump.
  13639.         lt_prog_compiler_pic_CXX='-fPIC -shared'
  13640.         ;;
  13641.       osf3* | osf4* | osf5*)
  13642.         case $cc_basename in
  13643.           KCC*)
  13644.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  13645.             ;;
  13646.           RCC*)
  13647.             # Rational C++ 2.4.1
  13648.             lt_prog_compiler_pic_CXX='-pic'
  13649.             ;;
  13650.           cxx*)
  13651.             # Digital/Compaq C++
  13652.             lt_prog_compiler_wl_CXX='-Wl,'
  13653.             # Make sure the PIC flag is empty.  It appears that all Alpha
  13654.             # Linux and Compaq Tru64 Unix objects are PIC.
  13655.             lt_prog_compiler_pic_CXX=
  13656.             lt_prog_compiler_static_CXX='-non_shared'
  13657.             ;;
  13658.           *)
  13659.             ;;
  13660.         esac
  13661.         ;;
  13662.       psos*)
  13663.         ;;
  13664.       solaris*)
  13665.         case $cc_basename in
  13666.           CC* | sunCC*)
  13667.             # Sun C++ 4.2, 5.x and Centerline C++
  13668.             lt_prog_compiler_pic_CXX='-KPIC'
  13669.             lt_prog_compiler_static_CXX='-Bstatic'
  13670.             lt_prog_compiler_wl_CXX='-Qoption ld '
  13671.             ;;
  13672.           gcx*)
  13673.             # Green Hills C++ Compiler
  13674.             lt_prog_compiler_pic_CXX='-PIC'
  13675.             ;;
  13676.           *)
  13677.             ;;
  13678.         esac
  13679.         ;;
  13680.       sunos4*)
  13681.         case $cc_basename in
  13682.           CC*)
  13683.             # Sun C++ 4.x
  13684.             lt_prog_compiler_pic_CXX='-pic'
  13685.             lt_prog_compiler_static_CXX='-Bstatic'
  13686.             ;;
  13687.           lcc*)
  13688.             # Lucid
  13689.             lt_prog_compiler_pic_CXX='-pic'
  13690.             ;;
  13691.           *)
  13692.             ;;
  13693.         esac
  13694.         ;;
  13695.       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13696.         case $cc_basename in
  13697.           CC*)
  13698.             lt_prog_compiler_wl_CXX='-Wl,'
  13699.             lt_prog_compiler_pic_CXX='-KPIC'
  13700.             lt_prog_compiler_static_CXX='-Bstatic'
  13701.             ;;
  13702.         esac
  13703.         ;;
  13704.       tandem*)
  13705.         case $cc_basename in
  13706.           NCC*)
  13707.             # NonStop-UX NCC 3.20
  13708.             lt_prog_compiler_pic_CXX='-KPIC'
  13709.             ;;
  13710.           *)
  13711.             ;;
  13712.         esac
  13713.         ;;
  13714.       vxworks*)
  13715.         ;;
  13716.       *)
  13717.         lt_prog_compiler_can_build_shared_CXX=no
  13718.         ;;
  13719.     esac
  13720.   fi
  13721.  
  13722. case $host_os in
  13723.   # For platforms which do not support PIC, -DPIC is meaningless:
  13724.   *djgpp*)
  13725.     lt_prog_compiler_pic_CXX=
  13726.     ;;
  13727.   *)
  13728.     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13729.     ;;
  13730. esac
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  13732. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  13733.  
  13734.  
  13735.  
  13736. #
  13737. # Check to make sure the PIC flag actually works.
  13738. #
  13739. if test -n "$lt_prog_compiler_pic_CXX"; then
  13740.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13741. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13742. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13743.   $as_echo_n "(cached) " >&6
  13744. else
  13745.   lt_cv_prog_compiler_pic_works_CXX=no
  13746.    ac_outfile=conftest.$ac_objext
  13747.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13748.    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  13749.    # Insert the option either (1) after the last *FLAGS variable, or
  13750.    # (2) before a word containing "conftest.", or (3) at the end.
  13751.    # Note that $ac_compile itself does not contain backslashes and begins
  13752.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  13753.    # The option is referenced via a variable to avoid confusing sed.
  13754.    lt_compile=`echo "$ac_compile" | $SED \
  13755.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13756.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13757.    -e 's:$: $lt_compiler_flag:'`
  13758.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13759.    (eval "$lt_compile" 2>conftest.err)
  13760.    ac_status=$?
  13761.    cat conftest.err >&5
  13762.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13763.    if (exit $ac_status) && test -s "$ac_outfile"; then
  13764.      # The compiler can only warn and ignore the option if not recognized
  13765.      # So say no if there are warnings other than the usual output.
  13766.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13767.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13768.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13769.        lt_cv_prog_compiler_pic_works_CXX=yes
  13770.      fi
  13771.    fi
  13772.    $RM conftest*
  13773.  
  13774. fi
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13776. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13777.  
  13778. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  13779.     case $lt_prog_compiler_pic_CXX in
  13780.      "" | " "*) ;;
  13781.      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13782.      esac
  13783. else
  13784.     lt_prog_compiler_pic_CXX=
  13785.      lt_prog_compiler_can_build_shared_CXX=no
  13786. fi
  13787.  
  13788. fi
  13789.  
  13790.  
  13791.  
  13792. #
  13793. # Check to make sure the static flag actually works.
  13794. #
  13795. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13797. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13798. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13799.   $as_echo_n "(cached) " >&6
  13800. else
  13801.   lt_cv_prog_compiler_static_works_CXX=no
  13802.    save_LDFLAGS="$LDFLAGS"
  13803.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13804.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13805.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13806.      # The linker can only warn and ignore the option if not recognized
  13807.      # So say no if there are warnings
  13808.      if test -s conftest.err; then
  13809.        # Append any errors to the config.log.
  13810.        cat conftest.err 1>&5
  13811.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13812.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13813.        if diff conftest.exp conftest.er2 >/dev/null; then
  13814.          lt_cv_prog_compiler_static_works_CXX=yes
  13815.        fi
  13816.      else
  13817.        lt_cv_prog_compiler_static_works_CXX=yes
  13818.      fi
  13819.    fi
  13820.    $RM -r conftest*
  13821.    LDFLAGS="$save_LDFLAGS"
  13822.  
  13823. fi
  13824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13825. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13826.  
  13827. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  13828.     :
  13829. else
  13830.     lt_prog_compiler_static_CXX=
  13831. fi
  13832.  
  13833.  
  13834.  
  13835.  
  13836.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13837. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13838. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13839.   $as_echo_n "(cached) " >&6
  13840. else
  13841.   lt_cv_prog_compiler_c_o_CXX=no
  13842.    $RM -r conftest 2>/dev/null
  13843.    mkdir conftest
  13844.    cd conftest
  13845.    mkdir out
  13846.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13847.  
  13848.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  13849.    # Insert the option either (1) after the last *FLAGS variable, or
  13850.    # (2) before a word containing "conftest.", or (3) at the end.
  13851.    # Note that $ac_compile itself does not contain backslashes and begins
  13852.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  13853.    lt_compile=`echo "$ac_compile" | $SED \
  13854.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13855.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13856.    -e 's:$: $lt_compiler_flag:'`
  13857.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13858.    (eval "$lt_compile" 2>out/conftest.err)
  13859.    ac_status=$?
  13860.    cat out/conftest.err >&5
  13861.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13862.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13863.    then
  13864.      # The compiler can only warn and ignore the option if not recognized
  13865.      # So say no if there are warnings
  13866.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13867.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13868.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13869.        lt_cv_prog_compiler_c_o_CXX=yes
  13870.      fi
  13871.    fi
  13872.    chmod u+w . 2>&5
  13873.    $RM conftest*
  13874.    # SGI C++ compiler will create directory out/ii_files/ for
  13875.    # template instantiation
  13876.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13877.    $RM out/* && rmdir out
  13878.    cd ..
  13879.    $RM -r conftest
  13880.    $RM conftest*
  13881.  
  13882. fi
  13883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13884. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13885.  
  13886.  
  13887.  
  13888.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13889. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13890. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13891.   $as_echo_n "(cached) " >&6
  13892. else
  13893.   lt_cv_prog_compiler_c_o_CXX=no
  13894.    $RM -r conftest 2>/dev/null
  13895.    mkdir conftest
  13896.    cd conftest
  13897.    mkdir out
  13898.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13899.  
  13900.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  13901.    # Insert the option either (1) after the last *FLAGS variable, or
  13902.    # (2) before a word containing "conftest.", or (3) at the end.
  13903.    # Note that $ac_compile itself does not contain backslashes and begins
  13904.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  13905.    lt_compile=`echo "$ac_compile" | $SED \
  13906.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13907.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13908.    -e 's:$: $lt_compiler_flag:'`
  13909.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13910.    (eval "$lt_compile" 2>out/conftest.err)
  13911.    ac_status=$?
  13912.    cat out/conftest.err >&5
  13913.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13914.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13915.    then
  13916.      # The compiler can only warn and ignore the option if not recognized
  13917.      # So say no if there are warnings
  13918.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13919.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13920.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13921.        lt_cv_prog_compiler_c_o_CXX=yes
  13922.      fi
  13923.    fi
  13924.    chmod u+w . 2>&5
  13925.    $RM conftest*
  13926.    # SGI C++ compiler will create directory out/ii_files/ for
  13927.    # template instantiation
  13928.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13929.    $RM out/* && rmdir out
  13930.    cd ..
  13931.    $RM -r conftest
  13932.    $RM conftest*
  13933.  
  13934. fi
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13936. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13937.  
  13938.  
  13939.  
  13940.  
  13941. hard_links="nottested"
  13942. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  13943.   # do not overwrite the value of need_locks provided by the user
  13944.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13945. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13946.   hard_links=yes
  13947.   $RM conftest*
  13948.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13949.   touch conftest.a
  13950.   ln conftest.a conftest.b 2>&5 || hard_links=no
  13951.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13952.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13953. $as_echo "$hard_links" >&6; }
  13954.   if test "$hard_links" = no; then
  13955.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13956. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13957.     need_locks=warn
  13958.   fi
  13959. else
  13960.   need_locks=no
  13961. fi
  13962.  
  13963.  
  13964.  
  13965.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13966. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13967.  
  13968.   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13969.   case $host_os in
  13970.   aix[4-9]*)
  13971.     # If we're using GNU nm, then we don't want the "-C" option.
  13972.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13973.     # Also, AIX nm treats weak defined symbols like other global defined
  13974.     # symbols, whereas GNU nm marks them as "W".
  13975.     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13976.       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'
  13977.     else
  13978.       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'
  13979.     fi
  13980.     ;;
  13981.   pw32*)
  13982.     export_symbols_cmds_CXX="$ltdll_cmds"
  13983.   ;;
  13984.   cygwin* | mingw* | cegcc*)
  13985.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13986.   ;;
  13987.   *)
  13988.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13989.   ;;
  13990.   esac
  13991.   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13992.  
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13994. $as_echo "$ld_shlibs_CXX" >&6; }
  13995. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13996.  
  13997. with_gnu_ld_CXX=$with_gnu_ld
  13998.  
  13999.  
  14000.  
  14001.  
  14002.  
  14003.  
  14004. #
  14005. # Do we need to explicitly link libc?
  14006. #
  14007. case "x$archive_cmds_need_lc_CXX" in
  14008. x|xyes)
  14009.   # Assume -lc should be added
  14010.   archive_cmds_need_lc_CXX=yes
  14011.  
  14012.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  14013.     case $archive_cmds_CXX in
  14014.     *'~'*)
  14015.       # FIXME: we may have to deal with multi-command sequences.
  14016.       ;;
  14017.     '$CC '*)
  14018.       # Test whether the compiler implicitly links with -lc since on some
  14019.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14020.       # to ld, don't add -lc before -lgcc.
  14021.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14022. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14023. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14024.   $as_echo_n "(cached) " >&6
  14025. else
  14026.   $RM conftest*
  14027.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14028.  
  14029.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14030.   (eval $ac_compile) 2>&5
  14031.   ac_status=$?
  14032.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14033.   test $ac_status = 0; } 2>conftest.err; then
  14034.           soname=conftest
  14035.           lib=conftest
  14036.           libobjs=conftest.$ac_objext
  14037.           deplibs=
  14038.           wl=$lt_prog_compiler_wl_CXX
  14039.           pic_flag=$lt_prog_compiler_pic_CXX
  14040.           compiler_flags=-v
  14041.           linker_flags=-v
  14042.           verstring=
  14043.           output_objdir=.
  14044.           libname=conftest
  14045.           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14046.           allow_undefined_flag_CXX=
  14047.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14048.   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14049.   ac_status=$?
  14050.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14051.   test $ac_status = 0; }
  14052.           then
  14053.             lt_cv_archive_cmds_need_lc_CXX=no
  14054.           else
  14055.             lt_cv_archive_cmds_need_lc_CXX=yes
  14056.           fi
  14057.           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14058.         else
  14059.           cat conftest.err 1>&5
  14060.         fi
  14061.         $RM conftest*
  14062.  
  14063. fi
  14064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14065. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14066.       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14067.       ;;
  14068.     esac
  14069.   fi
  14070.   ;;
  14071. esac
  14072.  
  14073.  
  14074.  
  14075.  
  14076.  
  14077.  
  14078.  
  14079.  
  14080.  
  14081.  
  14082.  
  14083.  
  14084.  
  14085.  
  14086.  
  14087.  
  14088.  
  14089.  
  14090.  
  14091.  
  14092.  
  14093.  
  14094.  
  14095.  
  14096.  
  14097.  
  14098.  
  14099.  
  14100.  
  14101.  
  14102.  
  14103.  
  14104.  
  14105.  
  14106.  
  14107.  
  14108.  
  14109.  
  14110.  
  14111.  
  14112.  
  14113.  
  14114.  
  14115.  
  14116.  
  14117.  
  14118.  
  14119.  
  14120.  
  14121.  
  14122.  
  14123.  
  14124.  
  14125.  
  14126.  
  14127.  
  14128.  
  14129.  
  14130.  
  14131.  
  14132.  
  14133.  
  14134.  
  14135.  
  14136.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14137. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14138.  
  14139. library_names_spec=
  14140. libname_spec='lib$name'
  14141. soname_spec=
  14142. shrext_cmds=".so"
  14143. postinstall_cmds=
  14144. postuninstall_cmds=
  14145. finish_cmds=
  14146. finish_eval=
  14147. shlibpath_var=
  14148. shlibpath_overrides_runpath=unknown
  14149. version_type=none
  14150. dynamic_linker="$host_os ld.so"
  14151. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14152. need_lib_prefix=unknown
  14153. hardcode_into_libs=no
  14154.  
  14155. # when you set need_version to no, make sure it does not cause -set_version
  14156. # flags to be left without arguments
  14157. need_version=unknown
  14158.  
  14159. case $host_os in
  14160. aix3*)
  14161.   version_type=linux
  14162.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14163.   shlibpath_var=LIBPATH
  14164.  
  14165.   # AIX 3 has no versioning support, so we append a major version to the name.
  14166.   soname_spec='${libname}${release}${shared_ext}$major'
  14167.   ;;
  14168.  
  14169. aix[4-9]*)
  14170.   version_type=linux
  14171.   need_lib_prefix=no
  14172.   need_version=no
  14173.   hardcode_into_libs=yes
  14174.   if test "$host_cpu" = ia64; then
  14175.     # AIX 5 supports IA64
  14176.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14177.     shlibpath_var=LD_LIBRARY_PATH
  14178.   else
  14179.     # With GCC up to 2.95.x, collect2 would create an import file
  14180.     # for dependence libraries.  The import file would start with
  14181.     # the line `#! .'.  This would cause the generated library to
  14182.     # depend on `.', always an invalid library.  This was fixed in
  14183.     # development snapshots of GCC prior to 3.0.
  14184.     case $host_os in
  14185.       aix4 | aix4.[01] | aix4.[01].*)
  14186.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14187.            echo ' yes '
  14188.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  14189.         :
  14190.       else
  14191.         can_build_shared=no
  14192.       fi
  14193.       ;;
  14194.     esac
  14195.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14196.     # soname into executable. Probably we can add versioning support to
  14197.     # collect2, so additional links can be useful in future.
  14198.     if test "$aix_use_runtimelinking" = yes; then
  14199.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14200.       # instead of lib<name>.a to let people know that these are not
  14201.       # typical AIX shared libraries.
  14202.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14203.     else
  14204.       # We preserve .a as extension for shared libraries through AIX4.2
  14205.       # and later when we are not doing run time linking.
  14206.       library_names_spec='${libname}${release}.a $libname.a'
  14207.       soname_spec='${libname}${release}${shared_ext}$major'
  14208.     fi
  14209.     shlibpath_var=LIBPATH
  14210.   fi
  14211.   ;;
  14212.  
  14213. amigaos*)
  14214.   case $host_cpu in
  14215.   powerpc)
  14216.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  14217.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14218.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14219.     ;;
  14220.   m68k)
  14221.     library_names_spec='$libname.ixlibrary $libname.a'
  14222.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14223.     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'
  14224.     ;;
  14225.   esac
  14226.   ;;
  14227.  
  14228. beos*)
  14229.   library_names_spec='${libname}${shared_ext}'
  14230.   dynamic_linker="$host_os ld.so"
  14231.   shlibpath_var=LIBRARY_PATH
  14232.   ;;
  14233.  
  14234. bsdi[45]*)
  14235.   version_type=linux
  14236.   need_version=no
  14237.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14238.   soname_spec='${libname}${release}${shared_ext}$major'
  14239.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14240.   shlibpath_var=LD_LIBRARY_PATH
  14241.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14242.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14243.   # the default ld.so.conf also contains /usr/contrib/lib and
  14244.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14245.   # libtool to hard-code these into programs
  14246.   ;;
  14247.  
  14248. cygwin* | mingw* | pw32* | cegcc*)
  14249.   version_type=windows
  14250.   shrext_cmds=".dll"
  14251.   need_version=no
  14252.   need_lib_prefix=no
  14253.  
  14254.   case $GCC,$host_os in
  14255.   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  14256.     library_names_spec='$libname.dll.a'
  14257.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14258.     postinstall_cmds='base_file=`basename \${file}`~
  14259.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14260.       dldir=$destdir/`dirname \$dlpath`~
  14261.       test -d \$dldir || mkdir -p \$dldir~
  14262.       $install_prog $dir/$dlname \$dldir/$dlname~
  14263.       chmod a+x \$dldir/$dlname~
  14264.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14265.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14266.       fi'
  14267.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14268.       dlpath=$dir/\$dldll~
  14269.        $RM \$dlpath'
  14270.     shlibpath_overrides_runpath=yes
  14271.  
  14272.     case $host_os in
  14273.     cygwin*)
  14274.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14275.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14276.  
  14277.       ;;
  14278.     mingw* | cegcc*)
  14279.       # MinGW DLLs use traditional 'lib' prefix
  14280.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14281.       ;;
  14282.     pw32*)
  14283.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  14284.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14285.       ;;
  14286.     esac
  14287.     ;;
  14288.  
  14289.   *)
  14290.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14291.     ;;
  14292.   esac
  14293.   dynamic_linker='Win32 ld.exe'
  14294.   # FIXME: first we should search . and the directory the executable is in
  14295.   shlibpath_var=PATH
  14296.   ;;
  14297.  
  14298. darwin* | rhapsody*)
  14299.   dynamic_linker="$host_os dyld"
  14300.   version_type=darwin
  14301.   need_lib_prefix=no
  14302.   need_version=no
  14303.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14304.   soname_spec='${libname}${release}${major}$shared_ext'
  14305.   shlibpath_overrides_runpath=yes
  14306.   shlibpath_var=DYLD_LIBRARY_PATH
  14307.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14308.  
  14309.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14310.   ;;
  14311.  
  14312. dgux*)
  14313.   version_type=linux
  14314.   need_lib_prefix=no
  14315.   need_version=no
  14316.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14317.   soname_spec='${libname}${release}${shared_ext}$major'
  14318.   shlibpath_var=LD_LIBRARY_PATH
  14319.   ;;
  14320.  
  14321. freebsd1*)
  14322.   dynamic_linker=no
  14323.   ;;
  14324.  
  14325. freebsd* | dragonfly*)
  14326.   # DragonFly does not have aout.  When/if they implement a new
  14327.   # versioning mechanism, adjust this.
  14328.   if test -x /usr/bin/objformat; then
  14329.     objformat=`/usr/bin/objformat`
  14330.   else
  14331.     case $host_os in
  14332.     freebsd[123]*) objformat=aout ;;
  14333.     *) objformat=elf ;;
  14334.     esac
  14335.   fi
  14336.   version_type=freebsd-$objformat
  14337.   case $version_type in
  14338.     freebsd-elf*)
  14339.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14340.       need_version=no
  14341.       need_lib_prefix=no
  14342.       ;;
  14343.     freebsd-*)
  14344.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14345.       need_version=yes
  14346.       ;;
  14347.   esac
  14348.   shlibpath_var=LD_LIBRARY_PATH
  14349.   case $host_os in
  14350.   freebsd2*)
  14351.     shlibpath_overrides_runpath=yes
  14352.     ;;
  14353.   freebsd3.[01]* | freebsdelf3.[01]*)
  14354.     shlibpath_overrides_runpath=yes
  14355.     hardcode_into_libs=yes
  14356.     ;;
  14357.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14358.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14359.     shlibpath_overrides_runpath=no
  14360.     hardcode_into_libs=yes
  14361.     ;;
  14362.   *) # from 4.6 on, and DragonFly
  14363.     shlibpath_overrides_runpath=yes
  14364.     hardcode_into_libs=yes
  14365.     ;;
  14366.   esac
  14367.   ;;
  14368.  
  14369. gnu*)
  14370.   version_type=linux
  14371.   need_lib_prefix=no
  14372.   need_version=no
  14373.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14374.   soname_spec='${libname}${release}${shared_ext}$major'
  14375.   shlibpath_var=LD_LIBRARY_PATH
  14376.   hardcode_into_libs=yes
  14377.   ;;
  14378.  
  14379. haiku*)
  14380.   version_type=linux
  14381.   need_lib_prefix=no
  14382.   need_version=no
  14383.   dynamic_linker="$host_os runtime_loader"
  14384.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14385.   soname_spec='${libname}${release}${shared_ext}$major'
  14386.   shlibpath_var=LIBRARY_PATH
  14387.   shlibpath_overrides_runpath=yes
  14388.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14389.   hardcode_into_libs=yes
  14390.   ;;
  14391.  
  14392. hpux9* | hpux10* | hpux11*)
  14393.   # Give a soname corresponding to the major version so that dld.sl refuses to
  14394.   # link against other versions.
  14395.   version_type=sunos
  14396.   need_lib_prefix=no
  14397.   need_version=no
  14398.   case $host_cpu in
  14399.   ia64*)
  14400.     shrext_cmds='.so'
  14401.     hardcode_into_libs=yes
  14402.     dynamic_linker="$host_os dld.so"
  14403.     shlibpath_var=LD_LIBRARY_PATH
  14404.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14405.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14406.     soname_spec='${libname}${release}${shared_ext}$major'
  14407.     if test "X$HPUX_IA64_MODE" = X32; then
  14408.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14409.     else
  14410.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14411.     fi
  14412.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14413.     ;;
  14414.   hppa*64*)
  14415.     shrext_cmds='.sl'
  14416.     hardcode_into_libs=yes
  14417.     dynamic_linker="$host_os dld.sl"
  14418.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14419.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14420.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14421.     soname_spec='${libname}${release}${shared_ext}$major'
  14422.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14423.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14424.     ;;
  14425.   *)
  14426.     shrext_cmds='.sl'
  14427.     dynamic_linker="$host_os dld.sl"
  14428.     shlibpath_var=SHLIB_PATH
  14429.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14430.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14431.     soname_spec='${libname}${release}${shared_ext}$major'
  14432.     ;;
  14433.   esac
  14434.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14435.   postinstall_cmds='chmod 555 $lib'
  14436.   # or fails outright, so override atomically:
  14437.   install_override_mode=555
  14438.   ;;
  14439.  
  14440. interix[3-9]*)
  14441.   version_type=linux
  14442.   need_lib_prefix=no
  14443.   need_version=no
  14444.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14445.   soname_spec='${libname}${release}${shared_ext}$major'
  14446.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14447.   shlibpath_var=LD_LIBRARY_PATH
  14448.   shlibpath_overrides_runpath=no
  14449.   hardcode_into_libs=yes
  14450.   ;;
  14451.  
  14452. irix5* | irix6* | nonstopux*)
  14453.   case $host_os in
  14454.     nonstopux*) version_type=nonstopux ;;
  14455.     *)
  14456.         if test "$lt_cv_prog_gnu_ld" = yes; then
  14457.                 version_type=linux
  14458.         else
  14459.                 version_type=irix
  14460.         fi ;;
  14461.   esac
  14462.   need_lib_prefix=no
  14463.   need_version=no
  14464.   soname_spec='${libname}${release}${shared_ext}$major'
  14465.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14466.   case $host_os in
  14467.   irix5* | nonstopux*)
  14468.     libsuff= shlibsuff=
  14469.     ;;
  14470.   *)
  14471.     case $LD in # libtool.m4 will add one of these switches to LD
  14472.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14473.       libsuff= shlibsuff= libmagic=32-bit;;
  14474.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14475.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  14476.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14477.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14478.     *) libsuff= shlibsuff= libmagic=never-match;;
  14479.     esac
  14480.     ;;
  14481.   esac
  14482.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14483.   shlibpath_overrides_runpath=no
  14484.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14485.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14486.   hardcode_into_libs=yes
  14487.   ;;
  14488.  
  14489. # No shared lib support for Linux oldld, aout, or coff.
  14490. linux*oldld* | linux*aout* | linux*coff*)
  14491.   dynamic_linker=no
  14492.   ;;
  14493.  
  14494. # This must be Linux ELF.
  14495. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14496.   version_type=linux
  14497.   need_lib_prefix=no
  14498.   need_version=no
  14499.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14500.   soname_spec='${libname}${release}${shared_ext}$major'
  14501.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14502.   shlibpath_var=LD_LIBRARY_PATH
  14503.   shlibpath_overrides_runpath=no
  14504.  
  14505.   # Some binutils ld are patched to set DT_RUNPATH
  14506.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14507.   $as_echo_n "(cached) " >&6
  14508. else
  14509.   lt_cv_shlibpath_overrides_runpath=no
  14510.     save_LDFLAGS=$LDFLAGS
  14511.     save_libdir=$libdir
  14512.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14513.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14514.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14515. /* end confdefs.h.  */
  14516.  
  14517. int
  14518. main ()
  14519. {
  14520.  
  14521.   ;
  14522.   return 0;
  14523. }
  14524. _ACEOF
  14525. if ac_fn_cxx_try_link "$LINENO"; then :
  14526.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14527.   lt_cv_shlibpath_overrides_runpath=yes
  14528. fi
  14529. fi
  14530. rm -f core conftest.err conftest.$ac_objext \
  14531.     conftest$ac_exeext conftest.$ac_ext
  14532.     LDFLAGS=$save_LDFLAGS
  14533.     libdir=$save_libdir
  14534.  
  14535. fi
  14536.  
  14537.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14538.  
  14539.   # This implies no fast_install, which is unacceptable.
  14540.   # Some rework will be needed to allow for fast_install
  14541.   # before this can be enabled.
  14542.   hardcode_into_libs=yes
  14543.  
  14544.   # Append ld.so.conf contents to the search path
  14545.   if test -f /etc/ld.so.conf; then
  14546.     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' ' '`
  14547.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14548.   fi
  14549.  
  14550.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  14551.   # powerpc, because MkLinux only supported shared libraries with the
  14552.   # GNU dynamic linker.  Since this was broken with cross compilers,
  14553.   # most powerpc-linux boxes support dynamic linking these days and
  14554.   # people can always --disable-shared, the test was removed, and we
  14555.   # assume the GNU/Linux dynamic linker is in use.
  14556.   dynamic_linker='GNU/Linux ld.so'
  14557.   ;;
  14558.  
  14559. netbsd*)
  14560.   version_type=sunos
  14561.   need_lib_prefix=no
  14562.   need_version=no
  14563.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14564.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14565.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14566.     dynamic_linker='NetBSD (a.out) ld.so'
  14567.   else
  14568.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14569.     soname_spec='${libname}${release}${shared_ext}$major'
  14570.     dynamic_linker='NetBSD ld.elf_so'
  14571.   fi
  14572.   shlibpath_var=LD_LIBRARY_PATH
  14573.   shlibpath_overrides_runpath=yes
  14574.   hardcode_into_libs=yes
  14575.   ;;
  14576.  
  14577. newsos6)
  14578.   version_type=linux
  14579.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14580.   shlibpath_var=LD_LIBRARY_PATH
  14581.   shlibpath_overrides_runpath=yes
  14582.   ;;
  14583.  
  14584. *nto* | *qnx*)
  14585.   version_type=qnx
  14586.   need_lib_prefix=no
  14587.   need_version=no
  14588.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14589.   soname_spec='${libname}${release}${shared_ext}$major'
  14590.   shlibpath_var=LD_LIBRARY_PATH
  14591.   shlibpath_overrides_runpath=no
  14592.   hardcode_into_libs=yes
  14593.   dynamic_linker='ldqnx.so'
  14594.   ;;
  14595.  
  14596. openbsd*)
  14597.   version_type=sunos
  14598.   sys_lib_dlsearch_path_spec="/usr/lib"
  14599.   need_lib_prefix=no
  14600.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14601.   case $host_os in
  14602.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  14603.     *)                          need_version=no  ;;
  14604.   esac
  14605.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14606.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14607.   shlibpath_var=LD_LIBRARY_PATH
  14608.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14609.     case $host_os in
  14610.       openbsd2.[89] | openbsd2.[89].*)
  14611.         shlibpath_overrides_runpath=no
  14612.         ;;
  14613.       *)
  14614.         shlibpath_overrides_runpath=yes
  14615.         ;;
  14616.       esac
  14617.   else
  14618.     shlibpath_overrides_runpath=yes
  14619.   fi
  14620.   ;;
  14621.  
  14622. os2*)
  14623.   libname_spec='$name'
  14624.   shrext_cmds=".dll"
  14625.   need_lib_prefix=no
  14626.   library_names_spec='$libname${shared_ext} $libname.a'
  14627.   dynamic_linker='OS/2 ld.exe'
  14628.   shlibpath_var=LIBPATH
  14629.   ;;
  14630.  
  14631. osf3* | osf4* | osf5*)
  14632.   version_type=osf
  14633.   need_lib_prefix=no
  14634.   need_version=no
  14635.   soname_spec='${libname}${release}${shared_ext}$major'
  14636.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14637.   shlibpath_var=LD_LIBRARY_PATH
  14638.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14639.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14640.   ;;
  14641.  
  14642. rdos*)
  14643.   dynamic_linker=no
  14644.   ;;
  14645.  
  14646. solaris*)
  14647.   version_type=linux
  14648.   need_lib_prefix=no
  14649.   need_version=no
  14650.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14651.   soname_spec='${libname}${release}${shared_ext}$major'
  14652.   shlibpath_var=LD_LIBRARY_PATH
  14653.   shlibpath_overrides_runpath=yes
  14654.   hardcode_into_libs=yes
  14655.   # ldd complains unless libraries are executable
  14656.   postinstall_cmds='chmod +x $lib'
  14657.   ;;
  14658.  
  14659. sunos4*)
  14660.   version_type=sunos
  14661.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14662.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14663.   shlibpath_var=LD_LIBRARY_PATH
  14664.   shlibpath_overrides_runpath=yes
  14665.   if test "$with_gnu_ld" = yes; then
  14666.     need_lib_prefix=no
  14667.   fi
  14668.   need_version=yes
  14669.   ;;
  14670.  
  14671. sysv4 | sysv4.3*)
  14672.   version_type=linux
  14673.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14674.   soname_spec='${libname}${release}${shared_ext}$major'
  14675.   shlibpath_var=LD_LIBRARY_PATH
  14676.   case $host_vendor in
  14677.     sni)
  14678.       shlibpath_overrides_runpath=no
  14679.       need_lib_prefix=no
  14680.       runpath_var=LD_RUN_PATH
  14681.       ;;
  14682.     siemens)
  14683.       need_lib_prefix=no
  14684.       ;;
  14685.     motorola)
  14686.       need_lib_prefix=no
  14687.       need_version=no
  14688.       shlibpath_overrides_runpath=no
  14689.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14690.       ;;
  14691.   esac
  14692.   ;;
  14693.  
  14694. sysv4*MP*)
  14695.   if test -d /usr/nec ;then
  14696.     version_type=linux
  14697.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14698.     soname_spec='$libname${shared_ext}.$major'
  14699.     shlibpath_var=LD_LIBRARY_PATH
  14700.   fi
  14701.   ;;
  14702.  
  14703. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14704.   version_type=freebsd-elf
  14705.   need_lib_prefix=no
  14706.   need_version=no
  14707.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14708.   soname_spec='${libname}${release}${shared_ext}$major'
  14709.   shlibpath_var=LD_LIBRARY_PATH
  14710.   shlibpath_overrides_runpath=yes
  14711.   hardcode_into_libs=yes
  14712.   if test "$with_gnu_ld" = yes; then
  14713.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14714.   else
  14715.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14716.     case $host_os in
  14717.       sco3.2v5*)
  14718.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14719.         ;;
  14720.     esac
  14721.   fi
  14722.   sys_lib_dlsearch_path_spec='/usr/lib'
  14723.   ;;
  14724.  
  14725. tpf*)
  14726.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  14727.   version_type=linux
  14728.   need_lib_prefix=no
  14729.   need_version=no
  14730.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14731.   shlibpath_var=LD_LIBRARY_PATH
  14732.   shlibpath_overrides_runpath=no
  14733.   hardcode_into_libs=yes
  14734.   ;;
  14735.  
  14736. uts4*)
  14737.   version_type=linux
  14738.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14739.   soname_spec='${libname}${release}${shared_ext}$major'
  14740.   shlibpath_var=LD_LIBRARY_PATH
  14741.   ;;
  14742.  
  14743. *)
  14744.   dynamic_linker=no
  14745.   ;;
  14746. esac
  14747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14748. $as_echo "$dynamic_linker" >&6; }
  14749. test "$dynamic_linker" = no && can_build_shared=no
  14750.  
  14751. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14752. if test "$GCC" = yes; then
  14753.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14754. fi
  14755.  
  14756. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14757.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14758. fi
  14759. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14760.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14761. fi
  14762.  
  14763.  
  14764.  
  14765.  
  14766.  
  14767.  
  14768.  
  14769.  
  14770.  
  14771.  
  14772.  
  14773.  
  14774.  
  14775.  
  14776.  
  14777.  
  14778.  
  14779.  
  14780.  
  14781.  
  14782.  
  14783.  
  14784.  
  14785.  
  14786.  
  14787.  
  14788.  
  14789.  
  14790.  
  14791.  
  14792.  
  14793.  
  14794.  
  14795.  
  14796.  
  14797.  
  14798.  
  14799.  
  14800.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14801. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14802. hardcode_action_CXX=
  14803. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14804.    test -n "$runpath_var_CXX" ||
  14805.    test "X$hardcode_automatic_CXX" = "Xyes" ; then
  14806.  
  14807.   # We can hardcode non-existent directories.
  14808.   if test "$hardcode_direct_CXX" != no &&
  14809.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14810.      # have to relink, otherwise we might link with an installed library
  14811.      # when we should be linking with a yet-to-be-installed one
  14812.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  14813.      test "$hardcode_minus_L_CXX" != no; then
  14814.     # Linking always hardcodes the temporary library directory.
  14815.     hardcode_action_CXX=relink
  14816.   else
  14817.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14818.     hardcode_action_CXX=immediate
  14819.   fi
  14820. else
  14821.   # We cannot hardcode anything, or else we can only hardcode existing
  14822.   # directories.
  14823.   hardcode_action_CXX=unsupported
  14824. fi
  14825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14826. $as_echo "$hardcode_action_CXX" >&6; }
  14827.  
  14828. if test "$hardcode_action_CXX" = relink ||
  14829.    test "$inherit_rpath_CXX" = yes; then
  14830.   # Fast installation is not supported
  14831.   enable_fast_install=no
  14832. elif test "$shlibpath_overrides_runpath" = yes ||
  14833.      test "$enable_shared" = no; then
  14834.   # Fast installation is not necessary
  14835.   enable_fast_install=needless
  14836. fi
  14837.  
  14838.  
  14839.  
  14840.  
  14841.  
  14842.  
  14843.  
  14844.   fi # test -n "$compiler"
  14845.  
  14846.   CC=$lt_save_CC
  14847.   LDCXX=$LD
  14848.   LD=$lt_save_LD
  14849.   GCC=$lt_save_GCC
  14850.   with_gnu_ld=$lt_save_with_gnu_ld
  14851.   lt_cv_path_LDCXX=$lt_cv_path_LD
  14852.   lt_cv_path_LD=$lt_save_path_LD
  14853.   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14854.   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14855. fi # test "$_lt_caught_CXX_error" != yes
  14856.  
  14857. ac_ext=c
  14858. ac_cpp='$CPP $CPPFLAGS'
  14859. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14860. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14861. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14862.  
  14863.  
  14864.  
  14865.  
  14866.  
  14867.  
  14868.  
  14869.  
  14870.  
  14871.  
  14872.  
  14873.  
  14874.  
  14875.         ac_config_commands="$ac_config_commands libtool"
  14876.  
  14877.  
  14878.  
  14879.  
  14880. # Only expand once:
  14881.  
  14882.  
  14883. #
  14884.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  14885. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  14886. if ${ac_cv_c_bigendian+:} false; then :
  14887.   $as_echo_n "(cached) " >&6
  14888. else
  14889.   ac_cv_c_bigendian=unknown
  14890.     # See if we're dealing with a universal compiler.
  14891.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14892. /* end confdefs.h.  */
  14893. #ifndef __APPLE_CC__
  14894.                not a universal capable compiler
  14895.              #endif
  14896.              typedef int dummy;
  14897.  
  14898. _ACEOF
  14899. if ac_fn_c_try_compile "$LINENO"; then :
  14900.  
  14901.         # Check for potential -arch flags.  It is not universal unless
  14902.         # there are at least two -arch flags with different values.
  14903.         ac_arch=
  14904.         ac_prev=
  14905.         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  14906.          if test -n "$ac_prev"; then
  14907.            case $ac_word in
  14908.              i?86 | x86_64 | ppc | ppc64)
  14909.                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  14910.                  ac_arch=$ac_word
  14911.                else
  14912.                  ac_cv_c_bigendian=universal
  14913.                  break
  14914.                fi
  14915.                ;;
  14916.            esac
  14917.            ac_prev=
  14918.          elif test "x$ac_word" = "x-arch"; then
  14919.            ac_prev=arch
  14920.          fi
  14921.        done
  14922. fi
  14923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14924.     if test $ac_cv_c_bigendian = unknown; then
  14925.       # See if sys/param.h defines the BYTE_ORDER macro.
  14926.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14927. /* end confdefs.h.  */
  14928. #include <sys/types.h>
  14929.              #include <sys/param.h>
  14930.  
  14931. int
  14932. main ()
  14933. {
  14934. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  14935.                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  14936.                      && LITTLE_ENDIAN)
  14937.               bogus endian macros
  14938.              #endif
  14939.  
  14940.   ;
  14941.   return 0;
  14942. }
  14943. _ACEOF
  14944. if ac_fn_c_try_compile "$LINENO"; then :
  14945.   # It does; now see whether it defined to BIG_ENDIAN or not.
  14946.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14947. /* end confdefs.h.  */
  14948. #include <sys/types.h>
  14949.                 #include <sys/param.h>
  14950.  
  14951. int
  14952. main ()
  14953. {
  14954. #if BYTE_ORDER != BIG_ENDIAN
  14955.                  not big endian
  14956.                 #endif
  14957.  
  14958.   ;
  14959.   return 0;
  14960. }
  14961. _ACEOF
  14962. if ac_fn_c_try_compile "$LINENO"; then :
  14963.   ac_cv_c_bigendian=yes
  14964. else
  14965.   ac_cv_c_bigendian=no
  14966. fi
  14967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14968. fi
  14969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14970.     fi
  14971.     if test $ac_cv_c_bigendian = unknown; then
  14972.       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  14973.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14974. /* end confdefs.h.  */
  14975. #include <limits.h>
  14976.  
  14977. int
  14978. main ()
  14979. {
  14980. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  14981.               bogus endian macros
  14982.              #endif
  14983.  
  14984.   ;
  14985.   return 0;
  14986. }
  14987. _ACEOF
  14988. if ac_fn_c_try_compile "$LINENO"; then :
  14989.   # It does; now see whether it defined to _BIG_ENDIAN or not.
  14990.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14991. /* end confdefs.h.  */
  14992. #include <limits.h>
  14993.  
  14994. int
  14995. main ()
  14996. {
  14997. #ifndef _BIG_ENDIAN
  14998.                  not big endian
  14999.                 #endif
  15000.  
  15001.   ;
  15002.   return 0;
  15003. }
  15004. _ACEOF
  15005. if ac_fn_c_try_compile "$LINENO"; then :
  15006.   ac_cv_c_bigendian=yes
  15007. else
  15008.   ac_cv_c_bigendian=no
  15009. fi
  15010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15011. fi
  15012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15013.     fi
  15014.     if test $ac_cv_c_bigendian = unknown; then
  15015.       # Compile a test program.
  15016.       if test "$cross_compiling" = yes; then :
  15017.   # Try to guess by grepping values from an object file.
  15018.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15019. /* end confdefs.h.  */
  15020. short int ascii_mm[] =
  15021.                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  15022.                 short int ascii_ii[] =
  15023.                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  15024.                 int use_ascii (int i) {
  15025.                   return ascii_mm[i] + ascii_ii[i];
  15026.                 }
  15027.                 short int ebcdic_ii[] =
  15028.                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  15029.                 short int ebcdic_mm[] =
  15030.                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  15031.                 int use_ebcdic (int i) {
  15032.                   return ebcdic_mm[i] + ebcdic_ii[i];
  15033.                 }
  15034.                 extern int foo;
  15035.  
  15036. int
  15037. main ()
  15038. {
  15039. return use_ascii (foo) == use_ebcdic (foo);
  15040.   ;
  15041.   return 0;
  15042. }
  15043. _ACEOF
  15044. if ac_fn_c_try_compile "$LINENO"; then :
  15045.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  15046.               ac_cv_c_bigendian=yes
  15047.             fi
  15048.             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  15049.               if test "$ac_cv_c_bigendian" = unknown; then
  15050.                 ac_cv_c_bigendian=no
  15051.               else
  15052.                 # finding both strings is unlikely to happen, but who knows?
  15053.                 ac_cv_c_bigendian=unknown
  15054.               fi
  15055.             fi
  15056. fi
  15057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15058. else
  15059.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15060. /* end confdefs.h.  */
  15061. $ac_includes_default
  15062. int
  15063. main ()
  15064. {
  15065.  
  15066.              /* Are we little or big endian?  From Harbison&Steele.  */
  15067.              union
  15068.              {
  15069.                long int l;
  15070.                char c[sizeof (long int)];
  15071.              } u;
  15072.              u.l = 1;
  15073.              return u.c[sizeof (long int) - 1] == 1;
  15074.  
  15075.   ;
  15076.   return 0;
  15077. }
  15078. _ACEOF
  15079. if ac_fn_c_try_run "$LINENO"; then :
  15080.   ac_cv_c_bigendian=no
  15081. else
  15082.   ac_cv_c_bigendian=yes
  15083. fi
  15084. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15085.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  15086. fi
  15087.  
  15088.     fi
  15089. fi
  15090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  15091. $as_echo "$ac_cv_c_bigendian" >&6; }
  15092.  case $ac_cv_c_bigendian in #(
  15093.    yes)
  15094.      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  15095. ;; #(
  15096.    no)
  15097.       ;; #(
  15098.    universal)
  15099.  
  15100. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  15101.  
  15102.      ;; #(
  15103.    *)
  15104.      as_fn_error $? "unknown endianness
  15105.  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  15106.  esac
  15107.  
  15108. #
  15109. LIB_MATH=""
  15110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  15111. $as_echo_n "checking for sqrt in -lm... " >&6; }
  15112. if ${ac_cv_lib_m_sqrt+:} false; then :
  15113.   $as_echo_n "(cached) " >&6
  15114. else
  15115.   ac_check_lib_save_LIBS=$LIBS
  15116. LIBS="-lm  $LIBS"
  15117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15118. /* end confdefs.h.  */
  15119.  
  15120. /* Override any GCC internal prototype to avoid an error.
  15121.    Use char because int might match the return type of a GCC
  15122.    builtin and then its argument prototype would still apply.  */
  15123. #ifdef __cplusplus
  15124. extern "C"
  15125. #endif
  15126. char sqrt ();
  15127. int
  15128. main ()
  15129. {
  15130. return sqrt ();
  15131.   ;
  15132.   return 0;
  15133. }
  15134. _ACEOF
  15135. if ac_fn_c_try_link "$LINENO"; then :
  15136.   ac_cv_lib_m_sqrt=yes
  15137. else
  15138.   ac_cv_lib_m_sqrt=no
  15139. fi
  15140. rm -f core conftest.err conftest.$ac_objext \
  15141.     conftest$ac_exeext conftest.$ac_ext
  15142. LIBS=$ac_check_lib_save_LIBS
  15143. fi
  15144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  15145. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  15146. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  15147.   LIB_MATH="-lm"
  15148. fi
  15149.  
  15150. LIB_Z=""
  15151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  15152. $as_echo_n "checking for inflate in -lz... " >&6; }
  15153. if ${ac_cv_lib_z_inflate+:} false; then :
  15154.   $as_echo_n "(cached) " >&6
  15155. else
  15156.   ac_check_lib_save_LIBS=$LIBS
  15157. LIBS="-lz  $LIBS"
  15158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15159. /* end confdefs.h.  */
  15160.  
  15161. /* Override any GCC internal prototype to avoid an error.
  15162.    Use char because int might match the return type of a GCC
  15163.    builtin and then its argument prototype would still apply.  */
  15164. #ifdef __cplusplus
  15165. extern "C"
  15166. #endif
  15167. char inflate ();
  15168. int
  15169. main ()
  15170. {
  15171. return inflate ();
  15172.   ;
  15173.   return 0;
  15174. }
  15175. _ACEOF
  15176. if ac_fn_c_try_link "$LINENO"; then :
  15177.   ac_cv_lib_z_inflate=yes
  15178. else
  15179.   ac_cv_lib_z_inflate=no
  15180. fi
  15181. rm -f core conftest.err conftest.$ac_objext \
  15182.     conftest$ac_exeext conftest.$ac_ext
  15183. LIBS=$ac_check_lib_save_LIBS
  15184. fi
  15185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  15186. $as_echo "$ac_cv_lib_z_inflate" >&6; }
  15187. if test "x$ac_cv_lib_z_inflate" = xyes; then :
  15188.   LIB_Z="-lz"
  15189. fi
  15190.  
  15191. #
  15192. LIBS="$LIBS $LIB_MATH $LIB_Z"
  15193. #
  15194. # Extract the first word of "pkg-config", so it can be a program name with args.
  15195. set dummy pkg-config; ac_word=$2
  15196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15197. $as_echo_n "checking for $ac_word... " >&6; }
  15198. if ${ac_cv_path_PKGCONFIG+:} false; then :
  15199.   $as_echo_n "(cached) " >&6
  15200. else
  15201.   case $PKGCONFIG in
  15202.   [\\/]* | ?:[\\/]*)
  15203.   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  15204.   ;;
  15205.   *)
  15206.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15207. for as_dir in $PATH
  15208. do
  15209.   IFS=$as_save_IFS
  15210.   test -z "$as_dir" && as_dir=.
  15211.     for ac_exec_ext in '' $ac_executable_extensions; do
  15212.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15213.     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15214.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15215.     break 2
  15216.   fi
  15217. done
  15218.   done
  15219. IFS=$as_save_IFS
  15220.  
  15221.   ;;
  15222. esac
  15223. fi
  15224. PKGCONFIG=$ac_cv_path_PKGCONFIG
  15225. if test -n "$PKGCONFIG"; then
  15226.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  15227. $as_echo "$PKGCONFIG" >&6; }
  15228. else
  15229.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15230. $as_echo "no" >&6; }
  15231. fi
  15232.  
  15233.  
  15234. #
  15235. # ------------------------------
  15236. # Test for PNG
  15237. # ------------------------------
  15238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
  15239. $as_echo_n "checking whether to build with PNG support... " >&6; }
  15240. pngincludes=""
  15241. pnglibs=""
  15242. png_header_found="no"
  15243. with_libpng="yes"
  15244. #
  15245. # Check whether --enable-png was given.
  15246. if test "${enable_png+set}" = set; then :
  15247.   enableval=$enable_png; test "$enable_png" = "no"  && with_libpng="no"
  15248. fi
  15249.  
  15250. #
  15251. if test "x$with_libpng" = xyes ; then
  15252.   with_libpng="no"
  15253.   # Extract the first word of "libpng-config", so it can be a program name with args.
  15254. set dummy libpng-config; ac_word=$2
  15255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15256. $as_echo_n "checking for $ac_word... " >&6; }
  15257. if ${ac_cv_path_LIBPNG_CONFIG+:} false; then :
  15258.   $as_echo_n "(cached) " >&6
  15259. else
  15260.   case $LIBPNG_CONFIG in
  15261.   [\\/]* | ?:[\\/]*)
  15262.   ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
  15263.   ;;
  15264.   *)
  15265.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15266. for as_dir in $PATH
  15267. do
  15268.   IFS=$as_save_IFS
  15269.   test -z "$as_dir" && as_dir=.
  15270.     for ac_exec_ext in '' $ac_executable_extensions; do
  15271.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15272.     ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15273.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15274.     break 2
  15275.   fi
  15276. done
  15277.   done
  15278. IFS=$as_save_IFS
  15279.  
  15280.   ;;
  15281. esac
  15282. fi
  15283. LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
  15284. if test -n "$LIBPNG_CONFIG"; then
  15285.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
  15286. $as_echo "$LIBPNG_CONFIG" >&6; }
  15287. else
  15288.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15289. $as_echo "no" >&6; }
  15290. fi
  15291.  
  15292.  
  15293. #
  15294.   pngheader=""
  15295.  
  15296. # Check whether --with-png_includes was given.
  15297. if test "${with_png_includes+set}" = set; then :
  15298.   withval=$with_png_includes;
  15299. fi
  15300.  
  15301.   if test -n "$with_png_includes" ; then
  15302.    pngheader="$with_png_includes"
  15303.    pngincludes="-I$with_png_includes"
  15304.   else
  15305.    if test -n "$PKGCONFIG" ; then
  15306.      pngincludes="`$PKGCONFIG --variable=includedir libpng`"
  15307.      if test -n "$pngincludes" ; then
  15308.       pngheader="$pngincludes"
  15309.       pngincludes="-I$pngincludes"
  15310.      fi
  15311.    else
  15312.      if test -n "$LIBPNG_CONFIG" ; then
  15313.       pngincludes="`$LIBPNG_CONFIG --I_opts`"
  15314.       pngheader="`$LIBPNG_CONFIG --I_opts | $SED 's/-I//'`"
  15315.      fi
  15316.    fi
  15317.   fi
  15318.   if test -n "$pngheader" ; then
  15319.    pngheader="$pngheader/png.h"
  15320.   else
  15321.    pngheader="png.h"
  15322.   fi
  15323. #
  15324.   as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
  15325. ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
  15326. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15327.   png_header_found="yes"
  15328. fi
  15329.  
  15330.  
  15331. #
  15332.  
  15333. # Check whether --with-png_libraries was given.
  15334. if test "${with_png_libraries+set}" = set; then :
  15335.   withval=$with_png_libraries;
  15336. fi
  15337.  
  15338.   if [ -n "$with_png_libraries" ] ; then
  15339.    pnglibs="-L$with_png_libraries -lpng"
  15340.   else
  15341.     if test -n "$LIBPNG_CONFIG" ; then
  15342.      pnglibs="`$LIBPNG_CONFIG --ldflags`"
  15343.     else
  15344.       if test -n "$PKGCONFIG" ; then
  15345.         pnglibs="`$PKGCONFIG --libs libpng`"
  15346.       fi
  15347.     fi
  15348.   fi
  15349.   savedLIBS="$LIBS"
  15350.   LIBS="$pnglibs $LIB_Z $LIB_MATH"
  15351. #
  15352.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
  15353. $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
  15354. if ${ac_cv_lib_png_png_create_read_struct+:} false; then :
  15355.   $as_echo_n "(cached) " >&6
  15356. else
  15357.   ac_check_lib_save_LIBS=$LIBS
  15358. LIBS="-lpng  $LIBS"
  15359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15360. /* end confdefs.h.  */
  15361.  
  15362. /* Override any GCC internal prototype to avoid an error.
  15363.    Use char because int might match the return type of a GCC
  15364.    builtin and then its argument prototype would still apply.  */
  15365. #ifdef __cplusplus
  15366. extern "C"
  15367. #endif
  15368. char png_create_read_struct ();
  15369. int
  15370. main ()
  15371. {
  15372. return png_create_read_struct ();
  15373.   ;
  15374.   return 0;
  15375. }
  15376. _ACEOF
  15377. if ac_fn_c_try_link "$LINENO"; then :
  15378.   ac_cv_lib_png_png_create_read_struct=yes
  15379. else
  15380.   ac_cv_lib_png_png_create_read_struct=no
  15381. fi
  15382. rm -f core conftest.err conftest.$ac_objext \
  15383.     conftest$ac_exeext conftest.$ac_ext
  15384. LIBS=$ac_check_lib_save_LIBS
  15385. fi
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
  15387. $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
  15388. if test "x$ac_cv_lib_png_png_create_read_struct" = xyes; then :
  15389.   cat >>confdefs.h <<_ACEOF
  15390. #define HAVE_LIBPNG 1
  15391. _ACEOF
  15392.  
  15393.   LIBS="-lpng $LIBS"
  15394.  
  15395. else
  15396.   pnglibs=""
  15397. fi
  15398.  
  15399. #
  15400.   LIBS="$savedLIBS"
  15401.   if test -n "$pnglibs" ; then
  15402.     if test -n "$pngincludes" ; then
  15403.       with_libpng="yes"
  15404.       png_header_found="yes"
  15405.       LIBS="$LIBS $pnglibs"
  15406.  
  15407. $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
  15408.  
  15409.     fi
  15410.   fi
  15411. fi
  15412. #
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: png is usable:$with_libpng" >&5
  15414. $as_echo "png is usable:$with_libpng" >&6; }
  15415.  if test x$with_libpng = xyes; then
  15416.   with_libpng_TRUE=
  15417.   with_libpng_FALSE='#'
  15418. else
  15419.   with_libpng_TRUE='#'
  15420.   with_libpng_FALSE=
  15421. fi
  15422.  
  15423.  
  15424.  
  15425. # -------------------------------
  15426. # Test for TIFF
  15427. # -------------------------------
  15428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
  15429. $as_echo_n "checking whether to build with TIFF support... " >&6; }
  15430. tifflibs=""
  15431. tiffincludes=""
  15432. with_libtiff="yes"
  15433. tiff_header_found="no"
  15434. #
  15435. # Check whether --enable-tiff was given.
  15436. if test "${enable_tiff+set}" = set; then :
  15437.   enableval=$enable_tiff; test "$enable_tiff" = "no"  && with_libtiff="no"
  15438. fi
  15439.  
  15440. #
  15441. if test "x$with_libtiff" = xyes ; then
  15442. #TIFF compiled with JPEG and JBIG support?
  15443.  libjpeg=""
  15444.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
  15445. $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
  15446. if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
  15447.   $as_echo_n "(cached) " >&6
  15448. else
  15449.   ac_check_lib_save_LIBS=$LIBS
  15450. LIBS="-ljpeg  $LIBS"
  15451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15452. /* end confdefs.h.  */
  15453.  
  15454. /* Override any GCC internal prototype to avoid an error.
  15455.    Use char because int might match the return type of a GCC
  15456.    builtin and then its argument prototype would still apply.  */
  15457. #ifdef __cplusplus
  15458. extern "C"
  15459. #endif
  15460. char jpeg_read_header ();
  15461. int
  15462. main ()
  15463. {
  15464. return jpeg_read_header ();
  15465.   ;
  15466.   return 0;
  15467. }
  15468. _ACEOF
  15469. if ac_fn_c_try_link "$LINENO"; then :
  15470.   ac_cv_lib_jpeg_jpeg_read_header=yes
  15471. else
  15472.   ac_cv_lib_jpeg_jpeg_read_header=no
  15473. fi
  15474. rm -f core conftest.err conftest.$ac_objext \
  15475.     conftest$ac_exeext conftest.$ac_ext
  15476. LIBS=$ac_check_lib_save_LIBS
  15477. fi
  15478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
  15479. $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
  15480. if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
  15481.   libjpeg=-ljpeg
  15482. fi
  15483.  
  15484.  libjbig=""
  15485.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_enc_init in -ljbig" >&5
  15486. $as_echo_n "checking for jbg_enc_init in -ljbig... " >&6; }
  15487. if ${ac_cv_lib_jbig_jbg_enc_init+:} false; then :
  15488.   $as_echo_n "(cached) " >&6
  15489. else
  15490.   ac_check_lib_save_LIBS=$LIBS
  15491. LIBS="-ljbig  $LIBS"
  15492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15493. /* end confdefs.h.  */
  15494.  
  15495. /* Override any GCC internal prototype to avoid an error.
  15496.    Use char because int might match the return type of a GCC
  15497.    builtin and then its argument prototype would still apply.  */
  15498. #ifdef __cplusplus
  15499. extern "C"
  15500. #endif
  15501. char jbg_enc_init ();
  15502. int
  15503. main ()
  15504. {
  15505. return jbg_enc_init ();
  15506.   ;
  15507.   return 0;
  15508. }
  15509. _ACEOF
  15510. if ac_fn_c_try_link "$LINENO"; then :
  15511.   ac_cv_lib_jbig_jbg_enc_init=yes
  15512. else
  15513.   ac_cv_lib_jbig_jbg_enc_init=no
  15514. fi
  15515. rm -f core conftest.err conftest.$ac_objext \
  15516.     conftest$ac_exeext conftest.$ac_ext
  15517. LIBS=$ac_check_lib_save_LIBS
  15518. fi
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_enc_init" >&5
  15520. $as_echo "$ac_cv_lib_jbig_jbg_enc_init" >&6; }
  15521. if test "x$ac_cv_lib_jbig_jbg_enc_init" = xyes; then :
  15522.   libjbig=-ljbig
  15523. fi
  15524.  
  15525.  libjbig85=""
  15526.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg85_enc_init in -ljbig85" >&5
  15527. $as_echo_n "checking for jbg85_enc_init in -ljbig85... " >&6; }
  15528. if ${ac_cv_lib_jbig85_jbg85_enc_init+:} false; then :
  15529.   $as_echo_n "(cached) " >&6
  15530. else
  15531.   ac_check_lib_save_LIBS=$LIBS
  15532. LIBS="-ljbig85  $LIBS"
  15533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15534. /* end confdefs.h.  */
  15535.  
  15536. /* Override any GCC internal prototype to avoid an error.
  15537.    Use char because int might match the return type of a GCC
  15538.    builtin and then its argument prototype would still apply.  */
  15539. #ifdef __cplusplus
  15540. extern "C"
  15541. #endif
  15542. char jbg85_enc_init ();
  15543. int
  15544. main ()
  15545. {
  15546. return jbg85_enc_init ();
  15547.   ;
  15548.   return 0;
  15549. }
  15550. _ACEOF
  15551. if ac_fn_c_try_link "$LINENO"; then :
  15552.   ac_cv_lib_jbig85_jbg85_enc_init=yes
  15553. else
  15554.   ac_cv_lib_jbig85_jbg85_enc_init=no
  15555. fi
  15556. rm -f core conftest.err conftest.$ac_objext \
  15557.     conftest$ac_exeext conftest.$ac_ext
  15558. LIBS=$ac_check_lib_save_LIBS
  15559. fi
  15560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig85_jbg85_enc_init" >&5
  15561. $as_echo "$ac_cv_lib_jbig85_jbg85_enc_init" >&6; }
  15562. if test "x$ac_cv_lib_jbig85_jbg85_enc_init" = xyes; then :
  15563.   libjbig85=-ljbig85
  15564. fi
  15565.  
  15566. #standard path
  15567.  with_libtiff="no"
  15568.  savedLIBS="$LIBS"
  15569.  LIBS="-ltiff $libjpeg $libjbig $libjbig85 $LIB_Z $LIB_MATH"
  15570.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  15571. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  15572. if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
  15573.   $as_echo_n "(cached) " >&6
  15574. else
  15575.   ac_check_lib_save_LIBS=$LIBS
  15576. LIBS="-ltiff  $LIBS"
  15577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15578. /* end confdefs.h.  */
  15579.  
  15580. /* Override any GCC internal prototype to avoid an error.
  15581.    Use char because int might match the return type of a GCC
  15582.    builtin and then its argument prototype would still apply.  */
  15583. #ifdef __cplusplus
  15584. extern "C"
  15585. #endif
  15586. char TIFFOpen ();
  15587. int
  15588. main ()
  15589. {
  15590. return TIFFOpen ();
  15591.   ;
  15592.   return 0;
  15593. }
  15594. _ACEOF
  15595. if ac_fn_c_try_link "$LINENO"; then :
  15596.   ac_cv_lib_tiff_TIFFOpen=yes
  15597. else
  15598.   ac_cv_lib_tiff_TIFFOpen=no
  15599. fi
  15600. rm -f core conftest.err conftest.$ac_objext \
  15601.     conftest$ac_exeext conftest.$ac_ext
  15602. LIBS=$ac_check_lib_save_LIBS
  15603. fi
  15604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  15605. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  15606. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  15607.   tifflibs=-ltiff
  15608. fi
  15609.  
  15610.  LIBS="$savedLIBS"
  15611.  if test -n "$tifflibs" ; then
  15612.   ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
  15613. if test "x$ac_cv_header_tiff_h" = xyes; then :
  15614.   tiff_header_found="yes"
  15615. fi
  15616.  
  15617.  
  15618.   if test "$tiff_header_found" = "yes" ; then
  15619.    with_libtiff="yes"
  15620.    LIBS="$LIBS -ltiff $libjpeg $libjbig $libjbig85"
  15621.  
  15622. $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
  15623.  
  15624.   fi
  15625.  fi
  15626. #
  15627.  if test "x$with_libtiff" = xno ; then
  15628. #non-standard path
  15629.  
  15630. # Check whether --with-tiff_includes was given.
  15631. if test "${with_tiff_includes+set}" = set; then :
  15632.   withval=$with_tiff_includes;
  15633. fi
  15634.  
  15635.   if test -n "$with_tiff_includes" ; then
  15636.    tiffheader="$with_tiff_includes/tiff.h"
  15637.    as_ac_Header=`$as_echo "ac_cv_header_$tiffheader" | $as_tr_sh`
  15638. ac_fn_c_check_header_mongrel "$LINENO" "$tiffheader" "$as_ac_Header" "$ac_includes_default"
  15639. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15640.   tiff_header_found="yes"
  15641. fi
  15642.  
  15643.  
  15644.    if test "$tiff_header_found" = "yes" ; then
  15645.      tiffincludes="-I$with_tiff_includes"
  15646.    fi
  15647.   fi
  15648.  
  15649. # Check whether --with-tiff_libraries was given.
  15650. if test "${with_tiff_libraries+set}" = set; then :
  15651.   withval=$with_tiff_libraries;
  15652. fi
  15653.  
  15654.   if test -n "$with_tiff_libraries" ; then
  15655.    tifflibs="-L$with_tiff_libraries"
  15656.   fi
  15657.   tifflibs="$tifflibs -ltiff"
  15658.   savedLIBS="$LIBS"
  15659.   LIBS="$tifflibs $libjpeg $libjbig $libjbig85 $LIB_Z $LIB_MATH"
  15660.   with_libtiff="no"
  15661. #
  15662.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  15663. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  15664. if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
  15665.   $as_echo_n "(cached) " >&6
  15666. else
  15667.   ac_check_lib_save_LIBS=$LIBS
  15668. LIBS="-ltiff  $LIBS"
  15669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15670. /* end confdefs.h.  */
  15671.  
  15672. /* Override any GCC internal prototype to avoid an error.
  15673.    Use char because int might match the return type of a GCC
  15674.    builtin and then its argument prototype would still apply.  */
  15675. #ifdef __cplusplus
  15676. extern "C"
  15677. #endif
  15678. char TIFFOpen ();
  15679. int
  15680. main ()
  15681. {
  15682. return TIFFOpen ();
  15683.   ;
  15684.   return 0;
  15685. }
  15686. _ACEOF
  15687. if ac_fn_c_try_link "$LINENO"; then :
  15688.   ac_cv_lib_tiff_TIFFOpen=yes
  15689. else
  15690.   ac_cv_lib_tiff_TIFFOpen=no
  15691. fi
  15692. rm -f core conftest.err conftest.$ac_objext \
  15693.     conftest$ac_exeext conftest.$ac_ext
  15694. LIBS=$ac_check_lib_save_LIBS
  15695. fi
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  15697. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  15698. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  15699.   cat >>confdefs.h <<_ACEOF
  15700. #define HAVE_LIBTIFF 1
  15701. _ACEOF
  15702.  
  15703.   LIBS="-ltiff $LIBS"
  15704.  
  15705. else
  15706.   tifflibs=""
  15707. fi
  15708.  
  15709. #
  15710.   if test -n "$tifflibs" ; then
  15711.    if test "$tiff_header_found" = "yes" ; then
  15712.     with_libtiff="yes"
  15713.  
  15714. $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
  15715.  
  15716.    fi
  15717.   fi
  15718.   LIBS="$savedLIBS $tifflibs $libjpeg $libjbig $libjbig85"
  15719.  fi
  15720. fi
  15721. #
  15722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: tiff is usable:$with_libtiff" >&5
  15723. $as_echo "tiff is usable:$with_libtiff" >&6; }
  15724.  if test x$with_libtiff = xyes; then
  15725.   with_libtiff_TRUE=
  15726.   with_libtiff_FALSE='#'
  15727. else
  15728.   with_libtiff_TRUE='#'
  15729.   with_libtiff_FALSE=
  15730. fi
  15731.  
  15732.  
  15733.  
  15734. # -------------------------------
  15735. # Test for LCMS version 2.x
  15736. # -------------------------------
  15737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS support" >&5
  15738. $as_echo_n "checking whether to build with LCMS support... " >&6; }
  15739. lcms1includes=""
  15740. lcms1libs=""
  15741. lcms2includes=""
  15742. lcms2libs=""
  15743. with_liblcms1="no"
  15744. lcms1_header_found="no"
  15745. lcms2_header_found="no"
  15746. have_lcms1_version=""
  15747. have_lcms2_version=""
  15748. with_liblcms2="yes"
  15749. #
  15750. # Check whether --enable-lcms2 was given.
  15751. if test "${enable_lcms2+set}" = set; then :
  15752.   enableval=$enable_lcms2; test "$enable_lcms2" = "no"  && with_liblcms2="no"
  15753. fi
  15754.  
  15755. #
  15756. if test "x$with_liblcms2" = xyes ; then
  15757.   with_liblcms2="no"
  15758.   lcms2header=""
  15759.  
  15760. # Check whether --with-lcms2_includes was given.
  15761. if test "${with_lcms2_includes+set}" = set; then :
  15762.   withval=$with_lcms2_includes;
  15763. fi
  15764.  
  15765.   if test -n "$with_lcms2_includes" ; then
  15766.    lcms2header="$with_lcms2_includes"
  15767.    lcms2includes="-I$with_lcms2_includes"
  15768.   else
  15769.    if test -n "$PKGCONFIG" ; then
  15770.      lcms2includes="`$PKGCONFIG --variable=prefix lcms2`"
  15771.    fi
  15772.    if test -n "$lcms2includes" ; then
  15773.     lcms2header="$lcms2_includes"
  15774.     lcms2includes="-I$lcms2includes/include"
  15775.    fi
  15776.   fi
  15777.   if test -n "$lcms2header" ; then
  15778.    lcms2header="$lcms2header/lcms2.h"
  15779.   else
  15780.    lcms2header="lcms2.h"
  15781.   fi
  15782.   as_ac_Header=`$as_echo "ac_cv_header_$lcms2header" | $as_tr_sh`
  15783. ac_fn_c_check_header_mongrel "$LINENO" "$lcms2header" "$as_ac_Header" "$ac_includes_default"
  15784. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15785.   lcms2_header_found="yes"
  15786. fi
  15787.  
  15788.  
  15789. #
  15790.  
  15791. # Check whether --with-lcms2_libraries was given.
  15792. if test "${with_lcms2_libraries+set}" = set; then :
  15793.   withval=$with_lcms2_libraries;
  15794. fi
  15795.  
  15796.   if test -n "$with_lcms2_libraries" ; then
  15797.    lcms2libs="-L$with_lcms2_libraries -llcms2"
  15798.   else
  15799.    if test -n "$PKGCONFIG" ; then
  15800.      lcms2libs="`$PKGCONFIG --libs lcms2`"
  15801.    fi
  15802.    if test -z "$lcms2libs" ; then
  15803.     lcms2libs="-llcms2"
  15804.    fi
  15805.    lcms2libs="$lcms2libs"
  15806.   fi
  15807.   savedLIBS="$LIBS"
  15808.   LIBS="$lcms2libs $LIB_MATH"
  15809.   with_liblcms2="no"
  15810. #
  15811.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
  15812. $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
  15813. if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
  15814.   $as_echo_n "(cached) " >&6
  15815. else
  15816.   ac_check_lib_save_LIBS=$LIBS
  15817. LIBS="-llcms2  $LIBS"
  15818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15819. /* end confdefs.h.  */
  15820.  
  15821. /* Override any GCC internal prototype to avoid an error.
  15822.    Use char because int might match the return type of a GCC
  15823.    builtin and then its argument prototype would still apply.  */
  15824. #ifdef __cplusplus
  15825. extern "C"
  15826. #endif
  15827. char cmsOpenProfileFromFile ();
  15828. int
  15829. main ()
  15830. {
  15831. return cmsOpenProfileFromFile ();
  15832.   ;
  15833.   return 0;
  15834. }
  15835. _ACEOF
  15836. if ac_fn_c_try_link "$LINENO"; then :
  15837.   ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
  15838. else
  15839.   ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
  15840. fi
  15841. rm -f core conftest.err conftest.$ac_objext \
  15842.     conftest$ac_exeext conftest.$ac_ext
  15843. LIBS=$ac_check_lib_save_LIBS
  15844. fi
  15845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
  15846. $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
  15847. if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
  15848.   cat >>confdefs.h <<_ACEOF
  15849. #define HAVE_LIBLCMS2 1
  15850. _ACEOF
  15851.  
  15852.   LIBS="-llcms2 $LIBS"
  15853.  
  15854. else
  15855.   lcms2libs=""
  15856. fi
  15857.  
  15858. #
  15859.   if test -n "$lcms2libs" ; then
  15860.    if test "$lcms2_header_found" = "yes" ; then
  15861.     with_liblcms2="yes"
  15862.  
  15863. $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
  15864.  
  15865.     if test -n "$PKGCONFIG" ; then
  15866.       have_lcms2_version="`$PKGCONFIG --modversion lcms2`"
  15867.     fi
  15868.    fi
  15869.   fi
  15870.   if test "$with_liblcms2" = "no" ; then
  15871.     lcms2libs=""
  15872.     lcms2includes=""
  15873.     lcms2libs=""
  15874.   fi
  15875.   LIBS="$savedLIBS $lcms2libs"
  15876. fi
  15877. #
  15878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2 is usable:$with_liblcms2" >&5
  15879. $as_echo "lcms2 is usable:$with_liblcms2" >&6; }
  15880.  if test x$with_liblcms2 = xyes; then
  15881.   with_liblcms2_TRUE=
  15882.   with_liblcms2_FALSE='#'
  15883. else
  15884.   with_liblcms2_TRUE='#'
  15885.   with_liblcms2_FALSE=
  15886. fi
  15887.  
  15888.  
  15889.  
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2libs:$lcms2libs" >&5
  15891. $as_echo "lcms2libs:$lcms2libs" >&6; }
  15892. # ----------------------------
  15893. # Test for LCMS version 1.x
  15894. # ----------------------------
  15895. if [ -z "$lcms2libs" ] ; then
  15896.  with_liblcms1="yes"
  15897.  # Check whether --enable-lcms1 was given.
  15898. if test "${enable_lcms1+set}" = set; then :
  15899.   enableval=$enable_lcms1; test "$enable_lcms1" = "no"  && with_liblcms1="no"
  15900. fi
  15901.  
  15902. #
  15903.  if test "x$with_liblcms1" = xyes ; then
  15904.    with_liblcms1="no"
  15905.    lcms1header=""
  15906.  
  15907. # Check whether --with-lcms1_includes was given.
  15908. if test "${with_lcms1_includes+set}" = set; then :
  15909.   withval=$with_lcms1_includes;
  15910. fi
  15911.  
  15912.    if test -n "$with_lcms1_includes" ; then
  15913.     lcms1header="$with_lcms1_includes"
  15914.     lcms1includes="-I$with_lcms1_includes"
  15915.    else
  15916.     if test -n "$PKGCONFIG" ; then
  15917.       lcms1includes="`$PKGCONFIG --variable=includedir lcms`"
  15918.     fi
  15919.     if test -n "$lcms1includes" ; then
  15920.      lcms1header="$lcms1includes"
  15921.      lcms1includes="-I$lcms1includes"
  15922.     fi
  15923.    fi
  15924.    if test -n "$lcms1header" ; then
  15925.     lcms1header="$lcms1header/lcms.h"
  15926.    else
  15927.     lcms1header="lcms.h"
  15928.    fi
  15929.    as_ac_Header=`$as_echo "ac_cv_header_$lcms1header" | $as_tr_sh`
  15930. ac_fn_c_check_header_mongrel "$LINENO" "$lcms1header" "$as_ac_Header" "$ac_includes_default"
  15931. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15932.   lcms1_header_found="yes"
  15933. fi
  15934.  
  15935.  
  15936. #
  15937.  
  15938. # Check whether --with-lcms1_libraries was given.
  15939. if test "${with_lcms1_libraries+set}" = set; then :
  15940.   withval=$with_lcms1_libraries;
  15941. fi
  15942.  
  15943.    if test -n "$with_lcms1_libraries" ; then
  15944.     lcms1libs="-L$with_lcms1_libraries -llcms"
  15945.    else
  15946.     if test -n "$PKGCONFIG" ; then
  15947.       lcms1libs="`$PKGCONFIG --libs lcms`"
  15948.     fi
  15949.     if test -z "$lcms1libs" ; then
  15950.      lcms1libs="-llcms"
  15951.     fi
  15952.     lcms1libs="$lcms1libs"
  15953.    fi
  15954.    savedLIBS="$LIBS"
  15955.    LIBS="$lcms1libs $LIB_MATH"
  15956.    with_liblcms1="no"
  15957. #
  15958.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
  15959. $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
  15960. if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
  15961.   $as_echo_n "(cached) " >&6
  15962. else
  15963.   ac_check_lib_save_LIBS=$LIBS
  15964. LIBS="-llcms  $LIBS"
  15965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15966. /* end confdefs.h.  */
  15967.  
  15968. /* Override any GCC internal prototype to avoid an error.
  15969.    Use char because int might match the return type of a GCC
  15970.    builtin and then its argument prototype would still apply.  */
  15971. #ifdef __cplusplus
  15972. extern "C"
  15973. #endif
  15974. char cmsOpenProfileFromFile ();
  15975. int
  15976. main ()
  15977. {
  15978. return cmsOpenProfileFromFile ();
  15979.   ;
  15980.   return 0;
  15981. }
  15982. _ACEOF
  15983. if ac_fn_c_try_link "$LINENO"; then :
  15984.   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
  15985. else
  15986.   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
  15987. fi
  15988. rm -f core conftest.err conftest.$ac_objext \
  15989.     conftest$ac_exeext conftest.$ac_ext
  15990. LIBS=$ac_check_lib_save_LIBS
  15991. fi
  15992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
  15993. $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
  15994. if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
  15995.   cat >>confdefs.h <<_ACEOF
  15996. #define HAVE_LIBLCMS 1
  15997. _ACEOF
  15998.  
  15999.   LIBS="-llcms $LIBS"
  16000.  
  16001. else
  16002.   lcms1libs=""
  16003. fi
  16004.  
  16005. #
  16006.    if test -n "$lcms1libs" ; then
  16007.     if test "$lcms1_header_found" = "yes" ; then
  16008.      with_liblcms1="yes"
  16009.  
  16010. $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
  16011.  
  16012.      if test -n "$PKGCONFIG" ; then
  16013.        have_lcms1_version="`$PKGCONFIG --modversion lcms`"
  16014.      fi
  16015.     fi
  16016.    fi
  16017.    if test "$with_liblcms1" = "no" ; then
  16018.      lcms1libs=""
  16019.      lcms1includes=""
  16020.      lcms1libs=""
  16021.    fi
  16022.    LIBS="$savedLIBS $lcms1libs"
  16023.  fi
  16024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms is usable:$with_liblcms1" >&5
  16025. $as_echo "lcms is usable:$with_liblcms1" >&6; }
  16026. fi
  16027. #
  16028.  if test x$with_liblcms1 = xyes; then
  16029.   with_liblcms1_TRUE=
  16030.   with_liblcms1_FALSE='#'
  16031. else
  16032.   with_liblcms1_TRUE='#'
  16033.   with_liblcms1_FALSE=
  16034. fi
  16035.  
  16036.  
  16037.  
  16038. #
  16039. # -------------------------------
  16040. # Test for USE_JPWL
  16041. # -------------------------------
  16042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with JPWL support" >&5
  16043. $as_echo_n "checking whether to build with JPWL support... " >&6; }
  16044. with_libjpwl="no"
  16045. jpwl_dir=""
  16046. # Check whether --enable-jpwl was given.
  16047. if test "${enable_jpwl+set}" = set; then :
  16048.   enableval=$enable_jpwl; test "$enable_jpwl" = "yes" && with_libjpwl="yes"
  16049. fi
  16050.  
  16051. #
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libjpwl" >&5
  16053. $as_echo "$with_libjpwl" >&6; }
  16054.  if test x$with_libjpwl = xyes; then
  16055.   with_libjpwl_TRUE=
  16056.   with_libjpwl_FALSE='#'
  16057. else
  16058.   with_libjpwl_TRUE='#'
  16059.   with_libjpwl_FALSE=
  16060. fi
  16061.  
  16062. if test "$with_libjpwl" = "yes" ; then
  16063.  jpwl_dir="jpwl"
  16064. fi
  16065.  
  16066. #
  16067. # -------------------------------
  16068. # Test for creating SHARED LIBS
  16069. # wanted result: shared xor static
  16070. # -------------------------------
  16071. with_sharedlibs="yes"
  16072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  16073. $as_echo_n "checking whether to build shared libraries... " >&6; }
  16074. # Check whether --enable-shared was given.
  16075. if test "${enable_shared+set}" = set; then :
  16076.   enableval=$enable_shared; test "$enable_shared" = "no" && with_sharedlibs="no"
  16077. fi
  16078.  
  16079. #
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sharedlibs" >&5
  16081. $as_echo "$with_sharedlibs" >&6; }
  16082.  if test x$with_sharedlibs = xyes; then
  16083.   with_sharedlibs_TRUE=
  16084.   with_sharedlibs_FALSE='#'
  16085. else
  16086.   with_sharedlibs_TRUE='#'
  16087.   with_sharedlibs_FALSE=
  16088. fi
  16089.  
  16090. #
  16091. # -------------------------------
  16092. # Test for creating JP3D
  16093. # -------------------------------
  16094. with_jp3d="no"
  16095. jp3d_dir=""
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JP3D library" >&5
  16097. $as_echo_n "checking whether to build the JP3D library... " >&6; }
  16098. # Check whether --enable-jp3d was given.
  16099. if test "${enable_jp3d+set}" = set; then :
  16100.   enableval=$enable_jp3d; test "$enable_jp3d" = "yes" && with_jp3d="yes"
  16101. fi
  16102.  
  16103. #
  16104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jp3d" >&5
  16105. $as_echo "$with_jp3d" >&6; }
  16106. if test "$with_jp3d" = "yes" ; then
  16107.  jp3d_dir="jp3d"
  16108. fi
  16109.  
  16110. #
  16111. # Extract the first word of "doxygen", so it can be a program name with args.
  16112. set dummy doxygen; ac_word=$2
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16114. $as_echo_n "checking for $ac_word... " >&6; }
  16115. if ${ac_cv_prog_with_doxygen+:} false; then :
  16116.   $as_echo_n "(cached) " >&6
  16117. else
  16118.   if test -n "$with_doxygen"; then
  16119.   ac_cv_prog_with_doxygen="$with_doxygen" # Let the user override the test.
  16120. else
  16121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16122. for as_dir in $PATH
  16123. do
  16124.   IFS=$as_save_IFS
  16125.   test -z "$as_dir" && as_dir=.
  16126.     for ac_exec_ext in '' $ac_executable_extensions; do
  16127.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16128.     ac_cv_prog_with_doxygen="yes"
  16129.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16130.     break 2
  16131.   fi
  16132. done
  16133.   done
  16134. IFS=$as_save_IFS
  16135.  
  16136.   test -z "$ac_cv_prog_with_doxygen" && ac_cv_prog_with_doxygen="no"
  16137. fi
  16138. fi
  16139. with_doxygen=$ac_cv_prog_with_doxygen
  16140. if test -n "$with_doxygen"; then
  16141.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doxygen" >&5
  16142. $as_echo "$with_doxygen" >&6; }
  16143. else
  16144.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16145. $as_echo "no" >&6; }
  16146. fi
  16147.  
  16148.  
  16149.  if test x$with_doxygen = xyes; then
  16150.   with_doxygen_TRUE=
  16151.   with_doxygen_FALSE='#'
  16152. else
  16153.   with_doxygen_TRUE='#'
  16154.   with_doxygen_FALSE=
  16155. fi
  16156.  
  16157. #
  16158. ac_config_files="$ac_config_files Makefile"
  16159.  
  16160. ac_config_files="$ac_config_files libopenjpeg.pc"
  16161.  
  16162. ac_config_files="$ac_config_files libopenjpeg/Makefile"
  16163.  
  16164. ac_config_files="$ac_config_files jpwl/Makefile"
  16165.  
  16166. ac_config_files="$ac_config_files codec/Makefile"
  16167.  
  16168. ac_config_files="$ac_config_files mj2/Makefile"
  16169.  
  16170. ac_config_files="$ac_config_files doc/Makefile"
  16171.  
  16172. ac_config_files="$ac_config_files jp3d/Makefile"
  16173.  
  16174. ac_config_files="$ac_config_files jp3d/libjp3dvm/Makefile"
  16175.  
  16176. ac_config_files="$ac_config_files jp3d/codec/Makefile"
  16177.  
  16178. cat >confcache <<\_ACEOF
  16179. # This file is a shell script that caches the results of configure
  16180. # tests run on this system so they can be shared between configure
  16181. # scripts and configure runs, see configure's option --config-cache.
  16182. # It is not useful on other systems.  If it contains results you don't
  16183. # want to keep, you may remove or edit it.
  16184. #
  16185. # config.status only pays attention to the cache file if you give it
  16186. # the --recheck option to rerun configure.
  16187. #
  16188. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16189. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16190. # following values.
  16191.  
  16192. _ACEOF
  16193.  
  16194. # The following way of writing the cache mishandles newlines in values,
  16195. # but we know of no workaround that is simple, portable, and efficient.
  16196. # So, we kill variables containing newlines.
  16197. # Ultrix sh set writes to stderr and can't be redirected directly,
  16198. # and sets the high bit in the cache file unless we assign to the vars.
  16199. (
  16200.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  16201.     eval ac_val=\$$ac_var
  16202.     case $ac_val in #(
  16203.     *${as_nl}*)
  16204.       case $ac_var in #(
  16205.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16206. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16207.       esac
  16208.       case $ac_var in #(
  16209.       _ | IFS | as_nl) ;; #(
  16210.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16211.       *) { eval $ac_var=; unset $ac_var;} ;;
  16212.       esac ;;
  16213.     esac
  16214.   done
  16215.  
  16216.   (set) 2>&1 |
  16217.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  16218.     *${as_nl}ac_space=\ *)
  16219.       # `set' does not quote correctly, so add quotes: double-quote
  16220.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  16221.       sed -n \
  16222.         "s/'/'\\\\''/g;
  16223.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16224.       ;; #(
  16225.     *)
  16226.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  16227.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16228.       ;;
  16229.     esac |
  16230.     sort
  16231. ) |
  16232.   sed '
  16233.      /^ac_cv_env_/b end
  16234.      t clear
  16235.      :clear
  16236.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16237.      t end
  16238.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16239.      :end' >>confcache
  16240. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16241.   if test -w "$cache_file"; then
  16242.     if test "x$cache_file" != "x/dev/null"; then
  16243.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  16244. $as_echo "$as_me: updating cache $cache_file" >&6;}
  16245.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  16246.         cat confcache >"$cache_file"
  16247.       else
  16248.         case $cache_file in #(
  16249.         */* | ?:*)
  16250.           mv -f confcache "$cache_file"$$ &&
  16251.           mv -f "$cache_file"$$ "$cache_file" ;; #(
  16252.         *)
  16253.           mv -f confcache "$cache_file" ;;
  16254.         esac
  16255.       fi
  16256.     fi
  16257.   else
  16258.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  16259. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16260.   fi
  16261. fi
  16262. rm -f confcache
  16263.  
  16264. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16265. # Let make expand exec_prefix.
  16266. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16267.  
  16268. DEFS=-DHAVE_CONFIG_H
  16269.  
  16270. ac_libobjs=
  16271. ac_ltlibobjs=
  16272. U=
  16273. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16274.   # 1. Remove the extension, and $U if already installed.
  16275.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16276.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  16277.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  16278.   #    will be set to the directory where LIBOBJS objects are built.
  16279.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16280.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  16281. done
  16282. LIBOBJS=$ac_libobjs
  16283.  
  16284. LTLIBOBJS=$ac_ltlibobjs
  16285.  
  16286.  
  16287.  if test -n "$EXEEXT"; then
  16288.   am__EXEEXT_TRUE=
  16289.   am__EXEEXT_FALSE='#'
  16290. else
  16291.   am__EXEEXT_TRUE='#'
  16292.   am__EXEEXT_FALSE=
  16293. fi
  16294.  
  16295. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16296.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  16297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16298. fi
  16299. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16300.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  16301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16302. fi
  16303. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  16304.   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  16305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16306. fi
  16307.  
  16308. if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
  16309.   as_fn_error $? "conditional \"with_libpng\" was never defined.
  16310. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16311. fi
  16312. if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
  16313.   as_fn_error $? "conditional \"with_libtiff\" was never defined.
  16314. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16315. fi
  16316. if test -z "${with_liblcms2_TRUE}" && test -z "${with_liblcms2_FALSE}"; then
  16317.   as_fn_error $? "conditional \"with_liblcms2\" was never defined.
  16318. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16319. fi
  16320. if test -z "${with_liblcms1_TRUE}" && test -z "${with_liblcms1_FALSE}"; then
  16321.   as_fn_error $? "conditional \"with_liblcms1\" was never defined.
  16322. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16323. fi
  16324. if test -z "${with_libjpwl_TRUE}" && test -z "${with_libjpwl_FALSE}"; then
  16325.   as_fn_error $? "conditional \"with_libjpwl\" was never defined.
  16326. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16327. fi
  16328. if test -z "${with_sharedlibs_TRUE}" && test -z "${with_sharedlibs_FALSE}"; then
  16329.   as_fn_error $? "conditional \"with_sharedlibs\" was never defined.
  16330. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16331. fi
  16332. if test -z "${with_doxygen_TRUE}" && test -z "${with_doxygen_FALSE}"; then
  16333.   as_fn_error $? "conditional \"with_doxygen\" was never defined.
  16334. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16335. fi
  16336.  
  16337. : "${CONFIG_STATUS=./config.status}"
  16338. ac_write_fail=0
  16339. ac_clean_files_save=$ac_clean_files
  16340. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  16342. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16343. as_write_fail=0
  16344. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  16345. #! $SHELL
  16346. # Generated by $as_me.
  16347. # Run this file to recreate the current configuration.
  16348. # Compiler output produced by configure, useful for debugging
  16349. # configure, is in config.log if it exists.
  16350.  
  16351. debug=false
  16352. ac_cs_recheck=false
  16353. ac_cs_silent=false
  16354.  
  16355. SHELL=\${CONFIG_SHELL-$SHELL}
  16356. export SHELL
  16357. _ASEOF
  16358. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  16359. ## -------------------- ##
  16360. ## M4sh Initialization. ##
  16361. ## -------------------- ##
  16362.  
  16363. # Be more Bourne compatible
  16364. DUALCASE=1; export DUALCASE # for MKS sh
  16365. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16366.   emulate sh
  16367.   NULLCMD=:
  16368.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16369.   # is contrary to our usage.  Disable this feature.
  16370.   alias -g '${1+"$@"}'='"$@"'
  16371.   setopt NO_GLOB_SUBST
  16372. else
  16373.   case `(set -o) 2>/dev/null` in #(
  16374.   *posix*) :
  16375.     set -o posix ;; #(
  16376.   *) :
  16377.      ;;
  16378. esac
  16379. fi
  16380.  
  16381.  
  16382. as_nl='
  16383. '
  16384. export as_nl
  16385. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  16386. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16387. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16388. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16389. # Prefer a ksh shell builtin over an external printf program on Solaris,
  16390. # but without wasting forks for bash or zsh.
  16391. if test -z "$BASH_VERSION$ZSH_VERSION" \
  16392.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16393.   as_echo='print -r --'
  16394.   as_echo_n='print -rn --'
  16395. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16396.   as_echo='printf %s\n'
  16397.   as_echo_n='printf %s'
  16398. else
  16399.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16400.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16401.     as_echo_n='/usr/ucb/echo -n'
  16402.   else
  16403.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16404.     as_echo_n_body='eval
  16405.       arg=$1;
  16406.       case $arg in #(
  16407.       *"$as_nl"*)
  16408.         expr "X$arg" : "X\\(.*\\)$as_nl";
  16409.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16410.       esac;
  16411.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16412.     '
  16413.     export as_echo_n_body
  16414.     as_echo_n='sh -c $as_echo_n_body as_echo'
  16415.   fi
  16416.   export as_echo_body
  16417.   as_echo='sh -c $as_echo_body as_echo'
  16418. fi
  16419.  
  16420. # The user is always right.
  16421. if test "${PATH_SEPARATOR+set}" != set; then
  16422.   PATH_SEPARATOR=:
  16423.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16424.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16425.       PATH_SEPARATOR=';'
  16426.   }
  16427. fi
  16428.  
  16429.  
  16430. # IFS
  16431. # We need space, tab and new line, in precisely that order.  Quoting is
  16432. # there to prevent editors from complaining about space-tab.
  16433. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16434. # splitting by setting IFS to empty value.)
  16435. IFS=" ""        $as_nl"
  16436.  
  16437. # Find who we are.  Look in the path if we contain no directory separator.
  16438. as_myself=
  16439. case $0 in #((
  16440.   *[\\/]* ) as_myself=$0 ;;
  16441.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16442. for as_dir in $PATH
  16443. do
  16444.   IFS=$as_save_IFS
  16445.   test -z "$as_dir" && as_dir=.
  16446.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16447.   done
  16448. IFS=$as_save_IFS
  16449.  
  16450.      ;;
  16451. esac
  16452. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16453. # in which case we are not to be found in the path.
  16454. if test "x$as_myself" = x; then
  16455.   as_myself=$0
  16456. fi
  16457. if test ! -f "$as_myself"; then
  16458.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16459.   exit 1
  16460. fi
  16461.  
  16462. # Unset variables that we do not need and which cause bugs (e.g. in
  16463. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  16464. # suppresses any "Segmentation fault" message there.  '((' could
  16465. # trigger a bug in pdksh 5.2.14.
  16466. for as_var in BASH_ENV ENV MAIL MAILPATH
  16467. do eval test x\${$as_var+set} = xset \
  16468.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16469. done
  16470. PS1='$ '
  16471. PS2='> '
  16472. PS4='+ '
  16473.  
  16474. # NLS nuisances.
  16475. LC_ALL=C
  16476. export LC_ALL
  16477. LANGUAGE=C
  16478. export LANGUAGE
  16479.  
  16480. # CDPATH.
  16481. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16482.  
  16483.  
  16484. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  16485. # ----------------------------------------
  16486. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16487. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16488. # script with STATUS, using 1 if that was 0.
  16489. as_fn_error ()
  16490. {
  16491.   as_status=$1; test $as_status -eq 0 && as_status=1
  16492.   if test "$4"; then
  16493.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16494.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  16495.   fi
  16496.   $as_echo "$as_me: error: $2" >&2
  16497.   as_fn_exit $as_status
  16498. } # as_fn_error
  16499.  
  16500.  
  16501. # as_fn_set_status STATUS
  16502. # -----------------------
  16503. # Set $? to STATUS, without forking.
  16504. as_fn_set_status ()
  16505. {
  16506.   return $1
  16507. } # as_fn_set_status
  16508.  
  16509. # as_fn_exit STATUS
  16510. # -----------------
  16511. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16512. as_fn_exit ()
  16513. {
  16514.   set +e
  16515.   as_fn_set_status $1
  16516.   exit $1
  16517. } # as_fn_exit
  16518.  
  16519. # as_fn_unset VAR
  16520. # ---------------
  16521. # Portably unset VAR.
  16522. as_fn_unset ()
  16523. {
  16524.   { eval $1=; unset $1;}
  16525. }
  16526. as_unset=as_fn_unset
  16527. # as_fn_append VAR VALUE
  16528. # ----------------------
  16529. # Append the text in VALUE to the end of the definition contained in VAR. Take
  16530. # advantage of any shell optimizations that allow amortized linear growth over
  16531. # repeated appends, instead of the typical quadratic growth present in naive
  16532. # implementations.
  16533. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16534.   eval 'as_fn_append ()
  16535.   {
  16536.     eval $1+=\$2
  16537.   }'
  16538. else
  16539.   as_fn_append ()
  16540.   {
  16541.     eval $1=\$$1\$2
  16542.   }
  16543. fi # as_fn_append
  16544.  
  16545. # as_fn_arith ARG...
  16546. # ------------------
  16547. # Perform arithmetic evaluation on the ARGs, and store the result in the
  16548. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  16549. # must be portable across $(()) and expr.
  16550. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16551.   eval 'as_fn_arith ()
  16552.   {
  16553.     as_val=$(( $* ))
  16554.   }'
  16555. else
  16556.   as_fn_arith ()
  16557.   {
  16558.     as_val=`expr "$@" || test $? -eq 1`
  16559.   }
  16560. fi # as_fn_arith
  16561.  
  16562.  
  16563. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16564.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16565.   as_expr=expr
  16566. else
  16567.   as_expr=false
  16568. fi
  16569.  
  16570. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16571.   as_basename=basename
  16572. else
  16573.   as_basename=false
  16574. fi
  16575.  
  16576. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16577.   as_dirname=dirname
  16578. else
  16579.   as_dirname=false
  16580. fi
  16581.  
  16582. as_me=`$as_basename -- "$0" ||
  16583. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16584.          X"$0" : 'X\(//\)$' \| \
  16585.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16586. $as_echo X/"$0" |
  16587.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  16588.             s//\1/
  16589.             q
  16590.           }
  16591.           /^X\/\(\/\/\)$/{
  16592.             s//\1/
  16593.             q
  16594.           }
  16595.           /^X\/\(\/\).*/{
  16596.             s//\1/
  16597.             q
  16598.           }
  16599.           s/.*/./; q'`
  16600.  
  16601. # Avoid depending upon Character Ranges.
  16602. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16603. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16604. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16605. as_cr_digits='0123456789'
  16606. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16607.  
  16608. ECHO_C= ECHO_N= ECHO_T=
  16609. case `echo -n x` in #(((((
  16610. -n*)
  16611.   case `echo 'xy\c'` in
  16612.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  16613.   xy)  ECHO_C='\c';;
  16614.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16615.        ECHO_T=' ';;
  16616.   esac;;
  16617. *)
  16618.   ECHO_N='-n';;
  16619. esac
  16620.  
  16621. rm -f conf$$ conf$$.exe conf$$.file
  16622. if test -d conf$$.dir; then
  16623.   rm -f conf$$.dir/conf$$.file
  16624. else
  16625.   rm -f conf$$.dir
  16626.   mkdir conf$$.dir 2>/dev/null
  16627. fi
  16628. if (echo >conf$$.file) 2>/dev/null; then
  16629.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  16630.     as_ln_s='ln -s'
  16631.     # ... but there are two gotchas:
  16632.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16633.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16634.     # In both cases, we have to default to `cp -p'.
  16635.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16636.       as_ln_s='cp -p'
  16637.   elif ln conf$$.file conf$$ 2>/dev/null; then
  16638.     as_ln_s=ln
  16639.   else
  16640.     as_ln_s='cp -p'
  16641.   fi
  16642. else
  16643.   as_ln_s='cp -p'
  16644. fi
  16645. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16646. rmdir conf$$.dir 2>/dev/null
  16647.  
  16648.  
  16649. # as_fn_mkdir_p
  16650. # -------------
  16651. # Create "$as_dir" as a directory, including parents if necessary.
  16652. as_fn_mkdir_p ()
  16653. {
  16654.  
  16655.   case $as_dir in #(
  16656.   -*) as_dir=./$as_dir;;
  16657.   esac
  16658.   test -d "$as_dir" || eval $as_mkdir_p || {
  16659.     as_dirs=
  16660.     while :; do
  16661.       case $as_dir in #(
  16662.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16663.       *) as_qdir=$as_dir;;
  16664.       esac
  16665.       as_dirs="'$as_qdir' $as_dirs"
  16666.       as_dir=`$as_dirname -- "$as_dir" ||
  16667. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16668.          X"$as_dir" : 'X\(//\)[^/]' \| \
  16669.          X"$as_dir" : 'X\(//\)$' \| \
  16670.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16671. $as_echo X"$as_dir" |
  16672.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16673.             s//\1/
  16674.             q
  16675.           }
  16676.           /^X\(\/\/\)[^/].*/{
  16677.             s//\1/
  16678.             q
  16679.           }
  16680.           /^X\(\/\/\)$/{
  16681.             s//\1/
  16682.             q
  16683.           }
  16684.           /^X\(\/\).*/{
  16685.             s//\1/
  16686.             q
  16687.           }
  16688.           s/.*/./; q'`
  16689.       test -d "$as_dir" && break
  16690.     done
  16691.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  16692.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16693.  
  16694.  
  16695. } # as_fn_mkdir_p
  16696. if mkdir -p . 2>/dev/null; then
  16697.   as_mkdir_p='mkdir -p "$as_dir"'
  16698. else
  16699.   test -d ./-p && rmdir ./-p
  16700.   as_mkdir_p=false
  16701. fi
  16702.  
  16703. if test -x / >/dev/null 2>&1; then
  16704.   as_test_x='test -x'
  16705. else
  16706.   if ls -dL / >/dev/null 2>&1; then
  16707.     as_ls_L_option=L
  16708.   else
  16709.     as_ls_L_option=
  16710.   fi
  16711.   as_test_x='
  16712.     eval sh -c '\''
  16713.       if test -d "$1"; then
  16714.         test -d "$1/.";
  16715.       else
  16716.         case $1 in #(
  16717.         -*)set "./$1";;
  16718.         esac;
  16719.         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  16720.         ???[sx]*):;;*)false;;esac;fi
  16721.     '\'' sh
  16722.   '
  16723. fi
  16724. as_executable_p=$as_test_x
  16725.  
  16726. # Sed expression to map a string onto a valid CPP name.
  16727. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16728.  
  16729. # Sed expression to map a string onto a valid variable name.
  16730. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16731.  
  16732.  
  16733. exec 6>&1
  16734. ## ----------------------------------- ##
  16735. ## Main body of $CONFIG_STATUS script. ##
  16736. ## ----------------------------------- ##
  16737. _ASEOF
  16738. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16739.  
  16740. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16741. # Save the log message, to keep $0 and so on meaningful, and to
  16742. # report actual input values of CONFIG_FILES etc. instead of their
  16743. # values after options handling.
  16744. ac_log="
  16745. This file was extended by OpenJPEG $as_me 1.4.0, which was
  16746. generated by GNU Autoconf 2.68.  Invocation command line was
  16747.  
  16748.   CONFIG_FILES    = $CONFIG_FILES
  16749.   CONFIG_HEADERS  = $CONFIG_HEADERS
  16750.   CONFIG_LINKS    = $CONFIG_LINKS
  16751.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  16752.   $ $0 $@
  16753.  
  16754. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16755. "
  16756.  
  16757. _ACEOF
  16758.  
  16759. case $ac_config_files in *"
  16760. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16761. esac
  16762.  
  16763. case $ac_config_headers in *"
  16764. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  16765. esac
  16766.  
  16767.  
  16768. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16769. # Files that config.status was made for.
  16770. config_files="$ac_config_files"
  16771. config_headers="$ac_config_headers"
  16772. config_commands="$ac_config_commands"
  16773.  
  16774. _ACEOF
  16775.  
  16776. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16777. ac_cs_usage="\
  16778. \`$as_me' instantiates files and other configuration actions
  16779. from templates according to the current configuration.  Unless the files
  16780. and actions are specified as TAGs, all are instantiated by default.
  16781.  
  16782. Usage: $0 [OPTION]... [TAG]...
  16783.  
  16784.   -h, --help       print this help, then exit
  16785.   -V, --version    print version number and configuration settings, then exit
  16786.       --config     print configuration, then exit
  16787.   -q, --quiet, --silent
  16788.                    do not print progress messages
  16789.   -d, --debug      don't remove temporary files
  16790.       --recheck    update $as_me by reconfiguring in the same conditions
  16791.       --file=FILE[:TEMPLATE]
  16792.                    instantiate the configuration file FILE
  16793.       --header=FILE[:TEMPLATE]
  16794.                    instantiate the configuration header FILE
  16795.  
  16796. Configuration files:
  16797. $config_files
  16798.  
  16799. Configuration headers:
  16800. $config_headers
  16801.  
  16802. Configuration commands:
  16803. $config_commands
  16804.  
  16805. Report bugs to <http://code.google.com/p/openjpeg/>.
  16806. OpenJPEG home page: <http://www.openjpeg.org/>."
  16807.  
  16808. _ACEOF
  16809. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16810. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16811. ac_cs_version="\\
  16812. OpenJPEG config.status 1.4.0
  16813. configured by $0, generated by GNU Autoconf 2.68,
  16814.   with options \\"\$ac_cs_config\\"
  16815.  
  16816. Copyright (C) 2010 Free Software Foundation, Inc.
  16817. This config.status script is free software; the Free Software Foundation
  16818. gives unlimited permission to copy, distribute and modify it."
  16819.  
  16820. ac_pwd='$ac_pwd'
  16821. srcdir='$srcdir'
  16822. INSTALL='$INSTALL'
  16823. MKDIR_P='$MKDIR_P'
  16824. AWK='$AWK'
  16825. test -n "\$AWK" || AWK=awk
  16826. _ACEOF
  16827.  
  16828. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16829. # The default lists apply if the user does not specify any file.
  16830. ac_need_defaults=:
  16831. while test $# != 0
  16832. do
  16833.   case $1 in
  16834.   --*=?*)
  16835.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16836.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16837.     ac_shift=:
  16838.     ;;
  16839.   --*=)
  16840.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16841.     ac_optarg=
  16842.     ac_shift=:
  16843.     ;;
  16844.   *)
  16845.     ac_option=$1
  16846.     ac_optarg=$2
  16847.     ac_shift=shift
  16848.     ;;
  16849.   esac
  16850.  
  16851.   case $ac_option in
  16852.   # Handling of the options.
  16853.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16854.     ac_cs_recheck=: ;;
  16855.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16856.     $as_echo "$ac_cs_version"; exit ;;
  16857.   --config | --confi | --conf | --con | --co | --c )
  16858.     $as_echo "$ac_cs_config"; exit ;;
  16859.   --debug | --debu | --deb | --de | --d | -d )
  16860.     debug=: ;;
  16861.   --file | --fil | --fi | --f )
  16862.     $ac_shift
  16863.     case $ac_optarg in
  16864.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16865.     '') as_fn_error $? "missing file argument" ;;
  16866.     esac
  16867.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  16868.     ac_need_defaults=false;;
  16869.   --header | --heade | --head | --hea )
  16870.     $ac_shift
  16871.     case $ac_optarg in
  16872.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16873.     esac
  16874.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16875.     ac_need_defaults=false;;
  16876.   --he | --h)
  16877.     # Conflict between --help and --header
  16878.     as_fn_error $? "ambiguous option: \`$1'
  16879. Try \`$0 --help' for more information.";;
  16880.   --help | --hel | -h )
  16881.     $as_echo "$ac_cs_usage"; exit ;;
  16882.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16883.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16884.     ac_cs_silent=: ;;
  16885.  
  16886.   # This is an error.
  16887.   -*) as_fn_error $? "unrecognized option: \`$1'
  16888. Try \`$0 --help' for more information." ;;
  16889.  
  16890.   *) as_fn_append ac_config_targets " $1"
  16891.      ac_need_defaults=false ;;
  16892.  
  16893.   esac
  16894.   shift
  16895. done
  16896.  
  16897. ac_configure_extra_args=
  16898.  
  16899. if $ac_cs_silent; then
  16900.   exec 6>/dev/null
  16901.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  16902. fi
  16903.  
  16904. _ACEOF
  16905. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16906. if \$ac_cs_recheck; then
  16907.   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16908.   shift
  16909.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16910.   CONFIG_SHELL='$SHELL'
  16911.   export CONFIG_SHELL
  16912.   exec "\$@"
  16913. fi
  16914.  
  16915. _ACEOF
  16916. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16917. exec 5>>config.log
  16918. {
  16919.   echo
  16920.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16921. ## Running $as_me. ##
  16922. _ASBOX
  16923.   $as_echo "$ac_log"
  16924. } >&5
  16925.  
  16926. _ACEOF
  16927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16928. #
  16929. # INIT-COMMANDS
  16930. #
  16931. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16932.  
  16933.  
  16934. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16935. # if CDPATH is set.
  16936. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16937.  
  16938. sed_quote_subst='$sed_quote_subst'
  16939. double_quote_subst='$double_quote_subst'
  16940. delay_variable_subst='$delay_variable_subst'
  16941. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16942. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  16943. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16944. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16945. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16946. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16947. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16948. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16949. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16950. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16951. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16952. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16953. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16954. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16955. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16956. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16957. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16958. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16959. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16960. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16961. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16962. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16963. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16964. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16965. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16966. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16967. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16968. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16969. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16970. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16971. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16972. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16973. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16974. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16975. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16976. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16977. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16978. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16979. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16980. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16981. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16982. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16983. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16984. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16985. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16986. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16987. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16988. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16989. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16990. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16991. 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"`'
  16992. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16993. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16994. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16995. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16996. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16997. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16998. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16999. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  17000. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  17001. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  17002. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  17003. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  17004. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  17005. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  17006. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  17007. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17008. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  17009. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  17010. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  17011. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  17012. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  17013. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  17014. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17015. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  17016. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17017. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  17018. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17019. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  17020. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17021. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17022. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  17023. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  17024. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  17025. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  17026. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  17027. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  17028. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17029. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  17030. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  17031. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  17032. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  17033. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  17034. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  17035. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  17036. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  17037. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  17038. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  17039. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  17040. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  17041. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  17042. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  17043. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  17044. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17045. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  17046. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  17047. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  17048. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  17049. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  17050. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  17051. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  17052. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  17053. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  17054. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  17055. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  17056. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  17057. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  17058. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  17059. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  17060. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  17061. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  17062. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  17063. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  17064. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  17065. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  17066. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  17067. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  17068. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  17069. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  17070. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17071. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17072. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17073. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  17074. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  17075. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17076. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  17077. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  17078. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  17079. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  17080. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  17081. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  17082. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17083. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17084. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  17085. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17086. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17087. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17088. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17089. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17090. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17091. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  17092. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17093. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17094. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17095. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  17096. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  17097. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  17098. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  17099. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  17100. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  17101. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  17102. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  17103. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  17104. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  17105. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  17106. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17107. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  17108. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  17109. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17110. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17111. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  17112. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  17113. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  17114. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  17115. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  17116. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  17117. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  17118.  
  17119. LTCC='$LTCC'
  17120. LTCFLAGS='$LTCFLAGS'
  17121. compiler='$compiler_DEFAULT'
  17122.  
  17123. # A function that is used when there is no print builtin or printf.
  17124. func_fallback_echo ()
  17125. {
  17126.   eval 'cat <<_LTECHO_EOF
  17127. \$1
  17128. _LTECHO_EOF'
  17129. }
  17130.  
  17131. # Quote evaled strings.
  17132. for var in AS \
  17133. DLLTOOL \
  17134. OBJDUMP \
  17135. SHELL \
  17136. ECHO \
  17137. SED \
  17138. GREP \
  17139. EGREP \
  17140. FGREP \
  17141. LD \
  17142. NM \
  17143. LN_S \
  17144. lt_SP2NL \
  17145. lt_NL2SP \
  17146. reload_flag \
  17147. deplibs_check_method \
  17148. file_magic_cmd \
  17149. AR \
  17150. AR_FLAGS \
  17151. STRIP \
  17152. RANLIB \
  17153. CC \
  17154. CFLAGS \
  17155. compiler \
  17156. lt_cv_sys_global_symbol_pipe \
  17157. lt_cv_sys_global_symbol_to_cdecl \
  17158. lt_cv_sys_global_symbol_to_c_name_address \
  17159. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  17160. lt_prog_compiler_no_builtin_flag \
  17161. lt_prog_compiler_wl \
  17162. lt_prog_compiler_pic \
  17163. lt_prog_compiler_static \
  17164. lt_cv_prog_compiler_c_o \
  17165. need_locks \
  17166. DSYMUTIL \
  17167. NMEDIT \
  17168. LIPO \
  17169. OTOOL \
  17170. OTOOL64 \
  17171. shrext_cmds \
  17172. export_dynamic_flag_spec \
  17173. whole_archive_flag_spec \
  17174. compiler_needs_object \
  17175. with_gnu_ld \
  17176. allow_undefined_flag \
  17177. no_undefined_flag \
  17178. hardcode_libdir_flag_spec \
  17179. hardcode_libdir_flag_spec_ld \
  17180. hardcode_libdir_separator \
  17181. fix_srcfile_path \
  17182. exclude_expsyms \
  17183. include_expsyms \
  17184. file_list_spec \
  17185. variables_saved_for_relink \
  17186. libname_spec \
  17187. library_names_spec \
  17188. soname_spec \
  17189. install_override_mode \
  17190. finish_eval \
  17191. old_striplib \
  17192. striplib \
  17193. compiler_lib_search_dirs \
  17194. predep_objects \
  17195. postdep_objects \
  17196. predeps \
  17197. postdeps \
  17198. compiler_lib_search_path \
  17199. LD_CXX \
  17200. reload_flag_CXX \
  17201. compiler_CXX \
  17202. lt_prog_compiler_no_builtin_flag_CXX \
  17203. lt_prog_compiler_wl_CXX \
  17204. lt_prog_compiler_pic_CXX \
  17205. lt_prog_compiler_static_CXX \
  17206. lt_cv_prog_compiler_c_o_CXX \
  17207. export_dynamic_flag_spec_CXX \
  17208. whole_archive_flag_spec_CXX \
  17209. compiler_needs_object_CXX \
  17210. with_gnu_ld_CXX \
  17211. allow_undefined_flag_CXX \
  17212. no_undefined_flag_CXX \
  17213. hardcode_libdir_flag_spec_CXX \
  17214. hardcode_libdir_flag_spec_ld_CXX \
  17215. hardcode_libdir_separator_CXX \
  17216. fix_srcfile_path_CXX \
  17217. exclude_expsyms_CXX \
  17218. include_expsyms_CXX \
  17219. file_list_spec_CXX \
  17220. compiler_lib_search_dirs_CXX \
  17221. predep_objects_CXX \
  17222. postdep_objects_CXX \
  17223. predeps_CXX \
  17224. postdeps_CXX \
  17225. compiler_lib_search_path_CXX; do
  17226.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  17227.     *[\\\\\\\`\\"\\\$]*)
  17228.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  17229.       ;;
  17230.     *)
  17231.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  17232.       ;;
  17233.     esac
  17234. done
  17235.  
  17236. # Double-quote double-evaled strings.
  17237. for var in reload_cmds \
  17238. old_postinstall_cmds \
  17239. old_postuninstall_cmds \
  17240. old_archive_cmds \
  17241. extract_expsyms_cmds \
  17242. old_archive_from_new_cmds \
  17243. old_archive_from_expsyms_cmds \
  17244. archive_cmds \
  17245. archive_expsym_cmds \
  17246. module_cmds \
  17247. module_expsym_cmds \
  17248. export_symbols_cmds \
  17249. prelink_cmds \
  17250. postinstall_cmds \
  17251. postuninstall_cmds \
  17252. finish_cmds \
  17253. sys_lib_search_path_spec \
  17254. sys_lib_dlsearch_path_spec \
  17255. reload_cmds_CXX \
  17256. old_archive_cmds_CXX \
  17257. old_archive_from_new_cmds_CXX \
  17258. old_archive_from_expsyms_cmds_CXX \
  17259. archive_cmds_CXX \
  17260. archive_expsym_cmds_CXX \
  17261. module_cmds_CXX \
  17262. module_expsym_cmds_CXX \
  17263. export_symbols_cmds_CXX \
  17264. prelink_cmds_CXX; do
  17265.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  17266.     *[\\\\\\\`\\"\\\$]*)
  17267.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  17268.       ;;
  17269.     *)
  17270.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  17271.       ;;
  17272.     esac
  17273. done
  17274.  
  17275. ac_aux_dir='$ac_aux_dir'
  17276. xsi_shell='$xsi_shell'
  17277. lt_shell_append='$lt_shell_append'
  17278.  
  17279. # See if we are running on zsh, and set the options which allow our
  17280. # commands through without removal of \ escapes INIT.
  17281. if test -n "\${ZSH_VERSION+set}" ; then
  17282.    setopt NO_GLOB_SUBST
  17283. fi
  17284.  
  17285.  
  17286.     PACKAGE='$PACKAGE'
  17287.     VERSION='$VERSION'
  17288.     TIMESTAMP='$TIMESTAMP'
  17289.     RM='$RM'
  17290.     ofile='$ofile'
  17291.  
  17292.  
  17293.  
  17294.  
  17295.  
  17296.  
  17297. _ACEOF
  17298.  
  17299. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17300.  
  17301. # Handling of arguments.
  17302. for ac_config_target in $ac_config_targets
  17303. do
  17304.   case $ac_config_target in
  17305.     "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
  17306.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  17307.     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  17308.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  17309.     "libopenjpeg.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg.pc" ;;
  17310.     "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
  17311.     "jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES jpwl/Makefile" ;;
  17312.     "codec/Makefile") CONFIG_FILES="$CONFIG_FILES codec/Makefile" ;;
  17313.     "mj2/Makefile") CONFIG_FILES="$CONFIG_FILES mj2/Makefile" ;;
  17314.     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  17315.     "jp3d/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/Makefile" ;;
  17316.     "jp3d/libjp3dvm/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/libjp3dvm/Makefile" ;;
  17317.     "jp3d/codec/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/codec/Makefile" ;;
  17318.  
  17319.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  17320.   esac
  17321. done
  17322.  
  17323.  
  17324. # If the user did not use the arguments to specify the items to instantiate,
  17325. # then the envvar interface is used.  Set only those that are not.
  17326. # We use the long form for the default assignment because of an extremely
  17327. # bizarre bug on SunOS 4.1.3.
  17328. if $ac_need_defaults; then
  17329.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17330.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  17331.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  17332. fi
  17333.  
  17334. # Have a temporary directory for convenience.  Make it in the build tree
  17335. # simply because there is no reason against having it here, and in addition,
  17336. # creating and moving files from /tmp can sometimes cause problems.
  17337. # Hook for its removal unless debugging.
  17338. # Note that there is a small window in which the directory will not be cleaned:
  17339. # after its creation but before its name has been assigned to `$tmp'.
  17340. $debug ||
  17341. {
  17342.   tmp= ac_tmp=
  17343.   trap 'exit_status=$?
  17344.   : "${ac_tmp:=$tmp}"
  17345.   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  17346. ' 0
  17347.   trap 'as_fn_exit 1' 1 2 13 15
  17348. }
  17349. # Create a (secure) tmp directory for tmp files.
  17350.  
  17351. {
  17352.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17353.   test -d "$tmp"
  17354. }  ||
  17355. {
  17356.   tmp=./conf$$-$RANDOM
  17357.   (umask 077 && mkdir "$tmp")
  17358. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  17359. ac_tmp=$tmp
  17360.  
  17361. # Set up the scripts for CONFIG_FILES section.
  17362. # No need to generate them if there are no CONFIG_FILES.
  17363. # This happens for instance with `./config.status config.h'.
  17364. if test -n "$CONFIG_FILES"; then
  17365.  
  17366.  
  17367. ac_cr=`echo X | tr X '\015'`
  17368. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  17369. # But we know of no other shell where ac_cr would be empty at this
  17370. # point, so we can use a bashism as a fallback.
  17371. if test "x$ac_cr" = x; then
  17372.   eval ac_cr=\$\'\\r\'
  17373. fi
  17374. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  17375. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  17376.   ac_cs_awk_cr='\\r'
  17377. else
  17378.   ac_cs_awk_cr=$ac_cr
  17379. fi
  17380.  
  17381. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  17382. _ACEOF
  17383.  
  17384.  
  17385. {
  17386.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  17387.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  17388.   echo "_ACEOF"
  17389. } >conf$$subs.sh ||
  17390.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17391. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  17392. ac_delim='%!_!# '
  17393. for ac_last_try in false false false false false :; do
  17394.   . ./conf$$subs.sh ||
  17395.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17396.  
  17397.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  17398.   if test $ac_delim_n = $ac_delim_num; then
  17399.     break
  17400.   elif $ac_last_try; then
  17401.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17402.   else
  17403.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17404.   fi
  17405. done
  17406. rm -f conf$$subs.sh
  17407.  
  17408. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17409. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  17410. _ACEOF
  17411. sed -n '
  17412. h
  17413. s/^/S["/; s/!.*/"]=/
  17414. p
  17415. g
  17416. s/^[^!]*!//
  17417. :repl
  17418. t repl
  17419. s/'"$ac_delim"'$//
  17420. t delim
  17421. :nl
  17422. h
  17423. s/\(.\{148\}\)..*/\1/
  17424. t more1
  17425. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  17426. p
  17427. n
  17428. b repl
  17429. :more1
  17430. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17431. p
  17432. g
  17433. s/.\{148\}//
  17434. t nl
  17435. :delim
  17436. h
  17437. s/\(.\{148\}\)..*/\1/
  17438. t more2
  17439. s/["\\]/\\&/g; s/^/"/; s/$/"/
  17440. p
  17441. b
  17442. :more2
  17443. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17444. p
  17445. g
  17446. s/.\{148\}//
  17447. t delim
  17448. ' <conf$$subs.awk | sed '
  17449. /^[^""]/{
  17450.   N
  17451.   s/\n//
  17452. }
  17453. ' >>$CONFIG_STATUS || ac_write_fail=1
  17454. rm -f conf$$subs.awk
  17455. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17456. _ACAWK
  17457. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  17458.   for (key in S) S_is_set[key] = 1
  17459.   FS = ""
  17460.  
  17461. }
  17462. {
  17463.   line = $ 0
  17464.   nfields = split(line, field, "@")
  17465.   substed = 0
  17466.   len = length(field[1])
  17467.   for (i = 2; i < nfields; i++) {
  17468.     key = field[i]
  17469.     keylen = length(key)
  17470.     if (S_is_set[key]) {
  17471.       value = S[key]
  17472.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  17473.       len += length(value) + length(field[++i])
  17474.       substed = 1
  17475.     } else
  17476.       len += 1 + keylen
  17477.   }
  17478.  
  17479.   print line
  17480. }
  17481.  
  17482. _ACAWK
  17483. _ACEOF
  17484. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17485. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  17486.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  17487. else
  17488.   cat
  17489. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  17490.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  17491. _ACEOF
  17492.  
  17493. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  17494. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  17495. # trailing colons and then remove the whole line if VPATH becomes empty
  17496. # (actually we leave an empty line to preserve line numbers).
  17497. if test "x$srcdir" = x.; then
  17498.   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
  17499. h
  17500. s///
  17501. s/^/:/
  17502. s/[      ]*$/:/
  17503. s/:\$(srcdir):/:/g
  17504. s/:\${srcdir}:/:/g
  17505. s/:@srcdir@:/:/g
  17506. s/^:*//
  17507. s/:*$//
  17508. x
  17509. s/\(=[   ]*\).*/\1/
  17510. G
  17511. s/\n//
  17512. s/^[^=]*=[       ]*$//
  17513. }'
  17514. fi
  17515.  
  17516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17517. fi # test -n "$CONFIG_FILES"
  17518.  
  17519. # Set up the scripts for CONFIG_HEADERS section.
  17520. # No need to generate them if there are no CONFIG_HEADERS.
  17521. # This happens for instance with `./config.status Makefile'.
  17522. if test -n "$CONFIG_HEADERS"; then
  17523. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  17524. BEGIN {
  17525. _ACEOF
  17526.  
  17527. # Transform confdefs.h into an awk script `defines.awk', embedded as
  17528. # here-document in config.status, that substitutes the proper values into
  17529. # config.h.in to produce config.h.
  17530.  
  17531. # Create a delimiter string that does not exist in confdefs.h, to ease
  17532. # handling of long lines.
  17533. ac_delim='%!_!# '
  17534. for ac_last_try in false false :; do
  17535.   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  17536.   if test -z "$ac_tt"; then
  17537.     break
  17538.   elif $ac_last_try; then
  17539.     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  17540.   else
  17541.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17542.   fi
  17543. done
  17544.  
  17545. # For the awk script, D is an array of macro values keyed by name,
  17546. # likewise P contains macro parameters if any.  Preserve backslash
  17547. # newline sequences.
  17548.  
  17549. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  17550. sed -n '
  17551. s/.\{148\}/&'"$ac_delim"'/g
  17552. t rset
  17553. :rset
  17554. s/^[     ]*#[    ]*define[       ][      ]*/ /
  17555. t def
  17556. d
  17557. :def
  17558. s/\\$//
  17559. t bsnl
  17560. s/["\\]/\\&/g
  17561. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  17562. D["\1"]=" \3"/p
  17563. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
  17564. d
  17565. :bsnl
  17566. s/["\\]/\\&/g
  17567. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  17568. D["\1"]=" \3\\\\\\n"\\/p
  17569. t cont
  17570. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  17571. t cont
  17572. d
  17573. :cont
  17574. n
  17575. s/.\{148\}/&'"$ac_delim"'/g
  17576. t clear
  17577. :clear
  17578. s/\\$//
  17579. t bsnlc
  17580. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  17581. d
  17582. :bsnlc
  17583. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  17584. b cont
  17585. ' <confdefs.h | sed '
  17586. s/'"$ac_delim"'/"\\\
  17587. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  17588.  
  17589. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17590.   for (key in D) D_is_set[key] = 1
  17591.   FS = ""
  17592. }
  17593. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  17594.   line = \$ 0
  17595.   split(line, arg, " ")
  17596.   if (arg[1] == "#") {
  17597.     defundef = arg[2]
  17598.     mac1 = arg[3]
  17599.   } else {
  17600.     defundef = substr(arg[1], 2)
  17601.     mac1 = arg[2]
  17602.   }
  17603.   split(mac1, mac2, "(") #)
  17604.   macro = mac2[1]
  17605.   prefix = substr(line, 1, index(line, defundef) - 1)
  17606.   if (D_is_set[macro]) {
  17607.     # Preserve the white space surrounding the "#".
  17608.     print prefix "define", macro P[macro] D[macro]
  17609.     next
  17610.   } else {
  17611.     # Replace #undef with comments.  This is necessary, for example,
  17612.     # in the case of _POSIX_SOURCE, which is predefined and required
  17613.     # on some systems where configure will not decide to define it.
  17614.     if (defundef == "undef") {
  17615.       print "/*", prefix defundef, macro, "*/"
  17616.       next
  17617.     }
  17618.   }
  17619. }
  17620. { print }
  17621. _ACAWK
  17622. _ACEOF
  17623. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17624.   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  17625. fi # test -n "$CONFIG_HEADERS"
  17626.  
  17627.  
  17628. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  17629. shift
  17630. for ac_tag
  17631. do
  17632.   case $ac_tag in
  17633.   :[FHLC]) ac_mode=$ac_tag; continue;;
  17634.   esac
  17635.   case $ac_mode$ac_tag in
  17636.   :[FHL]*:*);;
  17637.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  17638.   :[FH]-) ac_tag=-:-;;
  17639.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17640.   esac
  17641.   ac_save_IFS=$IFS
  17642.   IFS=:
  17643.   set x $ac_tag
  17644.   IFS=$ac_save_IFS
  17645.   shift
  17646.   ac_file=$1
  17647.   shift
  17648.  
  17649.   case $ac_mode in
  17650.   :L) ac_source=$1;;
  17651.   :[FH])
  17652.     ac_file_inputs=
  17653.     for ac_f
  17654.     do
  17655.       case $ac_f in
  17656.       -) ac_f="$ac_tmp/stdin";;
  17657.       *) # Look for the file first in the build tree, then in the source tree
  17658.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  17659.          # because $ac_f cannot contain `:'.
  17660.          test -f "$ac_f" ||
  17661.            case $ac_f in
  17662.            [\\/$]*) false;;
  17663.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17664.            esac ||
  17665.            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  17666.       esac
  17667.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  17668.       as_fn_append ac_file_inputs " '$ac_f'"
  17669.     done
  17670.  
  17671.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  17672.     # use $as_me), people would be surprised to read:
  17673.     #    /* config.h.  Generated by config.status.  */
  17674.     configure_input='Generated from '`
  17675.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  17676.         `' by configure.'
  17677.     if test x"$ac_file" != x-; then
  17678.       configure_input="$ac_file.  $configure_input"
  17679.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  17680. $as_echo "$as_me: creating $ac_file" >&6;}
  17681.     fi
  17682.     # Neutralize special characters interpreted by sed in replacement strings.
  17683.     case $configure_input in #(
  17684.     *\&* | *\|* | *\\* )
  17685.        ac_sed_conf_input=`$as_echo "$configure_input" |
  17686.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  17687.     *) ac_sed_conf_input=$configure_input;;
  17688.     esac
  17689.  
  17690.     case $ac_tag in
  17691.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  17692.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  17693.     esac
  17694.     ;;
  17695.   esac
  17696.  
  17697.   ac_dir=`$as_dirname -- "$ac_file" ||
  17698. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17699.          X"$ac_file" : 'X\(//\)[^/]' \| \
  17700.          X"$ac_file" : 'X\(//\)$' \| \
  17701.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17702. $as_echo X"$ac_file" |
  17703.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17704.             s//\1/
  17705.             q
  17706.           }
  17707.           /^X\(\/\/\)[^/].*/{
  17708.             s//\1/
  17709.             q
  17710.           }
  17711.           /^X\(\/\/\)$/{
  17712.             s//\1/
  17713.             q
  17714.           }
  17715.           /^X\(\/\).*/{
  17716.             s//\1/
  17717.             q
  17718.           }
  17719.           s/.*/./; q'`
  17720.   as_dir="$ac_dir"; as_fn_mkdir_p
  17721.   ac_builddir=.
  17722.  
  17723. case "$ac_dir" in
  17724. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17725. *)
  17726.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17727.   # A ".." for each directory in $ac_dir_suffix.
  17728.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17729.   case $ac_top_builddir_sub in
  17730.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17731.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17732.   esac ;;
  17733. esac
  17734. ac_abs_top_builddir=$ac_pwd
  17735. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17736. # for backward compatibility:
  17737. ac_top_builddir=$ac_top_build_prefix
  17738.  
  17739. case $srcdir in
  17740.   .)  # We are building in place.
  17741.     ac_srcdir=.
  17742.     ac_top_srcdir=$ac_top_builddir_sub
  17743.     ac_abs_top_srcdir=$ac_pwd ;;
  17744.   [\\/]* | ?:[\\/]* )  # Absolute name.
  17745.     ac_srcdir=$srcdir$ac_dir_suffix;
  17746.     ac_top_srcdir=$srcdir
  17747.     ac_abs_top_srcdir=$srcdir ;;
  17748.   *) # Relative name.
  17749.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17750.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  17751.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17752. esac
  17753. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17754.  
  17755.  
  17756.   case $ac_mode in
  17757.   :F)
  17758.   #
  17759.   # CONFIG_FILE
  17760.   #
  17761.  
  17762.   case $INSTALL in
  17763.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17764.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17765.   esac
  17766.   ac_MKDIR_P=$MKDIR_P
  17767.   case $MKDIR_P in
  17768.   [\\/$]* | ?:[\\/]* ) ;;
  17769.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17770.   esac
  17771. _ACEOF
  17772.  
  17773. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17774. # If the template does not know about datarootdir, expand it.
  17775. # FIXME: This hack should be removed a few years after 2.60.
  17776. ac_datarootdir_hack=; ac_datarootdir_seen=
  17777. ac_sed_dataroot='
  17778. /datarootdir/ {
  17779.   p
  17780.   q
  17781. }
  17782. /@datadir@/p
  17783. /@docdir@/p
  17784. /@infodir@/p
  17785. /@localedir@/p
  17786. /@mandir@/p'
  17787. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17788. *datarootdir*) ac_datarootdir_seen=yes;;
  17789. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17790.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17791. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17792. _ACEOF
  17793. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17794.   ac_datarootdir_hack='
  17795.   s&@datadir@&$datadir&g
  17796.   s&@docdir@&$docdir&g
  17797.   s&@infodir@&$infodir&g
  17798.   s&@localedir@&$localedir&g
  17799.   s&@mandir@&$mandir&g
  17800.   s&\\\${datarootdir}&$datarootdir&g' ;;
  17801. esac
  17802. _ACEOF
  17803.  
  17804. # Neutralize VPATH when `$srcdir' = `.'.
  17805. # Shell code in configure.ac might set extrasub.
  17806. # FIXME: do we really want to maintain this feature?
  17807. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17808. ac_sed_extra="$ac_vpsub
  17809. $extrasub
  17810. _ACEOF
  17811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17812. :t
  17813. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17814. s|@configure_input@|$ac_sed_conf_input|;t t
  17815. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17816. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17817. s&@srcdir@&$ac_srcdir&;t t
  17818. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17819. s&@top_srcdir@&$ac_top_srcdir&;t t
  17820. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17821. s&@builddir@&$ac_builddir&;t t
  17822. s&@abs_builddir@&$ac_abs_builddir&;t t
  17823. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17824. s&@INSTALL@&$ac_INSTALL&;t t
  17825. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17826. $ac_datarootdir_hack
  17827. "
  17828. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17829.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17830.  
  17831. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17832.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17833.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  17834.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17835.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17836. which seems to be undefined.  Please make sure it is defined" >&5
  17837. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17838. which seems to be undefined.  Please make sure it is defined" >&2;}
  17839.  
  17840.   rm -f "$ac_tmp/stdin"
  17841.   case $ac_file in
  17842.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17843.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17844.   esac \
  17845.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17846.  ;;
  17847.   :H)
  17848.   #
  17849.   # CONFIG_HEADER
  17850.   #
  17851.   if test x"$ac_file" != x-; then
  17852.     {
  17853.       $as_echo "/* $configure_input  */" \
  17854.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  17855.     } >"$ac_tmp/config.h" \
  17856.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17857.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  17858.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17859. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  17860.     else
  17861.       rm -f "$ac_file"
  17862.       mv "$ac_tmp/config.h" "$ac_file" \
  17863.         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17864.     fi
  17865.   else
  17866.     $as_echo "/* $configure_input  */" \
  17867.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  17868.       || as_fn_error $? "could not create -" "$LINENO" 5
  17869.   fi
  17870. # Compute "$ac_file"'s index in $config_headers.
  17871. _am_arg="$ac_file"
  17872. _am_stamp_count=1
  17873. for _am_header in $config_headers :; do
  17874.   case $_am_header in
  17875.     $_am_arg | $_am_arg:* )
  17876.       break ;;
  17877.     * )
  17878.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17879.   esac
  17880. done
  17881. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  17882. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17883.          X"$_am_arg" : 'X\(//\)[^/]' \| \
  17884.          X"$_am_arg" : 'X\(//\)$' \| \
  17885.          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  17886. $as_echo X"$_am_arg" |
  17887.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17888.             s//\1/
  17889.             q
  17890.           }
  17891.           /^X\(\/\/\)[^/].*/{
  17892.             s//\1/
  17893.             q
  17894.           }
  17895.           /^X\(\/\/\)$/{
  17896.             s//\1/
  17897.             q
  17898.           }
  17899.           /^X\(\/\).*/{
  17900.             s//\1/
  17901.             q
  17902.           }
  17903.           s/.*/./; q'`/stamp-h$_am_stamp_count
  17904.  ;;
  17905.  
  17906.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17907. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17908.  ;;
  17909.   esac
  17910.  
  17911.  
  17912.   case $ac_file$ac_mode in
  17913.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17914.   # Autoconf 2.62 quotes --file arguments for eval, but not when files
  17915.   # are listed without --file.  Let's play safe and only enable the eval
  17916.   # if we detect the quoting.
  17917.   case $CONFIG_FILES in
  17918.   *\'*) eval set x "$CONFIG_FILES" ;;
  17919.   *)   set x $CONFIG_FILES ;;
  17920.   esac
  17921.   shift
  17922.   for mf
  17923.   do
  17924.     # Strip MF so we end up with the name of the file.
  17925.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  17926.     # Check whether this is an Automake generated Makefile or not.
  17927.     # We used to match only the files named `Makefile.in', but
  17928.     # some people rename them; so instead we look at the file content.
  17929.     # Grep'ing the first line is not enough: some people post-process
  17930.     # each Makefile.in and add a new line on top of each file to say so.
  17931.     # Grep'ing the whole file is not good either: AIX grep has a line
  17932.     # limit of 2048, but all sed's we know have understand at least 4000.
  17933.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17934.       dirpart=`$as_dirname -- "$mf" ||
  17935. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17936.          X"$mf" : 'X\(//\)[^/]' \| \
  17937.          X"$mf" : 'X\(//\)$' \| \
  17938.          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17939. $as_echo X"$mf" |
  17940.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17941.             s//\1/
  17942.             q
  17943.           }
  17944.           /^X\(\/\/\)[^/].*/{
  17945.             s//\1/
  17946.             q
  17947.           }
  17948.           /^X\(\/\/\)$/{
  17949.             s//\1/
  17950.             q
  17951.           }
  17952.           /^X\(\/\).*/{
  17953.             s//\1/
  17954.             q
  17955.           }
  17956.           s/.*/./; q'`
  17957.     else
  17958.       continue
  17959.     fi
  17960.     # Extract the definition of DEPDIR, am__include, and am__quote
  17961.     # from the Makefile without running `make'.
  17962.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17963.     test -z "$DEPDIR" && continue
  17964.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17965.     test -z "am__include" && continue
  17966.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17967.     # When using ansi2knr, U may be empty or an underscore; expand it
  17968.     U=`sed -n 's/^U = //p' < "$mf"`
  17969.     # Find all dependency output files, they are included files with
  17970.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  17971.     # simplest approach to changing $(DEPDIR) to its actual value in the
  17972.     # expansion.
  17973.     for file in `sed -n "
  17974.       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17975.          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  17976.       # Make sure the directory exists.
  17977.       test -f "$dirpart/$file" && continue
  17978.       fdir=`$as_dirname -- "$file" ||
  17979. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17980.          X"$file" : 'X\(//\)[^/]' \| \
  17981.          X"$file" : 'X\(//\)$' \| \
  17982.          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17983. $as_echo X"$file" |
  17984.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17985.             s//\1/
  17986.             q
  17987.           }
  17988.           /^X\(\/\/\)[^/].*/{
  17989.             s//\1/
  17990.             q
  17991.           }
  17992.           /^X\(\/\/\)$/{
  17993.             s//\1/
  17994.             q
  17995.           }
  17996.           /^X\(\/\).*/{
  17997.             s//\1/
  17998.             q
  17999.           }
  18000.           s/.*/./; q'`
  18001.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  18002.       # echo "creating $dirpart/$file"
  18003.       echo '# dummy' > "$dirpart/$file"
  18004.     done
  18005.   done
  18006. }
  18007.  ;;
  18008.     "libtool":C)
  18009.  
  18010.     # See if we are running on zsh, and set the options which allow our
  18011.     # commands through without removal of \ escapes.
  18012.     if test -n "${ZSH_VERSION+set}" ; then
  18013.       setopt NO_GLOB_SUBST
  18014.     fi
  18015.  
  18016.     cfgfile="${ofile}T"
  18017.     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  18018.     $RM "$cfgfile"
  18019.  
  18020.     cat <<_LT_EOF >> "$cfgfile"
  18021. #! $SHELL
  18022.  
  18023. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  18024. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  18025. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18026. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  18027. #
  18028. #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  18029. #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  18030. #                 Inc.
  18031. #   Written by Gordon Matzigkeit, 1996
  18032. #
  18033. #   This file is part of GNU Libtool.
  18034. #
  18035. # GNU Libtool is free software; you can redistribute it and/or
  18036. # modify it under the terms of the GNU General Public License as
  18037. # published by the Free Software Foundation; either version 2 of
  18038. # the License, or (at your option) any later version.
  18039. #
  18040. # As a special exception to the GNU General Public License,
  18041. # if you distribute this file as part of a program or library that
  18042. # is built using GNU Libtool, you may include this file under the
  18043. # same distribution terms that you use for the rest of that program.
  18044. #
  18045. # GNU Libtool is distributed in the hope that it will be useful,
  18046. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18047. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18048. # GNU General Public License for more details.
  18049. #
  18050. # You should have received a copy of the GNU General Public License
  18051. # along with GNU Libtool; see the file COPYING.  If not, a copy
  18052. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  18053. # obtained by writing to the Free Software Foundation, Inc.,
  18054. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18055.  
  18056.  
  18057. # The names of the tagged configurations supported by this script.
  18058. available_tags="CXX "
  18059.  
  18060. # ### BEGIN LIBTOOL CONFIG
  18061.  
  18062. # Whether or not to build shared libraries.
  18063. build_libtool_libs=$enable_shared
  18064.  
  18065. # Assembler program.
  18066. AS=$lt_AS
  18067.  
  18068. # DLL creation program.
  18069. DLLTOOL=$lt_DLLTOOL
  18070.  
  18071. # Object dumper program.
  18072. OBJDUMP=$lt_OBJDUMP
  18073.  
  18074. # Which release of libtool.m4 was used?
  18075. macro_version=$macro_version
  18076. macro_revision=$macro_revision
  18077.  
  18078. # Whether or not to build static libraries.
  18079. build_old_libs=$enable_static
  18080.  
  18081. # What type of objects to build.
  18082. pic_mode=$pic_mode
  18083.  
  18084. # Whether or not to optimize for fast installation.
  18085. fast_install=$enable_fast_install
  18086.  
  18087. # Shell to use when invoking shell scripts.
  18088. SHELL=$lt_SHELL
  18089.  
  18090. # An echo program that protects backslashes.
  18091. ECHO=$lt_ECHO
  18092.  
  18093. # The host system.
  18094. host_alias=$host_alias
  18095. host=$host
  18096. host_os=$host_os
  18097.  
  18098. # The build system.
  18099. build_alias=$build_alias
  18100. build=$build
  18101. build_os=$build_os
  18102.  
  18103. # A sed program that does not truncate output.
  18104. SED=$lt_SED
  18105.  
  18106. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  18107. Xsed="\$SED -e 1s/^X//"
  18108.  
  18109. # A grep program that handles long lines.
  18110. GREP=$lt_GREP
  18111.  
  18112. # An ERE matcher.
  18113. EGREP=$lt_EGREP
  18114.  
  18115. # A literal string matcher.
  18116. FGREP=$lt_FGREP
  18117.  
  18118. # A BSD- or MS-compatible name lister.
  18119. NM=$lt_NM
  18120.  
  18121. # Whether we need soft or hard links.
  18122. LN_S=$lt_LN_S
  18123.  
  18124. # What is the maximum length of a command?
  18125. max_cmd_len=$max_cmd_len
  18126.  
  18127. # Object file suffix (normally "o").
  18128. objext=$ac_objext
  18129.  
  18130. # Executable file suffix (normally "").
  18131. exeext=$exeext
  18132.  
  18133. # whether the shell understands "unset".
  18134. lt_unset=$lt_unset
  18135.  
  18136. # turn spaces into newlines.
  18137. SP2NL=$lt_lt_SP2NL
  18138.  
  18139. # turn newlines into spaces.
  18140. NL2SP=$lt_lt_NL2SP
  18141.  
  18142. # Method to check whether dependent libraries are shared objects.
  18143. deplibs_check_method=$lt_deplibs_check_method
  18144.  
  18145. # Command to use when deplibs_check_method == "file_magic".
  18146. file_magic_cmd=$lt_file_magic_cmd
  18147.  
  18148. # The archiver.
  18149. AR=$lt_AR
  18150. AR_FLAGS=$lt_AR_FLAGS
  18151.  
  18152. # A symbol stripping program.
  18153. STRIP=$lt_STRIP
  18154.  
  18155. # Commands used to install an old-style archive.
  18156. RANLIB=$lt_RANLIB
  18157. old_postinstall_cmds=$lt_old_postinstall_cmds
  18158. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18159.  
  18160. # Whether to use a lock for old archive extraction.
  18161. lock_old_archive_extraction=$lock_old_archive_extraction
  18162.  
  18163. # A C compiler.
  18164. LTCC=$lt_CC
  18165.  
  18166. # LTCC compiler flags.
  18167. LTCFLAGS=$lt_CFLAGS
  18168.  
  18169. # Take the output of nm and produce a listing of raw symbols and C names.
  18170. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18171.  
  18172. # Transform the output of nm in a proper C declaration.
  18173. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18174.  
  18175. # Transform the output of nm in a C name address pair.
  18176. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18177.  
  18178. # Transform the output of nm in a C name address pair when lib prefix is needed.
  18179. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  18180.  
  18181. # The name of the directory that contains temporary libtool files.
  18182. objdir=$objdir
  18183.  
  18184. # Used to examine libraries when file_magic_cmd begins with "file".
  18185. MAGIC_CMD=$MAGIC_CMD
  18186.  
  18187. # Must we lock files when doing compilation?
  18188. need_locks=$lt_need_locks
  18189.  
  18190. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  18191. DSYMUTIL=$lt_DSYMUTIL
  18192.  
  18193. # Tool to change global to local symbols on Mac OS X.
  18194. NMEDIT=$lt_NMEDIT
  18195.  
  18196. # Tool to manipulate fat objects and archives on Mac OS X.
  18197. LIPO=$lt_LIPO
  18198.  
  18199. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  18200. OTOOL=$lt_OTOOL
  18201.  
  18202. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  18203. OTOOL64=$lt_OTOOL64
  18204.  
  18205. # Old archive suffix (normally "a").
  18206. libext=$libext
  18207.  
  18208. # Shared library suffix (normally ".so").
  18209. shrext_cmds=$lt_shrext_cmds
  18210.  
  18211. # The commands to extract the exported symbol list from a shared archive.
  18212. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18213.  
  18214. # Variables whose values should be saved in libtool wrapper scripts and
  18215. # restored at link time.
  18216. variables_saved_for_relink=$lt_variables_saved_for_relink
  18217.  
  18218. # Do we need the "lib" prefix for modules?
  18219. need_lib_prefix=$need_lib_prefix
  18220.  
  18221. # Do we need a version for libraries?
  18222. need_version=$need_version
  18223.  
  18224. # Library versioning type.
  18225. version_type=$version_type
  18226.  
  18227. # Shared library runtime path variable.
  18228. runpath_var=$runpath_var
  18229.  
  18230. # Shared library path variable.
  18231. shlibpath_var=$shlibpath_var
  18232.  
  18233. # Is shlibpath searched before the hard-coded library search path?
  18234. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18235.  
  18236. # Format of library name prefix.
  18237. libname_spec=$lt_libname_spec
  18238.  
  18239. # List of archive names.  First name is the real one, the rest are links.
  18240. # The last name is the one that the linker finds with -lNAME
  18241. library_names_spec=$lt_library_names_spec
  18242.  
  18243. # The coded name of the library, if different from the real name.
  18244. soname_spec=$lt_soname_spec
  18245.  
  18246. # Permission mode override for installation of shared libraries.
  18247. install_override_mode=$lt_install_override_mode
  18248.  
  18249. # Command to use after installation of a shared archive.
  18250. postinstall_cmds=$lt_postinstall_cmds
  18251.  
  18252. # Command to use after uninstallation of a shared archive.
  18253. postuninstall_cmds=$lt_postuninstall_cmds
  18254.  
  18255. # Commands used to finish a libtool library installation in a directory.
  18256. finish_cmds=$lt_finish_cmds
  18257.  
  18258. # As "finish_cmds", except a single script fragment to be evaled but
  18259. # not shown.
  18260. finish_eval=$lt_finish_eval
  18261.  
  18262. # Whether we should hardcode library paths into libraries.
  18263. hardcode_into_libs=$hardcode_into_libs
  18264.  
  18265. # Compile-time system search path for libraries.
  18266. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18267.  
  18268. # Run-time system search path for libraries.
  18269. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18270.  
  18271. # Whether dlopen is supported.
  18272. dlopen_support=$enable_dlopen
  18273.  
  18274. # Whether dlopen of programs is supported.
  18275. dlopen_self=$enable_dlopen_self
  18276.  
  18277. # Whether dlopen of statically linked programs is supported.
  18278. dlopen_self_static=$enable_dlopen_self_static
  18279.  
  18280. # Commands to strip libraries.
  18281. old_striplib=$lt_old_striplib
  18282. striplib=$lt_striplib
  18283.  
  18284.  
  18285. # The linker used to build libraries.
  18286. LD=$lt_LD
  18287.  
  18288. # How to create reloadable object files.
  18289. reload_flag=$lt_reload_flag
  18290. reload_cmds=$lt_reload_cmds
  18291.  
  18292. # Commands used to build an old-style archive.
  18293. old_archive_cmds=$lt_old_archive_cmds
  18294.  
  18295. # A language specific compiler.
  18296. CC=$lt_compiler
  18297.  
  18298. # Is the compiler the GNU compiler?
  18299. with_gcc=$GCC
  18300.  
  18301. # Compiler flag to turn off builtin functions.
  18302. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  18303.  
  18304. # How to pass a linker flag through the compiler.
  18305. wl=$lt_lt_prog_compiler_wl
  18306.  
  18307. # Additional compiler flags for building library objects.
  18308. pic_flag=$lt_lt_prog_compiler_pic
  18309.  
  18310. # Compiler flag to prevent dynamic linking.
  18311. link_static_flag=$lt_lt_prog_compiler_static
  18312.  
  18313. # Does compiler simultaneously support -c and -o options?
  18314. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  18315.  
  18316. # Whether or not to add -lc for building shared libraries.
  18317. build_libtool_need_lc=$archive_cmds_need_lc
  18318.  
  18319. # Whether or not to disallow shared libs when runtime libs are static.
  18320. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  18321.  
  18322. # Compiler flag to allow reflexive dlopens.
  18323. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  18324.  
  18325. # Compiler flag to generate shared objects directly from archives.
  18326. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  18327.  
  18328. # Whether the compiler copes with passing no objects directly.
  18329. compiler_needs_object=$lt_compiler_needs_object
  18330.  
  18331. # Create an old-style archive from a shared archive.
  18332. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  18333.  
  18334. # Create a temporary old-style archive to link instead of a shared archive.
  18335. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  18336.  
  18337. # Commands used to build a shared archive.
  18338. archive_cmds=$lt_archive_cmds
  18339. archive_expsym_cmds=$lt_archive_expsym_cmds
  18340.  
  18341. # Commands used to build a loadable module if different from building
  18342. # a shared archive.
  18343. module_cmds=$lt_module_cmds
  18344. module_expsym_cmds=$lt_module_expsym_cmds
  18345.  
  18346. # Whether we are building with GNU ld or not.
  18347. with_gnu_ld=$lt_with_gnu_ld
  18348.  
  18349. # Flag that allows shared libraries with undefined symbols to be built.
  18350. allow_undefined_flag=$lt_allow_undefined_flag
  18351.  
  18352. # Flag that enforces no undefined symbols.
  18353. no_undefined_flag=$lt_no_undefined_flag
  18354.  
  18355. # Flag to hardcode \$libdir into a binary during linking.
  18356. # This must work even if \$libdir does not exist
  18357. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  18358.  
  18359. # If ld is used when linking, flag to hardcode \$libdir into a binary
  18360. # during linking.  This must work even if \$libdir does not exist.
  18361. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  18362.  
  18363. # Whether we need a single "-rpath" flag with a separated argument.
  18364. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  18365.  
  18366. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  18367. # DIR into the resulting binary.
  18368. hardcode_direct=$hardcode_direct
  18369.  
  18370. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  18371. # DIR into the resulting binary and the resulting library dependency is
  18372. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  18373. # library is relocated.
  18374. hardcode_direct_absolute=$hardcode_direct_absolute
  18375.  
  18376. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  18377. # into the resulting binary.
  18378. hardcode_minus_L=$hardcode_minus_L
  18379.  
  18380. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  18381. # into the resulting binary.
  18382. hardcode_shlibpath_var=$hardcode_shlibpath_var
  18383.  
  18384. # Set to "yes" if building a shared library automatically hardcodes DIR
  18385. # into the library and all subsequent libraries and executables linked
  18386. # against it.
  18387. hardcode_automatic=$hardcode_automatic
  18388.  
  18389. # Set to yes if linker adds runtime paths of dependent libraries
  18390. # to runtime path list.
  18391. inherit_rpath=$inherit_rpath
  18392.  
  18393. # Whether libtool must link a program against all its dependency libraries.
  18394. link_all_deplibs=$link_all_deplibs
  18395.  
  18396. # Fix the shell variable \$srcfile for the compiler.
  18397. fix_srcfile_path=$lt_fix_srcfile_path
  18398.  
  18399. # Set to "yes" if exported symbols are required.
  18400. always_export_symbols=$always_export_symbols
  18401.  
  18402. # The commands to list exported symbols.
  18403. export_symbols_cmds=$lt_export_symbols_cmds
  18404.  
  18405. # Symbols that should not be listed in the preloaded symbols.
  18406. exclude_expsyms=$lt_exclude_expsyms
  18407.  
  18408. # Symbols that must always be exported.
  18409. include_expsyms=$lt_include_expsyms
  18410.  
  18411. # Commands necessary for linking programs (against libraries) with templates.
  18412. prelink_cmds=$lt_prelink_cmds
  18413.  
  18414. # Specify filename containing input files.
  18415. file_list_spec=$lt_file_list_spec
  18416.  
  18417. # How to hardcode a shared library path into an executable.
  18418. hardcode_action=$hardcode_action
  18419.  
  18420. # The directories searched by this compiler when creating a shared library.
  18421. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  18422.  
  18423. # Dependencies to place before and after the objects being linked to
  18424. # create a shared library.
  18425. predep_objects=$lt_predep_objects
  18426. postdep_objects=$lt_postdep_objects
  18427. predeps=$lt_predeps
  18428. postdeps=$lt_postdeps
  18429.  
  18430. # The library search path used internally by the compiler when linking
  18431. # a shared library.
  18432. compiler_lib_search_path=$lt_compiler_lib_search_path
  18433.  
  18434. # ### END LIBTOOL CONFIG
  18435.  
  18436. _LT_EOF
  18437.  
  18438.   case $host_os in
  18439.   aix3*)
  18440.     cat <<\_LT_EOF >> "$cfgfile"
  18441. # AIX sometimes has problems with the GCC collect2 program.  For some
  18442. # reason, if we set the COLLECT_NAMES environment variable, the problems
  18443. # vanish in a puff of smoke.
  18444. if test "X${COLLECT_NAMES+set}" != Xset; then
  18445.   COLLECT_NAMES=
  18446.   export COLLECT_NAMES
  18447. fi
  18448. _LT_EOF
  18449.     ;;
  18450.   esac
  18451.  
  18452.  
  18453. ltmain="$ac_aux_dir/ltmain.sh"
  18454.  
  18455.  
  18456.   # We use sed instead of cat because bash on DJGPP gets confused if
  18457.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  18458.   # text mode, it properly converts lines to CR/LF.  This bash problem
  18459.   # is reportedly fixed, but why not run on old versions too?
  18460.   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  18461.     || (rm -f "$cfgfile"; exit 1)
  18462.  
  18463.   case $xsi_shell in
  18464.   yes)
  18465.     cat << \_LT_EOF >> "$cfgfile"
  18466.  
  18467. # func_dirname file append nondir_replacement
  18468. # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
  18469. # otherwise set result to NONDIR_REPLACEMENT.
  18470. func_dirname ()
  18471. {
  18472.   case ${1} in
  18473.     */*) func_dirname_result="${1%/*}${2}" ;;
  18474.     *  ) func_dirname_result="${3}" ;;
  18475.   esac
  18476. }
  18477.  
  18478. # func_basename file
  18479. func_basename ()
  18480. {
  18481.   func_basename_result="${1##*/}"
  18482. }
  18483.  
  18484. # func_dirname_and_basename file append nondir_replacement
  18485. # perform func_basename and func_dirname in a single function
  18486. # call:
  18487. #   dirname:  Compute the dirname of FILE.  If nonempty,
  18488. #             add APPEND to the result, otherwise set result
  18489. #             to NONDIR_REPLACEMENT.
  18490. #             value returned in "$func_dirname_result"
  18491. #   basename: Compute filename of FILE.
  18492. #             value retuned in "$func_basename_result"
  18493. # Implementation must be kept synchronized with func_dirname
  18494. # and func_basename. For efficiency, we do not delegate to
  18495. # those functions but instead duplicate the functionality here.
  18496. func_dirname_and_basename ()
  18497. {
  18498.   case ${1} in
  18499.     */*) func_dirname_result="${1%/*}${2}" ;;
  18500.     *  ) func_dirname_result="${3}" ;;
  18501.   esac
  18502.   func_basename_result="${1##*/}"
  18503. }
  18504.  
  18505. # func_stripname prefix suffix name
  18506. # strip PREFIX and SUFFIX off of NAME.
  18507. # PREFIX and SUFFIX must not contain globbing or regex special
  18508. # characters, hashes, percent signs, but SUFFIX may contain a leading
  18509. # dot (in which case that matches only a dot).
  18510. func_stripname ()
  18511. {
  18512.   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  18513.   # positional parameters, so assign one to ordinary parameter first.
  18514.   func_stripname_result=${3}
  18515.   func_stripname_result=${func_stripname_result#"${1}"}
  18516.   func_stripname_result=${func_stripname_result%"${2}"}
  18517. }
  18518.  
  18519. # func_opt_split
  18520. func_opt_split ()
  18521. {
  18522.   func_opt_split_opt=${1%%=*}
  18523.   func_opt_split_arg=${1#*=}
  18524. }
  18525.  
  18526. # func_lo2o object
  18527. func_lo2o ()
  18528. {
  18529.   case ${1} in
  18530.     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  18531.     *)    func_lo2o_result=${1} ;;
  18532.   esac
  18533. }
  18534.  
  18535. # func_xform libobj-or-source
  18536. func_xform ()
  18537. {
  18538.   func_xform_result=${1%.*}.lo
  18539. }
  18540.  
  18541. # func_arith arithmetic-term...
  18542. func_arith ()
  18543. {
  18544.   func_arith_result=$(( $* ))
  18545. }
  18546.  
  18547. # func_len string
  18548. # STRING may not start with a hyphen.
  18549. func_len ()
  18550. {
  18551.   func_len_result=${#1}
  18552. }
  18553.  
  18554. _LT_EOF
  18555.     ;;
  18556.   *) # Bourne compatible functions.
  18557.     cat << \_LT_EOF >> "$cfgfile"
  18558.  
  18559. # func_dirname file append nondir_replacement
  18560. # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
  18561. # otherwise set result to NONDIR_REPLACEMENT.
  18562. func_dirname ()
  18563. {
  18564.   # Extract subdirectory from the argument.
  18565.   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  18566.   if test "X$func_dirname_result" = "X${1}"; then
  18567.     func_dirname_result="${3}"
  18568.   else
  18569.     func_dirname_result="$func_dirname_result${2}"
  18570.   fi
  18571. }
  18572.  
  18573. # func_basename file
  18574. func_basename ()
  18575. {
  18576.   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  18577. }
  18578.  
  18579.  
  18580. # func_stripname prefix suffix name
  18581. # strip PREFIX and SUFFIX off of NAME.
  18582. # PREFIX and SUFFIX must not contain globbing or regex special
  18583. # characters, hashes, percent signs, but SUFFIX may contain a leading
  18584. # dot (in which case that matches only a dot).
  18585. # func_strip_suffix prefix name
  18586. func_stripname ()
  18587. {
  18588.   case ${2} in
  18589.     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  18590.     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  18591.   esac
  18592. }
  18593.  
  18594. # sed scripts:
  18595. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  18596. my_sed_long_arg='1s/^-[^=]*=//'
  18597.  
  18598. # func_opt_split
  18599. func_opt_split ()
  18600. {
  18601.   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  18602.   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  18603. }
  18604.  
  18605. # func_lo2o object
  18606. func_lo2o ()
  18607. {
  18608.   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  18609. }
  18610.  
  18611. # func_xform libobj-or-source
  18612. func_xform ()
  18613. {
  18614.   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  18615. }
  18616.  
  18617. # func_arith arithmetic-term...
  18618. func_arith ()
  18619. {
  18620.   func_arith_result=`expr "$@"`
  18621. }
  18622.  
  18623. # func_len string
  18624. # STRING may not start with a hyphen.
  18625. func_len ()
  18626. {
  18627.   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  18628. }
  18629.  
  18630. _LT_EOF
  18631. esac
  18632.  
  18633. case $lt_shell_append in
  18634.   yes)
  18635.     cat << \_LT_EOF >> "$cfgfile"
  18636.  
  18637. # func_append var value
  18638. # Append VALUE to the end of shell variable VAR.
  18639. func_append ()
  18640. {
  18641.   eval "$1+=\$2"
  18642. }
  18643. _LT_EOF
  18644.     ;;
  18645.   *)
  18646.     cat << \_LT_EOF >> "$cfgfile"
  18647.  
  18648. # func_append var value
  18649. # Append VALUE to the end of shell variable VAR.
  18650. func_append ()
  18651. {
  18652.   eval "$1=\$$1\$2"
  18653. }
  18654.  
  18655. _LT_EOF
  18656.     ;;
  18657.   esac
  18658.  
  18659.  
  18660.   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  18661.     || (rm -f "$cfgfile"; exit 1)
  18662.  
  18663.   mv -f "$cfgfile" "$ofile" ||
  18664.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  18665.   chmod +x "$ofile"
  18666.  
  18667.  
  18668.     cat <<_LT_EOF >> "$ofile"
  18669.  
  18670. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  18671.  
  18672. # The linker used to build libraries.
  18673. LD=$lt_LD_CXX
  18674.  
  18675. # How to create reloadable object files.
  18676. reload_flag=$lt_reload_flag_CXX
  18677. reload_cmds=$lt_reload_cmds_CXX
  18678.  
  18679. # Commands used to build an old-style archive.
  18680. old_archive_cmds=$lt_old_archive_cmds_CXX
  18681.  
  18682. # A language specific compiler.
  18683. CC=$lt_compiler_CXX
  18684.  
  18685. # Is the compiler the GNU compiler?
  18686. with_gcc=$GCC_CXX
  18687.  
  18688. # Compiler flag to turn off builtin functions.
  18689. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  18690.  
  18691. # How to pass a linker flag through the compiler.
  18692. wl=$lt_lt_prog_compiler_wl_CXX
  18693.  
  18694. # Additional compiler flags for building library objects.
  18695. pic_flag=$lt_lt_prog_compiler_pic_CXX
  18696.  
  18697. # Compiler flag to prevent dynamic linking.
  18698. link_static_flag=$lt_lt_prog_compiler_static_CXX
  18699.  
  18700. # Does compiler simultaneously support -c and -o options?
  18701. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  18702.  
  18703. # Whether or not to add -lc for building shared libraries.
  18704. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  18705.  
  18706. # Whether or not to disallow shared libs when runtime libs are static.
  18707. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  18708.  
  18709. # Compiler flag to allow reflexive dlopens.
  18710. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  18711.  
  18712. # Compiler flag to generate shared objects directly from archives.
  18713. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  18714.  
  18715. # Whether the compiler copes with passing no objects directly.
  18716. compiler_needs_object=$lt_compiler_needs_object_CXX
  18717.  
  18718. # Create an old-style archive from a shared archive.
  18719. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  18720.  
  18721. # Create a temporary old-style archive to link instead of a shared archive.
  18722. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  18723.  
  18724. # Commands used to build a shared archive.
  18725. archive_cmds=$lt_archive_cmds_CXX
  18726. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  18727.  
  18728. # Commands used to build a loadable module if different from building
  18729. # a shared archive.
  18730. module_cmds=$lt_module_cmds_CXX
  18731. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  18732.  
  18733. # Whether we are building with GNU ld or not.
  18734. with_gnu_ld=$lt_with_gnu_ld_CXX
  18735.  
  18736. # Flag that allows shared libraries with undefined symbols to be built.
  18737. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  18738.  
  18739. # Flag that enforces no undefined symbols.
  18740. no_undefined_flag=$lt_no_undefined_flag_CXX
  18741.  
  18742. # Flag to hardcode \$libdir into a binary during linking.
  18743. # This must work even if \$libdir does not exist
  18744. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  18745.  
  18746. # If ld is used when linking, flag to hardcode \$libdir into a binary
  18747. # during linking.  This must work even if \$libdir does not exist.
  18748. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  18749.  
  18750. # Whether we need a single "-rpath" flag with a separated argument.
  18751. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  18752.  
  18753. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  18754. # DIR into the resulting binary.
  18755. hardcode_direct=$hardcode_direct_CXX
  18756.  
  18757. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  18758. # DIR into the resulting binary and the resulting library dependency is
  18759. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  18760. # library is relocated.
  18761. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  18762.  
  18763. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  18764. # into the resulting binary.
  18765. hardcode_minus_L=$hardcode_minus_L_CXX
  18766.  
  18767. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  18768. # into the resulting binary.
  18769. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  18770.  
  18771. # Set to "yes" if building a shared library automatically hardcodes DIR
  18772. # into the library and all subsequent libraries and executables linked
  18773. # against it.
  18774. hardcode_automatic=$hardcode_automatic_CXX
  18775.  
  18776. # Set to yes if linker adds runtime paths of dependent libraries
  18777. # to runtime path list.
  18778. inherit_rpath=$inherit_rpath_CXX
  18779.  
  18780. # Whether libtool must link a program against all its dependency libraries.
  18781. link_all_deplibs=$link_all_deplibs_CXX
  18782.  
  18783. # Fix the shell variable \$srcfile for the compiler.
  18784. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  18785.  
  18786. # Set to "yes" if exported symbols are required.
  18787. always_export_symbols=$always_export_symbols_CXX
  18788.  
  18789. # The commands to list exported symbols.
  18790. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  18791.  
  18792. # Symbols that should not be listed in the preloaded symbols.
  18793. exclude_expsyms=$lt_exclude_expsyms_CXX
  18794.  
  18795. # Symbols that must always be exported.
  18796. include_expsyms=$lt_include_expsyms_CXX
  18797.  
  18798. # Commands necessary for linking programs (against libraries) with templates.
  18799. prelink_cmds=$lt_prelink_cmds_CXX
  18800.  
  18801. # Specify filename containing input files.
  18802. file_list_spec=$lt_file_list_spec_CXX
  18803.  
  18804. # How to hardcode a shared library path into an executable.
  18805. hardcode_action=$hardcode_action_CXX
  18806.  
  18807. # The directories searched by this compiler when creating a shared library.
  18808. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  18809.  
  18810. # Dependencies to place before and after the objects being linked to
  18811. # create a shared library.
  18812. predep_objects=$lt_predep_objects_CXX
  18813. postdep_objects=$lt_postdep_objects_CXX
  18814. predeps=$lt_predeps_CXX
  18815. postdeps=$lt_postdeps_CXX
  18816.  
  18817. # The library search path used internally by the compiler when linking
  18818. # a shared library.
  18819. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  18820.  
  18821. # ### END LIBTOOL TAG CONFIG: CXX
  18822. _LT_EOF
  18823.  
  18824.  ;;
  18825.  
  18826.   esac
  18827. done # for ac_tag
  18828.  
  18829.  
  18830. as_fn_exit 0
  18831. _ACEOF
  18832. ac_clean_files=$ac_clean_files_save
  18833.  
  18834. test $ac_write_fail = 0 ||
  18835.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  18836.  
  18837.  
  18838. # configure is writing to config.log, and then calls config.status.
  18839. # config.status does its own redirection, appending to config.log.
  18840. # Unfortunately, on DOS this fails, as config.log is still kept open
  18841. # by configure, so config.status won't be able to write to it; its
  18842. # output is simply discarded.  So we exec the FD to /dev/null,
  18843. # effectively closing config.log, so it can be properly (re)opened and
  18844. # appended to by config.status.  When coming back to configure, we
  18845. # need to make the FD available again.
  18846. if test "$no_create" != yes; then
  18847.   ac_cs_success=:
  18848.   ac_config_status_args=
  18849.   test "$silent" = yes &&
  18850.     ac_config_status_args="$ac_config_status_args --quiet"
  18851.   exec 5>/dev/null
  18852.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18853.   exec 5>>config.log
  18854.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18855.   # would make configure fail if this is the last instruction.
  18856.   $ac_cs_success || as_fn_exit 1
  18857. fi
  18858. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  18859.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  18860. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  18861. fi
  18862.  
  18863. #
  18864. echo "----------------------------------------------"
  18865. echo "           your configuration"
  18866. echo ""
  18867. echo "--with-png-libraries: $with_libpng"
  18868. echo "libpng header       : $png_header_found"
  18869. echo "--enable-tiff       : $with_libtiff"
  18870. echo "libtiff header      : $tiff_header_found"
  18871. echo "--enable-lcms2      : $with_liblcms2"
  18872. echo "lcms2 header        : $lcms2_header_found"
  18873. echo "lcms2 version       : $have_lcms2_version"
  18874. echo "--enable-lcms1      : $with_liblcms1"
  18875. echo "lcms1 header        : $lcms1_header_found"
  18876. echo "lcms1 version       : $have_lcms1_version"
  18877. echo "--enable-jpwl       : $with_libjpwl"
  18878. echo "--enable-jp3d       : $with_jp3d"
  18879. echo "--enable-shared     : $with_sharedlibs"
  18880. echo "----------------------------------------------"
  18881.