2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
599 # So, first we look for a working echo in the user's PATH.
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
652 # maybe with a smaller string...
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 # Oops. We lost completely, so just stick with echo.
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 tagnames=${tagnames+${tagnames},}CXX
689 tagnames=${tagnames+${tagnames},}F77
691 exec 7<&0 </dev/null 6>&1
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 ac_default_prefix=/usr/local
703 ac_config_libobj_dir=.
709 SHELL=${CONFIG_SHELL-/bin/sh}
711 # Identity of this package.
718 ac_unique_file="mp.w"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
723 # include <sys/types.h>
726 # include <sys/stat.h>
737 # if !STDC_HEADERS && HAVE_MEMORY_H
743 # include <strings.h>
746 # include <inttypes.h>
764 program_transform_name
806 INSTALL_STRIP_PROGRAM
862 ac_precious_vars='build_alias
878 # Initialize some variables set by options.
880 ac_init_version=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
890 program_transform_name=s,x,x,
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
936 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983 { (exit 1); exit 1; }; }
984 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
985 eval enable_$ac_feature=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 -enable-* | --enable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1004 eval enable_$ac_feature=\$ac_optarg ;;
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 htmldir=$ac_optarg ;;
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1049 -libdir | --libdir | --libdi | --libd)
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1140 -psdir | --psdir | --psdi | --psd | --ps)
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 sbindir=$ac_optarg ;;
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 sharedstatedir=$ac_optarg ;;
1166 -site | --site | --sit)
1168 -site=* | --site=* | --sit=*)
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1195 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1198 { echo "$as_me: error: invalid package name: $ac_package" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_package=`echo $ac_package| sed 's/-/_/g'`
1201 eval with_$ac_package=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1207 { echo "$as_me: error: invalid package name: $ac_package" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_package=`echo $ac_package | sed 's/-/_/g'`
1210 eval with_$ac_package=no ;;
1213 # Obsolete; use --with-x.
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 { echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 # Be sure to have absolute directory names.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273 { (exit 1); exit 1; }; }
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 { echo "$as_me: error: Working directory cannot be determined" >&2
1304 { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 { echo "$as_me: error: pwd does not report name of working directory" >&2
1307 { (exit 1); exit 1; }; }
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$0" : 'X\(//\)[^/]' \| \
1317 X"$0" : 'X\(//\)$' \| \
1318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347 { (exit 1); exit 1; }; }
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352 { (exit 1); exit 1; }; }
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures this package to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 if test -n "$ac_init_help"; then
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-shared[=PKGS] build shared libraries [default=yes]
1454 --enable-static[=PKGS] build static libraries [default=yes]
1455 --enable-fast-install[=PKGS]
1456 optimize for fast installation [default=yes]
1457 --disable-dependency-tracking speeds up one-time build
1458 --enable-dependency-tracking do not reject slow dependency extractors
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1460 --enable-lua build lua module (default is no)
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-pic try to use only PIC/non-PIC objects [default=use
1468 --with-tags[=TAGS] include additional configurations [automatic]
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
1480 CXXCPP C++ preprocessor
1481 F77 Fortran 77 compiler command
1482 FFLAGS Fortran 77 compiler flags
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" || continue
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1514 .) # We are building in place.
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
1519 ac_srcdir=$srcdir$ac_dir_suffix;
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1538 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1548 generated by GNU Autoconf 2.60
1550 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1551 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1557 cat >config.log <<_ACEOF
1558 This file contains any messages produced by compilers while
1559 running configure, to aid debugging if configure makes a mistake.
1561 It was created by $as_me, which was
1562 generated by GNU Autoconf 2.60. Invocation command line was
1574 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1575 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1576 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1577 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1578 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1580 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1581 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1583 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1584 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1585 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1586 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1587 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1588 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1589 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 test -z "$as_dir" && as_dir=.
1598 echo "PATH: $as_dir"
1614 # Keep a trace of the command line.
1615 # Strip out --no-create and --no-recursion so they do not pile up.
1616 # Strip out --silent because we don't want to record it for future runs.
1617 # Also quote any args containing shell meta-characters.
1618 # Make two passes to allow for proper duplicate-argument suppression.
1622 ac_must_keep_next=false
1628 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1630 | -silent | --silent | --silen | --sile | --sil)
1633 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1636 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1638 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1639 if test $ac_must_keep_next = true; then
1640 ac_must_keep_next=false # Got value, back to normal.
1643 *=* | --config-cache | -C | -disable-* | --disable-* \
1644 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1645 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1646 | -with-* | --with-* | -without-* | --without-* | --x)
1647 case "$ac_configure_args0 " in
1648 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1651 -* ) ac_must_keep_next=true ;;
1654 ac_configure_args="$ac_configure_args '$ac_arg'"
1659 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1660 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1662 # When interrupted or exit'd, cleanup temporary files, and complete
1663 # config.log. We remove comments because anyway the quotes in there
1664 # would cause problems or look ugly.
1665 # WARNING: Use '\'' to represent an apostrophe within the trap.
1666 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1667 trap 'exit_status=$?
1668 # Save into config.log some information that might help in debugging.
1673 ## ---------------- ##
1674 ## Cache variables. ##
1675 ## ---------------- ##
1678 # The following way of writing the cache mishandles newlines in values,
1680 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1681 eval ac_val=\$$ac_var
1685 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1686 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1689 _ | IFS | as_nl) ;; #(
1690 *) $as_unset $ac_var ;;
1695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1696 *${as_nl}ac_space=\ *)
1698 "s/'\''/'\''\\\\'\'''\''/g;
1699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1710 ## ----------------- ##
1711 ## Output variables. ##
1712 ## ----------------- ##
1715 for ac_var in $ac_subst_vars
1717 eval ac_val=\$$ac_var
1719 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721 echo "$ac_var='\''$ac_val'\''"
1725 if test -n "$ac_subst_files"; then
1727 ## ------------------- ##
1728 ## File substitutions. ##
1729 ## ------------------- ##
1732 for ac_var in $ac_subst_files
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1743 if test -s confdefs.h; then
1753 test "$ac_signal" != 0 &&
1754 echo "$as_me: caught signal $ac_signal"
1755 echo "$as_me: exit $exit_status"
1757 rm -f core *.core core.conftest.* &&
1758 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761 for ac_signal in 1 2 13 15; do
1762 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1766 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1767 rm -f -r conftest* confdefs.h
1769 # Predefined preprocessor variables.
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_NAME "$PACKAGE_NAME"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_STRING "$PACKAGE_STRING"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1796 # Let the site file select an alternate cache file if it wants to.
1797 # Prefer explicitly selected file to automatically selected ones.
1798 if test -n "$CONFIG_SITE"; then
1799 set x "$CONFIG_SITE"
1800 elif test "x$prefix" != xNONE; then
1801 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1803 set x "$ac_default_prefix/share/config.site" \
1804 "$ac_default_prefix/etc/config.site"
1809 if test -r "$ac_site_file"; then
1810 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1811 echo "$as_me: loading site script $ac_site_file" >&6;}
1812 sed 's/^/| /' "$ac_site_file" >&5
1817 if test -r "$cache_file"; then
1818 # Some versions of bash will fail to source /dev/null (special
1819 # files actually), so we avoid doing that.
1820 if test -f "$cache_file"; then
1821 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1822 echo "$as_me: loading cache $cache_file" >&6;}
1824 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1825 *) . "./$cache_file";;
1829 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1830 echo "$as_me: creating cache $cache_file" >&6;}
1834 # Check that the precious variables saved in the cache have kept the same
1836 ac_cache_corrupted=false
1837 for ac_var in $ac_precious_vars; do
1838 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1839 eval ac_new_set=\$ac_env_${ac_var}_set
1840 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1841 eval ac_new_val=\$ac_env_${ac_var}_value
1842 case $ac_old_set,$ac_new_set in
1844 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1846 ac_cache_corrupted=: ;;
1848 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1850 ac_cache_corrupted=: ;;
1853 if test "x$ac_old_val" != "x$ac_new_val"; then
1854 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1855 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1856 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1857 echo "$as_me: former value: $ac_old_val" >&2;}
1858 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1859 echo "$as_me: current value: $ac_new_val" >&2;}
1860 ac_cache_corrupted=:
1863 # Pass precious variables to config.status.
1864 if test "$ac_new_set" = set; then
1866 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1867 *) ac_arg=$ac_var=$ac_new_val ;;
1869 case " $ac_configure_args " in
1870 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1871 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1875 if $ac_cache_corrupted; then
1876 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1877 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1878 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1879 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1880 { (exit 1); exit 1; }; }
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 am__api_version='1.10'
1909 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1910 if test -f "$ac_dir/install-sh"; then
1912 ac_install_sh="$ac_aux_dir/install-sh -c"
1914 elif test -f "$ac_dir/install.sh"; then
1916 ac_install_sh="$ac_aux_dir/install.sh -c"
1918 elif test -f "$ac_dir/shtool"; then
1920 ac_install_sh="$ac_aux_dir/shtool install -c"
1924 if test -z "$ac_aux_dir"; then
1925 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1926 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1927 { (exit 1); exit 1; }; }
1930 # These three variables are undocumented and unsupported,
1931 # and are intended to be withdrawn in a future Autoconf release.
1932 # They can cause serious problems if a builder's source tree is in a directory
1933 # whose full name contains unusual characters.
1934 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1935 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1936 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1939 # Find a good install program. We prefer a C program (faster),
1940 # so one script is as good as another. But avoid the broken or
1941 # incompatible versions:
1942 # SysV /etc/install, /usr/sbin/install
1943 # SunOS /usr/etc/install
1944 # IRIX /sbin/install
1946 # AmigaOS /C/install, which installs bootblocks on floppy discs
1947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1950 # OS/2's system install, which has a completely different semantic
1951 # ./install, which can be erroneously created by make from ./install.sh.
1952 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1954 if test -z "$INSTALL"; then
1955 if test "${ac_cv_path_install+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 test -z "$as_dir" && as_dir=.
1963 # Account for people who put trailing slashes in PATH elements.
1965 ./ | .// | /cC/* | \
1966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1970 # OSF1 and SCO ODT 3.0 have their own names for install.
1971 # Don't use installbsd from OSF since it installs stuff as root
1973 for ac_prog in ginstall scoinst install; do
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1976 if test $ac_prog = install &&
1977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1978 # AIX install. It has an incompatible calling convention.
1980 elif test $ac_prog = install &&
1981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1982 # program-specific install script used by HP pwplus--don't use.
1985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1998 if test "${ac_cv_path_install+set}" = set; then
1999 INSTALL=$ac_cv_path_install
2001 # As a last resort, use the slow shell script. Don't cache a
2002 # value for INSTALL within a source directory, because that will
2003 # break other packages using the cache if that directory is
2004 # removed, or if the value is a relative name.
2005 INSTALL=$ac_install_sh
2008 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2009 echo "${ECHO_T}$INSTALL" >&6; }
2011 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2012 # It thinks the first close brace ends the variable substitution.
2013 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2015 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2017 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2019 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2020 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2023 echo timestamp > conftest.file
2024 # Do `set' in a subshell so we don't clobber the current shell's
2025 # arguments. Must try -L first in case configure is actually a
2026 # symlink; some systems play weird games with the mod time of symlinks
2027 # (eg FreeBSD returns the mod time of the symlink's containing
2030 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2031 if test "$*" = "X"; then
2033 set X `ls -t $srcdir/configure conftest.file`
2036 if test "$*" != "X $srcdir/configure conftest.file" \
2037 && test "$*" != "X conftest.file $srcdir/configure"; then
2039 # If neither matched, then we have a broken ls. This can happen
2040 # if, for instance, CONFIG_SHELL is bash and it inherits a
2041 # broken ls alias from the environment. This has actually
2042 # happened. Such a system could not be considered "sane".
2043 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2044 alias in your environment" >&5
2045 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2046 alias in your environment" >&2;}
2047 { (exit 1); exit 1; }; }
2050 test "$2" = conftest.file
2056 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2057 Check your system clock" >&5
2058 echo "$as_me: error: newly created file is older than distributed files!
2059 Check your system clock" >&2;}
2060 { (exit 1); exit 1; }; }
2062 { echo "$as_me:$LINENO: result: yes" >&5
2063 echo "${ECHO_T}yes" >&6; }
2064 test "$program_prefix" != NONE &&
2065 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2066 # Use a double $ so make ignores it.
2067 test "$program_suffix" != NONE &&
2068 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2069 # Double any \ or $. echo might interpret backslashes.
2070 # By default was `s,x,x', remove it if useless.
2071 cat <<\_ACEOF >conftest.sed
2072 s/[\\$]/&&/g;s/;s,x,x,$//
2074 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2077 # expand $ac_aux_dir to an absolute path
2078 am_aux_dir=`cd $ac_aux_dir && pwd`
2080 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2081 # Use eval to expand $SHELL
2082 if eval "$MISSING --run true"; then
2083 am_missing_run="$MISSING --run "
2086 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2087 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2090 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2091 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2092 if test -z "$MKDIR_P"; then
2093 if test "${ac_cv_path_mkdir+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2100 test -z "$as_dir" && as_dir=.
2101 for ac_prog in mkdir gmkdir; do
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2104 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2105 'mkdir (GNU coreutils) '* | \
2106 'mkdir (coreutils) '* | \
2107 'mkdir (fileutils) '4.1*)
2108 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2118 if test "${ac_cv_path_mkdir+set}" = set; then
2119 MKDIR_P="$ac_cv_path_mkdir -p"
2121 # As a last resort, use the slow shell script. Don't cache a
2122 # value for MKDIR_P within a source directory, because that will
2123 # break other packages using the cache if that directory is
2124 # removed, or if the value is a relative name.
2125 test -d ./--version && rmdir ./--version
2126 MKDIR_P="$ac_install_sh -d"
2129 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2130 echo "${ECHO_T}$MKDIR_P" >&6; }
2134 [\\/$]* | ?:[\\/]*) ;;
2135 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2138 for ac_prog in gawk mawk nawk awk
2140 # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_AWK+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$AWK"; then
2148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_AWK="$ac_prog"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 if test -n "$AWK"; then
2169 { echo "$as_me:$LINENO: result: $AWK" >&5
2170 echo "${ECHO_T}$AWK" >&6; }
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2177 test -n "$AWK" && break
2180 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2181 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2182 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2183 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 cat >conftest.make <<\_ACEOF
2189 @echo '@@@%%%=$(MAKE)=@@@%%%'
2191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2192 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2194 eval ac_cv_prog_make_${ac_make}_set=yes;;
2196 eval ac_cv_prog_make_${ac_make}_set=no;;
2200 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2201 { echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6; }
2205 { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2207 SET_MAKE="MAKE=${MAKE-make}"
2210 rm -rf .tst 2>/dev/null
2211 mkdir .tst 2>/dev/null
2212 if test -d .tst; then
2217 rmdir .tst 2>/dev/null
2219 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2220 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2221 # is not polluted with repeated "-I."
2222 am__isrc=' -I$(srcdir)'
2223 # test to see if srcdir already configured
2224 if test -f $srcdir/config.status; then
2225 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2226 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2227 { (exit 1); exit 1; }; }
2231 # test whether we have cygpath
2232 if test -z "$CYGPATH_W"; then
2233 if (cygpath --version) >/dev/null 2>/dev/null; then
2234 CYGPATH_W='cygpath -w'
2241 # Define the identity of the package.
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE "$PACKAGE"
2251 cat >>confdefs.h <<_ACEOF
2252 #define VERSION "$VERSION"
2255 # Some tools Automake needs.
2257 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2260 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2263 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2266 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2269 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2271 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2273 # Installed binaries are usually stripped using `strip' when the user
2274 # run `make install-strip'. However `strip' might not be the right
2275 # tool to use in cross-compilation environments, therefore Automake
2276 # will honor the `STRIP' environment variable to overrule this program.
2277 if test "$cross_compiling" != no; then
2278 if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}strip; ac_word=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_prog_STRIP+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 if test -n "$STRIP"; then
2287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 STRIP=$ac_cv_prog_STRIP
2307 if test -n "$STRIP"; then
2308 { echo "$as_me:$LINENO: result: $STRIP" >&5
2309 echo "${ECHO_T}$STRIP" >&6; }
2311 { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2317 if test -z "$ac_cv_prog_STRIP"; then
2319 # Extract the first word of "strip", so it can be a program name with args.
2320 set dummy strip; ac_word=$2
2321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 if test -n "$ac_ct_STRIP"; then
2327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_ac_ct_STRIP="strip"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2347 if test -n "$ac_ct_STRIP"; then
2348 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2349 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2351 { echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6; }
2355 if test "x$ac_ct_STRIP" = x; then
2358 case $cross_compiling:$ac_tool_warned in
2360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2361 whose name does not start with the host triplet. If you think this
2362 configuration is useful to you, please write to autoconf@gnu.org." >&5
2363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2364 whose name does not start with the host triplet. If you think this
2365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2366 ac_tool_warned=yes ;;
2371 STRIP="$ac_cv_prog_STRIP"
2375 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2377 # We need awk for the "check" target. The system "awk" is bad on
2379 # Always define AMTAR for backward compatibility.
2381 AMTAR=${AMTAR-"${am_missing_run}tar"}
2383 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2389 ac_config_headers="$ac_config_headers config.h"
2391 # Check whether --enable-shared was given.
2392 if test "${enable_shared+set}" = set; then
2393 enableval=$enable_shared; p=${PACKAGE-default}
2395 yes) enable_shared=yes ;;
2396 no) enable_shared=no ;;
2399 # Look at the argument we got. We use all the common list separators.
2400 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2401 for pkg in $enableval; do
2403 if test "X$pkg" = "X$p"; then
2415 # Check whether --enable-static was given.
2416 if test "${enable_static+set}" = set; then
2417 enableval=$enable_static; p=${PACKAGE-default}
2419 yes) enable_static=yes ;;
2420 no) enable_static=no ;;
2423 # Look at the argument we got. We use all the common list separators.
2424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2425 for pkg in $enableval; do
2427 if test "X$pkg" = "X$p"; then
2439 # Check whether --enable-fast-install was given.
2440 if test "${enable_fast_install+set}" = set; then
2441 enableval=$enable_fast_install; p=${PACKAGE-default}
2443 yes) enable_fast_install=yes ;;
2444 no) enable_fast_install=no ;;
2446 enable_fast_install=no
2447 # Look at the argument we got. We use all the common list separators.
2448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2449 for pkg in $enableval; do
2451 if test "X$pkg" = "X$p"; then
2452 enable_fast_install=yes
2459 enable_fast_install=yes
2463 # Make sure we can run config.sub.
2464 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2465 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2466 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2467 { (exit 1); exit 1; }; }
2469 { echo "$as_me:$LINENO: checking build system type" >&5
2470 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2471 if test "${ac_cv_build+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 ac_build_alias=$build_alias
2475 test "x$ac_build_alias" = x &&
2476 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2477 test "x$ac_build_alias" = x &&
2478 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2479 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2480 { (exit 1); exit 1; }; }
2481 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2482 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2483 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2484 { (exit 1); exit 1; }; }
2487 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2488 echo "${ECHO_T}$ac_cv_build" >&6; }
2489 case $ac_cv_build in
2491 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2492 echo "$as_me: error: invalid value of canonical build" >&2;}
2493 { (exit 1); exit 1; }; };;
2496 ac_save_IFS=$IFS; IFS='-'
2502 # Remember, the first character of IFS is used to create $*,
2503 # except with old shells:
2506 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2509 { echo "$as_me:$LINENO: checking host system type" >&5
2510 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2511 if test "${ac_cv_host+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 if test "x$host_alias" = x; then
2515 ac_cv_host=$ac_cv_build
2517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2520 { (exit 1); exit 1; }; }
2524 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2525 echo "${ECHO_T}$ac_cv_host" >&6; }
2528 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2529 echo "$as_me: error: invalid value of canonical host" >&2;}
2530 { (exit 1); exit 1; }; };;
2533 ac_save_IFS=$IFS; IFS='-'
2539 # Remember, the first character of IFS is used to create $*,
2540 # except with old shells:
2543 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2546 DEPDIR="${am__leading_dot}deps"
2548 ac_config_commands="$ac_config_commands depfiles"
2551 am_make=${MAKE-make}
2552 cat > confinc << 'END'
2557 # If we don't find an include directive, just comment out the code.
2558 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2559 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2563 # First try GNU make style include.
2564 echo "include confinc" > confmf
2565 # We grep out `Entering directory' and `Leaving directory'
2566 # messages which can occur if `w' ends up in MAKEFLAGS.
2567 # In particular we don't look at `^make:' because GNU make might
2568 # be invoked under some other name (usually "gmake"), in which
2569 # case it prints its new name instead of `make'.
2570 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2575 # Now try BSD make style include.
2576 if test "$am__include" = "#"; then
2577 echo '.include "confinc"' > confmf
2578 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2579 am__include=.include
2586 { echo "$as_me:$LINENO: result: $_am_result" >&5
2587 echo "${ECHO_T}$_am_result" >&6; }
2588 rm -f confinc confmf
2590 # Check whether --enable-dependency-tracking was given.
2591 if test "${enable_dependency_tracking+set}" = set; then
2592 enableval=$enable_dependency_tracking;
2595 if test "x$enable_dependency_tracking" != xno; then
2596 am_depcomp="$ac_aux_dir/depcomp"
2599 if test "x$enable_dependency_tracking" != xno; then
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 if test -n "$CC"; then
2643 { echo "$as_me:$LINENO: result: $CC" >&5
2644 echo "${ECHO_T}$CC" >&6; }
2646 { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2652 if test -z "$ac_cv_prog_CC"; then
2654 # Extract the first word of "gcc", so it can be a program name with args.
2655 set dummy gcc; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_ac_ct_CC="gcc"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684 echo "${ECHO_T}$ac_ct_CC" >&6; }
2686 { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2690 if test "x$ac_ct_CC" = x; then
2693 case $cross_compiling:$ac_tool_warned in
2695 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2696 whose name does not start with the host triplet. If you think this
2697 configuration is useful to you, please write to autoconf@gnu.org." >&5
2698 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2699 whose name does not start with the host triplet. If you think this
2700 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2701 ac_tool_warned=yes ;;
2709 if test -z "$CC"; then
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}cc; ac_word=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_CC="${ac_tool_prefix}cc"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 if test -n "$CC"; then
2740 { echo "$as_me:$LINENO: result: $CC" >&5
2741 echo "${ECHO_T}$CC" >&6; }
2743 { echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6; }
2750 if test -z "$CC"; then
2751 # Extract the first word of "cc", so it can be a program name with args.
2752 set dummy cc; ac_word=$2
2753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2755 if test "${ac_cv_prog_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2770 ac_prog_rejected=yes
2774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 if test $ac_prog_rejected = yes; then
2782 # We found a bogon in the path, so make sure we never use it.
2783 set dummy $ac_cv_prog_CC
2785 if test $# != 0; then
2786 # We chose a different compiler from the bogus one.
2787 # However, it has the same basename, so the bogon will be chosen
2788 # first if we set CC to just the basename; use the full file name.
2790 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796 if test -n "$CC"; then
2797 { echo "$as_me:$LINENO: result: $CC" >&5
2798 echo "${ECHO_T}$CC" >&6; }
2800 { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 for ac_prog in cl.exe
2810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 if test -n "$CC"; then
2839 { echo "$as_me:$LINENO: result: $CC" >&5
2840 echo "${ECHO_T}$CC" >&6; }
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2847 test -n "$CC" && break
2850 if test -z "$CC"; then
2852 for ac_prog in cl.exe
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$ac_ct_CC"; then
2862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_ac_ct_CC="$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882 if test -n "$ac_ct_CC"; then
2883 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2884 echo "${ECHO_T}$ac_ct_CC" >&6; }
2886 { echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6; }
2891 test -n "$ac_ct_CC" && break
2894 if test "x$ac_ct_CC" = x; then
2897 case $cross_compiling:$ac_tool_warned in
2899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet. If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&5
2902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet. If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2905 ac_tool_warned=yes ;;
2914 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2915 See \`config.log' for more details." >&5
2916 echo "$as_me: error: no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details." >&2;}
2918 { (exit 1); exit 1; }; }
2920 # Provide some information about the compiler.
2921 echo "$as_me:$LINENO: checking for C compiler version" >&5
2922 ac_compiler=`set X $ac_compile; echo $2`
2923 { (ac_try="$ac_compiler --version >&5"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_compiler --version >&5") 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }
2933 { (ac_try="$ac_compiler -v >&5"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compiler -v >&5") 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }
2943 { (ac_try="$ac_compiler -V >&5"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compiler -V >&5") 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }
2954 cat >conftest.$ac_ext <<_ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2969 ac_clean_files_save=$ac_clean_files
2970 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2971 # Try to create an executable without -o first, disregard a.out.
2972 # It will help us diagnose broken compilers, and finding out an intuition
2974 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2975 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2976 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2978 # List of possible output files, starting from the most likely.
2979 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2980 # only as a last resort. b.out is created by i960 compilers.
2981 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2983 # The IRIX 6 linker writes into existing files which may not be
2984 # executable, retaining their permissions. Remove them first so a
2985 # subsequent execution test works.
2987 for ac_file in $ac_files
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2991 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2996 if { (ac_try="$ac_link_default"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_link_default") 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; then
3006 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3007 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3008 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3009 # so that the user can short-circuit this test for compilers unknown to
3011 for ac_file in $ac_files
3013 test -f "$ac_file" || continue
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3018 # We found the default executable, but exeext='' is most
3022 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3024 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3026 # We set ac_cv_exeext here because the later test for it is not
3027 # safe: cross compilers may not add the suffix if given an `-o'
3028 # argument, so we may need to know it at that point already.
3029 # Even if this section looks crufty: it has the advantage of
3036 test "$ac_cv_exeext" = no && ac_cv_exeext=
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3043 See \`config.log' for more details." >&5
3044 echo "$as_me: error: C compiler cannot create executables
3045 See \`config.log' for more details." >&2;}
3046 { (exit 77); exit 77; }; }
3049 ac_exeext=$ac_cv_exeext
3050 { echo "$as_me:$LINENO: result: $ac_file" >&5
3051 echo "${ECHO_T}$ac_file" >&6; }
3053 # Check that the compiler produces executables we can run. If not, either
3054 # the compiler is broken, or we cross compile.
3055 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3056 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3057 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3058 # If not cross compiling, check that we can run a simple program.
3059 if test "$cross_compiling" != yes; then
3060 if { ac_try='./$ac_file'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; }; then
3072 if test "$cross_compiling" = maybe; then
3075 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3076 If you meant to cross compile, use \`--host'.
3077 See \`config.log' for more details." >&5
3078 echo "$as_me: error: cannot run C compiled programs.
3079 If you meant to cross compile, use \`--host'.
3080 See \`config.log' for more details." >&2;}
3081 { (exit 1); exit 1; }; }
3085 { echo "$as_me:$LINENO: result: yes" >&5
3086 echo "${ECHO_T}yes" >&6; }
3088 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3089 ac_clean_files=$ac_clean_files_save
3090 # Check that the compiler produces executables we can run. If not, either
3091 # the compiler is broken, or we cross compile.
3092 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3093 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3094 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3095 echo "${ECHO_T}$cross_compiling" >&6; }
3097 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3098 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3099 if { (ac_try="$ac_link"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_link") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; then
3109 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3110 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3111 # work properly (i.e., refer to `conftest.exe'), while it won't with
3113 for ac_file in conftest.exe conftest conftest.*; do
3114 test -f "$ac_file" || continue
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3126 See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3130 rm -f conftest$ac_cv_exeext
3131 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3132 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3134 rm -f conftest.$ac_ext
3135 EXEEXT=$ac_cv_exeext
3137 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3138 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3139 if test "${ac_cv_objext+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.o conftest.obj
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; then
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3189 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3190 echo "${ECHO_T}$ac_cv_objext" >&6; }
3191 OBJEXT=$ac_cv_objext
3193 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_try") 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try='test -s conftest.$ac_objext'
3241 { (case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3262 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3264 GCC=`test $ac_compiler_gnu = yes && echo yes`
3265 ac_test_CFLAGS=${CFLAGS+set}
3266 ac_save_CFLAGS=$CFLAGS
3267 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3268 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cc_g+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 ac_save_c_werror_flag=$ac_c_werror_flag
3273 ac_c_werror_flag=yes
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_compile") 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3306 { (case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_try") 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; } &&
3315 { ac_try='test -s conftest.$ac_objext'
3316 { (case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_try") 2>&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 ac_c_werror_flag=$ac_save_c_werror_flag
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3417 { (case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_try") 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_try") 2>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3453 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3454 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3455 if test "$ac_test_CFLAGS" = set; then
3456 CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458 if test "$GCC" = yes; then
3464 if test "$GCC" = yes; then
3470 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3471 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3472 if test "${ac_cv_prog_cc_c89+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 ac_cv_prog_cc_c89=no
3477 cat >conftest.$ac_ext <<_ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3485 #include <sys/types.h>
3486 #include <sys/stat.h>
3487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3488 struct buf { int x; };
3489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3490 static char *e (p, i)
3496 static char *f (char * (*g) (char **, int), char **p, ...)
3501 s = g (p, va_arg (v,int));
3506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3507 function prototypes and stuff, but not '\xHH' hex character constants.
3508 These don't provoke an error unfortunately, instead are silently treated
3509 as 'x'. The following induces an error, until -std is added to get
3510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3511 array size at least. It's necessary to write '\x00'==0 to get something
3512 that's true only with -std. */
3513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3516 inside strings and character constants. */
3518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3520 int test (int i, double x);
3521 struct s1 {int (*f) (int a);};
3522 struct s2 {int (*f) (double a);};
3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537 CC="$ac_save_CC $ac_arg"
3538 rm -f conftest.$ac_objext
3539 if { (ac_try="$ac_compile"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_compile") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3553 { (case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_try") 2>&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_try") 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 ac_cv_prog_cc_c89=$ac_arg
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext
3581 test "x$ac_cv_prog_cc_c89" != "xno" && break
3583 rm -f conftest.$ac_ext
3588 case "x$ac_cv_prog_cc_c89" in
3590 { echo "$as_me:$LINENO: result: none needed" >&5
3591 echo "${ECHO_T}none needed" >&6; } ;;
3593 { echo "$as_me:$LINENO: result: unsupported" >&5
3594 echo "${ECHO_T}unsupported" >&6; } ;;
3596 CC="$CC $ac_cv_prog_cc_c89"
3597 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3598 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608 depcc="$CC" am_compiler_list=
3610 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3611 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3612 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3616 # We make a subdir and do the tests there. Otherwise we can end up
3617 # making bogus files that we don't know about and never remove. For
3618 # instance it was reported that on HP-UX the gcc test will end up
3619 # making a dummy file named `D' -- because `-MD' means `put the output
3622 # Copy depcomp to subdir because otherwise we won't find it if we're
3623 # using a relative directory.
3624 cp "$am_depcomp" conftest.dir
3626 # We will build objects and dependencies in a subdirectory because
3627 # it helps to detect inapplicable dependency modes. For instance
3628 # both Tru64's cc and ICC support -MD to output dependencies as a
3629 # side effect of compilation, but ICC will put the dependencies in
3630 # the current directory while Tru64 will put them in the object
3634 am_cv_CC_dependencies_compiler_type=none
3635 if test "$am_compiler_list" = ""; then
3636 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3638 for depmode in $am_compiler_list; do
3639 # Setup a source with many dependencies, because some compilers
3640 # like to wrap large dependency lists on column 80 (with \), and
3641 # we should not choose a depcomp mode which is confused by this.
3643 # We need to recreate these files for each test, as the compiler may
3644 # overwrite some of them when testing with obscure command lines.
3645 # This happens at least with the AIX C compiler.
3647 for i in 1 2 3 4 5 6; do
3648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3649 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3650 # Solaris 8's {/usr,}/bin/sh.
3651 touch sub/conftst$i.h
3653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3657 # after this tag, mechanisms are not by side-effect, so they'll
3658 # only be used when explicitly requested
3659 if test "x$enable_dependency_tracking" = xyes; then
3667 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3668 # mode. It turns out that the SunPro C++ compiler does not properly
3669 # handle `-M -o', and we need to detect this.
3670 if depmode=$depmode \
3671 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3673 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3674 >/dev/null 2>conftest.err &&
3675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3677 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3679 # icc doesn't choke on unknown options, it will just issue warnings
3680 # or remarks (even with -Werror). So we grep stderr for any message
3681 # that says an option was ignored or not supported.
3682 # When given -MP, icc 7.0 and 7.1 complain thusly:
3683 # icc: Command line warning: ignoring option '-M'; no argument required
3684 # The diagnosis changed in icc 8.0:
3685 # icc: Command line remark: option '-MP' not supported
3686 if (grep 'ignoring option' conftest.err ||
3687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3688 am_cv_CC_dependencies_compiler_type=$depmode
3697 am_cv_CC_dependencies_compiler_type=none
3701 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3702 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3703 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3706 test "x$enable_dependency_tracking" != xno \
3707 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3709 am__fastdepCC_FALSE='#'
3711 am__fastdepCC_TRUE='#'
3712 am__fastdepCC_FALSE=
3716 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3717 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3718 if test "${lt_cv_path_SED+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 # Loop through the user's path and test for sed and gsed.
3722 # Then use that list of sed's as ones to test for truncation.
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir=.
3728 for lt_ac_prog in sed gsed; do
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3731 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3739 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3740 # along with /bin/sed that truncates output.
3741 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3742 test ! -f $lt_ac_sed && continue
3743 cat /dev/null > conftest.in
3745 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3746 # Check for GNU sed and select it if it is found.
3747 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3748 lt_cv_path_SED=$lt_ac_sed
3752 cat conftest.in conftest.in >conftest.tmp
3753 mv conftest.tmp conftest.in
3754 cp conftest.in conftest.nl
3756 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3757 cmp -s conftest.out conftest.nl || break
3758 # 10000 chars as input seems more than enough
3759 test $lt_ac_count -gt 10 && break
3760 lt_ac_count=`expr $lt_ac_count + 1`
3761 if test $lt_ac_count -gt $lt_ac_max; then
3762 lt_ac_max=$lt_ac_count
3763 lt_cv_path_SED=$lt_ac_sed
3772 { echo "$as_me:$LINENO: result: $SED" >&5
3773 echo "${ECHO_T}$SED" >&6; }
3775 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3776 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_GREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 # Extract the first word of "grep ggrep" to use in msg output
3781 if test -z "$GREP"; then
3782 set dummy grep ggrep; ac_prog_name=$2
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 ac_path_GREP_found=false
3787 # Loop through the user's path and test for each of PROGNAME-LIST
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3792 test -z "$as_dir" && as_dir=.
3793 for ac_prog in grep ggrep; do
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3796 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3797 # Check for GNU ac_path_GREP and select it if it is found.
3798 # Check for GNU $ac_path_GREP
3799 case `"$ac_path_GREP" --version 2>&1` in
3801 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3804 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3807 cat "conftest.in" "conftest.in" >"conftest.tmp"
3808 mv "conftest.tmp" "conftest.in"
3809 cp "conftest.in" "conftest.nl"
3810 echo 'GREP' >> "conftest.nl"
3811 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813 ac_count=`expr $ac_count + 1`
3814 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815 # Best one so far, save it but keep looking for a better one
3816 ac_cv_path_GREP="$ac_path_GREP"
3817 ac_path_GREP_max=$ac_count
3819 # 10*(2^10) chars as input seems more than enough
3820 test $ac_count -gt 10 && break
3822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826 $ac_path_GREP_found && break 3
3836 GREP="$ac_cv_path_GREP"
3837 if test -z "$GREP"; then
3838 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3839 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3840 { (exit 1); exit 1; }; }
3844 ac_cv_path_GREP=$GREP
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3851 GREP="$ac_cv_path_GREP"
3854 { echo "$as_me:$LINENO: checking for egrep" >&5
3855 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860 then ac_cv_path_EGREP="$GREP -E"
3862 # Extract the first word of "egrep" to use in msg output
3863 if test -z "$EGREP"; then
3864 set dummy egrep; ac_prog_name=$2
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_path_EGREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874 test -z "$as_dir" && as_dir=.
3875 for ac_prog in egrep; do
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3879 # Check for GNU ac_path_EGREP and select it if it is found.
3880 # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3886 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3889 cat "conftest.in" "conftest.in" >"conftest.tmp"
3890 mv "conftest.tmp" "conftest.in"
3891 cp "conftest.in" "conftest.nl"
3892 echo 'EGREP' >> "conftest.nl"
3893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895 ac_count=`expr $ac_count + 1`
3896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897 # Best one so far, save it but keep looking for a better one
3898 ac_cv_path_EGREP="$ac_path_EGREP"
3899 ac_path_EGREP_max=$ac_count
3901 # 10*(2^10) chars as input seems more than enough
3902 test $ac_count -gt 10 && break
3904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3908 $ac_path_EGREP_found && break 3
3918 EGREP="$ac_cv_path_EGREP"
3919 if test -z "$EGREP"; then
3920 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922 { (exit 1); exit 1; }; }
3926 ac_cv_path_EGREP=$EGREP
3932 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3933 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3934 EGREP="$ac_cv_path_EGREP"
3938 # Check whether --with-gnu-ld was given.
3939 if test "${with_gnu_ld+set}" = set; then
3940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3946 if test "$GCC" = yes; then
3947 # Check if gcc -print-prog-name=ld gives a path.
3948 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3949 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3952 # gcc leaves a trailing carriage return which upsets mingw
3953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3958 # Accept absolute paths.
3960 re_direlt='/[^/][^/]*/\.\./'
3961 # Canonicalize the pathname of ld
3962 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3963 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3964 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3966 test -z "$LD" && LD="$ac_prog"
3969 # If it fails, then pretend we aren't using GCC.
3973 # If it is relative, then search for the first ld in PATH.
3977 elif test "$with_gnu_ld" = yes; then
3978 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3979 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3981 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3982 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3984 if test "${lt_cv_path_LD+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -z "$LD"; then
3988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3989 for ac_dir in $PATH; do
3991 test -z "$ac_dir" && ac_dir=.
3992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3993 lt_cv_path_LD="$ac_dir/$ac_prog"
3994 # Check to see if the program is GNU ld. I'd rather use --version,
3995 # but apparently some variants of GNU ld only accept -v.
3996 # Break only if it was the GNU/non-GNU ld that we prefer.
3997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3998 *GNU* | *'with BFD'*)
3999 test "$with_gnu_ld" != no && break
4002 test "$with_gnu_ld" != yes && break
4009 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4014 if test -n "$LD"; then
4015 { echo "$as_me:$LINENO: result: $LD" >&5
4016 echo "${ECHO_T}$LD" >&6; }
4018 { echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6; }
4021 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4022 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4023 { (exit 1); exit 1; }; }
4024 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4025 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4026 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4030 case `$LD -v 2>&1 </dev/null` in
4031 *GNU* | *'with BFD'*)
4032 lt_cv_prog_gnu_ld=yes
4035 lt_cv_prog_gnu_ld=no
4039 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4040 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4041 with_gnu_ld=$lt_cv_prog_gnu_ld
4044 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4045 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4046 if test "${lt_cv_ld_reload_flag+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 lt_cv_ld_reload_flag='-r'
4051 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4052 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4053 reload_flag=$lt_cv_ld_reload_flag
4054 case $reload_flag in
4056 *) reload_flag=" $reload_flag" ;;
4058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4061 if test "$GCC" = yes; then
4062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4069 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4070 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4071 if test "${lt_cv_path_NM+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 if test -n "$NM"; then
4075 # Let the user override the test.
4078 lt_nm_to_check="${ac_tool_prefix}nm"
4079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4080 lt_nm_to_check="$lt_nm_to_check nm"
4082 for lt_tmp_nm in $lt_nm_to_check; do
4083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4086 test -z "$ac_dir" && ac_dir=.
4087 tmp_nm="$ac_dir/$lt_tmp_nm"
4088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4089 # Check to see if the nm accepts a BSD-compat flag.
4090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4091 # nm: unknown option "B" ignored
4092 # Tru64's nm complains that /dev/null is an invalid object file
4093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4094 */dev/null* | *'Invalid file or object type'*)
4095 lt_cv_path_NM="$tmp_nm -B"
4099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4101 lt_cv_path_NM="$tmp_nm -p"
4105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4106 continue # so that we can try to find one that supports BSD flags
4115 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4118 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4119 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4122 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4123 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4125 if test "$LN_S" = "ln -s"; then
4126 { echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6; }
4129 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4130 echo "${ECHO_T}no, using $LN_S" >&6; }
4133 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4134 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4135 if test "${lt_cv_deplibs_check_method+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 lt_cv_file_magic_cmd='$MAGIC_CMD'
4139 lt_cv_file_magic_test_file=
4140 lt_cv_deplibs_check_method='unknown'
4141 # Need to set the preceding variable on all platforms that support
4142 # interlibrary dependencies.
4143 # 'none' -- dependencies not supported.
4144 # `unknown' -- same as none, but documents that we really don't know.
4145 # 'pass_all' -- all dependencies passed with no checks.
4146 # 'test_compile' -- check by making test program.
4147 # 'file_magic [[regex]]' -- check by looking for files in library path
4148 # which responds to the $file_magic_cmd with a given extended regex.
4149 # If you have `file' or equivalent on your system and you're not sure
4150 # whether `pass_all' will *always* work, you probably want this one.
4154 lt_cv_deplibs_check_method=pass_all
4158 lt_cv_deplibs_check_method=pass_all
4162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4163 lt_cv_file_magic_cmd='/usr/bin/file -L'
4164 lt_cv_file_magic_test_file=/shlib/libc.so
4168 # func_win32_libid is a shell function defined in ltmain.sh
4169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4170 lt_cv_file_magic_cmd='func_win32_libid'
4174 # Base MSYS/MinGW do not provide the 'file' command needed by
4175 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4176 # unless we find 'file', for example because we are cross-compiling.
4177 if ( file / ) >/dev/null 2>&1; then
4178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4179 lt_cv_file_magic_cmd='func_win32_libid'
4181 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4182 lt_cv_file_magic_cmd='$OBJDUMP -f'
4186 darwin* | rhapsody*)
4187 lt_cv_deplibs_check_method=pass_all
4190 freebsd* | dragonfly*)
4191 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4194 # Not sure whether the presence of OpenBSD here was a mistake.
4195 # Let's accept both of them until this is cleared up.
4196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4197 lt_cv_file_magic_cmd=/usr/bin/file
4198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4202 lt_cv_deplibs_check_method=pass_all
4207 lt_cv_deplibs_check_method=pass_all
4210 hpux10.20* | hpux11*)
4211 lt_cv_file_magic_cmd=/usr/bin/file
4214 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4215 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4219 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4223 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4229 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4233 irix5* | irix6* | nonstopux*)
4235 *-32|*"-32 ") libmagic=32-bit;;
4236 *-n32|*"-n32 ") libmagic=N32;;
4237 *-64|*"-64 ") libmagic=64-bit;;
4238 *) libmagic=never-match;;
4240 lt_cv_deplibs_check_method=pass_all
4243 # This must be Linux ELF.
4244 linux* | k*bsd*-gnu)
4245 lt_cv_deplibs_check_method=pass_all
4249 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4258 lt_cv_file_magic_cmd=/usr/bin/file
4259 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4263 lt_cv_deplibs_check_method=unknown
4267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4274 osf3* | osf4* | osf5*)
4275 lt_cv_deplibs_check_method=pass_all
4279 lt_cv_deplibs_check_method=pass_all
4283 lt_cv_deplibs_check_method=pass_all
4287 case $host_vendor in
4289 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]'
4290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4293 lt_cv_deplibs_check_method=pass_all
4296 lt_cv_file_magic_cmd='/bin/file'
4297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4300 lt_cv_file_magic_cmd='/bin/file'
4301 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4302 lt_cv_file_magic_test_file=/lib/libc.so
4305 lt_cv_deplibs_check_method=pass_all
4308 lt_cv_deplibs_check_method=pass_all
4313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4314 lt_cv_deplibs_check_method=pass_all
4319 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4320 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4321 file_magic_cmd=$lt_cv_file_magic_cmd
4322 deplibs_check_method=$lt_cv_deplibs_check_method
4323 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4328 # If no C compiler was specified, use CC.
4331 # If no C compiler flags were specified, use CFLAGS.
4332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4334 # Allow CC to be a program name with arguments.
4338 # Check whether --enable-libtool-lock was given.
4339 if test "${enable_libtool_lock+set}" = set; then
4340 enableval=$enable_libtool_lock;
4343 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4345 # Some flags need to be propagated to the compiler or linker for good
4349 # Find out which ABI we are using.
4350 echo 'int i;' > conftest.$ac_ext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352 (eval $ac_compile) 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; then
4356 case `/usr/bin/file conftest.$ac_objext` in
4368 # Find out which ABI we are using.
4369 echo '#line 4369 "configure"' > conftest.$ac_ext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371 (eval $ac_compile) 2>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; then
4375 if test "$lt_cv_prog_gnu_ld" = yes; then
4376 case `/usr/bin/file conftest.$ac_objext` in
4378 LD="${LD-ld} -melf32bsmip"
4381 LD="${LD-ld} -melf32bmipn32"
4384 LD="${LD-ld} -melf64bmip"
4388 case `/usr/bin/file conftest.$ac_objext` in
4404 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4405 s390*-*linux*|sparc*-*linux*)
4406 # Find out which ABI we are using.
4407 echo 'int i;' > conftest.$ac_ext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; then
4413 case `/usr/bin/file conftest.o` in
4416 x86_64-*kfreebsd*-gnu)
4417 LD="${LD-ld} -m elf_i386_fbsd"
4420 LD="${LD-ld} -m elf_i386"
4422 ppc64-*linux*|powerpc64-*linux*)
4423 LD="${LD-ld} -m elf32ppclinux"
4426 LD="${LD-ld} -m elf_s390"
4429 LD="${LD-ld} -m elf32_sparc"
4435 x86_64-*kfreebsd*-gnu)
4436 LD="${LD-ld} -m elf_x86_64_fbsd"
4439 LD="${LD-ld} -m elf_x86_64"
4441 ppc*-*linux*|powerpc*-*linux*)
4442 LD="${LD-ld} -m elf64ppc"
4445 LD="${LD-ld} -m elf64_s390"
4448 LD="${LD-ld} -m elf64_sparc"
4458 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4459 SAVE_CFLAGS="$CFLAGS"
4460 CFLAGS="$CFLAGS -belf"
4461 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4462 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4463 if test "${lt_cv_cc_needs_belf+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 ac_cpp='$CPP $CPPFLAGS'
4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (ac_try="$ac_link"
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_link") 2>conftest.er1
4496 grep -v '^ *+' conftest.er1 >conftest.err
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest$ac_exeext'
4512 { (case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_try") 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 lt_cv_cc_needs_belf=yes
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 lt_cv_cc_needs_belf=no
4529 rm -f core conftest.err conftest.$ac_objext \
4530 conftest$ac_exeext conftest.$ac_ext
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4539 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4540 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4541 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4542 CFLAGS="$SAVE_CFLAGS"
4546 # Find out which ABI we are using.
4547 echo 'int i;' > conftest.$ac_ext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549 (eval $ac_compile) 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; then
4553 case `/usr/bin/file conftest.o` in
4555 case $lt_cv_prog_gnu_ld in
4556 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4557 *) LD="${LD-ld} -64" ;;
4568 need_locks="$enable_libtool_lock"
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4577 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4578 # On Suns, sometimes $CPP names a directory.
4579 if test -n "$CPP" && test -d "$CPP"; then
4582 if test -z "$CPP"; then
4583 if test "${ac_cv_prog_CPP+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 # Double quotes because CPP needs to be expanded
4587 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4590 for ac_c_preproc_warn_flag in '' yes
4592 # Use a header file that comes with gcc, so configuring glibc
4593 # with a fresh cross-compiler works.
4594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595 # <limits.h> exists even on freestanding compilers.
4596 # On the NeXT, cc -E runs the code through the compiler's parser,
4597 # not just through cpp. "Syntax error" is here to catch this case.
4598 cat >conftest.$ac_ext <<_ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4605 # include <limits.h>
4607 # include <assert.h>
4611 if { (ac_try="$ac_cpp conftest.$ac_ext"
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4619 grep -v '^ *+' conftest.er1 >conftest.err
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } >/dev/null; then
4624 if test -s conftest.err; then
4625 ac_cpp_err=$ac_c_preproc_warn_flag
4626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4633 if test -z "$ac_cpp_err"; then
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 # Broken: fails on valid input.
4643 rm -f conftest.err conftest.$ac_ext
4645 # OK, works on sane cases. Now check whether nonexistent headers
4646 # can be detected and how.
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 #include <ac_nonexistent.h>
4655 if { (ac_try="$ac_cpp conftest.$ac_ext"
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4663 grep -v '^ *+' conftest.er1 >conftest.err
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } >/dev/null; then
4668 if test -s conftest.err; then
4669 ac_cpp_err=$ac_c_preproc_warn_flag
4670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4677 if test -z "$ac_cpp_err"; then
4678 # Broken: success on invalid input.
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4684 # Passes both tests.
4689 rm -f conftest.err conftest.$ac_ext
4692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4693 rm -f conftest.err conftest.$ac_ext
4694 if $ac_preproc_ok; then
4706 { echo "$as_me:$LINENO: result: $CPP" >&5
4707 echo "${ECHO_T}$CPP" >&6; }
4709 for ac_c_preproc_warn_flag in '' yes
4711 # Use a header file that comes with gcc, so configuring glibc
4712 # with a fresh cross-compiler works.
4713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714 # <limits.h> exists even on freestanding compilers.
4715 # On the NeXT, cc -E runs the code through the compiler's parser,
4716 # not just through cpp. "Syntax error" is here to catch this case.
4717 cat >conftest.$ac_ext <<_ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4724 # include <limits.h>
4726 # include <assert.h>
4730 if { (ac_try="$ac_cpp conftest.$ac_ext"
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } >/dev/null; then
4743 if test -s conftest.err; then
4744 ac_cpp_err=$ac_c_preproc_warn_flag
4745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4752 if test -z "$ac_cpp_err"; then
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4758 # Broken: fails on valid input.
4762 rm -f conftest.err conftest.$ac_ext
4764 # OK, works on sane cases. Now check whether nonexistent headers
4765 # can be detected and how.
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 #include <ac_nonexistent.h>
4774 if { (ac_try="$ac_cpp conftest.$ac_ext"
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782 grep -v '^ *+' conftest.er1 >conftest.err
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } >/dev/null; then
4787 if test -s conftest.err; then
4788 ac_cpp_err=$ac_c_preproc_warn_flag
4789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4796 if test -z "$ac_cpp_err"; then
4797 # Broken: success on invalid input.
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4803 # Passes both tests.
4808 rm -f conftest.err conftest.$ac_ext
4811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4812 rm -f conftest.err conftest.$ac_ext
4813 if $ac_preproc_ok; then
4816 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4817 See \`config.log' for more details." >&5
4818 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4819 See \`config.log' for more details." >&2;}
4820 { (exit 1); exit 1; }; }
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4832 if test "${ac_cv_header_stdc+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 cat >conftest.$ac_ext <<_ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861 (eval "$ac_compile") 2>conftest.er1
4863 grep -v '^ *+' conftest.er1 >conftest.err
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4869 { (case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_try") 2>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; } &&
4878 { ac_try='test -s conftest.$ac_objext'
4879 { (case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_try") 2>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_cv_header_stdc=yes
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 ac_cv_header_stdc=no
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 if test $ac_cv_header_stdc = yes; then
4899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910 $EGREP "memchr" >/dev/null 2>&1; then
4913 ac_cv_header_stdc=no
4919 if test $ac_cv_header_stdc = yes; then
4920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4921 cat >conftest.$ac_ext <<_ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931 $EGREP "free" >/dev/null 2>&1; then
4934 ac_cv_header_stdc=no
4940 if test $ac_cv_header_stdc = yes; then
4941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4942 if test "$cross_compiling" = yes; then
4945 cat >conftest.$ac_ext <<_ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4953 #if ((' ' & 0x0FF) == 0x020)
4954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4957 # define ISLOWER(c) \
4958 (('a' <= (c) && (c) <= 'i') \
4959 || ('j' <= (c) && (c) <= 'r') \
4960 || ('s' <= (c) && (c) <= 'z'))
4961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4969 for (i = 0; i < 256; i++)
4970 if (XOR (islower (i), ISLOWER (i))
4971 || toupper (i) != TOUPPER (i))
4976 rm -f conftest$ac_exeext
4977 if { (ac_try="$ac_link"
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_link") 2>&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4987 { (case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_try") 2>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4998 echo "$as_me: program exited with status $ac_status" >&5
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_cv_header_stdc=no
5005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5011 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5012 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5013 if test $ac_cv_header_stdc = yes; then
5015 cat >>confdefs.h <<\_ACEOF
5016 #define STDC_HEADERS 1
5021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5032 inttypes.h stdint.h unistd.h
5034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 cat >conftest.$ac_ext <<_ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 $ac_includes_default
5048 #include <$ac_header>
5050 rm -f conftest.$ac_objext
5051 if { (ac_try="$ac_compile"
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_compile") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5065 { (case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_try") 2>&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try='test -s conftest.$ac_objext'
5075 { (case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_try") 2>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 eval "$as_ac_Header=yes"
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 eval "$as_ac_Header=no"
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_res=`eval echo '${'$as_ac_Header'}'`
5095 { echo "$as_me:$LINENO: result: $ac_res" >&5
5096 echo "${ECHO_T}$ac_res" >&6; }
5097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5098 cat >>confdefs.h <<_ACEOF
5099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5108 for ac_header in dlfcn.h
5110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 ac_res=`eval echo '${'$as_ac_Header'}'`
5118 { echo "$as_me:$LINENO: result: $ac_res" >&5
5119 echo "${ECHO_T}$ac_res" >&6; }
5121 # Is the header compilable?
5122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5124 cat >conftest.$ac_ext <<_ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 $ac_includes_default
5131 #include <$ac_header>
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140 (eval "$ac_compile") 2>conftest.er1
5142 grep -v '^ *+' conftest.er1 >conftest.err
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5148 { (case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_try") 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_try") 2>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 ac_header_compiler=yes
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 ac_header_compiler=no
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5177 echo "${ECHO_T}$ac_header_compiler" >&6; }
5179 # Is the header present?
5180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 #include <$ac_header>
5190 if { (ac_try="$ac_cpp conftest.$ac_ext"
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5198 grep -v '^ *+' conftest.er1 >conftest.err
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } >/dev/null; then
5203 if test -s conftest.err; then
5204 ac_cpp_err=$ac_c_preproc_warn_flag
5205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5212 if test -z "$ac_cpp_err"; then
5213 ac_header_preproc=yes
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 ac_header_preproc=no
5221 rm -f conftest.err conftest.$ac_ext
5222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5223 echo "${ECHO_T}$ac_header_preproc" >&6; }
5225 # So? What about this header?
5226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5232 ac_header_preproc=yes
5235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5242 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 eval "$as_ac_Header=\$ac_header_preproc"
5257 ac_res=`eval echo '${'$as_ac_Header'}'`
5258 { echo "$as_me:$LINENO: result: $ac_res" >&5
5259 echo "${ECHO_T}$ac_res" >&6; }
5262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5263 cat >>confdefs.h <<_ACEOF
5264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5272 ac_cpp='$CXXCPP $CPPFLAGS'
5273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5276 if test -z "$CXX"; then
5277 if test -n "$CCC"; then
5280 if test -n "$ac_tool_prefix"; then
5281 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5287 if test "${ac_cv_prog_CXX+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 if test -n "$CXX"; then
5291 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 if test -n "$CXX"; then
5312 { echo "$as_me:$LINENO: result: $CXX" >&5
5313 echo "${ECHO_T}$CXX" >&6; }
5315 { echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6; }
5320 test -n "$CXX" && break
5323 if test -z "$CXX"; then
5325 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5327 # Extract the first word of "$ac_prog", so it can be a program name with args.
5328 set dummy $ac_prog; ac_word=$2
5329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 if test -n "$ac_ct_CXX"; then
5335 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_ac_ct_CXX="$ac_prog"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5355 if test -n "$ac_ct_CXX"; then
5356 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5357 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5359 { echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6; }
5364 test -n "$ac_ct_CXX" && break
5367 if test "x$ac_ct_CXX" = x; then
5370 case $cross_compiling:$ac_tool_warned in
5372 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5373 whose name does not start with the host triplet. If you think this
5374 configuration is useful to you, please write to autoconf@gnu.org." >&5
5375 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5376 whose name does not start with the host triplet. If you think this
5377 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5378 ac_tool_warned=yes ;;
5386 # Provide some information about the compiler.
5387 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5388 ac_compiler=`set X $ac_compile; echo $2`
5389 { (ac_try="$ac_compiler --version >&5"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compiler --version >&5") 2>&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }
5399 { (ac_try="$ac_compiler -v >&5"
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compiler -v >&5") 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }
5409 { (ac_try="$ac_compiler -V >&5"
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_compiler -V >&5") 2>&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }
5420 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5421 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5422 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_compile") 2>conftest.er1
5452 grep -v '^ *+' conftest.er1 >conftest.err
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5458 { (case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_try") 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_try") 2>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5489 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5490 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5491 GXX=`test $ac_compiler_gnu = yes && echo yes`
5492 ac_test_CXXFLAGS=${CXXFLAGS+set}
5493 ac_save_CXXFLAGS=$CXXFLAGS
5494 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5495 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5496 if test "${ac_cv_prog_cxx_g+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5500 ac_cxx_werror_flag=yes
5503 cat >conftest.$ac_ext <<_ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5533 { (case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_try") 2>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; } &&
5542 { ac_try='test -s conftest.$ac_objext'
5543 { (case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_try") 2>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_prog_cxx_g=yes
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5582 grep -v '^ *+' conftest.er1 >conftest.err
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5588 { (case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_try") 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_try") 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5644 { (case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_try") 2>&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; } &&
5653 { ac_try='test -s conftest.$ac_objext'
5654 { (case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_try") 2>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_prog_cxx_g=yes
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5680 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5681 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5682 if test "$ac_test_CXXFLAGS" = set; then
5683 CXXFLAGS=$ac_save_CXXFLAGS
5684 elif test $ac_cv_prog_cxx_g = yes; then
5685 if test "$GXX" = yes; then
5691 if test "$GXX" = yes; then
5698 ac_cpp='$CXXCPP $CPPFLAGS'
5699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5703 depcc="$CXX" am_compiler_list=
5705 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5706 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5707 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5711 # We make a subdir and do the tests there. Otherwise we can end up
5712 # making bogus files that we don't know about and never remove. For
5713 # instance it was reported that on HP-UX the gcc test will end up
5714 # making a dummy file named `D' -- because `-MD' means `put the output
5717 # Copy depcomp to subdir because otherwise we won't find it if we're
5718 # using a relative directory.
5719 cp "$am_depcomp" conftest.dir
5721 # We will build objects and dependencies in a subdirectory because
5722 # it helps to detect inapplicable dependency modes. For instance
5723 # both Tru64's cc and ICC support -MD to output dependencies as a
5724 # side effect of compilation, but ICC will put the dependencies in
5725 # the current directory while Tru64 will put them in the object
5729 am_cv_CXX_dependencies_compiler_type=none
5730 if test "$am_compiler_list" = ""; then
5731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5733 for depmode in $am_compiler_list; do
5734 # Setup a source with many dependencies, because some compilers
5735 # like to wrap large dependency lists on column 80 (with \), and
5736 # we should not choose a depcomp mode which is confused by this.
5738 # We need to recreate these files for each test, as the compiler may
5739 # overwrite some of them when testing with obscure command lines.
5740 # This happens at least with the AIX C compiler.
5742 for i in 1 2 3 4 5 6; do
5743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5745 # Solaris 8's {/usr,}/bin/sh.
5746 touch sub/conftst$i.h
5748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5752 # after this tag, mechanisms are not by side-effect, so they'll
5753 # only be used when explicitly requested
5754 if test "x$enable_dependency_tracking" = xyes; then
5762 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5763 # mode. It turns out that the SunPro C++ compiler does not properly
5764 # handle `-M -o', and we need to detect this.
5765 if depmode=$depmode \
5766 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5768 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5769 >/dev/null 2>conftest.err &&
5770 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5772 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5774 # icc doesn't choke on unknown options, it will just issue warnings
5775 # or remarks (even with -Werror). So we grep stderr for any message
5776 # that says an option was ignored or not supported.
5777 # When given -MP, icc 7.0 and 7.1 complain thusly:
5778 # icc: Command line warning: ignoring option '-M'; no argument required
5779 # The diagnosis changed in icc 8.0:
5780 # icc: Command line remark: option '-MP' not supported
5781 if (grep 'ignoring option' conftest.err ||
5782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5783 am_cv_CXX_dependencies_compiler_type=$depmode
5792 am_cv_CXX_dependencies_compiler_type=none
5796 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5797 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5798 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5801 test "x$enable_dependency_tracking" != xno \
5802 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5803 am__fastdepCXX_TRUE=
5804 am__fastdepCXX_FALSE='#'
5806 am__fastdepCXX_TRUE='#'
5807 am__fastdepCXX_FALSE=
5813 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5814 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5815 (test "X$CXX" != "Xg++"))) ; then
5817 ac_cpp='$CXXCPP $CPPFLAGS'
5818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5821 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5822 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5823 if test -z "$CXXCPP"; then
5824 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 # Double quotes because CXXCPP needs to be expanded
5828 for CXXCPP in "$CXX -E" "/lib/cpp"
5831 for ac_cxx_preproc_warn_flag in '' yes
5833 # Use a header file that comes with gcc, so configuring glibc
5834 # with a fresh cross-compiler works.
5835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 # <limits.h> exists even on freestanding compilers.
5837 # On the NeXT, cc -E runs the code through the compiler's parser,
5838 # not just through cpp. "Syntax error" is here to catch this case.
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5846 # include <limits.h>
5848 # include <assert.h>
5852 if { (ac_try="$ac_cpp conftest.$ac_ext"
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } >/dev/null; then
5865 if test -s conftest.err; then
5866 ac_cpp_err=$ac_cxx_preproc_warn_flag
5867 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5874 if test -z "$ac_cpp_err"; then
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 # Broken: fails on valid input.
5884 rm -f conftest.err conftest.$ac_ext
5886 # OK, works on sane cases. Now check whether nonexistent headers
5887 # can be detected and how.
5888 cat >conftest.$ac_ext <<_ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 #include <ac_nonexistent.h>
5896 if { (ac_try="$ac_cpp conftest.$ac_ext"
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } >/dev/null; then
5909 if test -s conftest.err; then
5910 ac_cpp_err=$ac_cxx_preproc_warn_flag
5911 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5918 if test -z "$ac_cpp_err"; then
5919 # Broken: success on invalid input.
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 # Passes both tests.
5930 rm -f conftest.err conftest.$ac_ext
5933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5934 rm -f conftest.err conftest.$ac_ext
5935 if $ac_preproc_ok; then
5940 ac_cv_prog_CXXCPP=$CXXCPP
5943 CXXCPP=$ac_cv_prog_CXXCPP
5945 ac_cv_prog_CXXCPP=$CXXCPP
5947 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5948 echo "${ECHO_T}$CXXCPP" >&6; }
5950 for ac_cxx_preproc_warn_flag in '' yes
5952 # Use a header file that comes with gcc, so configuring glibc
5953 # with a fresh cross-compiler works.
5954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5955 # <limits.h> exists even on freestanding compilers.
5956 # On the NeXT, cc -E runs the code through the compiler's parser,
5957 # not just through cpp. "Syntax error" is here to catch this case.
5958 cat >conftest.$ac_ext <<_ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5965 # include <limits.h>
5967 # include <assert.h>
5971 if { (ac_try="$ac_cpp conftest.$ac_ext"
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev/null; then
5984 if test -s conftest.err; then
5985 ac_cpp_err=$ac_cxx_preproc_warn_flag
5986 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5993 if test -z "$ac_cpp_err"; then
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 # Broken: fails on valid input.
6003 rm -f conftest.err conftest.$ac_ext
6005 # OK, works on sane cases. Now check whether nonexistent headers
6006 # can be detected and how.
6007 cat >conftest.$ac_ext <<_ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #include <ac_nonexistent.h>
6015 if { (ac_try="$ac_cpp conftest.$ac_ext"
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6023 grep -v '^ *+' conftest.er1 >conftest.err
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } >/dev/null; then
6028 if test -s conftest.err; then
6029 ac_cpp_err=$ac_cxx_preproc_warn_flag
6030 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6037 if test -z "$ac_cpp_err"; then
6038 # Broken: success on invalid input.
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 # Passes both tests.
6049 rm -f conftest.err conftest.$ac_ext
6052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6053 rm -f conftest.err conftest.$ac_ext
6054 if $ac_preproc_ok; then
6057 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6058 See \`config.log' for more details." >&5
6059 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6060 See \`config.log' for more details." >&2;}
6061 { (exit 1); exit 1; }; }
6065 ac_cpp='$CXXCPP $CPPFLAGS'
6066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6074 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6075 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6077 if test -n "$ac_tool_prefix"; then
6078 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_F77+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 if test -n "$F77"; then
6088 ac_cv_prog_F77="$F77" # Let the user override the test.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 if test -n "$F77"; then
6109 { echo "$as_me:$LINENO: result: $F77" >&5
6110 echo "${ECHO_T}$F77" >&6; }
6112 { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6117 test -n "$F77" && break
6120 if test -z "$F77"; then
6122 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 if test -n "$ac_ct_F77"; then
6132 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_ac_ct_F77="$ac_prog"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6152 if test -n "$ac_ct_F77"; then
6153 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6154 echo "${ECHO_T}$ac_ct_F77" >&6; }
6156 { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6161 test -n "$ac_ct_F77" && break
6164 if test "x$ac_ct_F77" = x; then
6167 case $cross_compiling:$ac_tool_warned in
6169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6170 whose name does not start with the host triplet. If you think this
6171 configuration is useful to you, please write to autoconf@gnu.org." >&5
6172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6173 whose name does not start with the host triplet. If you think this
6174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6175 ac_tool_warned=yes ;;
6182 # Provide some information about the compiler.
6183 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6184 ac_compiler=`set X $ac_compile; echo $2`
6185 { (ac_try="$ac_compiler --version >&5"
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compiler --version >&5") 2>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }
6195 { (ac_try="$ac_compiler -v >&5"
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_compiler -v >&5") 2>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }
6205 { (ac_try="$ac_compiler -V >&5"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_compiler -V >&5") 2>&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }
6217 # If we don't use `.F' as extension, the preprocessor is not run on the
6218 # input file. (Note that this only needs to work for GNU compilers.)
6221 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6222 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6223 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 cat >conftest.$ac_ext <<_ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6249 { (case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_try") 2>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6280 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6281 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6283 ac_test_FFLAGS=${FFLAGS+set}
6284 ac_save_FFLAGS=$FFLAGS
6286 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6287 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6288 if test "${ac_cv_prog_f77_g+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6297 rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6312 { (case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_try") 2>&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest.$ac_objext'
6322 { (case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_try") 2>&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_cv_prog_f77_g=yes
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6343 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6344 if test "$ac_test_FFLAGS" = set; then
6345 FFLAGS=$ac_save_FFLAGS
6346 elif test $ac_cv_prog_f77_g = yes; then
6347 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6353 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6360 G77=`test $ac_compiler_gnu = yes && echo yes`
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6371 # find the maximum length of command line arguments
6372 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6373 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6374 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 # On DJGPP, this test can blow up pretty badly due to problems in libc
6383 # (any single argument exceeding 2000 bytes causes a buffer overrun
6384 # during glob expansion). Even if it were fixed, the result of this
6385 # check would be larger than it should be.
6386 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6390 # Under GNU Hurd, this test is not required because there is
6391 # no limit to the length of command line arguments.
6392 # Libtool will interpret -1 as no limit whatsoever
6393 lt_cv_sys_max_cmd_len=-1;
6397 # On Win9x/ME, this test blows up -- it succeeds, but takes
6398 # about 5 minutes as the teststring grows exponentially.
6399 # Worse, since 9x/ME are not pre-emptively multitasking,
6400 # you end up with a "frozen" computer, even though with patience
6401 # the test eventually succeeds (with a max line length of 256k).
6402 # Instead, let's just punt: use the minimum linelength reported by
6403 # all of the supported platforms: 8192 (on NT/2K/XP).
6404 lt_cv_sys_max_cmd_len=8192;
6408 # On AmigaOS with pdksh, this test takes hours, literally.
6409 # So we just punt and use a minimum line length of 8192.
6410 lt_cv_sys_max_cmd_len=8192;
6413 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6414 # This has been around since 386BSD, at least. Likely further.
6415 if test -x /sbin/sysctl; then
6416 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6417 elif test -x /usr/sbin/sysctl; then
6418 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6420 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6422 # And add a safety zone
6423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6428 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6429 lt_cv_sys_max_cmd_len=196608
6433 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6434 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6435 # nice to cause kernel panics so lets avoid the loop below.
6436 # First set a reasonable default.
6437 lt_cv_sys_max_cmd_len=16384
6439 if test -x /sbin/sysconfig; then
6440 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6441 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6446 lt_cv_sys_max_cmd_len=102400
6448 sysv5* | sco5v6* | sysv4.2uw2*)
6449 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6450 if test -n "$kargmax"; then
6451 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6453 lt_cv_sys_max_cmd_len=32768
6457 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6458 if test -n "$lt_cv_sys_max_cmd_len"; then
6459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6462 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6463 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6464 = "XX$teststring") >/dev/null 2>&1 &&
6465 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6466 lt_cv_sys_max_cmd_len=$new_result &&
6467 test $i != 17 # 1/2 MB should be enough
6470 teststring=$teststring$teststring
6473 # Add a significant safety factor because C++ compilers can tack on massive
6474 # amounts of additional arguments before passing them to the linker.
6475 # It appears as though 1/2 is a usable value.
6476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6483 if test -n $lt_cv_sys_max_cmd_len ; then
6484 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6485 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6487 { echo "$as_me:$LINENO: result: none" >&5
6488 echo "${ECHO_T}none" >&6; }
6495 # Check for command to grab the raw symbol name followed by C symbol from nm.
6496 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6497 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6498 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 # These are sane defaults that work on at least a few old systems.
6503 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6505 # Character class describing NM global symbol codes.
6506 symcode='[BCDEGRST]'
6508 # Regexp to match symbols that can be accessed directly from C.
6509 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6511 # Transform an extracted symbol line into a proper C declaration
6512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6514 # Transform an extracted symbol line into symbol name and symbol address
6515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6517 # Define system-specific variables.
6522 cygwin* | mingw* | pw32*)
6523 symcode='[ABCDGISTW]'
6525 hpux*) # Its linker distinguishes data from code symbols
6526 if test "$host_cpu" = ia64; then
6527 symcode='[ABCDEGRST]'
6529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6530 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6532 linux* | k*bsd*-gnu)
6533 if test "$host_cpu" = ia64; then
6534 symcode='[ABCDGIRSTW]'
6535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6536 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6540 symcode='[BCDEGRST]'
6543 symcode='[BCDEGQRST]'
6554 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6562 # Handle CRLF in mingw tool chain
6566 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6570 # If we're using GNU nm, then use its standard symbol codes.
6571 case `$NM -V 2>&1` in
6572 *GNU* | *'with BFD'*)
6573 symcode='[ABCDGIRSTW]' ;;
6576 # Try without a prefix undercore, then with it.
6577 for ac_symprfx in "" "_"; do
6579 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6580 symxfrm="\\1 $ac_symprfx\\2 \\2"
6582 # Write the raw and C identifiers.
6583 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6585 # Check to see that the pipe works correctly.
6589 cat > conftest.$ac_ext <<EOF
6594 void nm_test_func(){}
6598 int main(){nm_test_var='a';nm_test_func();return(0);}
6601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602 (eval $ac_compile) 2>&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; then
6606 # Now try to grab the symbols.
6608 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6609 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && test -s "$nlist"; then
6613 # Try sorting and uniquifying the output.
6614 if sort "$nlist" | uniq > "$nlist"T; then
6615 mv -f "$nlist"T "$nlist"
6620 # Make sure that we snagged all the symbols we need.
6621 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6622 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6623 cat <<EOF > conftest.$ac_ext
6629 # Now generate the symbol file.
6630 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6632 cat <<EOF >> conftest.$ac_ext
6633 #if defined (__STDC__) && __STDC__
6634 # define lt_ptr_t void *
6636 # define lt_ptr_t char *
6640 /* The mapping between symbol names and symbols. */
6645 lt_preloaded_symbols[] =
6648 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6649 cat <<\EOF >> conftest.$ac_ext
6657 # Now try linking the two files.
6658 mv conftest.$ac_objext conftstm.$ac_objext
6659 lt_save_LIBS="$LIBS"
6660 lt_save_CFLAGS="$CFLAGS"
6661 LIBS="conftstm.$ac_objext"
6662 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6664 (eval $ac_link) 2>&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6670 LIBS="$lt_save_LIBS"
6671 CFLAGS="$lt_save_CFLAGS"
6673 echo "cannot find nm_test_func in $nlist" >&5
6676 echo "cannot find nm_test_var in $nlist" >&5
6679 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6682 echo "$progname: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 rm -f conftest* conftst*
6687 # Do not use the global_symbol_pipe unless it works.
6688 if test "$pipe_works" = yes; then
6691 lt_cv_sys_global_symbol_pipe=
6697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6698 lt_cv_sys_global_symbol_to_cdecl=
6700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6701 { echo "$as_me:$LINENO: result: failed" >&5
6702 echo "${ECHO_T}failed" >&6; }
6704 { echo "$as_me:$LINENO: result: ok" >&5
6705 echo "${ECHO_T}ok" >&6; }
6708 { echo "$as_me:$LINENO: checking for objdir" >&5
6709 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6710 if test "${lt_cv_objdir+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 rm -f .libs 2>/dev/null
6714 mkdir .libs 2>/dev/null
6715 if test -d .libs; then
6718 # MS-DOS does not allow filenames that begin with a dot.
6721 rmdir .libs 2>/dev/null
6723 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6724 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6725 objdir=$lt_cv_objdir
6733 # AIX sometimes has problems with the GCC collect2 program. For some
6734 # reason, if we set the COLLECT_NAMES environment variable, the problems
6735 # vanish in a puff of smoke.
6736 if test "X${COLLECT_NAMES+set}" != Xset; then
6738 export COLLECT_NAMES
6743 # Sed substitution that helps us do robust quoting. It backslashifies
6744 # metacharacters that are still active within double-quoted strings.
6745 Xsed='sed -e 1s/^X//'
6746 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6748 # Same as above, but do not quote variable references.
6749 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6751 # Sed substitution to delay expansion of an escaped shell variable in a
6752 # double_quote_subst'ed string.
6753 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6755 # Sed substitution to avoid accidental globbing in evaled expressions
6756 no_glob_subst='s/\*/\\\*/g'
6762 default_ofile=libtool
6763 can_build_shared=yes
6765 # All known linkers require a `.a' archive for static linking (except MSVC,
6766 # which needs '.lib').
6768 ltmain="$ac_aux_dir/ltmain.sh"
6769 ofile="$default_ofile"
6770 with_gnu_ld="$lt_cv_prog_gnu_ld"
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}ar; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_prog_AR+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 if test -n "$AR"; then
6781 ac_cv_prog_AR="$AR" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_AR="${ac_tool_prefix}ar"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 if test -n "$AR"; then
6802 { echo "$as_me:$LINENO: result: $AR" >&5
6803 echo "${ECHO_T}$AR" >&6; }
6805 { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6811 if test -z "$ac_cv_prog_AR"; then
6813 # Extract the first word of "ar", so it can be a program name with args.
6814 set dummy ar; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 if test -n "$ac_ct_AR"; then
6821 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_prog_ac_ct_AR="ar"
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6841 if test -n "$ac_ct_AR"; then
6842 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6843 echo "${ECHO_T}$ac_ct_AR" >&6; }
6845 { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6849 if test "x$ac_ct_AR" = x; then
6852 case $cross_compiling:$ac_tool_warned in
6854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6855 whose name does not start with the host triplet. If you think this
6856 configuration is useful to you, please write to autoconf@gnu.org." >&5
6857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet. If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6860 ac_tool_warned=yes ;;
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_prog_RANLIB+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 if test -n "$RANLIB"; then
6877 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 RANLIB=$ac_cv_prog_RANLIB
6897 if test -n "$RANLIB"; then
6898 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6899 echo "${ECHO_T}$RANLIB" >&6; }
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6907 if test -z "$ac_cv_prog_RANLIB"; then
6908 ac_ct_RANLIB=$RANLIB
6909 # Extract the first word of "ranlib", so it can be a program name with args.
6910 set dummy ranlib; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 if test -n "$ac_ct_RANLIB"; then
6917 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_ac_ct_RANLIB="ranlib"
6927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6937 if test -n "$ac_ct_RANLIB"; then
6938 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6939 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6945 if test "x$ac_ct_RANLIB" = x; then
6948 case $cross_compiling:$ac_tool_warned in
6950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6951 whose name does not start with the host triplet. If you think this
6952 configuration is useful to you, please write to autoconf@gnu.org." >&5
6953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6954 whose name does not start with the host triplet. If you think this
6955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6956 ac_tool_warned=yes ;;
6958 RANLIB=$ac_ct_RANLIB
6961 RANLIB="$ac_cv_prog_RANLIB"
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}strip; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_prog_STRIP+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 if test -n "$STRIP"; then
6973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 STRIP=$ac_cv_prog_STRIP
6993 if test -n "$STRIP"; then
6994 { echo "$as_me:$LINENO: result: $STRIP" >&5
6995 echo "${ECHO_T}$STRIP" >&6; }
6997 { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
7003 if test -z "$ac_cv_prog_STRIP"; then
7005 # Extract the first word of "strip", so it can be a program name with args.
7006 set dummy strip; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 if test -n "$ac_ct_STRIP"; then
7013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_prog_ac_ct_STRIP="strip"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7033 if test -n "$ac_ct_STRIP"; then
7034 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7035 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7041 if test "x$ac_ct_STRIP" = x; then
7044 case $cross_compiling:$ac_tool_warned in
7046 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7047 whose name does not start with the host triplet. If you think this
7048 configuration is useful to you, please write to autoconf@gnu.org." >&5
7049 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7050 whose name does not start with the host triplet. If you think this
7051 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7052 ac_tool_warned=yes ;;
7057 STRIP="$ac_cv_prog_STRIP"
7062 old_CFLAGS="$CFLAGS"
7064 # Set sane defaults for various variables
7065 test -z "$AR" && AR=ar
7066 test -z "$AR_FLAGS" && AR_FLAGS=cru
7067 test -z "$AS" && AS=as
7068 test -z "$CC" && CC=cc
7069 test -z "$LTCC" && LTCC=$CC
7070 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7071 test -z "$DLLTOOL" && DLLTOOL=dlltool
7072 test -z "$LD" && LD=ld
7073 test -z "$LN_S" && LN_S="ln -s"
7074 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7075 test -z "$NM" && NM=nm
7076 test -z "$SED" && SED=sed
7077 test -z "$OBJDUMP" && OBJDUMP=objdump
7078 test -z "$RANLIB" && RANLIB=:
7079 test -z "$STRIP" && STRIP=:
7080 test -z "$ac_objext" && ac_objext=o
7082 # Determine commands to create old-style static archives.
7083 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7084 old_postinstall_cmds='chmod 644 $oldlib'
7085 old_postuninstall_cmds=
7087 if test -n "$RANLIB"; then
7090 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7096 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7099 for cc_temp in $compiler""; do
7101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7107 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7110 # Only perform the check for file, if the check method requires it
7111 case $deplibs_check_method in
7113 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7114 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7115 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7116 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7124 lt_save_MAGIC_CMD="$MAGIC_CMD"
7125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7127 for ac_dir in $ac_dummy; do
7129 test -z "$ac_dir" && ac_dir=.
7130 if test -f $ac_dir/${ac_tool_prefix}file; then
7131 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7132 if test -n "$file_magic_test_file"; then
7133 case $deplibs_check_method in
7135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7138 $EGREP "$file_magic_regex" > /dev/null; then
7143 *** Warning: the command libtool uses to detect shared libraries,
7144 *** $file_magic_cmd, produces output that libtool cannot recognize.
7145 *** The result is that libtool may fail to recognize shared libraries
7146 *** as such. This will affect the creation of libtool libraries that
7147 *** depend on shared libraries, but programs linked with such libtool
7148 *** libraries will work regardless of this problem. Nevertheless, you
7149 *** may want to report the problem to your system manager and/or to
7150 *** bug-libtool@gnu.org
7160 MAGIC_CMD="$lt_save_MAGIC_CMD"
7165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7166 if test -n "$MAGIC_CMD"; then
7167 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7168 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7170 { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7174 if test -z "$lt_cv_path_MAGIC_CMD"; then
7175 if test -n "$ac_tool_prefix"; then
7176 { echo "$as_me:$LINENO: checking for file" >&5
7177 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7178 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7186 lt_save_MAGIC_CMD="$MAGIC_CMD"
7187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7188 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7189 for ac_dir in $ac_dummy; do
7191 test -z "$ac_dir" && ac_dir=.
7192 if test -f $ac_dir/file; then
7193 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7194 if test -n "$file_magic_test_file"; then
7195 case $deplibs_check_method in
7197 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7200 $EGREP "$file_magic_regex" > /dev/null; then
7205 *** Warning: the command libtool uses to detect shared libraries,
7206 *** $file_magic_cmd, produces output that libtool cannot recognize.
7207 *** The result is that libtool may fail to recognize shared libraries
7208 *** as such. This will affect the creation of libtool libraries that
7209 *** depend on shared libraries, but programs linked with such libtool
7210 *** libraries will work regardless of this problem. Nevertheless, you
7211 *** may want to report the problem to your system manager and/or to
7212 *** bug-libtool@gnu.org
7222 MAGIC_CMD="$lt_save_MAGIC_CMD"
7227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7228 if test -n "$MAGIC_CMD"; then
7229 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7230 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7232 { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7248 # Check whether --enable-libtool-lock was given.
7249 if test "${enable_libtool_lock+set}" = set; then
7250 enableval=$enable_libtool_lock;
7253 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7256 # Check whether --with-pic was given.
7257 if test "${with_pic+set}" = set; then
7258 withval=$with_pic; pic_mode="$withval"
7263 test -z "$pic_mode" && pic_mode=default
7265 # Use C for the default configuration in the libtool script
7269 ac_cpp='$CPP $CPPFLAGS'
7270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275 # Source file extension for C test sources.
7278 # Object file extension for compiled C test sources.
7282 # Code to be used in simple compile tests
7283 lt_simple_compile_test_code="int some_variable = 0;"
7285 # Code to be used in simple link tests
7286 lt_simple_link_test_code='int main(){return(0);}'
7289 # If no C compiler was specified, use CC.
7292 # If no C compiler flags were specified, use CFLAGS.
7293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7295 # Allow CC to be a program name with arguments.
7299 # save warnings/boilerplate of simple test code
7300 ac_outfile=conftest.$ac_objext
7301 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7302 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7303 _lt_compiler_boilerplate=`cat conftest.err`
7306 ac_outfile=conftest.$ac_objext
7307 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7308 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7309 _lt_linker_boilerplate=`cat conftest.err`
7314 lt_prog_compiler_no_builtin_flag=
7316 if test "$GCC" = yes; then
7317 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7320 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7321 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7322 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 lt_cv_prog_compiler_rtti_exceptions=no
7326 ac_outfile=conftest.$ac_objext
7327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7328 lt_compiler_flag="-fno-rtti -fno-exceptions"
7329 # Insert the option either (1) after the last *FLAGS variable, or
7330 # (2) before a word containing "conftest.", or (3) at the end.
7331 # Note that $ac_compile itself does not contain backslashes and begins
7332 # with a dollar sign (not a hyphen), so the echo should work correctly.
7333 # The option is referenced via a variable to avoid confusing sed.
7334 lt_compile=`echo "$ac_compile" | $SED \
7335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7337 -e 's:$: $lt_compiler_flag:'`
7338 (eval echo "\"\$as_me:7338: $lt_compile\"" >&5)
7339 (eval "$lt_compile" 2>conftest.err)
7341 cat conftest.err >&5
7342 echo "$as_me:7342: \$? = $ac_status" >&5
7343 if (exit $ac_status) && test -s "$ac_outfile"; then
7344 # The compiler can only warn and ignore the option if not recognized
7345 # So say no if there are warnings other than the usual output.
7346 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7349 lt_cv_prog_compiler_rtti_exceptions=yes
7355 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7356 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7358 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7359 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7366 lt_prog_compiler_wl=
7367 lt_prog_compiler_pic=
7368 lt_prog_compiler_static=
7370 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7371 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7373 if test "$GCC" = yes; then
7374 lt_prog_compiler_wl='-Wl,'
7375 lt_prog_compiler_static='-static'
7379 # All AIX code is PIC.
7380 if test "$host_cpu" = ia64; then
7381 # AIX 5 now supports IA64 processor
7382 lt_prog_compiler_static='-Bstatic'
7387 # FIXME: we need at least 68020 code to build shared libraries, but
7388 # adding the `-m68020' flag to GCC prevents building anything better,
7390 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7394 # PIC is the default for these OSes.
7397 mingw* | cygwin* | pw32* | os2*)
7398 # This hack is so that the source file can tell whether it is being
7399 # built for inclusion in a dll (and should export symbols for example).
7400 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7401 # (--disable-auto-import) libraries
7402 lt_prog_compiler_pic='-DDLL_EXPORT'
7405 darwin* | rhapsody*)
7406 # PIC is the default on this platform
7407 # Common symbols not allowed in MH_DYLIB files
7408 lt_prog_compiler_pic='-fno-common'
7412 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7413 # Instead, we relocate shared libraries at runtime.
7417 # Just because we use GCC doesn't mean we suddenly get shared libraries
7418 # on systems that don't support them.
7419 lt_prog_compiler_can_build_shared=no
7424 if test -d /usr/nec; then
7425 lt_prog_compiler_pic=-Kconform_pic
7430 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7437 lt_prog_compiler_pic='-fPIC'
7443 lt_prog_compiler_pic='-fPIC'
7447 # PORTME Check for flag to pass linker flags through the system compiler.
7450 lt_prog_compiler_wl='-Wl,'
7451 if test "$host_cpu" = ia64; then
7452 # AIX 5 now supports IA64 processor
7453 lt_prog_compiler_static='-Bstatic'
7455 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7459 # PIC is the default on this platform
7460 # Common symbols not allowed in MH_DYLIB files
7461 case $cc_basename in
7463 lt_prog_compiler_pic='-qnocommon'
7464 lt_prog_compiler_wl='-Wl,'
7469 mingw* | cygwin* | pw32* | os2*)
7470 # This hack is so that the source file can tell whether it is being
7471 # built for inclusion in a dll (and should export symbols for example).
7472 lt_prog_compiler_pic='-DDLL_EXPORT'
7475 hpux9* | hpux10* | hpux11*)
7476 lt_prog_compiler_wl='-Wl,'
7477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7484 lt_prog_compiler_pic='+Z'
7487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7488 lt_prog_compiler_static='${wl}-a ${wl}archive'
7491 irix5* | irix6* | nonstopux*)
7492 lt_prog_compiler_wl='-Wl,'
7493 # PIC (with -KPIC) is the default.
7494 lt_prog_compiler_static='-non_shared'
7498 lt_prog_compiler_pic='-KPIC'
7499 lt_prog_compiler_static='-Bstatic'
7502 linux* | k*bsd*-gnu)
7503 case $cc_basename in
7505 lt_prog_compiler_wl='-Wl,'
7506 lt_prog_compiler_pic='-KPIC'
7507 lt_prog_compiler_static='-static'
7509 pgcc* | pgf77* | pgf90* | pgf95*)
7510 # Portland Group compilers (*not* the Pentium gcc compiler,
7511 # which looks to be a dead project)
7512 lt_prog_compiler_wl='-Wl,'
7513 lt_prog_compiler_pic='-fpic'
7514 lt_prog_compiler_static='-Bstatic'
7517 lt_prog_compiler_wl='-Wl,'
7518 # All Alpha code is PIC.
7519 lt_prog_compiler_static='-non_shared'
7522 case `$CC -V 2>&1 | sed 5q` in
7525 lt_prog_compiler_pic='-KPIC'
7526 lt_prog_compiler_static='-Bstatic'
7527 lt_prog_compiler_wl='-Wl,'
7530 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7531 lt_prog_compiler_pic='-KPIC'
7532 lt_prog_compiler_static='-Bstatic'
7533 lt_prog_compiler_wl=''
7540 osf3* | osf4* | osf5*)
7541 lt_prog_compiler_wl='-Wl,'
7542 # All OSF/1 code is PIC.
7543 lt_prog_compiler_static='-non_shared'
7547 lt_prog_compiler_static='-non_shared'
7551 lt_prog_compiler_pic='-KPIC'
7552 lt_prog_compiler_static='-Bstatic'
7553 case $cc_basename in
7555 lt_prog_compiler_wl='-Qoption ld ';;
7557 lt_prog_compiler_wl='-Wl,';;
7562 lt_prog_compiler_wl='-Qoption ld '
7563 lt_prog_compiler_pic='-PIC'
7564 lt_prog_compiler_static='-Bstatic'
7567 sysv4 | sysv4.2uw2* | sysv4.3*)
7568 lt_prog_compiler_wl='-Wl,'
7569 lt_prog_compiler_pic='-KPIC'
7570 lt_prog_compiler_static='-Bstatic'
7574 if test -d /usr/nec ;then
7575 lt_prog_compiler_pic='-Kconform_pic'
7576 lt_prog_compiler_static='-Bstatic'
7580 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7581 lt_prog_compiler_wl='-Wl,'
7582 lt_prog_compiler_pic='-KPIC'
7583 lt_prog_compiler_static='-Bstatic'
7587 lt_prog_compiler_wl='-Wl,'
7588 lt_prog_compiler_can_build_shared=no
7592 lt_prog_compiler_pic='-pic'
7593 lt_prog_compiler_static='-Bstatic'
7597 lt_prog_compiler_can_build_shared=no
7602 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7603 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7606 # Check to make sure the PIC flag actually works.
7608 if test -n "$lt_prog_compiler_pic"; then
7610 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7611 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7612 if test "${lt_prog_compiler_pic_works+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 lt_prog_compiler_pic_works=no
7616 ac_outfile=conftest.$ac_objext
7617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7618 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7619 # Insert the option either (1) after the last *FLAGS variable, or
7620 # (2) before a word containing "conftest.", or (3) at the end.
7621 # Note that $ac_compile itself does not contain backslashes and begins
7622 # with a dollar sign (not a hyphen), so the echo should work correctly.
7623 # The option is referenced via a variable to avoid confusing sed.
7624 lt_compile=`echo "$ac_compile" | $SED \
7625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7627 -e 's:$: $lt_compiler_flag:'`
7628 (eval echo "\"\$as_me:7628: $lt_compile\"" >&5)
7629 (eval "$lt_compile" 2>conftest.err)
7631 cat conftest.err >&5
7632 echo "$as_me:7632: \$? = $ac_status" >&5
7633 if (exit $ac_status) && test -s "$ac_outfile"; then
7634 # The compiler can only warn and ignore the option if not recognized
7635 # So say no if there are warnings other than the usual output.
7636 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7639 lt_prog_compiler_pic_works=yes
7645 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7646 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7648 if test x"$lt_prog_compiler_pic_works" = xyes; then
7649 case $lt_prog_compiler_pic in
7651 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7654 lt_prog_compiler_pic=
7655 lt_prog_compiler_can_build_shared=no
7660 # For platforms which do not support PIC, -DPIC is meaningless:
7662 lt_prog_compiler_pic=
7665 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7670 # Check to make sure the static flag actually works.
7672 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7673 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7674 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7675 if test "${lt_prog_compiler_static_works+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 lt_prog_compiler_static_works=no
7679 save_LDFLAGS="$LDFLAGS"
7680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7681 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7683 # The linker can only warn and ignore the option if not recognized
7684 # So say no if there are warnings
7685 if test -s conftest.err; then
7686 # Append any errors to the config.log.
7687 cat conftest.err 1>&5
7688 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7690 if diff conftest.exp conftest.er2 >/dev/null; then
7691 lt_prog_compiler_static_works=yes
7694 lt_prog_compiler_static_works=yes
7698 LDFLAGS="$save_LDFLAGS"
7701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7702 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7704 if test x"$lt_prog_compiler_static_works" = xyes; then
7707 lt_prog_compiler_static=
7711 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7712 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7713 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 lt_cv_prog_compiler_c_o=no
7717 $rm -r conftest 2>/dev/null
7721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7723 lt_compiler_flag="-o out/conftest2.$ac_objext"
7724 # Insert the option either (1) after the last *FLAGS variable, or
7725 # (2) before a word containing "conftest.", or (3) at the end.
7726 # Note that $ac_compile itself does not contain backslashes and begins
7727 # with a dollar sign (not a hyphen), so the echo should work correctly.
7728 lt_compile=`echo "$ac_compile" | $SED \
7729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7731 -e 's:$: $lt_compiler_flag:'`
7732 (eval echo "\"\$as_me:7732: $lt_compile\"" >&5)
7733 (eval "$lt_compile" 2>out/conftest.err)
7735 cat out/conftest.err >&5
7736 echo "$as_me:7736: \$? = $ac_status" >&5
7737 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7739 # The compiler can only warn and ignore the option if not recognized
7740 # So say no if there are warnings
7741 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7742 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7743 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7744 lt_cv_prog_compiler_c_o=yes
7749 # SGI C++ compiler will create directory out/ii_files/ for
7750 # template instantiation
7751 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7752 $rm out/* && rmdir out
7758 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7759 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7762 hard_links="nottested"
7763 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7764 # do not overwrite the value of need_locks provided by the user
7765 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7766 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7771 ln conftest.a conftest.b 2>&5 || hard_links=no
7772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7773 { echo "$as_me:$LINENO: result: $hard_links" >&5
7774 echo "${ECHO_T}$hard_links" >&6; }
7775 if test "$hard_links" = no; then
7776 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7777 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7784 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7788 allow_undefined_flag=
7789 enable_shared_with_static_runtimes=no
7791 archive_expsym_cmds=
7792 old_archive_From_new_cmds=
7793 old_archive_from_expsyms_cmds=
7794 export_dynamic_flag_spec=
7795 whole_archive_flag_spec=
7796 thread_safe_flag_spec=
7797 hardcode_libdir_flag_spec=
7798 hardcode_libdir_flag_spec_ld=
7799 hardcode_libdir_separator=
7802 hardcode_shlibpath_var=unsupported
7803 link_all_deplibs=unknown
7804 hardcode_automatic=no
7807 always_export_symbols=no
7808 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7809 # include_expsyms should be a list of space-separated symbols to be *always*
7810 # included in the symbol list
7812 # exclude_expsyms can be an extended regexp of symbols to exclude
7813 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7814 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7815 # as well as any symbol that contains `d'.
7816 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7817 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7818 # platforms (ab)use it in PIC code, but their linkers get confused if
7819 # the symbol is explicitly referenced. Since portable code cannot
7820 # rely on this symbol name, it's probably fine to never include it in
7821 # preloaded symbol tables.
7822 extract_expsyms_cmds=
7823 # Just being paranoid about ensuring that cc_basename is set.
7824 for cc_temp in $compiler""; do
7826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7832 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7835 cygwin* | mingw* | pw32*)
7836 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7837 # When not using gcc, we currently assume that we are using
7838 # Microsoft Visual C++.
7839 if test "$GCC" != yes; then
7844 # we just hope/assume this is gcc and not c89 (= MSVC++)
7853 if test "$with_gnu_ld" = yes; then
7854 # If archive_cmds runs LD, not CC, wlarc should be empty
7857 # Set some defaults for GNU ld with shared library support. These
7858 # are reset later if shared libraries are not supported. Putting them
7859 # here allows them to be overridden if necessary.
7860 runpath_var=LD_RUN_PATH
7861 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7862 export_dynamic_flag_spec='${wl}--export-dynamic'
7863 # ancient GNU ld didn't support --whole-archive et. al.
7864 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7865 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7867 whole_archive_flag_spec=
7869 supports_anon_versioning=no
7870 case `$LD -v 2>/dev/null` in
7871 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7872 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7873 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7874 *\ 2.11.*) ;; # other 2.11 versions
7875 *) supports_anon_versioning=yes ;;
7878 # See if GNU ld supports shared libraries.
7880 aix3* | aix4* | aix5*)
7881 # On AIX/PPC, the GNU linker is very broken
7882 if test "$host_cpu" != ia64; then
7886 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7887 *** to be unable to reliably create shared libraries on AIX.
7888 *** Therefore, libtool is disabling shared libraries support. If you
7889 *** really care for shared libraries, you may want to modify your PATH
7890 *** so that a non-GNU linker is found, and then restart.
7897 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)'
7898 hardcode_libdir_flag_spec='-L$libdir'
7899 hardcode_minus_L=yes
7901 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7902 # that the semantics of dynamic libraries on AmigaOS, at least up
7903 # to version 4, is to share data among multiple programs linked
7904 # with the same dynamic library. Since this doesn't match the
7905 # behavior of shared libraries on other platforms, we can't use
7911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7912 allow_undefined_flag=unsupported
7913 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7914 # support --undefined. This deserves some investigation. FIXME
7915 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7921 cygwin* | mingw* | pw32*)
7922 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7923 # as there is no search path for DLLs.
7924 hardcode_libdir_flag_spec='-L$libdir'
7925 allow_undefined_flag=unsupported
7926 always_export_symbols=no
7927 enable_shared_with_static_runtimes=yes
7928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7930 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7932 # If the export-symbols file already is a .def file (1st line
7933 # is EXPORTS), use it as is; otherwise, prepend...
7934 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7935 cp $export_symbols $output_objdir/$soname.def;
7937 echo EXPORTS > $output_objdir/$soname.def;
7938 cat $export_symbols >> $output_objdir/$soname.def;
7940 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7948 hardcode_shlibpath_var=no
7949 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7950 export_dynamic_flag_spec='${wl}-E'
7951 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7952 # Instead, shared libraries are loaded at an image base (0x10000000 by
7953 # default) and relocated if they conflict, which is a slow very memory
7954 # consuming and fragmenting process. To avoid this, we pick a random,
7955 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7956 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7957 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7958 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'
7961 gnu* | linux* | k*bsd*-gnu)
7962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7964 case $cc_basename,$host_cpu in
7965 pgcc*) # Portland Group C compiler
7966 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7967 tmp_addflag=' $pic_flag'
7969 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7970 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7971 tmp_addflag=' $pic_flag -Mnomain' ;;
7972 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7973 tmp_addflag=' -i_dynamic' ;;
7974 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7975 tmp_addflag=' -i_dynamic -nofor_main' ;;
7976 ifc* | ifort*) # Intel Fortran compiler
7977 tmp_addflag=' -nofor_main' ;;
7979 case `$CC -V 2>&1 | sed 5q` in
7980 *Sun\ C*) # Sun C 5.9
7981 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7982 tmp_sharedflag='-G' ;;
7983 *Sun\ F*) # Sun Fortran 8.3
7984 tmp_sharedflag='-G' ;;
7986 tmp_sharedflag='-shared' ;;
7988 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7990 if test $supports_anon_versioning = yes; then
7991 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7993 $echo "local: *; };" >> $output_objdir/$libname.ver~
7994 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8003 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8007 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8012 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8017 *** create shared libraries on Solaris systems. Therefore, libtool
8018 *** is disabling shared libraries support. We urge you to upgrade GNU
8019 *** binutils to release 2.9.1 or newer. Another option is to modify
8020 *** your PATH or compiler configuration so that the native linker is
8021 *** used, and then restart.
8024 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8033 case `$LD -v 2>&1` in
8034 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8038 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8039 *** reliably create shared libraries on SCO systems. Therefore, libtool
8040 *** is disabling shared libraries support. We urge you to upgrade GNU
8041 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8042 *** your PATH or compiler configuration so that the native linker is
8043 *** used, and then restart.
8048 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8049 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8060 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8063 hardcode_shlibpath_var=no
8067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8076 if test "$ld_shlibs" = no; then
8078 hardcode_libdir_flag_spec=
8079 export_dynamic_flag_spec=
8080 whole_archive_flag_spec=
8083 # PORTME fill in a description of your system's linker (not GNU ld)
8086 allow_undefined_flag=unsupported
8087 always_export_symbols=yes
8088 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'
8089 # Note: this linker hardcodes the directories in LIBPATH if there
8090 # are no directories specified by -L.
8091 hardcode_minus_L=yes
8092 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8093 # Neither direct hardcoding nor static linking is supported with a
8095 hardcode_direct=unsupported
8100 if test "$host_cpu" = ia64; then
8101 # On IA64, the linker does run time linking by default, so we don't
8102 # have to do anything special.
8103 aix_use_runtimelinking=no
8104 exp_sym_flag='-Bexport'
8107 # If we're using GNU nm, then we don't want the "-C" option.
8108 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8109 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8110 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8112 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'
8114 aix_use_runtimelinking=no
8116 # Test if we are trying to use run time linking or normal
8117 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8118 # need to do runtime linking.
8119 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8120 for ld_flag in $LDFLAGS; do
8121 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8122 aix_use_runtimelinking=yes
8129 exp_sym_flag='-bexport'
8130 no_entry_flag='-bnoentry'
8133 # When large executables or shared objects are built, AIX ld can
8134 # have problems creating the table of contents. If linking a library
8135 # or program results in "error TOC overflow" add -mminimal-toc to
8136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8141 hardcode_libdir_separator=':'
8142 link_all_deplibs=yes
8144 if test "$GCC" = yes; then
8145 case $host_os in aix4.[012]|aix4.[012].*)
8146 # We only want to do this on AIX 4.2 and lower, the check
8147 # below for broken collect2 doesn't work under 4.3+
8148 collect2name=`${CC} -print-prog-name=collect2`
8149 if test -f "$collect2name" && \
8150 strings "$collect2name" | grep resolve_lib_name >/dev/null
8152 # We have reworked collect2
8155 # We have old collect2
8156 hardcode_direct=unsupported
8157 # It fails to find uninstalled libraries when the uninstalled
8158 # path is not listed in the libpath. Setting hardcode_minus_L
8159 # to unsupported forces relinking
8160 hardcode_minus_L=yes
8161 hardcode_libdir_flag_spec='-L$libdir'
8162 hardcode_libdir_separator=
8166 shared_flag='-shared'
8167 if test "$aix_use_runtimelinking" = yes; then
8168 shared_flag="$shared_flag "'${wl}-G'
8172 if test "$host_cpu" = ia64; then
8173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8174 # chokes on -Wl,-G. The following line is correct:
8177 if test "$aix_use_runtimelinking" = yes; then
8178 shared_flag='${wl}-G'
8180 shared_flag='${wl}-bM:SRE'
8185 # It seems that -bexpall does not export symbols beginning with
8186 # underscore (_), so it is better to generate a list of symbols to export.
8187 always_export_symbols=yes
8188 if test "$aix_use_runtimelinking" = yes; then
8189 # Warning - without using the other runtime loading flags (-brtl),
8190 # -berok will link without error, but may produce a broken library.
8191 allow_undefined_flag='-berok'
8192 # Determine the default libpath from the value encoded in an empty executable.
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8208 rm -f conftest.$ac_objext conftest$ac_exeext
8209 if { (ac_try="$ac_link"
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_link") 2>conftest.er1
8217 grep -v '^ *+' conftest.er1 >conftest.err
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8223 { (case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_try") 2>&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8243 lt_aix_libpath_sed='
8244 /Import File Strings/,/^$/ {
8250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8251 # Check for a 64-bit object if we didn't find anything.
8252 if test -z "$aix_libpath"; then
8253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8262 rm -f core conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8267 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8269 if test "$host_cpu" = ia64; then
8270 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8271 allow_undefined_flag="-z nodefs"
8272 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"
8274 # Determine the default libpath from the value encoded in an empty executable.
8275 cat >conftest.$ac_ext <<_ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (ac_try="$ac_link"
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_link") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest$ac_exeext'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8325 lt_aix_libpath_sed='
8326 /Import File Strings/,/^$/ {
8332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8333 # Check for a 64-bit object if we didn't find anything.
8334 if test -z "$aix_libpath"; then
8335 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8344 rm -f core conftest.err conftest.$ac_objext \
8345 conftest$ac_exeext conftest.$ac_ext
8346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8349 # Warning - without using the other run time loading flags,
8350 # -berok will link without error, but may produce a broken library.
8351 no_undefined_flag=' ${wl}-bernotok'
8352 allow_undefined_flag=' ${wl}-berok'
8353 # Exported symbols can be pulled into shared objects from archives
8354 whole_archive_flag_spec='$convenience'
8355 archive_cmds_need_lc=yes
8356 # This is similar to how AIX traditionally builds its shared libraries.
8357 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'
8363 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)'
8364 hardcode_libdir_flag_spec='-L$libdir'
8365 hardcode_minus_L=yes
8366 # see comment about different semantics on the GNU ld section
8371 export_dynamic_flag_spec=-rdynamic
8374 cygwin* | mingw* | pw32*)
8375 # When not using gcc, we currently assume that we are using
8376 # Microsoft Visual C++.
8377 # hardcode_libdir_flag_spec is actually meaningless, as there is
8378 # no search path for DLLs.
8379 hardcode_libdir_flag_spec=' '
8380 allow_undefined_flag=unsupported
8381 # Tell ltmain to make .lib files, not .a files.
8383 # Tell ltmain to make .dll files, not .so files.
8385 # FIXME: Setting linknames here is a bad hack.
8386 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8387 # The linker will automatically build a .lib file if we build a DLL.
8388 old_archive_From_new_cmds='true'
8389 # FIXME: Should let the user specify the lib program.
8390 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8391 fix_srcfile_path='`cygpath -w "$srcfile"`'
8392 enable_shared_with_static_runtimes=yes
8395 darwin* | rhapsody*)
8397 rhapsody* | darwin1.[012])
8398 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8401 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8402 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8404 case ${MACOSX_DEPLOYMENT_TARGET} in
8406 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8409 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8415 archive_cmds_need_lc=no
8417 hardcode_automatic=yes
8418 hardcode_shlibpath_var=unsupported
8419 whole_archive_flag_spec=''
8420 link_all_deplibs=yes
8421 if test "$GCC" = yes ; then
8422 output_verbose_link_cmd='echo'
8423 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8424 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8426 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8427 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8429 case $cc_basename in
8431 output_verbose_link_cmd='echo'
8432 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8433 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8434 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8435 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8436 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_shlibpath_var=no
8455 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8456 # support. Future versions do this automatically, but an explicit c++rt0.o
8457 # does not break anything, and helps significantly (at the cost of a little
8460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8461 hardcode_libdir_flag_spec='-R$libdir'
8463 hardcode_shlibpath_var=no
8466 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8470 hardcode_minus_L=yes
8471 hardcode_shlibpath_var=no
8474 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8475 freebsd* | dragonfly*)
8476 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8477 hardcode_libdir_flag_spec='-R$libdir'
8479 hardcode_shlibpath_var=no
8483 if test "$GCC" = yes; then
8484 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'
8486 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'
8488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489 hardcode_libdir_separator=:
8492 # hardcode_minus_L: Not really in the search PATH,
8493 # but as the default location of the library.
8494 hardcode_minus_L=yes
8495 export_dynamic_flag_spec='${wl}-E'
8499 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8500 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8502 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8504 if test "$with_gnu_ld" = no; then
8505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8506 hardcode_libdir_separator=:
8509 export_dynamic_flag_spec='${wl}-E'
8511 # hardcode_minus_L: Not really in the search PATH,
8512 # but as the default location of the library.
8513 hardcode_minus_L=yes
8518 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8521 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8524 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8527 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8533 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8536 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8543 if test "$with_gnu_ld" = no; then
8544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8545 hardcode_libdir_separator=:
8549 hardcode_libdir_flag_spec_ld='+b $libdir'
8551 hardcode_shlibpath_var=no
8555 export_dynamic_flag_spec='${wl}-E'
8557 # hardcode_minus_L: Not really in the search PATH,
8558 # but as the default location of the library.
8559 hardcode_minus_L=yes
8565 irix5* | irix6* | nonstopux*)
8566 if test "$GCC" = yes; then
8567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8569 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8570 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573 hardcode_libdir_separator=:
8574 link_all_deplibs=yes
8578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8581 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8583 hardcode_libdir_flag_spec='-R$libdir'
8585 hardcode_shlibpath_var=no
8589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8592 hardcode_libdir_separator=:
8593 hardcode_shlibpath_var=no
8597 if test -f /usr/libexec/ld.so; then
8599 hardcode_shlibpath_var=no
8600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8602 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8603 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8604 export_dynamic_flag_spec='${wl}-E'
8607 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8609 hardcode_libdir_flag_spec='-R$libdir'
8612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8613 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8623 hardcode_libdir_flag_spec='-L$libdir'
8624 hardcode_minus_L=yes
8625 allow_undefined_flag=unsupported
8626 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'
8627 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8631 if test "$GCC" = yes; then
8632 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8633 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8635 allow_undefined_flag=' -expect_unresolved \*'
8636 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639 hardcode_libdir_separator=:
8642 osf4* | osf5*) # as osf3* with the addition of -msym flag
8643 if test "$GCC" = yes; then
8644 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8645 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648 allow_undefined_flag=' -expect_unresolved \*'
8649 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8650 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8651 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8653 # Both c and cxx compiler support -rpath directly
8654 hardcode_libdir_flag_spec='-rpath $libdir'
8656 hardcode_libdir_separator=:
8660 no_undefined_flag=' -z text'
8661 if test "$GCC" = yes; then
8663 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8664 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8665 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8668 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8670 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8672 hardcode_libdir_flag_spec='-R$libdir'
8673 hardcode_shlibpath_var=no
8675 solaris2.[0-5] | solaris2.[0-5].*) ;;
8677 # The compiler driver will combine and reorder linker options,
8678 # but understands `-z linker_flag'. GCC discards it without `$wl',
8679 # but is careful enough not to reorder.
8680 # Supported since Solaris 2.6 (maybe 2.5.1?)
8681 if test "$GCC" = yes; then
8682 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8684 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8688 link_all_deplibs=yes
8692 if test "x$host_vendor" = xsequent; then
8693 # Use $CC to link under sequent, because it throws in some extra .o
8694 # files that make .init and .fini sections work.
8695 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8697 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_libdir_flag_spec='-L$libdir'
8701 hardcode_minus_L=yes
8702 hardcode_shlibpath_var=no
8706 case $host_vendor in
8708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709 hardcode_direct=yes # is this really true???
8712 ## LD is ld it makes a PLAMLIB
8713 ## CC just makes a GrossModule.
8714 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8715 reload_cmds='$CC -r -o $output$reload_objs'
8719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8723 runpath_var='LD_RUN_PATH'
8724 hardcode_shlibpath_var=no
8728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 hardcode_shlibpath_var=no
8730 export_dynamic_flag_spec='-Bexport'
8734 if test -d /usr/nec; then
8735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 hardcode_shlibpath_var=no
8737 runpath_var=LD_RUN_PATH
8738 hardcode_runpath_var=yes
8743 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8744 no_undefined_flag='${wl}-z,text'
8745 archive_cmds_need_lc=no
8746 hardcode_shlibpath_var=no
8747 runpath_var='LD_RUN_PATH'
8749 if test "$GCC" = yes; then
8750 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8753 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8758 sysv5* | sco3.2v5* | sco5v6*)
8759 # Note: We can NOT use -z defs as we might desire, because we do not
8760 # link with -lc, and that would cause any symbols used from libc to
8761 # always be unresolved, which means just about no library would
8762 # ever link correctly. If we're not using GNU ld we use -z text
8763 # though, which does catch some bad symbols but isn't as heavy-handed
8765 no_undefined_flag='${wl}-z,text'
8766 allow_undefined_flag='${wl}-z,nodefs'
8767 archive_cmds_need_lc=no
8768 hardcode_shlibpath_var=no
8769 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8770 hardcode_libdir_separator=':'
8771 link_all_deplibs=yes
8772 export_dynamic_flag_spec='${wl}-Bexport'
8773 runpath_var='LD_RUN_PATH'
8775 if test "$GCC" = yes; then
8776 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8779 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786 hardcode_libdir_flag_spec='-L$libdir'
8787 hardcode_shlibpath_var=no
8796 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8797 echo "${ECHO_T}$ld_shlibs" >&6; }
8798 test "$ld_shlibs" = no && can_build_shared=no
8801 # Do we need to explicitly link libc?
8803 case "x$archive_cmds_need_lc" in
8805 # Assume -lc should be added
8806 archive_cmds_need_lc=yes
8808 if test "$enable_shared" = yes && test "$GCC" = yes; then
8809 case $archive_cmds in
8811 # FIXME: we may have to deal with multi-command sequences.
8814 # Test whether the compiler implicitly links with -lc since on some
8815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8816 # to ld, don't add -lc before -lgcc.
8817 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8818 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8823 (eval $ac_compile) 2>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } 2>conftest.err; then
8829 libobjs=conftest.$ac_objext
8831 wl=$lt_prog_compiler_wl
8832 pic_flag=$lt_prog_compiler_pic
8838 lt_save_allow_undefined_flag=$allow_undefined_flag
8839 allow_undefined_flag=
8840 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8841 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }
8846 archive_cmds_need_lc=no
8848 archive_cmds_need_lc=yes
8850 allow_undefined_flag=$lt_save_allow_undefined_flag
8852 cat conftest.err 1>&5
8855 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8856 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8863 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8864 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8866 libname_spec='lib$name'
8874 shlibpath_overrides_runpath=unknown
8876 dynamic_linker="$host_os ld.so"
8877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8879 if test "$GCC" = yes; then
8881 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8882 *) lt_awk_arg="/^libraries:/" ;;
8884 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8885 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8886 # if the path contains ";" then we assume it to be the separator
8887 # otherwise default to the standard path separator (i.e. ":") - it is
8888 # assumed that no part of a normal pathname contains ";" but that should
8889 # okay in the real world where ";" in dirpaths is itself problematic.
8890 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8892 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8894 # Ok, now we have the path, separated by spaces, we can step through it
8895 # and add multilib dir if necessary.
8896 lt_tmp_lt_search_path_spec=
8897 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8898 for lt_sys_path in $lt_search_path_spec; do
8899 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8900 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8902 test -d "$lt_sys_path" && \
8903 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8906 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8907 BEGIN {RS=" "; FS="/|\n";} {
8910 for (lt_i = NF; lt_i > 0; lt_i--) {
8911 if ($lt_i != "" && $lt_i != ".") {
8912 if ($lt_i == "..") {
8915 if (lt_count == 0) {
8916 lt_foo="/" $lt_i lt_foo;
8923 if (lt_foo != "") { lt_freq[lt_foo]++; }
8924 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8926 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8928 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8930 need_lib_prefix=unknown
8931 hardcode_into_libs=no
8933 # when you set need_version to no, make sure it does not cause -set_version
8934 # flags to be left without arguments
8935 need_version=unknown
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8941 shlibpath_var=LIBPATH
8943 # AIX 3 has no versioning support, so we append a major version to the name.
8944 soname_spec='${libname}${release}${shared_ext}$major'
8951 hardcode_into_libs=yes
8952 if test "$host_cpu" = ia64; then
8953 # AIX 5 supports IA64
8954 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8955 shlibpath_var=LD_LIBRARY_PATH
8957 # With GCC up to 2.95.x, collect2 would create an import file
8958 # for dependence libraries. The import file would start with
8959 # the line `#! .'. This would cause the generated library to
8960 # depend on `.', always an invalid library. This was fixed in
8961 # development snapshots of GCC prior to 3.0.
8963 aix4 | aix4.[01] | aix4.[01].*)
8964 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8966 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8973 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8974 # soname into executable. Probably we can add versioning support to
8975 # collect2, so additional links can be useful in future.
8976 if test "$aix_use_runtimelinking" = yes; then
8977 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8978 # instead of lib<name>.a to let people know that these are not
8979 # typical AIX shared libraries.
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 # We preserve .a as extension for shared libraries through AIX4.2
8983 # and later when we are not doing run time linking.
8984 library_names_spec='${libname}${release}.a $libname.a'
8985 soname_spec='${libname}${release}${shared_ext}$major'
8987 shlibpath_var=LIBPATH
8992 library_names_spec='$libname.ixlibrary $libname.a'
8993 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8994 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8998 library_names_spec='${libname}${shared_ext}'
8999 dynamic_linker="$host_os ld.so"
9000 shlibpath_var=LIBRARY_PATH
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9009 shlibpath_var=LD_LIBRARY_PATH
9010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9012 # the default ld.so.conf also contains /usr/contrib/lib and
9013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9014 # libtool to hard-code these into programs
9017 cygwin* | mingw* | pw32*)
9018 version_type=windows
9023 case $GCC,$host_os in
9024 yes,cygwin* | yes,mingw* | yes,pw32*)
9025 library_names_spec='$libname.dll.a'
9026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9027 postinstall_cmds='base_file=`basename \${file}`~
9028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9029 dldir=$destdir/`dirname \$dlpath`~
9030 test -d \$dldir || mkdir -p \$dldir~
9031 $install_prog $dir/$dlname \$dldir/$dlname~
9032 chmod a+x \$dldir/$dlname'
9033 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9034 dlpath=$dir/\$dldll~
9036 shlibpath_overrides_runpath=yes
9040 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9041 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9042 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9045 # MinGW DLLs use traditional 'lib' prefix
9046 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9047 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9048 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9049 # It is most probably a Windows format PATH printed by
9050 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9051 # path with ; separators, and with drive letters. We can handle the
9052 # drive letters (cygwin fileutils understands them), so leave them,
9053 # especially as we might pass files found there to a mingw objdump,
9054 # which wouldn't understand a cygwinified path. Ahh.
9055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9061 # pw32 DLLs use 'pw' prefix rather than 'lib'
9062 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9068 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9071 dynamic_linker='Win32 ld.exe'
9072 # FIXME: first we should search . and the directory the executable is in
9076 darwin* | rhapsody*)
9077 dynamic_linker="$host_os dyld"
9081 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9082 soname_spec='${libname}${release}${major}$shared_ext'
9083 shlibpath_overrides_runpath=yes
9084 shlibpath_var=DYLD_LIBRARY_PATH
9085 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9087 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9104 freebsd* | dragonfly*)
9105 # DragonFly does not have aout. When/if they implement a new
9106 # versioning mechanism, adjust this.
9107 if test -x /usr/bin/objformat; then
9108 objformat=`/usr/bin/objformat`
9111 freebsd[123]*) objformat=aout ;;
9115 version_type=freebsd-$objformat
9116 case $version_type in
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9127 shlibpath_var=LD_LIBRARY_PATH
9130 shlibpath_overrides_runpath=yes
9132 freebsd3.[01]* | freebsdelf3.[01]*)
9133 shlibpath_overrides_runpath=yes
9134 hardcode_into_libs=yes
9136 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9137 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9138 shlibpath_overrides_runpath=no
9139 hardcode_into_libs=yes
9141 *) # from 4.6 on, and DragonFly
9142 shlibpath_overrides_runpath=yes
9143 hardcode_into_libs=yes
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 hardcode_into_libs=yes
9158 hpux9* | hpux10* | hpux11*)
9159 # Give a soname corresponding to the major version so that dld.sl refuses to
9160 # link against other versions.
9167 hardcode_into_libs=yes
9168 dynamic_linker="$host_os dld.so"
9169 shlibpath_var=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 if test "X$HPUX_IA64_MODE" = X32; then
9174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9182 hardcode_into_libs=yes
9183 dynamic_linker="$host_os dld.sl"
9184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9193 dynamic_linker="$host_os dld.sl"
9194 shlibpath_var=SHLIB_PATH
9195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9201 postinstall_cmds='chmod 555 $lib'
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=no
9213 hardcode_into_libs=yes
9216 irix5* | irix6* | nonstopux*)
9218 nonstopux*) version_type=nonstopux ;;
9220 if test "$lt_cv_prog_gnu_ld" = yes; then
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9231 irix5* | nonstopux*)
9235 case $LD in # libtool.m4 will add one of these switches to LD
9236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9237 libsuff= shlibsuff= libmagic=32-bit;;
9238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9239 libsuff=32 shlibsuff=N32 libmagic=N32;;
9240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9242 *) libsuff= shlibsuff= libmagic=never-match;;
9246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9247 shlibpath_overrides_runpath=no
9248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9250 hardcode_into_libs=yes
9253 # No shared lib support for Linux oldld, aout, or coff.
9254 linux*oldld* | linux*aout* | linux*coff*)
9258 # This must be Linux ELF.
9259 linux* | k*bsd*-gnu)
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 shlibpath_overrides_runpath=no
9268 # This implies no fast_install, which is unacceptable.
9269 # Some rework will be needed to allow for fast_install
9270 # before this can be enabled.
9271 hardcode_into_libs=yes
9273 # find out which ABI we are using
9276 x86_64*|s390x*|powerpc64*)
9277 echo '#line 9277 "configure"' > conftest.$ac_ext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9279 (eval $ac_compile) 2>&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; then
9283 case `/usr/bin/file conftest.$ac_objext` in
9286 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9294 # Append ld.so.conf contents to the search path
9295 if test -f /etc/ld.so.conf; then
9296 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;/^$/d' | tr '\n' ' '`
9297 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9300 # We used to test for /lib/ld.so.1 and disable shared libraries on
9301 # powerpc, because MkLinux only supported shared libraries with the
9302 # GNU dynamic linker. Since this was broken with cross compilers,
9303 # most powerpc-linux boxes support dynamic linking these days and
9304 # people can always --disable-shared, the test was removed, and we
9305 # assume the GNU/Linux dynamic linker is in use.
9306 dynamic_linker='GNU/Linux ld.so'
9313 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9316 dynamic_linker='NetBSD (a.out) ld.so'
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 dynamic_linker='NetBSD ld.elf_so'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes
9324 hardcode_into_libs=yes
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 shlibpath_overrides_runpath=yes
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath=yes
9346 sys_lib_dlsearch_path_spec="/usr/lib"
9348 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9350 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9351 *) need_version=no ;;
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9358 openbsd2.[89] | openbsd2.[89].*)
9359 shlibpath_overrides_runpath=no
9362 shlibpath_overrides_runpath=yes
9366 shlibpath_overrides_runpath=yes
9371 libname_spec='$name'
9374 library_names_spec='$libname${shared_ext} $libname.a'
9375 dynamic_linker='OS/2 ld.exe'
9376 shlibpath_var=LIBPATH
9379 osf3* | osf4* | osf5*)
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9387 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 shlibpath_overrides_runpath=yes
9402 hardcode_into_libs=yes
9403 # ldd complains unless libraries are executable
9404 postinstall_cmds='chmod +x $lib'
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9411 shlibpath_var=LD_LIBRARY_PATH
9412 shlibpath_overrides_runpath=yes
9413 if test "$with_gnu_ld" = yes; then
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 case $host_vendor in
9426 shlibpath_overrides_runpath=no
9428 export_dynamic_flag_spec='${wl}-Blargedynsym'
9429 runpath_var=LD_RUN_PATH
9437 shlibpath_overrides_runpath=no
9438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9444 if test -d /usr/nec ;then
9446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9447 soname_spec='$libname${shared_ext}.$major'
9448 shlibpath_var=LD_LIBRARY_PATH
9452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9453 version_type=freebsd-elf
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 hardcode_into_libs=yes
9460 if test "$with_gnu_ld" = yes; then
9461 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9462 shlibpath_overrides_runpath=no
9464 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9465 shlibpath_overrides_runpath=yes
9468 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9472 sys_lib_dlsearch_path_spec='/usr/lib'
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 shlibpath_var=LD_LIBRARY_PATH
9486 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9487 echo "${ECHO_T}$dynamic_linker" >&6; }
9488 test "$dynamic_linker" = no && can_build_shared=no
9490 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9491 if test "$GCC" = yes; then
9492 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9495 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9496 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9498 if test -n "$hardcode_libdir_flag_spec" || \
9499 test -n "$runpath_var" || \
9500 test "X$hardcode_automatic" = "Xyes" ; then
9502 # We can hardcode non-existant directories.
9503 if test "$hardcode_direct" != no &&
9504 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9505 # have to relink, otherwise we might link with an installed library
9506 # when we should be linking with a yet-to-be-installed one
9507 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9508 test "$hardcode_minus_L" != no; then
9509 # Linking always hardcodes the temporary library directory.
9510 hardcode_action=relink
9512 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9513 hardcode_action=immediate
9516 # We cannot hardcode anything, or else we can only hardcode existing
9518 hardcode_action=unsupported
9520 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9521 echo "${ECHO_T}$hardcode_action" >&6; }
9523 if test "$hardcode_action" = relink; then
9524 # Fast installation is not supported
9525 enable_fast_install=no
9526 elif test "$shlibpath_overrides_runpath" = yes ||
9527 test "$enable_shared" = no; then
9528 # Fast installation is not necessary
9529 enable_fast_install=needless
9534 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9535 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9536 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9537 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9538 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9539 { echo "$as_me:$LINENO: result: yes" >&5
9540 echo "${ECHO_T}yes" >&6; }
9542 # FIXME - insert some real tests, host_os isn't really good enough
9545 if test -n "$STRIP" ; then
9546 striplib="$STRIP -x"
9547 old_striplib="$STRIP -S"
9548 { echo "$as_me:$LINENO: result: yes" >&5
9549 echo "${ECHO_T}yes" >&6; }
9551 { echo "$as_me:$LINENO: result: no" >&5
9552 echo "${ECHO_T}no" >&6; }
9556 { echo "$as_me:$LINENO: result: no" >&5
9557 echo "${ECHO_T}no" >&6; }
9562 if test "x$enable_dlopen" != xyes; then
9563 enable_dlopen=unknown
9564 enable_dlopen_self=unknown
9565 enable_dlopen_self_static=unknown
9572 lt_cv_dlopen="load_add_on"
9574 lt_cv_dlopen_self=yes
9578 lt_cv_dlopen="LoadLibrary"
9583 lt_cv_dlopen="dlopen"
9588 # if libdl is installed we need to link against it
9589 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9590 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9591 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 ac_check_lib_save_LIBS=$LIBS
9596 cat >conftest.$ac_ext <<_ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9633 { (case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_try") 2>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_try") 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_cv_lib_dl_dlopen=yes
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 ac_cv_lib_dl_dlopen=no
9660 rm -f core conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9664 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9665 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9666 if test $ac_cv_lib_dl_dlopen = yes; then
9667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9672 lt_cv_dlopen_self=yes
9679 { echo "$as_me:$LINENO: checking for shl_load" >&5
9680 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9681 if test "${ac_cv_func_shl_load+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9692 #define shl_load innocuous_shl_load
9694 /* System header to define __stub macros and hopefully few prototypes,
9695 which can conflict with char shl_load (); below.
9696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697 <limits.h> exists even on freestanding compilers. */
9700 # include <limits.h>
9702 # include <assert.h>
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9714 /* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
9717 #if defined __stub_shl_load || defined __stub___shl_load
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744 { (case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_try") 2>&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest$ac_exeext'
9754 { (case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_try") 2>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_func_shl_load=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_func_shl_load=no
9771 rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9774 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9775 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9776 if test $ac_cv_func_shl_load = yes; then
9777 lt_cv_dlopen="shl_load"
9779 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9780 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9781 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 ac_check_lib_save_LIBS=$LIBS
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9817 grep -v '^ *+' conftest.er1 >conftest.err
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest$ac_exeext'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 ac_cv_lib_dld_shl_load=yes
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_cv_lib_dld_shl_load=no
9850 rm -f core conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852 LIBS=$ac_check_lib_save_LIBS
9854 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9855 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9856 if test $ac_cv_lib_dld_shl_load = yes; then
9857 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9859 { echo "$as_me:$LINENO: checking for dlopen" >&5
9860 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9861 if test "${ac_cv_func_dlopen+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9872 #define dlopen innocuous_dlopen
9874 /* System header to define __stub macros and hopefully few prototypes,
9875 which can conflict with char dlopen (); below.
9876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9877 <limits.h> exists even on freestanding compilers. */
9880 # include <limits.h>
9882 # include <assert.h>
9887 /* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
9894 /* The GNU C library defines this for functions which it implements
9895 to always fail with ENOSYS. Some functions are actually named
9896 something starting with __ and the normal name is an alias. */
9897 #if defined __stub_dlopen || defined __stub___dlopen
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (ac_try="$ac_link"
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_link") 2>conftest.er1
9918 grep -v '^ *+' conftest.er1 >conftest.err
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9924 { (case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_try") 2>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; } &&
9933 { ac_try='test -s conftest$ac_exeext'
9934 { (case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_try") 2>&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_func_dlopen=yes
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_cv_func_dlopen=no
9951 rm -f core conftest.err conftest.$ac_objext \
9952 conftest$ac_exeext conftest.$ac_ext
9954 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9955 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9956 if test $ac_cv_func_dlopen = yes; then
9957 lt_cv_dlopen="dlopen"
9959 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9960 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9961 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 ac_check_lib_save_LIBS=$LIBS
9966 cat >conftest.$ac_ext <<_ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9973 /* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (ac_try="$ac_link"
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_link") 2>conftest.er1
9997 grep -v '^ *+' conftest.er1 >conftest.err
9999 cat conftest.err >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10003 { (case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_try") 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; } &&
10012 { ac_try='test -s conftest$ac_exeext'
10013 { (case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_try") 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10022 ac_cv_lib_dl_dlopen=yes
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10027 ac_cv_lib_dl_dlopen=no
10030 rm -f core conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10034 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10036 if test $ac_cv_lib_dl_dlopen = yes; then
10037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10039 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10040 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10041 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 ac_check_lib_save_LIBS=$LIBS
10045 LIBS="-lsvld $LIBS"
10046 cat >conftest.$ac_ext <<_ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10053 /* Override any GCC internal prototype to avoid an error.
10054 Use char because int might match the return type of a GCC
10055 builtin and then its argument prototype would still apply. */
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (ac_try="$ac_link"
10070 case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>conftest.er1
10077 grep -v '^ *+' conftest.er1 >conftest.err
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10083 { (case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088 (eval "$ac_try") 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try='test -s conftest$ac_exeext'
10093 { (case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_try") 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_cv_lib_svld_dlopen=yes
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10107 ac_cv_lib_svld_dlopen=no
10110 rm -f core conftest.err conftest.$ac_objext \
10111 conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_lib_save_LIBS
10114 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10115 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10116 if test $ac_cv_lib_svld_dlopen = yes; then
10117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10119 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10120 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10121 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 ac_check_lib_save_LIBS=$LIBS
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10133 /* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10143 return dld_link ();
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_link") 2>conftest.er1
10157 grep -v '^ *+' conftest.er1 >conftest.err
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_try") 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 ac_cv_lib_dld_dld_link=yes
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_cv_lib_dld_dld_link=no
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10194 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10195 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10196 if test $ac_cv_lib_dld_dld_link = yes; then
10197 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10218 if test "x$lt_cv_dlopen" != xno; then
10224 case $lt_cv_dlopen in
10226 save_CPPFLAGS="$CPPFLAGS"
10227 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10229 save_LDFLAGS="$LDFLAGS"
10230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10233 LIBS="$lt_cv_dlopen_libs $LIBS"
10235 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10236 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10237 if test "${lt_cv_dlopen_self+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 if test "$cross_compiling" = yes; then :
10241 lt_cv_dlopen_self=cross
10243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10244 lt_status=$lt_dlunknown
10245 cat > conftest.$ac_ext <<EOF
10246 #line 10246 "configure"
10247 #include "confdefs.h"
10256 # define LT_DLGLOBAL RTLD_GLOBAL
10259 # define LT_DLGLOBAL DL_GLOBAL
10261 # define LT_DLGLOBAL 0
10265 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10266 find out it does not work in some platform. */
10267 #ifndef LT_DLLAZY_OR_NOW
10269 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10272 # define LT_DLLAZY_OR_NOW DL_LAZY
10275 # define LT_DLLAZY_OR_NOW RTLD_NOW
10278 # define LT_DLLAZY_OR_NOW DL_NOW
10280 # define LT_DLLAZY_OR_NOW 0
10288 extern "C" void exit (int);
10291 void fnord() { int i=42;}
10294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10295 int status = $lt_dlunknown;
10299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10300 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10301 /* dlclose (self); */
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10314 (./conftest; exit; ) >&5 2>/dev/null
10316 case x$lt_status in
10317 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10318 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10319 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10322 # compilation failed
10323 lt_cv_dlopen_self=no
10330 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10331 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10333 if test "x$lt_cv_dlopen_self" = xyes; then
10334 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10335 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10336 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10337 if test "${lt_cv_dlopen_self_static+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 if test "$cross_compiling" = yes; then :
10341 lt_cv_dlopen_self_static=cross
10343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10344 lt_status=$lt_dlunknown
10345 cat > conftest.$ac_ext <<EOF
10346 #line 10346 "configure"
10347 #include "confdefs.h"
10356 # define LT_DLGLOBAL RTLD_GLOBAL
10359 # define LT_DLGLOBAL DL_GLOBAL
10361 # define LT_DLGLOBAL 0
10365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10366 find out it does not work in some platform. */
10367 #ifndef LT_DLLAZY_OR_NOW
10369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10372 # define LT_DLLAZY_OR_NOW DL_LAZY
10375 # define LT_DLLAZY_OR_NOW RTLD_NOW
10378 # define LT_DLLAZY_OR_NOW DL_NOW
10380 # define LT_DLLAZY_OR_NOW 0
10388 extern "C" void exit (int);
10391 void fnord() { int i=42;}
10394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395 int status = $lt_dlunknown;
10399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10400 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401 /* dlclose (self); */
10409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10414 (./conftest; exit; ) >&5 2>/dev/null
10416 case x$lt_status in
10417 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10418 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10419 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10422 # compilation failed
10423 lt_cv_dlopen_self_static=no
10430 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10431 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10434 CPPFLAGS="$save_CPPFLAGS"
10435 LDFLAGS="$save_LDFLAGS"
10440 case $lt_cv_dlopen_self in
10441 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10442 *) enable_dlopen_self=unknown ;;
10445 case $lt_cv_dlopen_self_static in
10446 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10447 *) enable_dlopen_self_static=unknown ;;
10452 # Report which library types will actually be built
10453 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10454 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10455 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10456 echo "${ECHO_T}$can_build_shared" >&6; }
10458 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10459 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10460 test "$can_build_shared" = "no" && enable_shared=no
10462 # On AIX, shared libraries and static libraries use the same namespace, and
10463 # are all built from PIC.
10466 test "$enable_shared" = yes && enable_static=no
10467 if test -n "$RANLIB"; then
10468 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10469 postinstall_cmds='$RANLIB $lib'
10474 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10475 test "$enable_shared" = yes && enable_static=no
10479 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10480 echo "${ECHO_T}$enable_shared" >&6; }
10482 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10483 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10484 # Make sure either enable_shared or enable_static is yes.
10485 test "$enable_shared" = yes || enable_static=yes
10486 { echo "$as_me:$LINENO: result: $enable_static" >&5
10487 echo "${ECHO_T}$enable_static" >&6; }
10489 # The else clause should only fire when bootstrapping the
10490 # libtool distribution, otherwise you forgot to ship ltmain.sh
10491 # with your package, and you will get complaints that there are
10492 # no rules to generate ltmain.sh.
10493 if test -f "$ltmain"; then
10494 # See if we are running on zsh, and set the options which allow our commands through
10495 # without removal of \ escapes.
10496 if test -n "${ZSH_VERSION+set}" ; then
10497 setopt NO_GLOB_SUBST
10499 # Now quote all the things that may contain metacharacters while being
10500 # careful not to overquote the AC_SUBSTed values. We take copies of the
10501 # variables and quote the copies for generation of the libtool script.
10502 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10504 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10505 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10506 deplibs_check_method reload_flag reload_cmds need_locks \
10507 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10508 lt_cv_sys_global_symbol_to_c_name_address \
10509 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10510 old_postinstall_cmds old_postuninstall_cmds \
10514 lt_prog_compiler_wl \
10515 lt_prog_compiler_pic \
10516 lt_prog_compiler_static \
10517 lt_prog_compiler_no_builtin_flag \
10518 export_dynamic_flag_spec \
10519 thread_safe_flag_spec \
10520 whole_archive_flag_spec \
10521 enable_shared_with_static_runtimes \
10523 old_archive_from_new_cmds \
10528 compiler_lib_search_path \
10530 archive_expsym_cmds \
10532 postuninstall_cmds \
10533 old_archive_from_expsyms_cmds \
10534 allow_undefined_flag \
10535 no_undefined_flag \
10536 export_symbols_cmds \
10537 hardcode_libdir_flag_spec \
10538 hardcode_libdir_flag_spec_ld \
10539 hardcode_libdir_separator \
10540 hardcode_automatic \
10542 module_expsym_cmds \
10543 lt_cv_prog_compiler_c_o \
10546 include_expsyms; do
10549 old_archive_cmds | \
10550 old_archive_from_new_cmds | \
10552 archive_expsym_cmds | \
10554 module_expsym_cmds | \
10555 old_archive_from_expsyms_cmds | \
10556 export_symbols_cmds | \
10557 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10558 postinstall_cmds | postuninstall_cmds | \
10559 old_postinstall_cmds | old_postuninstall_cmds | \
10560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10561 # Double-quote double-evaled strings.
10562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10571 *'\$0 --fallback-echo"')
10572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10576 cfgfile="${ofile}T"
10577 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10579 { echo "$as_me:$LINENO: creating $ofile" >&5
10580 echo "$as_me: creating $ofile" >&6;}
10582 cat <<__EOF__ >> "$cfgfile"
10585 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10586 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10587 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10589 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10590 # Free Software Foundation, Inc.
10592 # This file is part of GNU Libtool:
10593 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10595 # This program is free software; you can redistribute it and/or modify
10596 # it under the terms of the GNU General Public License as published by
10597 # the Free Software Foundation; either version 2 of the License, or
10598 # (at your option) any later version.
10600 # This program is distributed in the hope that it will be useful, but
10601 # WITHOUT ANY WARRANTY; without even the implied warranty of
10602 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10603 # General Public License for more details.
10605 # You should have received a copy of the GNU General Public License
10606 # along with this program; if not, write to the Free Software
10607 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10609 # As a special exception to the GNU General Public License, if you
10610 # distribute this file as part of a program that contains a
10611 # configuration script generated by Autoconf, you may include it under
10612 # the same distribution terms that you use for the rest of that program.
10614 # A sed program that does not truncate output.
10617 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10618 Xsed="$SED -e 1s/^X//"
10620 # The HP-UX ksh and POSIX shell print the target directory to stdout
10621 # if CDPATH is set.
10622 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10624 # The names of the tagged configurations supported by this script.
10627 # ### BEGIN LIBTOOL CONFIG
10629 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10631 # Shell to use when invoking shell scripts.
10634 # Whether or not to build shared libraries.
10635 build_libtool_libs=$enable_shared
10637 # Whether or not to build static libraries.
10638 build_old_libs=$enable_static
10640 # Whether or not to add -lc for building shared libraries.
10641 build_libtool_need_lc=$archive_cmds_need_lc
10643 # Whether or not to disallow shared libs when runtime libs are static
10644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10646 # Whether or not to optimize for fast installation.
10647 fast_install=$enable_fast_install
10650 host_alias=$host_alias
10654 # The build system.
10655 build_alias=$build_alias
10659 # An echo program that does not interpret backslashes.
10664 AR_FLAGS=$lt_AR_FLAGS
10669 # LTCC compiler flags.
10670 LTCFLAGS=$lt_LTCFLAGS
10672 # A language-specific compiler.
10675 # Is the compiler the GNU C compiler?
10678 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10679 gcc_ver=\`gcc -dumpversion\`
10684 # The linker used to build libraries.
10687 # Whether we need hard or soft links.
10690 # A BSD-compatible nm program.
10693 # A symbol stripping program
10696 # Used to examine libraries when file_magic_cmd begins "file"
10697 MAGIC_CMD=$MAGIC_CMD
10699 # Used on cygwin: DLL creation program.
10702 # Used on cygwin: object dumper.
10705 # Used on cygwin: assembler.
10708 # The name of the directory that contains temporary libtool files.
10711 # How to create reloadable object files.
10712 reload_flag=$lt_reload_flag
10713 reload_cmds=$lt_reload_cmds
10715 # How to pass a linker flag through the compiler.
10716 wl=$lt_lt_prog_compiler_wl
10718 # Object file suffix (normally "o").
10719 objext="$ac_objext"
10721 # Old archive suffix (normally "a").
10724 # Shared library suffix (normally ".so").
10725 shrext_cmds='$shrext_cmds'
10727 # Executable file suffix (normally "").
10730 # Additional compiler flags for building library objects.
10731 pic_flag=$lt_lt_prog_compiler_pic
10734 # What is the maximum length of a command?
10735 max_cmd_len=$lt_cv_sys_max_cmd_len
10737 # Does compiler simultaneously support -c and -o options?
10738 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10740 # Must we lock files when doing compilation?
10741 need_locks=$lt_need_locks
10743 # Do we need the lib prefix for modules?
10744 need_lib_prefix=$need_lib_prefix
10746 # Do we need a version for libraries?
10747 need_version=$need_version
10749 # Whether dlopen is supported.
10750 dlopen_support=$enable_dlopen
10752 # Whether dlopen of programs is supported.
10753 dlopen_self=$enable_dlopen_self
10755 # Whether dlopen of statically linked programs is supported.
10756 dlopen_self_static=$enable_dlopen_self_static
10758 # Compiler flag to prevent dynamic linking.
10759 link_static_flag=$lt_lt_prog_compiler_static
10761 # Compiler flag to turn off builtin functions.
10762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10764 # Compiler flag to allow reflexive dlopens.
10765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10767 # Compiler flag to generate shared objects directly from archives.
10768 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10770 # Compiler flag to generate thread-safe objects.
10771 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10773 # Library versioning type.
10774 version_type=$version_type
10776 # Format of library name prefix.
10777 libname_spec=$lt_libname_spec
10779 # List of archive names. First name is the real one, the rest are links.
10780 # The last name is the one that the linker finds with -lNAME.
10781 library_names_spec=$lt_library_names_spec
10783 # The coded name of the library, if different from the real name.
10784 soname_spec=$lt_soname_spec
10786 # Commands used to build and install an old-style archive.
10788 old_archive_cmds=$lt_old_archive_cmds
10789 old_postinstall_cmds=$lt_old_postinstall_cmds
10790 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10792 # Create an old-style archive from a shared archive.
10793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10795 # Create a temporary old-style archive to link instead of a shared archive.
10796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10798 # Commands used to build and install a shared archive.
10799 archive_cmds=$lt_archive_cmds
10800 archive_expsym_cmds=$lt_archive_expsym_cmds
10801 postinstall_cmds=$lt_postinstall_cmds
10802 postuninstall_cmds=$lt_postuninstall_cmds
10804 # Commands used to build a loadable module (assumed same as above if empty)
10805 module_cmds=$lt_module_cmds
10806 module_expsym_cmds=$lt_module_expsym_cmds
10808 # Commands to strip libraries.
10809 old_striplib=$lt_old_striplib
10810 striplib=$lt_striplib
10812 # Dependencies to place before the objects being linked to create a
10814 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10816 # Dependencies to place after the objects being linked to create a
10818 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10820 # Dependencies to place before the objects being linked to create a
10822 predeps=$lt_predeps
10824 # Dependencies to place after the objects being linked to create a
10826 postdeps=$lt_postdeps
10828 # The library search path used internally by the compiler when linking
10829 # a shared library.
10830 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10832 # Method to check whether dependent libraries are shared objects.
10833 deplibs_check_method=$lt_deplibs_check_method
10835 # Command to use when deplibs_check_method == file_magic.
10836 file_magic_cmd=$lt_file_magic_cmd
10838 # Flag that allows shared libraries with undefined symbols to be built.
10839 allow_undefined_flag=$lt_allow_undefined_flag
10841 # Flag that forces no undefined symbols.
10842 no_undefined_flag=$lt_no_undefined_flag
10844 # Commands used to finish a libtool library installation in a directory.
10845 finish_cmds=$lt_finish_cmds
10847 # Same as above, but a single script fragment to be evaled but not shown.
10848 finish_eval=$lt_finish_eval
10850 # Take the output of nm and produce a listing of raw symbols and C names.
10851 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10853 # Transform the output of nm in a proper C declaration
10854 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10856 # Transform the output of nm in a C name address pair
10857 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10859 # This is the shared library runtime path variable.
10860 runpath_var=$runpath_var
10862 # This is the shared library path variable.
10863 shlibpath_var=$shlibpath_var
10865 # Is shlibpath searched before the hard-coded library search path?
10866 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10868 # How to hardcode a shared library path into an executable.
10869 hardcode_action=$hardcode_action
10871 # Whether we should hardcode library paths into libraries.
10872 hardcode_into_libs=$hardcode_into_libs
10874 # Flag to hardcode \$libdir into a binary during linking.
10875 # This must work even if \$libdir does not exist.
10876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10878 # If ld is used when linking, flag to hardcode \$libdir into
10879 # a binary during linking. This must work even if \$libdir does
10881 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10883 # Whether we need a single -rpath flag with a separated argument.
10884 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10886 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10887 # resulting binary.
10888 hardcode_direct=$hardcode_direct
10890 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10891 # resulting binary.
10892 hardcode_minus_L=$hardcode_minus_L
10894 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10895 # the resulting binary.
10896 hardcode_shlibpath_var=$hardcode_shlibpath_var
10898 # Set to yes if building a shared library automatically hardcodes DIR into the library
10899 # and all subsequent libraries and executables linked against it.
10900 hardcode_automatic=$hardcode_automatic
10902 # Variables whose values should be saved in libtool wrapper scripts and
10903 # restored at relink time.
10904 variables_saved_for_relink="$variables_saved_for_relink"
10906 # Whether libtool must link a program against all its dependency libraries.
10907 link_all_deplibs=$link_all_deplibs
10909 # Compile-time system search path for libraries
10910 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10912 # Run-time system search path for libraries
10913 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10915 # Fix the shell variable \$srcfile for the compiler.
10916 fix_srcfile_path=$lt_fix_srcfile_path
10918 # Set to yes if exported symbols are required.
10919 always_export_symbols=$always_export_symbols
10921 # The commands to list exported symbols.
10922 export_symbols_cmds=$lt_export_symbols_cmds
10924 # The commands to extract the exported symbol list from a shared archive.
10925 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10927 # Symbols that should not be listed in the preloaded symbols.
10928 exclude_expsyms=$lt_exclude_expsyms
10930 # Symbols that must always be exported.
10931 include_expsyms=$lt_include_expsyms
10933 # ### END LIBTOOL CONFIG
10940 cat <<\EOF >> "$cfgfile"
10942 # AIX sometimes has problems with the GCC collect2 program. For some
10943 # reason, if we set the COLLECT_NAMES environment variable, the problems
10944 # vanish in a puff of smoke.
10945 if test "X${COLLECT_NAMES+set}" != Xset; then
10947 export COLLECT_NAMES
10953 # We use sed instead of cat because bash on DJGPP gets confused if
10954 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10955 # text mode, it properly converts lines to CR/LF. This bash problem
10956 # is reportedly fixed, but why not run on old versions too?
10957 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10959 mv -f "$cfgfile" "$ofile" || \
10960 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10964 # If there is no Makefile yet, we rely on a make rule to execute
10965 # `config.status --recheck' to rerun these tests and create the
10966 # libtool script then.
10967 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10968 if test -f "$ltmain_in"; then
10969 test -f Makefile && make "$ltmain"
10975 ac_cpp='$CPP $CPPFLAGS'
10976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10983 # Check whether --with-tags was given.
10984 if test "${with_tags+set}" = set; then
10985 withval=$with_tags; tagnames="$withval"
10989 if test -f "$ltmain" && test -n "$tagnames"; then
10990 if test ! -f "${ofile}"; then
10991 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10992 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10995 if test -z "$LTCC"; then
10996 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10997 if test -z "$LTCC"; then
10998 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10999 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11001 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11002 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11005 if test -z "$LTCFLAGS"; then
11006 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11009 # Extract list of available tagged configurations in $ofile.
11010 # Note that this assumes the entire list is on one line.
11011 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11014 for tagname in $tagnames; do
11016 # Check whether tagname contains only valid characters
11017 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11019 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11020 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11021 { (exit 1); exit 1; }; }
11025 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11027 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11028 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11029 { (exit 1); exit 1; }; }
11032 # Update the list of available tags.
11033 if test -n "$tagname"; then
11034 echo appending configuration tag \"$tagname\" to $ofile
11038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11039 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11040 (test "X$CXX" != "Xg++"))) ; then
11042 ac_cpp='$CXXCPP $CPPFLAGS'
11043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11050 archive_cmds_need_lc_CXX=no
11051 allow_undefined_flag_CXX=
11052 always_export_symbols_CXX=no
11053 archive_expsym_cmds_CXX=
11054 export_dynamic_flag_spec_CXX=
11055 hardcode_direct_CXX=no
11056 hardcode_libdir_flag_spec_CXX=
11057 hardcode_libdir_flag_spec_ld_CXX=
11058 hardcode_libdir_separator_CXX=
11059 hardcode_minus_L_CXX=no
11060 hardcode_shlibpath_var_CXX=unsupported
11061 hardcode_automatic_CXX=no
11063 module_expsym_cmds_CXX=
11064 link_all_deplibs_CXX=unknown
11065 old_archive_cmds_CXX=$old_archive_cmds
11066 no_undefined_flag_CXX=
11067 whole_archive_flag_spec_CXX=
11068 enable_shared_with_static_runtimes_CXX=no
11070 # Dependencies to place before and after the object being linked:
11071 predep_objects_CXX=
11072 postdep_objects_CXX=
11075 compiler_lib_search_path_CXX=
11077 # Source file extension for C++ test sources.
11080 # Object file extension for compiled C++ test sources.
11084 # Code to be used in simple compile tests
11085 lt_simple_compile_test_code="int some_variable = 0;"
11087 # Code to be used in simple link tests
11088 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11092 # If no C compiler was specified, use CC.
11095 # If no C compiler flags were specified, use CFLAGS.
11096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11098 # Allow CC to be a program name with arguments.
11102 # save warnings/boilerplate of simple test code
11103 ac_outfile=conftest.$ac_objext
11104 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11105 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11106 _lt_compiler_boilerplate=`cat conftest.err`
11109 ac_outfile=conftest.$ac_objext
11110 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11111 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11112 _lt_linker_boilerplate=`cat conftest.err`
11116 # Allow CC to be a program name with arguments.
11121 lt_save_with_gnu_ld=$with_gnu_ld
11122 lt_save_path_LD=$lt_cv_path_LD
11123 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11124 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11126 $as_unset lt_cv_prog_gnu_ld
11128 if test -n "${lt_cv_path_LDCXX+set}"; then
11129 lt_cv_path_LD=$lt_cv_path_LDCXX
11131 $as_unset lt_cv_path_LD
11133 test -z "${LDCXX+set}" || LD=$LDCXX
11137 for cc_temp in $compiler""; do
11139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11145 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11148 # We don't want -fno-exception wen compiling C++ code, so set the
11149 # no_builtin_flag separately
11150 if test "$GXX" = yes; then
11151 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11153 lt_prog_compiler_no_builtin_flag_CXX=
11156 if test "$GXX" = yes; then
11157 # Set up default GNU C++ configuration
11160 # Check whether --with-gnu-ld was given.
11161 if test "${with_gnu_ld+set}" = set; then
11162 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11168 if test "$GCC" = yes; then
11169 # Check if gcc -print-prog-name=ld gives a path.
11170 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11171 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11174 # gcc leaves a trailing carriage return which upsets mingw
11175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11180 # Accept absolute paths.
11182 re_direlt='/[^/][^/]*/\.\./'
11183 # Canonicalize the pathname of ld
11184 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11185 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11186 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11188 test -z "$LD" && LD="$ac_prog"
11191 # If it fails, then pretend we aren't using GCC.
11195 # If it is relative, then search for the first ld in PATH.
11196 with_gnu_ld=unknown
11199 elif test "$with_gnu_ld" = yes; then
11200 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11201 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11203 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11204 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11206 if test "${lt_cv_path_LD+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 if test -z "$LD"; then
11210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11211 for ac_dir in $PATH; do
11213 test -z "$ac_dir" && ac_dir=.
11214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11215 lt_cv_path_LD="$ac_dir/$ac_prog"
11216 # Check to see if the program is GNU ld. I'd rather use --version,
11217 # but apparently some variants of GNU ld only accept -v.
11218 # Break only if it was the GNU/non-GNU ld that we prefer.
11219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11220 *GNU* | *'with BFD'*)
11221 test "$with_gnu_ld" != no && break
11224 test "$with_gnu_ld" != yes && break
11231 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11235 LD="$lt_cv_path_LD"
11236 if test -n "$LD"; then
11237 { echo "$as_me:$LINENO: result: $LD" >&5
11238 echo "${ECHO_T}$LD" >&6; }
11240 { echo "$as_me:$LINENO: result: no" >&5
11241 echo "${ECHO_T}no" >&6; }
11243 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11244 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11245 { (exit 1); exit 1; }; }
11246 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11247 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11248 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11252 case `$LD -v 2>&1 </dev/null` in
11253 *GNU* | *'with BFD'*)
11254 lt_cv_prog_gnu_ld=yes
11257 lt_cv_prog_gnu_ld=no
11261 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11262 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11263 with_gnu_ld=$lt_cv_prog_gnu_ld
11267 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11268 # archiving commands below assume that GNU ld is being used.
11269 if test "$with_gnu_ld" = yes; then
11270 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11271 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'
11273 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11274 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11276 # If archive_cmds runs LD, not CC, wlarc should be empty
11277 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11278 # investigate it a little bit more. (MM)
11281 # ancient GNU ld didn't support --whole-archive et. al.
11282 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11283 grep 'no-whole-archive' > /dev/null; then
11284 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11286 whole_archive_flag_spec_CXX=
11292 # A generic and very simple default shared library creation
11293 # command for GNU C++ for the case where it uses the native
11294 # linker, instead of GNU ld. If possible, this setting should
11295 # overridden to take advantage of the native linker features on
11296 # the platform it is being used on.
11297 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11300 # Commands to make compiler produce verbose output that lists
11301 # what "hidden" libraries, object files and flags are used when
11302 # linking a shared library.
11303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11311 # PORTME: fill in a description of your system's C++ link characteristics
11312 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11313 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11317 # FIXME: insert proper C++ library support
11321 if test "$host_cpu" = ia64; then
11322 # On IA64, the linker does run time linking by default, so we don't
11323 # have to do anything special.
11324 aix_use_runtimelinking=no
11325 exp_sym_flag='-Bexport'
11328 aix_use_runtimelinking=no
11330 # Test if we are trying to use run time linking or normal
11331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11332 # need to do runtime linking.
11333 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11334 for ld_flag in $LDFLAGS; do
11337 aix_use_runtimelinking=yes
11345 exp_sym_flag='-bexport'
11346 no_entry_flag='-bnoentry'
11349 # When large executables or shared objects are built, AIX ld can
11350 # have problems creating the table of contents. If linking a library
11351 # or program results in "error TOC overflow" add -mminimal-toc to
11352 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11353 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11355 archive_cmds_CXX=''
11356 hardcode_direct_CXX=yes
11357 hardcode_libdir_separator_CXX=':'
11358 link_all_deplibs_CXX=yes
11360 if test "$GXX" = yes; then
11361 case $host_os in aix4.[012]|aix4.[012].*)
11362 # We only want to do this on AIX 4.2 and lower, the check
11363 # below for broken collect2 doesn't work under 4.3+
11364 collect2name=`${CC} -print-prog-name=collect2`
11365 if test -f "$collect2name" && \
11366 strings "$collect2name" | grep resolve_lib_name >/dev/null
11368 # We have reworked collect2
11371 # We have old collect2
11372 hardcode_direct_CXX=unsupported
11373 # It fails to find uninstalled libraries when the uninstalled
11374 # path is not listed in the libpath. Setting hardcode_minus_L
11375 # to unsupported forces relinking
11376 hardcode_minus_L_CXX=yes
11377 hardcode_libdir_flag_spec_CXX='-L$libdir'
11378 hardcode_libdir_separator_CXX=
11382 shared_flag='-shared'
11383 if test "$aix_use_runtimelinking" = yes; then
11384 shared_flag="$shared_flag "'${wl}-G'
11388 if test "$host_cpu" = ia64; then
11389 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11390 # chokes on -Wl,-G. The following line is correct:
11393 if test "$aix_use_runtimelinking" = yes; then
11394 shared_flag='${wl}-G'
11396 shared_flag='${wl}-bM:SRE'
11401 # It seems that -bexpall does not export symbols beginning with
11402 # underscore (_), so it is better to generate a list of symbols to export.
11403 always_export_symbols_CXX=yes
11404 if test "$aix_use_runtimelinking" = yes; then
11405 # Warning - without using the other runtime loading flags (-brtl),
11406 # -berok will link without error, but may produce a broken library.
11407 allow_undefined_flag_CXX='-berok'
11408 # Determine the default libpath from the value encoded in an empty executable.
11409 cat >conftest.$ac_ext <<_ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (ac_try="$ac_link"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_link") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest$ac_exeext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11459 lt_aix_libpath_sed='
11460 /Import File Strings/,/^$/ {
11466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11467 # Check for a 64-bit object if we didn't find anything.
11468 if test -z "$aix_libpath"; then
11469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11482 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11484 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11486 if test "$host_cpu" = ia64; then
11487 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11488 allow_undefined_flag_CXX="-z nodefs"
11489 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"
11491 # Determine the default libpath from the value encoded in an empty executable.
11492 cat >conftest.$ac_ext <<_ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_link") 2>conftest.er1
11516 grep -v '^ *+' conftest.er1 >conftest.err
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11522 { (case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_try") 2>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; } &&
11531 { ac_try='test -s conftest$ac_exeext'
11532 { (case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_try") 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11542 lt_aix_libpath_sed='
11543 /Import File Strings/,/^$/ {
11549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11550 # Check for a 64-bit object if we didn't find anything.
11551 if test -z "$aix_libpath"; then
11552 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11561 rm -f core conftest.err conftest.$ac_objext \
11562 conftest$ac_exeext conftest.$ac_ext
11563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11565 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11566 # Warning - without using the other run time loading flags,
11567 # -berok will link without error, but may produce a broken library.
11568 no_undefined_flag_CXX=' ${wl}-bernotok'
11569 allow_undefined_flag_CXX=' ${wl}-berok'
11570 # Exported symbols can be pulled into shared objects from archives
11571 whole_archive_flag_spec_CXX='$convenience'
11572 archive_cmds_need_lc_CXX=yes
11573 # This is similar to how AIX traditionally builds its shared libraries.
11574 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'
11580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11581 allow_undefined_flag_CXX=unsupported
11582 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11583 # support --undefined. This deserves some investigation. FIXME
11584 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11591 case $cc_basename in
11593 # FIXME: insert proper C++ library support
11599 cygwin* | mingw* | pw32*)
11600 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11601 # as there is no search path for DLLs.
11602 hardcode_libdir_flag_spec_CXX='-L$libdir'
11603 allow_undefined_flag_CXX=unsupported
11604 always_export_symbols_CXX=no
11605 enable_shared_with_static_runtimes_CXX=yes
11607 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11608 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'
11609 # If the export-symbols file already is a .def file (1st line
11610 # is EXPORTS), use it as is; otherwise, prepend...
11611 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11612 cp $export_symbols $output_objdir/$soname.def;
11614 echo EXPORTS > $output_objdir/$soname.def;
11615 cat $export_symbols >> $output_objdir/$soname.def;
11617 $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'
11622 darwin* | rhapsody*)
11624 rhapsody* | darwin1.[012])
11625 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11628 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11629 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11631 case ${MACOSX_DEPLOYMENT_TARGET} in
11633 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11636 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11642 archive_cmds_need_lc_CXX=no
11643 hardcode_direct_CXX=no
11644 hardcode_automatic_CXX=yes
11645 hardcode_shlibpath_var_CXX=unsupported
11646 whole_archive_flag_spec_CXX=''
11647 link_all_deplibs_CXX=yes
11649 if test "$GXX" = yes ; then
11650 lt_int_apple_cc_single_mod=no
11651 output_verbose_link_cmd='echo'
11652 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11653 lt_int_apple_cc_single_mod=yes
11655 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11656 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11658 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'
11660 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11661 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11662 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11663 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11665 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11667 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11669 case $cc_basename in
11671 output_verbose_link_cmd='echo'
11672 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11673 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11674 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11675 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11676 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11686 case $cc_basename in
11688 # FIXME: insert proper C++ library support
11692 # Green Hills C++ Compiler
11693 # FIXME: insert proper C++ library support
11697 # FIXME: insert proper C++ library support
11703 # C++ shared libraries reported to be fairly broken before switch to ELF
11707 archive_cmds_need_lc_CXX=no
11709 freebsd* | dragonfly*)
11710 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11717 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11718 hardcode_libdir_separator_CXX=:
11719 export_dynamic_flag_spec_CXX='${wl}-E'
11720 hardcode_direct_CXX=yes
11721 hardcode_minus_L_CXX=yes # Not in the search PATH,
11722 # but as the default
11723 # location of the library.
11725 case $cc_basename in
11727 # FIXME: insert proper C++ library support
11731 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'
11732 # Commands to make compiler produce verbose output that lists
11733 # what "hidden" libraries, object files and flags are used when
11734 # linking a shared library.
11736 # There doesn't appear to be a way to prevent this compiler from
11737 # explicitly linking system object files so we need to strip them
11738 # from the output so that they don't get included in the library
11740 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; echo $list'
11743 if test "$GXX" = yes; then
11744 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'
11746 # FIXME: insert proper C++ library support
11753 if test $with_gnu_ld = no; then
11754 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11755 hardcode_libdir_separator_CXX=:
11760 export_dynamic_flag_spec_CXX='${wl}-E'
11766 hardcode_direct_CXX=no
11767 hardcode_shlibpath_var_CXX=no
11770 hardcode_direct_CXX=yes
11771 hardcode_minus_L_CXX=yes # Not in the search PATH,
11772 # but as the default
11773 # location of the library.
11777 case $cc_basename in
11779 # FIXME: insert proper C++ library support
11785 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11791 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11794 # Commands to make compiler produce verbose output that lists
11795 # what "hidden" libraries, object files and flags are used when
11796 # linking a shared library.
11798 # There doesn't appear to be a way to prevent this compiler from
11799 # explicitly linking system object files so we need to strip them
11800 # from the output so that they don't get included in the library
11802 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; echo $list'
11805 if test "$GXX" = yes; then
11806 if test $with_gnu_ld = no; then
11809 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11812 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11815 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'
11820 # FIXME: insert proper C++ library support
11827 hardcode_direct_CXX=no
11828 hardcode_shlibpath_var_CXX=no
11829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11830 export_dynamic_flag_spec_CXX='${wl}-E'
11831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11832 # Instead, shared libraries are loaded at an image base (0x10000000 by
11833 # default) and relocated if they conflict, which is a slow very memory
11834 # consuming and fragmenting process. To avoid this, we pick a random,
11835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11837 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'
11838 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'
11841 case $cc_basename in
11844 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11846 # Archives containing C++ object files must be created using
11847 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11848 # necessary to make sure instantiated templates are included
11850 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11853 if test "$GXX" = yes; then
11854 if test "$with_gnu_ld" = no; then
11855 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11857 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11860 link_all_deplibs_CXX=yes
11863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11864 hardcode_libdir_separator_CXX=:
11866 linux* | k*bsd*-gnu)
11867 case $cc_basename in
11869 # Kuck and Associates, Inc. (KAI) C++ Compiler
11871 # KCC will only create a shared library if the output file
11872 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11873 # to its proper name (with version) after linking.
11874 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'
11875 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'
11876 # Commands to make compiler produce verbose output that lists
11877 # what "hidden" libraries, object files and flags are used when
11878 # linking a shared library.
11880 # There doesn't appear to be a way to prevent this compiler from
11881 # explicitly linking system object files so we need to strip them
11882 # from the output so that they don't get included in the library
11884 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; echo $list'
11886 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11887 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11889 # Archives containing C++ object files must be created using
11890 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11891 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11896 # version 8.0 and above of icpc choke on multiply defined symbols
11897 # if we add $predep_objects and $postdep_objects, however 7.1 and
11898 # earlier do not add the objects themselves.
11899 case `$CC -V 2>&1` in
11901 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11902 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'
11904 *) # Version 8.0 or newer
11907 ia64*) tmp_idyn=' -i_dynamic';;
11909 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11910 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'
11913 archive_cmds_need_lc_CXX=no
11914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11915 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11916 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11919 # Portland Group C++ compiler
11920 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11921 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'
11923 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11925 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11929 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11930 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'
11932 runpath_var=LD_RUN_PATH
11933 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11934 hardcode_libdir_separator_CXX=:
11936 # Commands to make compiler produce verbose output that lists
11937 # what "hidden" libraries, object files and flags are used when
11938 # linking a shared library.
11940 # There doesn't appear to be a way to prevent this compiler from
11941 # explicitly linking system object files so we need to strip them
11942 # from the output so that they don't get included in the library
11944 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11947 case `$CC -V 2>&1 | sed 5q` in
11950 no_undefined_flag_CXX=' -zdefs'
11951 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11952 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'
11953 hardcode_libdir_flag_spec_CXX='-R$libdir'
11954 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11956 # Not sure whether something based on
11957 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11959 output_verbose_link_cmd='echo'
11961 # Archives containing C++ object files must be created using
11962 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11963 # necessary to make sure instantiated templates are included
11965 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11972 # FIXME: insert proper C++ library support
11976 # FIXME: insert proper C++ library support
11980 case $cc_basename in
11982 # FIXME: insert proper C++ library support
11986 # FIXME: insert proper C++ library support
11992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11993 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11995 hardcode_libdir_flag_spec_CXX='-R$libdir'
11996 hardcode_direct_CXX=yes
11997 hardcode_shlibpath_var_CXX=no
11999 # Workaround some broken pre-1.5 toolchains
12000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12003 # C++ shared libraries are fairly broken
12007 if test -f /usr/libexec/ld.so; then
12008 hardcode_direct_CXX=yes
12009 hardcode_shlibpath_var_CXX=no
12010 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12011 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12013 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12014 export_dynamic_flag_spec_CXX='${wl}-E'
12015 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12017 output_verbose_link_cmd='echo'
12023 case $cc_basename in
12025 # Kuck and Associates, Inc. (KAI) C++ Compiler
12027 # KCC will only create a shared library if the output file
12028 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12029 # to its proper name (with version) after linking.
12030 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'
12032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12033 hardcode_libdir_separator_CXX=:
12035 # Archives containing C++ object files must be created using
12036 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12037 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12041 # Rational C++ 2.4.1
12042 # FIXME: insert proper C++ library support
12046 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12047 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12050 hardcode_libdir_separator_CXX=:
12052 # Commands to make compiler produce verbose output that lists
12053 # what "hidden" libraries, object files and flags are used when
12054 # linking a shared library.
12056 # There doesn't appear to be a way to prevent this compiler from
12057 # explicitly linking system object files so we need to strip them
12058 # from the output so that they don't get included in the library
12060 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12063 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12064 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12065 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12068 hardcode_libdir_separator_CXX=:
12070 # Commands to make compiler produce verbose output that lists
12071 # what "hidden" libraries, object files and flags are used when
12072 # linking a shared library.
12073 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12076 # FIXME: insert proper C++ library support
12083 case $cc_basename in
12085 # Kuck and Associates, Inc. (KAI) C++ Compiler
12087 # KCC will only create a shared library if the output file
12088 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12089 # to its proper name (with version) after linking.
12090 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'
12092 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12093 hardcode_libdir_separator_CXX=:
12095 # Archives containing C++ object files must be created using
12096 # the KAI C++ compiler.
12097 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12100 # Rational C++ 2.4.1
12101 # FIXME: insert proper C++ library support
12105 allow_undefined_flag_CXX=' -expect_unresolved \*'
12106 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12107 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12108 echo "-hidden">> $lib.exp~
12109 $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~
12112 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12113 hardcode_libdir_separator_CXX=:
12115 # Commands to make compiler produce verbose output that lists
12116 # what "hidden" libraries, object files and flags are used when
12117 # linking a shared library.
12119 # There doesn't appear to be a way to prevent this compiler from
12120 # explicitly linking system object files so we need to strip them
12121 # from the output so that they don't get included in the library
12123 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12126 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12127 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12128 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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12130 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12131 hardcode_libdir_separator_CXX=:
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12139 # FIXME: insert proper C++ library support
12146 # FIXME: insert proper C++ library support
12150 case $cc_basename in
12153 # FIXME: insert proper C++ library support
12158 # FIXME: insert proper C++ library support
12162 # FIXME: insert proper C++ library support
12168 case $cc_basename in
12170 # Sun C++ 4.2, 5.x and Centerline C++
12171 archive_cmds_need_lc_CXX=yes
12172 no_undefined_flag_CXX=' -zdefs'
12173 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12174 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12175 $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'
12177 hardcode_libdir_flag_spec_CXX='-R$libdir'
12178 hardcode_shlibpath_var_CXX=no
12180 solaris2.[0-5] | solaris2.[0-5].*) ;;
12182 # The compiler driver will combine and reorder linker options,
12183 # but understands `-z linker_flag'.
12184 # Supported since Solaris 2.6 (maybe 2.5.1?)
12185 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12188 link_all_deplibs_CXX=yes
12190 output_verbose_link_cmd='echo'
12192 # Archives containing C++ object files must be created using
12193 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12194 # necessary to make sure instantiated templates are included
12196 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12199 # Green Hills C++ Compiler
12200 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12202 # The C++ compiler must be used to create the archive.
12203 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12206 # GNU C++ compiler with Solaris linker
12207 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12208 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12209 if $CC --version | grep -v '^2\.7' > /dev/null; then
12210 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12211 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12212 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12214 # Commands to make compiler produce verbose output that lists
12215 # what "hidden" libraries, object files and flags are used when
12216 # linking a shared library.
12217 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12219 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12221 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12222 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12223 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12225 # Commands to make compiler produce verbose output that lists
12226 # what "hidden" libraries, object files and flags are used when
12227 # linking a shared library.
12228 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12231 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12233 solaris2.[0-5] | solaris2.[0-5].*) ;;
12235 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12242 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12243 no_undefined_flag_CXX='${wl}-z,text'
12244 archive_cmds_need_lc_CXX=no
12245 hardcode_shlibpath_var_CXX=no
12246 runpath_var='LD_RUN_PATH'
12248 case $cc_basename in
12250 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12251 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12254 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12255 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12259 sysv5* | sco3.2v5* | sco5v6*)
12260 # Note: We can NOT use -z defs as we might desire, because we do not
12261 # link with -lc, and that would cause any symbols used from libc to
12262 # always be unresolved, which means just about no library would
12263 # ever link correctly. If we're not using GNU ld we use -z text
12264 # though, which does catch some bad symbols but isn't as heavy-handed
12266 # For security reasons, it is highly recommended that you always
12267 # use absolute paths for naming shared libraries, and exclude the
12268 # DT_RUNPATH tag from executables and libraries. But doing so
12269 # requires that you compile everything twice, which is a pain.
12270 # So that behaviour is only enabled if SCOABSPATH is set to a
12271 # non-empty value in the environment. Most likely only useful for
12272 # creating official distributions of packages.
12273 # This is a hack until libtool officially supports absolute path
12274 # names for shared libraries.
12275 no_undefined_flag_CXX='${wl}-z,text'
12276 allow_undefined_flag_CXX='${wl}-z,nodefs'
12277 archive_cmds_need_lc_CXX=no
12278 hardcode_shlibpath_var_CXX=no
12279 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12280 hardcode_libdir_separator_CXX=':'
12281 link_all_deplibs_CXX=yes
12282 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12283 runpath_var='LD_RUN_PATH'
12285 case $cc_basename in
12287 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12291 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12292 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12297 case $cc_basename in
12299 # NonStop-UX NCC 3.20
12300 # FIXME: insert proper C++ library support
12304 # FIXME: insert proper C++ library support
12310 # FIXME: insert proper C++ library support
12314 # FIXME: insert proper C++ library support
12318 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12319 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12320 test "$ld_shlibs_CXX" = no && can_build_shared=no
12326 cat > conftest.$ac_ext <<EOF
12330 Foo (void) { a = 0; }
12336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337 (eval $ac_compile) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; then
12341 # Parse the compiler output and extract the necessary
12342 # objects, libraries and library flags.
12344 # Sentinel used to keep track of whether or not we are before
12345 # the conftest object file.
12346 pre_test_object_deps_done=no
12348 # The `*' in the case matches for architectures that use `case' in
12349 # $output_verbose_cmd can trigger glob expansion during the loop
12350 # eval without this substitution.
12351 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12353 for p in `eval $output_verbose_link_cmd`; do
12357 # Some compilers place space between "-{L,R}" and the path.
12358 # Remove the space.
12359 if test $p = "-L" \
12360 || test $p = "-R"; then
12367 if test "$pre_test_object_deps_done" = no; then
12370 # Internal compiler library paths should come after those
12371 # provided the user. The postdeps already come after the
12372 # user supplied libs so there is no need to process them.
12373 if test -z "$compiler_lib_search_path_CXX"; then
12374 compiler_lib_search_path_CXX="${prev}${p}"
12376 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12379 # The "-l" case would never come before the object being
12380 # linked, so don't bother handling this case.
12383 if test -z "$postdeps_CXX"; then
12384 postdeps_CXX="${prev}${p}"
12386 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12392 # This assumes that the test object file only shows up
12393 # once in the compiler output.
12394 if test "$p" = "conftest.$objext"; then
12395 pre_test_object_deps_done=yes
12399 if test "$pre_test_object_deps_done" = no; then
12400 if test -z "$predep_objects_CXX"; then
12401 predep_objects_CXX="$p"
12403 predep_objects_CXX="$predep_objects_CXX $p"
12406 if test -z "$postdep_objects_CXX"; then
12407 postdep_objects_CXX="$p"
12409 postdep_objects_CXX="$postdep_objects_CXX $p"
12414 *) ;; # Ignore the rest.
12422 echo "libtool.m4: error: problem compiling CXX test program"
12425 $rm -f confest.$objext
12427 # PORTME: override above test on systems where it is broken
12430 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12431 # hack all around it, let's just trust "g++" to DTRT.
12432 predep_objects_CXX=
12433 postdep_objects_CXX=
12438 case `$CC -V 2>&1 | sed 5q` in
12442 # The more standards-conforming stlport4 library is
12443 # incompatible with the Cstd library. Avoid specifying
12444 # it if it's in CXXFLAGS. Ignore libCrun as
12445 # -library=stlport4 depends on it.
12446 case " $CXX $CXXFLAGS " in
12447 *" -library=stlport4 "*)
12448 solaris_use_stlport4=yes
12451 if test "$solaris_use_stlport4" != yes; then
12452 postdeps_CXX='-library=Cstd -library=Crun'
12459 case $cc_basename in
12461 # The more standards-conforming stlport4 library is
12462 # incompatible with the Cstd library. Avoid specifying
12463 # it if it's in CXXFLAGS. Ignore libCrun as
12464 # -library=stlport4 depends on it.
12465 case " $CXX $CXXFLAGS " in
12466 *" -library=stlport4 "*)
12467 solaris_use_stlport4=yes
12471 # Adding this requires a known-good setup of shared libraries for
12472 # Sun compiler versions before 5.6, else PIC objects from an old
12473 # archive will be linked into the output, leading to subtle bugs.
12474 if test "$solaris_use_stlport4" != yes; then
12475 postdeps_CXX='-library=Cstd -library=Crun'
12483 case " $postdeps_CXX " in
12484 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12487 lt_prog_compiler_wl_CXX=
12488 lt_prog_compiler_pic_CXX=
12489 lt_prog_compiler_static_CXX=
12491 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12492 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12494 # C++ specific cases for pic, static, wl, etc.
12495 if test "$GXX" = yes; then
12496 lt_prog_compiler_wl_CXX='-Wl,'
12497 lt_prog_compiler_static_CXX='-static'
12501 # All AIX code is PIC.
12502 if test "$host_cpu" = ia64; then
12503 # AIX 5 now supports IA64 processor
12504 lt_prog_compiler_static_CXX='-Bstatic'
12508 # FIXME: we need at least 68020 code to build shared libraries, but
12509 # adding the `-m68020' flag to GCC prevents building anything better,
12511 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12513 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12514 # PIC is the default for these OSes.
12516 mingw* | cygwin* | os2* | pw32*)
12517 # This hack is so that the source file can tell whether it is being
12518 # built for inclusion in a dll (and should export symbols for example).
12519 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12520 # (--disable-auto-import) libraries
12521 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12523 darwin* | rhapsody*)
12524 # PIC is the default on this platform
12525 # Common symbols not allowed in MH_DYLIB files
12526 lt_prog_compiler_pic_CXX='-fno-common'
12529 # DJGPP does not support shared libraries at all
12530 lt_prog_compiler_pic_CXX=
12533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12534 # Instead, we relocate shared libraries at runtime.
12537 if test -d /usr/nec; then
12538 lt_prog_compiler_pic_CXX=-Kconform_pic
12542 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12543 # not for PA HP-UX.
12548 lt_prog_compiler_pic_CXX='-fPIC'
12553 lt_prog_compiler_pic_CXX='-fPIC'
12559 # All AIX code is PIC.
12560 if test "$host_cpu" = ia64; then
12561 # AIX 5 now supports IA64 processor
12562 lt_prog_compiler_static_CXX='-Bstatic'
12564 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12568 case $cc_basename in
12570 # Green Hills C++ Compiler
12571 # _LT_AC_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"
12576 # PIC is the default on this platform
12577 # Common symbols not allowed in MH_DYLIB files
12578 case $cc_basename in
12580 lt_prog_compiler_pic_CXX='-qnocommon'
12581 lt_prog_compiler_wl_CXX='-Wl,'
12586 case $cc_basename in
12588 lt_prog_compiler_pic_CXX='-KPIC'
12591 # Green Hills C++ Compiler
12592 lt_prog_compiler_pic_CXX='-pic'
12598 freebsd* | dragonfly*)
12599 # FreeBSD uses GNU C++
12601 hpux9* | hpux10* | hpux11*)
12602 case $cc_basename in
12604 lt_prog_compiler_wl_CXX='-Wl,'
12605 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12606 if test "$host_cpu" != ia64; then
12607 lt_prog_compiler_pic_CXX='+Z'
12611 lt_prog_compiler_wl_CXX='-Wl,'
12612 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12618 lt_prog_compiler_pic_CXX='+Z'
12627 # This is c89, which is MS Visual C++ (no shared libs)
12628 # Anyone wants to do a port?
12630 irix5* | irix6* | nonstopux*)
12631 case $cc_basename in
12633 lt_prog_compiler_wl_CXX='-Wl,'
12634 lt_prog_compiler_static_CXX='-non_shared'
12635 # CC pic flag -KPIC is the default.
12641 linux* | k*bsd*-gnu)
12642 case $cc_basename in
12645 lt_prog_compiler_wl_CXX='--backend -Wl,'
12646 lt_prog_compiler_pic_CXX='-fPIC'
12650 lt_prog_compiler_wl_CXX='-Wl,'
12651 lt_prog_compiler_pic_CXX='-KPIC'
12652 lt_prog_compiler_static_CXX='-static'
12655 # Portland Group C++ compiler.
12656 lt_prog_compiler_wl_CXX='-Wl,'
12657 lt_prog_compiler_pic_CXX='-fpic'
12658 lt_prog_compiler_static_CXX='-Bstatic'
12662 # Make sure the PIC flag is empty. It appears that all Alpha
12663 # Linux and Compaq Tru64 Unix objects are PIC.
12664 lt_prog_compiler_pic_CXX=
12665 lt_prog_compiler_static_CXX='-non_shared'
12668 case `$CC -V 2>&1 | sed 5q` in
12671 lt_prog_compiler_pic_CXX='-KPIC'
12672 lt_prog_compiler_static_CXX='-Bstatic'
12673 lt_prog_compiler_wl_CXX='-Qoption ld '
12684 case $cc_basename in
12686 lt_prog_compiler_pic_CXX='-W c,exportall'
12694 osf3* | osf4* | osf5*)
12695 case $cc_basename in
12697 lt_prog_compiler_wl_CXX='--backend -Wl,'
12700 # Rational C++ 2.4.1
12701 lt_prog_compiler_pic_CXX='-pic'
12704 # Digital/Compaq C++
12705 lt_prog_compiler_wl_CXX='-Wl,'
12706 # Make sure the PIC flag is empty. It appears that all Alpha
12707 # Linux and Compaq Tru64 Unix objects are PIC.
12708 lt_prog_compiler_pic_CXX=
12709 lt_prog_compiler_static_CXX='-non_shared'
12718 case $cc_basename in
12720 # Sun C++ 4.2, 5.x and Centerline C++
12721 lt_prog_compiler_pic_CXX='-KPIC'
12722 lt_prog_compiler_static_CXX='-Bstatic'
12723 lt_prog_compiler_wl_CXX='-Qoption ld '
12726 # Green Hills C++ Compiler
12727 lt_prog_compiler_pic_CXX='-PIC'
12734 case $cc_basename in
12737 lt_prog_compiler_pic_CXX='-pic'
12738 lt_prog_compiler_static_CXX='-Bstatic'
12742 lt_prog_compiler_pic_CXX='-pic'
12749 case $cc_basename in
12751 # NonStop-UX NCC 3.20
12752 lt_prog_compiler_pic_CXX='-KPIC'
12758 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12759 case $cc_basename in
12761 lt_prog_compiler_wl_CXX='-Wl,'
12762 lt_prog_compiler_pic_CXX='-KPIC'
12763 lt_prog_compiler_static_CXX='-Bstatic'
12770 lt_prog_compiler_can_build_shared_CXX=no
12775 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12776 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12779 # Check to make sure the PIC flag actually works.
12781 if test -n "$lt_prog_compiler_pic_CXX"; then
12783 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12784 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12785 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 lt_prog_compiler_pic_works_CXX=no
12789 ac_outfile=conftest.$ac_objext
12790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12791 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12792 # Insert the option either (1) after the last *FLAGS variable, or
12793 # (2) before a word containing "conftest.", or (3) at the end.
12794 # Note that $ac_compile itself does not contain backslashes and begins
12795 # with a dollar sign (not a hyphen), so the echo should work correctly.
12796 # The option is referenced via a variable to avoid confusing sed.
12797 lt_compile=`echo "$ac_compile" | $SED \
12798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12800 -e 's:$: $lt_compiler_flag:'`
12801 (eval echo "\"\$as_me:12801: $lt_compile\"" >&5)
12802 (eval "$lt_compile" 2>conftest.err)
12804 cat conftest.err >&5
12805 echo "$as_me:12805: \$? = $ac_status" >&5
12806 if (exit $ac_status) && test -s "$ac_outfile"; then
12807 # The compiler can only warn and ignore the option if not recognized
12808 # So say no if there are warnings other than the usual output.
12809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12812 lt_prog_compiler_pic_works_CXX=yes
12818 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12819 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12821 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12822 case $lt_prog_compiler_pic_CXX in
12824 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12827 lt_prog_compiler_pic_CXX=
12828 lt_prog_compiler_can_build_shared_CXX=no
12833 # For platforms which do not support PIC, -DPIC is meaningless:
12835 lt_prog_compiler_pic_CXX=
12838 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12843 # Check to make sure the static flag actually works.
12845 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12846 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12847 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12848 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 lt_prog_compiler_static_works_CXX=no
12852 save_LDFLAGS="$LDFLAGS"
12853 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12854 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12855 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12856 # The linker can only warn and ignore the option if not recognized
12857 # So say no if there are warnings
12858 if test -s conftest.err; then
12859 # Append any errors to the config.log.
12860 cat conftest.err 1>&5
12861 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12863 if diff conftest.exp conftest.er2 >/dev/null; then
12864 lt_prog_compiler_static_works_CXX=yes
12867 lt_prog_compiler_static_works_CXX=yes
12871 LDFLAGS="$save_LDFLAGS"
12874 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12875 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12877 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12880 lt_prog_compiler_static_CXX=
12884 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12886 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 lt_cv_prog_compiler_c_o_CXX=no
12890 $rm -r conftest 2>/dev/null
12894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12896 lt_compiler_flag="-o out/conftest2.$ac_objext"
12897 # Insert the option either (1) after the last *FLAGS variable, or
12898 # (2) before a word containing "conftest.", or (3) at the end.
12899 # Note that $ac_compile itself does not contain backslashes and begins
12900 # with a dollar sign (not a hyphen), so the echo should work correctly.
12901 lt_compile=`echo "$ac_compile" | $SED \
12902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12904 -e 's:$: $lt_compiler_flag:'`
12905 (eval echo "\"\$as_me:12905: $lt_compile\"" >&5)
12906 (eval "$lt_compile" 2>out/conftest.err)
12908 cat out/conftest.err >&5
12909 echo "$as_me:12909: \$? = $ac_status" >&5
12910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12912 # The compiler can only warn and ignore the option if not recognized
12913 # So say no if there are warnings
12914 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12917 lt_cv_prog_compiler_c_o_CXX=yes
12922 # SGI C++ compiler will create directory out/ii_files/ for
12923 # template instantiation
12924 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12925 $rm out/* && rmdir out
12931 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12932 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12935 hard_links="nottested"
12936 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12937 # do not overwrite the value of need_locks provided by the user
12938 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12939 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12944 ln conftest.a conftest.b 2>&5 || hard_links=no
12945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12946 { echo "$as_me:$LINENO: result: $hard_links" >&5
12947 echo "${ECHO_T}$hard_links" >&6; }
12948 if test "$hard_links" = no; then
12949 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12950 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12957 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12958 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12960 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12963 # If we're using GNU nm, then we don't want the "-C" option.
12964 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12965 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12966 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12968 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'
12972 export_symbols_cmds_CXX="$ltdll_cmds"
12975 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'
12978 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12982 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12983 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12984 test "$ld_shlibs_CXX" = no && can_build_shared=no
12987 # Do we need to explicitly link libc?
12989 case "x$archive_cmds_need_lc_CXX" in
12991 # Assume -lc should be added
12992 archive_cmds_need_lc_CXX=yes
12994 if test "$enable_shared" = yes && test "$GCC" = yes; then
12995 case $archive_cmds_CXX in
12997 # FIXME: we may have to deal with multi-command sequences.
13000 # Test whether the compiler implicitly links with -lc since on some
13001 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13002 # to ld, don't add -lc before -lgcc.
13003 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13004 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009 (eval $ac_compile) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } 2>conftest.err; then
13015 libobjs=conftest.$ac_objext
13017 wl=$lt_prog_compiler_wl_CXX
13018 pic_flag=$lt_prog_compiler_pic_CXX
13024 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13025 allow_undefined_flag_CXX=
13026 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13027 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }
13032 archive_cmds_need_lc_CXX=no
13034 archive_cmds_need_lc_CXX=yes
13036 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13038 cat conftest.err 1>&5
13041 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13042 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13049 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13050 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13051 library_names_spec=
13052 libname_spec='lib$name'
13056 postuninstall_cmds=
13060 shlibpath_overrides_runpath=unknown
13062 dynamic_linker="$host_os ld.so"
13063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13065 need_lib_prefix=unknown
13066 hardcode_into_libs=no
13068 # when you set need_version to no, make sure it does not cause -set_version
13069 # flags to be left without arguments
13070 need_version=unknown
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13076 shlibpath_var=LIBPATH
13078 # AIX 3 has no versioning support, so we append a major version to the name.
13079 soname_spec='${libname}${release}${shared_ext}$major'
13086 hardcode_into_libs=yes
13087 if test "$host_cpu" = ia64; then
13088 # AIX 5 supports IA64
13089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13090 shlibpath_var=LD_LIBRARY_PATH
13092 # With GCC up to 2.95.x, collect2 would create an import file
13093 # for dependence libraries. The import file would start with
13094 # the line `#! .'. This would cause the generated library to
13095 # depend on `.', always an invalid library. This was fixed in
13096 # development snapshots of GCC prior to 3.0.
13098 aix4 | aix4.[01] | aix4.[01].*)
13099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13101 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13104 can_build_shared=no
13108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13109 # soname into executable. Probably we can add versioning support to
13110 # collect2, so additional links can be useful in future.
13111 if test "$aix_use_runtimelinking" = yes; then
13112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13113 # instead of lib<name>.a to let people know that these are not
13114 # typical AIX shared libraries.
13115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13117 # We preserve .a as extension for shared libraries through AIX4.2
13118 # and later when we are not doing run time linking.
13119 library_names_spec='${libname}${release}.a $libname.a'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13122 shlibpath_var=LIBPATH
13127 library_names_spec='$libname.ixlibrary $libname.a'
13128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13129 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
13133 library_names_spec='${libname}${shared_ext}'
13134 dynamic_linker="$host_os ld.so"
13135 shlibpath_var=LIBRARY_PATH
13141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13142 soname_spec='${libname}${release}${shared_ext}$major'
13143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13144 shlibpath_var=LD_LIBRARY_PATH
13145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13147 # the default ld.so.conf also contains /usr/contrib/lib and
13148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13149 # libtool to hard-code these into programs
13152 cygwin* | mingw* | pw32*)
13153 version_type=windows
13158 case $GCC,$host_os in
13159 yes,cygwin* | yes,mingw* | yes,pw32*)
13160 library_names_spec='$libname.dll.a'
13161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13162 postinstall_cmds='base_file=`basename \${file}`~
13163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13164 dldir=$destdir/`dirname \$dlpath`~
13165 test -d \$dldir || mkdir -p \$dldir~
13166 $install_prog $dir/$dlname \$dldir/$dlname~
13167 chmod a+x \$dldir/$dlname'
13168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13169 dlpath=$dir/\$dldll~
13171 shlibpath_overrides_runpath=yes
13175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13177 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13180 # MinGW DLLs use traditional 'lib' prefix
13181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13183 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13184 # It is most probably a Windows format PATH printed by
13185 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13186 # path with ; separators, and with drive letters. We can handle the
13187 # drive letters (cygwin fileutils understands them), so leave them,
13188 # especially as we might pass files found there to a mingw objdump,
13189 # which wouldn't understand a cygwinified path. Ahh.
13190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13196 # pw32 DLLs use 'pw' prefix rather than 'lib'
13197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13206 dynamic_linker='Win32 ld.exe'
13207 # FIXME: first we should search . and the directory the executable is in
13211 darwin* | rhapsody*)
13212 dynamic_linker="$host_os dyld"
13213 version_type=darwin
13216 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13217 soname_spec='${libname}${release}${major}$shared_ext'
13218 shlibpath_overrides_runpath=yes
13219 shlibpath_var=DYLD_LIBRARY_PATH
13220 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13222 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13230 soname_spec='${libname}${release}${shared_ext}$major'
13231 shlibpath_var=LD_LIBRARY_PATH
13238 freebsd* | dragonfly*)
13239 # DragonFly does not have aout. When/if they implement a new
13240 # versioning mechanism, adjust this.
13241 if test -x /usr/bin/objformat; then
13242 objformat=`/usr/bin/objformat`
13245 freebsd[123]*) objformat=aout ;;
13246 *) objformat=elf ;;
13249 version_type=freebsd-$objformat
13250 case $version_type in
13252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13261 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=yes
13266 freebsd3.[01]* | freebsdelf3.[01]*)
13267 shlibpath_overrides_runpath=yes
13268 hardcode_into_libs=yes
13270 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13271 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13272 shlibpath_overrides_runpath=no
13273 hardcode_into_libs=yes
13275 *) # from 4.6 on, and DragonFly
13276 shlibpath_overrides_runpath=yes
13277 hardcode_into_libs=yes
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13287 soname_spec='${libname}${release}${shared_ext}$major'
13288 shlibpath_var=LD_LIBRARY_PATH
13289 hardcode_into_libs=yes
13292 hpux9* | hpux10* | hpux11*)
13293 # Give a soname corresponding to the major version so that dld.sl refuses to
13294 # link against other versions.
13301 hardcode_into_libs=yes
13302 dynamic_linker="$host_os dld.so"
13303 shlibpath_var=LD_LIBRARY_PATH
13304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306 soname_spec='${libname}${release}${shared_ext}$major'
13307 if test "X$HPUX_IA64_MODE" = X32; then
13308 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13316 hardcode_into_libs=yes
13317 dynamic_linker="$host_os dld.sl"
13318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13321 soname_spec='${libname}${release}${shared_ext}$major'
13322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13327 dynamic_linker="$host_os dld.sl"
13328 shlibpath_var=SHLIB_PATH
13329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13334 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13335 postinstall_cmds='chmod 555 $lib'
13342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13343 soname_spec='${libname}${release}${shared_ext}$major'
13344 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13345 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=no
13347 hardcode_into_libs=yes
13350 irix5* | irix6* | nonstopux*)
13352 nonstopux*) version_type=nonstopux ;;
13354 if test "$lt_cv_prog_gnu_ld" = yes; then
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13365 irix5* | nonstopux*)
13366 libsuff= shlibsuff=
13369 case $LD in # libtool.m4 will add one of these switches to LD
13370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13371 libsuff= shlibsuff= libmagic=32-bit;;
13372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13373 libsuff=32 shlibsuff=N32 libmagic=N32;;
13374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13376 *) libsuff= shlibsuff= libmagic=never-match;;
13380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13381 shlibpath_overrides_runpath=no
13382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13384 hardcode_into_libs=yes
13387 # No shared lib support for Linux oldld, aout, or coff.
13388 linux*oldld* | linux*aout* | linux*coff*)
13392 # This must be Linux ELF.
13393 linux* | k*bsd*-gnu)
13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398 soname_spec='${libname}${release}${shared_ext}$major'
13399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 shlibpath_overrides_runpath=no
13402 # This implies no fast_install, which is unacceptable.
13403 # Some rework will be needed to allow for fast_install
13404 # before this can be enabled.
13405 hardcode_into_libs=yes
13407 # find out which ABI we are using
13409 case "$host_cpu" in
13410 x86_64*|s390x*|powerpc64*)
13411 echo '#line 13411 "configure"' > conftest.$ac_ext
13412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13413 (eval $ac_compile) 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; then
13417 case `/usr/bin/file conftest.$ac_objext` in
13420 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13428 # Append ld.so.conf contents to the search path
13429 if test -f /etc/ld.so.conf; then
13430 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;/^$/d' | tr '\n' ' '`
13431 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13434 # We used to test for /lib/ld.so.1 and disable shared libraries on
13435 # powerpc, because MkLinux only supported shared libraries with the
13436 # GNU dynamic linker. Since this was broken with cross compilers,
13437 # most powerpc-linux boxes support dynamic linking these days and
13438 # people can always --disable-shared, the test was removed, and we
13439 # assume the GNU/Linux dynamic linker is in use.
13440 dynamic_linker='GNU/Linux ld.so'
13447 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13450 dynamic_linker='NetBSD (a.out) ld.so'
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13453 soname_spec='${libname}${release}${shared_ext}$major'
13454 dynamic_linker='NetBSD ld.elf_so'
13456 shlibpath_var=LD_LIBRARY_PATH
13457 shlibpath_overrides_runpath=yes
13458 hardcode_into_libs=yes
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464 shlibpath_var=LD_LIBRARY_PATH
13465 shlibpath_overrides_runpath=yes
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 shlibpath_var=LD_LIBRARY_PATH
13475 shlibpath_overrides_runpath=yes
13480 sys_lib_dlsearch_path_spec="/usr/lib"
13482 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13484 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13485 *) need_version=no ;;
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13492 openbsd2.[89] | openbsd2.[89].*)
13493 shlibpath_overrides_runpath=no
13496 shlibpath_overrides_runpath=yes
13500 shlibpath_overrides_runpath=yes
13505 libname_spec='$name'
13508 library_names_spec='$libname${shared_ext} $libname.a'
13509 dynamic_linker='OS/2 ld.exe'
13510 shlibpath_var=LIBPATH
13513 osf3* | osf4* | osf5*)
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 shlibpath_var=LD_LIBRARY_PATH
13520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13521 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533 soname_spec='${libname}${release}${shared_ext}$major'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 shlibpath_overrides_runpath=yes
13536 hardcode_into_libs=yes
13537 # ldd complains unless libraries are executable
13538 postinstall_cmds='chmod +x $lib'
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13545 shlibpath_var=LD_LIBRARY_PATH
13546 shlibpath_overrides_runpath=yes
13547 if test "$with_gnu_ld" = yes; then
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556 soname_spec='${libname}${release}${shared_ext}$major'
13557 shlibpath_var=LD_LIBRARY_PATH
13558 case $host_vendor in
13560 shlibpath_overrides_runpath=no
13562 export_dynamic_flag_spec='${wl}-Blargedynsym'
13563 runpath_var=LD_RUN_PATH
13571 shlibpath_overrides_runpath=no
13572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13578 if test -d /usr/nec ;then
13580 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13581 soname_spec='$libname${shared_ext}.$major'
13582 shlibpath_var=LD_LIBRARY_PATH
13586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13587 version_type=freebsd-elf
13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13591 soname_spec='${libname}${release}${shared_ext}$major'
13592 shlibpath_var=LD_LIBRARY_PATH
13593 hardcode_into_libs=yes
13594 if test "$with_gnu_ld" = yes; then
13595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13596 shlibpath_overrides_runpath=no
13598 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13599 shlibpath_overrides_runpath=yes
13602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13606 sys_lib_dlsearch_path_spec='/usr/lib'
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13612 soname_spec='${libname}${release}${shared_ext}$major'
13613 shlibpath_var=LD_LIBRARY_PATH
13620 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13621 echo "${ECHO_T}$dynamic_linker" >&6; }
13622 test "$dynamic_linker" = no && can_build_shared=no
13624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13625 if test "$GCC" = yes; then
13626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13629 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13631 hardcode_action_CXX=
13632 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13633 test -n "$runpath_var_CXX" || \
13634 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13636 # We can hardcode non-existant directories.
13637 if test "$hardcode_direct_CXX" != no &&
13638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639 # have to relink, otherwise we might link with an installed library
13640 # when we should be linking with a yet-to-be-installed one
13641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13642 test "$hardcode_minus_L_CXX" != no; then
13643 # Linking always hardcodes the temporary library directory.
13644 hardcode_action_CXX=relink
13646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647 hardcode_action_CXX=immediate
13650 # We cannot hardcode anything, or else we can only hardcode existing
13652 hardcode_action_CXX=unsupported
13654 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13655 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13657 if test "$hardcode_action_CXX" = relink; then
13658 # Fast installation is not supported
13659 enable_fast_install=no
13660 elif test "$shlibpath_overrides_runpath" = yes ||
13661 test "$enable_shared" = no; then
13662 # Fast installation is not necessary
13663 enable_fast_install=needless
13667 # The else clause should only fire when bootstrapping the
13668 # libtool distribution, otherwise you forgot to ship ltmain.sh
13669 # with your package, and you will get complaints that there are
13670 # no rules to generate ltmain.sh.
13671 if test -f "$ltmain"; then
13672 # See if we are running on zsh, and set the options which allow our commands through
13673 # without removal of \ escapes.
13674 if test -n "${ZSH_VERSION+set}" ; then
13675 setopt NO_GLOB_SUBST
13677 # Now quote all the things that may contain metacharacters while being
13678 # careful not to overquote the AC_SUBSTed values. We take copies of the
13679 # variables and quote the copies for generation of the libtool script.
13680 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13682 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13683 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13684 deplibs_check_method reload_flag reload_cmds need_locks \
13685 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13686 lt_cv_sys_global_symbol_to_c_name_address \
13687 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13688 old_postinstall_cmds old_postuninstall_cmds \
13692 lt_prog_compiler_wl_CXX \
13693 lt_prog_compiler_pic_CXX \
13694 lt_prog_compiler_static_CXX \
13695 lt_prog_compiler_no_builtin_flag_CXX \
13696 export_dynamic_flag_spec_CXX \
13697 thread_safe_flag_spec_CXX \
13698 whole_archive_flag_spec_CXX \
13699 enable_shared_with_static_runtimes_CXX \
13700 old_archive_cmds_CXX \
13701 old_archive_from_new_cmds_CXX \
13702 predep_objects_CXX \
13703 postdep_objects_CXX \
13706 compiler_lib_search_path_CXX \
13708 archive_expsym_cmds_CXX \
13709 postinstall_cmds_CXX \
13710 postuninstall_cmds_CXX \
13711 old_archive_from_expsyms_cmds_CXX \
13712 allow_undefined_flag_CXX \
13713 no_undefined_flag_CXX \
13714 export_symbols_cmds_CXX \
13715 hardcode_libdir_flag_spec_CXX \
13716 hardcode_libdir_flag_spec_ld_CXX \
13717 hardcode_libdir_separator_CXX \
13718 hardcode_automatic_CXX \
13720 module_expsym_cmds_CXX \
13721 lt_cv_prog_compiler_c_o_CXX \
13722 fix_srcfile_path_CXX \
13723 exclude_expsyms_CXX \
13724 include_expsyms_CXX; do
13727 old_archive_cmds_CXX | \
13728 old_archive_from_new_cmds_CXX | \
13729 archive_cmds_CXX | \
13730 archive_expsym_cmds_CXX | \
13731 module_cmds_CXX | \
13732 module_expsym_cmds_CXX | \
13733 old_archive_from_expsyms_cmds_CXX | \
13734 export_symbols_cmds_CXX | \
13735 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13736 postinstall_cmds | postuninstall_cmds | \
13737 old_postinstall_cmds | old_postuninstall_cmds | \
13738 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13739 # Double-quote double-evaled strings.
13740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13749 *'\$0 --fallback-echo"')
13750 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13756 cat <<__EOF__ >> "$cfgfile"
13757 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13761 # Shell to use when invoking shell scripts.
13764 # Whether or not to build shared libraries.
13765 build_libtool_libs=$enable_shared
13767 # Whether or not to build static libraries.
13768 build_old_libs=$enable_static
13770 # Whether or not to add -lc for building shared libraries.
13771 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13773 # Whether or not to disallow shared libs when runtime libs are static
13774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13776 # Whether or not to optimize for fast installation.
13777 fast_install=$enable_fast_install
13780 host_alias=$host_alias
13784 # The build system.
13785 build_alias=$build_alias
13789 # An echo program that does not interpret backslashes.
13794 AR_FLAGS=$lt_AR_FLAGS
13799 # LTCC compiler flags.
13800 LTCFLAGS=$lt_LTCFLAGS
13802 # A language-specific compiler.
13803 CC=$lt_compiler_CXX
13805 # Is the compiler the GNU C compiler?
13808 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13809 gcc_ver=\`gcc -dumpversion\`
13814 # The linker used to build libraries.
13817 # Whether we need hard or soft links.
13820 # A BSD-compatible nm program.
13823 # A symbol stripping program
13826 # Used to examine libraries when file_magic_cmd begins "file"
13827 MAGIC_CMD=$MAGIC_CMD
13829 # Used on cygwin: DLL creation program.
13832 # Used on cygwin: object dumper.
13835 # Used on cygwin: assembler.
13838 # The name of the directory that contains temporary libtool files.
13841 # How to create reloadable object files.
13842 reload_flag=$lt_reload_flag
13843 reload_cmds=$lt_reload_cmds
13845 # How to pass a linker flag through the compiler.
13846 wl=$lt_lt_prog_compiler_wl_CXX
13848 # Object file suffix (normally "o").
13849 objext="$ac_objext"
13851 # Old archive suffix (normally "a").
13854 # Shared library suffix (normally ".so").
13855 shrext_cmds='$shrext_cmds'
13857 # Executable file suffix (normally "").
13860 # Additional compiler flags for building library objects.
13861 pic_flag=$lt_lt_prog_compiler_pic_CXX
13864 # What is the maximum length of a command?
13865 max_cmd_len=$lt_cv_sys_max_cmd_len
13867 # Does compiler simultaneously support -c and -o options?
13868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13870 # Must we lock files when doing compilation?
13871 need_locks=$lt_need_locks
13873 # Do we need the lib prefix for modules?
13874 need_lib_prefix=$need_lib_prefix
13876 # Do we need a version for libraries?
13877 need_version=$need_version
13879 # Whether dlopen is supported.
13880 dlopen_support=$enable_dlopen
13882 # Whether dlopen of programs is supported.
13883 dlopen_self=$enable_dlopen_self
13885 # Whether dlopen of statically linked programs is supported.
13886 dlopen_self_static=$enable_dlopen_self_static
13888 # Compiler flag to prevent dynamic linking.
13889 link_static_flag=$lt_lt_prog_compiler_static_CXX
13891 # Compiler flag to turn off builtin functions.
13892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13894 # Compiler flag to allow reflexive dlopens.
13895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13897 # Compiler flag to generate shared objects directly from archives.
13898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13900 # Compiler flag to generate thread-safe objects.
13901 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13903 # Library versioning type.
13904 version_type=$version_type
13906 # Format of library name prefix.
13907 libname_spec=$lt_libname_spec
13909 # List of archive names. First name is the real one, the rest are links.
13910 # The last name is the one that the linker finds with -lNAME.
13911 library_names_spec=$lt_library_names_spec
13913 # The coded name of the library, if different from the real name.
13914 soname_spec=$lt_soname_spec
13916 # Commands used to build and install an old-style archive.
13918 old_archive_cmds=$lt_old_archive_cmds_CXX
13919 old_postinstall_cmds=$lt_old_postinstall_cmds
13920 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13922 # Create an old-style archive from a shared archive.
13923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13925 # Create a temporary old-style archive to link instead of a shared archive.
13926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13928 # Commands used to build and install a shared archive.
13929 archive_cmds=$lt_archive_cmds_CXX
13930 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13931 postinstall_cmds=$lt_postinstall_cmds
13932 postuninstall_cmds=$lt_postuninstall_cmds
13934 # Commands used to build a loadable module (assumed same as above if empty)
13935 module_cmds=$lt_module_cmds_CXX
13936 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13938 # Commands to strip libraries.
13939 old_striplib=$lt_old_striplib
13940 striplib=$lt_striplib
13942 # Dependencies to place before the objects being linked to create a
13944 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13946 # Dependencies to place after the objects being linked to create a
13948 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13950 # Dependencies to place before the objects being linked to create a
13952 predeps=$lt_predeps_CXX
13954 # Dependencies to place after the objects being linked to create a
13956 postdeps=$lt_postdeps_CXX
13958 # The library search path used internally by the compiler when linking
13959 # a shared library.
13960 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13962 # Method to check whether dependent libraries are shared objects.
13963 deplibs_check_method=$lt_deplibs_check_method
13965 # Command to use when deplibs_check_method == file_magic.
13966 file_magic_cmd=$lt_file_magic_cmd
13968 # Flag that allows shared libraries with undefined symbols to be built.
13969 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13971 # Flag that forces no undefined symbols.
13972 no_undefined_flag=$lt_no_undefined_flag_CXX
13974 # Commands used to finish a libtool library installation in a directory.
13975 finish_cmds=$lt_finish_cmds
13977 # Same as above, but a single script fragment to be evaled but not shown.
13978 finish_eval=$lt_finish_eval
13980 # Take the output of nm and produce a listing of raw symbols and C names.
13981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13983 # Transform the output of nm in a proper C declaration
13984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13986 # Transform the output of nm in a C name address pair
13987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13989 # This is the shared library runtime path variable.
13990 runpath_var=$runpath_var
13992 # This is the shared library path variable.
13993 shlibpath_var=$shlibpath_var
13995 # Is shlibpath searched before the hard-coded library search path?
13996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13998 # How to hardcode a shared library path into an executable.
13999 hardcode_action=$hardcode_action_CXX
14001 # Whether we should hardcode library paths into libraries.
14002 hardcode_into_libs=$hardcode_into_libs
14004 # Flag to hardcode \$libdir into a binary during linking.
14005 # This must work even if \$libdir does not exist.
14006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14008 # If ld is used when linking, flag to hardcode \$libdir into
14009 # a binary during linking. This must work even if \$libdir does
14011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14013 # Whether we need a single -rpath flag with a separated argument.
14014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14017 # resulting binary.
14018 hardcode_direct=$hardcode_direct_CXX
14020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14021 # resulting binary.
14022 hardcode_minus_L=$hardcode_minus_L_CXX
14024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14025 # the resulting binary.
14026 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14028 # Set to yes if building a shared library automatically hardcodes DIR into the library
14029 # and all subsequent libraries and executables linked against it.
14030 hardcode_automatic=$hardcode_automatic_CXX
14032 # Variables whose values should be saved in libtool wrapper scripts and
14033 # restored at relink time.
14034 variables_saved_for_relink="$variables_saved_for_relink"
14036 # Whether libtool must link a program against all its dependency libraries.
14037 link_all_deplibs=$link_all_deplibs_CXX
14039 # Compile-time system search path for libraries
14040 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14042 # Run-time system search path for libraries
14043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14045 # Fix the shell variable \$srcfile for the compiler.
14046 fix_srcfile_path=$lt_fix_srcfile_path
14048 # Set to yes if exported symbols are required.
14049 always_export_symbols=$always_export_symbols_CXX
14051 # The commands to list exported symbols.
14052 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14054 # The commands to extract the exported symbol list from a shared archive.
14055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14057 # Symbols that should not be listed in the preloaded symbols.
14058 exclude_expsyms=$lt_exclude_expsyms_CXX
14060 # Symbols that must always be exported.
14061 include_expsyms=$lt_include_expsyms_CXX
14063 # ### END LIBTOOL TAG CONFIG: $tagname
14069 # If there is no Makefile yet, we rely on a make rule to execute
14070 # `config.status --recheck' to rerun these tests and create the
14071 # libtool script then.
14072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14073 if test -f "$ltmain_in"; then
14074 test -f Makefile && make "$ltmain"
14080 ac_cpp='$CPP $CPPFLAGS'
14081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14089 with_gnu_ldcxx=$with_gnu_ld
14090 with_gnu_ld=$lt_save_with_gnu_ld
14091 lt_cv_path_LDCXX=$lt_cv_path_LD
14092 lt_cv_path_LD=$lt_save_path_LD
14093 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14094 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14102 if test -n "$F77" && test "X$F77" != "Xno"; then
14105 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14106 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14107 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14110 archive_cmds_need_lc_F77=no
14111 allow_undefined_flag_F77=
14112 always_export_symbols_F77=no
14113 archive_expsym_cmds_F77=
14114 export_dynamic_flag_spec_F77=
14115 hardcode_direct_F77=no
14116 hardcode_libdir_flag_spec_F77=
14117 hardcode_libdir_flag_spec_ld_F77=
14118 hardcode_libdir_separator_F77=
14119 hardcode_minus_L_F77=no
14120 hardcode_automatic_F77=no
14122 module_expsym_cmds_F77=
14123 link_all_deplibs_F77=unknown
14124 old_archive_cmds_F77=$old_archive_cmds
14125 no_undefined_flag_F77=
14126 whole_archive_flag_spec_F77=
14127 enable_shared_with_static_runtimes_F77=no
14129 # Source file extension for f77 test sources.
14132 # Object file extension for compiled f77 test sources.
14136 # Code to be used in simple compile tests
14137 lt_simple_compile_test_code="\
14143 # Code to be used in simple link tests
14144 lt_simple_link_test_code="\
14149 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14151 # If no C compiler was specified, use CC.
14154 # If no C compiler flags were specified, use CFLAGS.
14155 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14157 # Allow CC to be a program name with arguments.
14161 # save warnings/boilerplate of simple test code
14162 ac_outfile=conftest.$ac_objext
14163 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14164 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14165 _lt_compiler_boilerplate=`cat conftest.err`
14168 ac_outfile=conftest.$ac_objext
14169 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14170 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14171 _lt_linker_boilerplate=`cat conftest.err`
14175 # Allow CC to be a program name with arguments.
14180 for cc_temp in $compiler""; do
14182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14188 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14191 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14192 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14193 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14194 echo "${ECHO_T}$can_build_shared" >&6; }
14196 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14197 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14198 test "$can_build_shared" = "no" && enable_shared=no
14200 # On AIX, shared libraries and static libraries use the same namespace, and
14201 # are all built from PIC.
14204 test "$enable_shared" = yes && enable_static=no
14205 if test -n "$RANLIB"; then
14206 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14207 postinstall_cmds='$RANLIB $lib'
14211 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14212 test "$enable_shared" = yes && enable_static=no
14216 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14217 echo "${ECHO_T}$enable_shared" >&6; }
14219 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14220 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14221 # Make sure either enable_shared or enable_static is yes.
14222 test "$enable_shared" = yes || enable_static=yes
14223 { echo "$as_me:$LINENO: result: $enable_static" >&5
14224 echo "${ECHO_T}$enable_static" >&6; }
14229 lt_prog_compiler_wl_F77=
14230 lt_prog_compiler_pic_F77=
14231 lt_prog_compiler_static_F77=
14233 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14234 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14236 if test "$GCC" = yes; then
14237 lt_prog_compiler_wl_F77='-Wl,'
14238 lt_prog_compiler_static_F77='-static'
14242 # All AIX code is PIC.
14243 if test "$host_cpu" = ia64; then
14244 # AIX 5 now supports IA64 processor
14245 lt_prog_compiler_static_F77='-Bstatic'
14250 # FIXME: we need at least 68020 code to build shared libraries, but
14251 # adding the `-m68020' flag to GCC prevents building anything better,
14253 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14256 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14257 # PIC is the default for these OSes.
14260 mingw* | cygwin* | pw32* | os2*)
14261 # This hack is so that the source file can tell whether it is being
14262 # built for inclusion in a dll (and should export symbols for example).
14263 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14264 # (--disable-auto-import) libraries
14265 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14268 darwin* | rhapsody*)
14269 # PIC is the default on this platform
14270 # Common symbols not allowed in MH_DYLIB files
14271 lt_prog_compiler_pic_F77='-fno-common'
14275 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14276 # Instead, we relocate shared libraries at runtime.
14280 # Just because we use GCC doesn't mean we suddenly get shared libraries
14281 # on systems that don't support them.
14282 lt_prog_compiler_can_build_shared_F77=no
14287 if test -d /usr/nec; then
14288 lt_prog_compiler_pic_F77=-Kconform_pic
14293 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14294 # not for PA HP-UX.
14300 lt_prog_compiler_pic_F77='-fPIC'
14306 lt_prog_compiler_pic_F77='-fPIC'
14310 # PORTME Check for flag to pass linker flags through the system compiler.
14313 lt_prog_compiler_wl_F77='-Wl,'
14314 if test "$host_cpu" = ia64; then
14315 # AIX 5 now supports IA64 processor
14316 lt_prog_compiler_static_F77='-Bstatic'
14318 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14322 # PIC is the default on this platform
14323 # Common symbols not allowed in MH_DYLIB files
14324 case $cc_basename in
14326 lt_prog_compiler_pic_F77='-qnocommon'
14327 lt_prog_compiler_wl_F77='-Wl,'
14332 mingw* | cygwin* | pw32* | os2*)
14333 # This hack is so that the source file can tell whether it is being
14334 # built for inclusion in a dll (and should export symbols for example).
14335 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14338 hpux9* | hpux10* | hpux11*)
14339 lt_prog_compiler_wl_F77='-Wl,'
14340 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14341 # not for PA HP-UX.
14347 lt_prog_compiler_pic_F77='+Z'
14350 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14351 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14354 irix5* | irix6* | nonstopux*)
14355 lt_prog_compiler_wl_F77='-Wl,'
14356 # PIC (with -KPIC) is the default.
14357 lt_prog_compiler_static_F77='-non_shared'
14361 lt_prog_compiler_pic_F77='-KPIC'
14362 lt_prog_compiler_static_F77='-Bstatic'
14365 linux* | k*bsd*-gnu)
14366 case $cc_basename in
14368 lt_prog_compiler_wl_F77='-Wl,'
14369 lt_prog_compiler_pic_F77='-KPIC'
14370 lt_prog_compiler_static_F77='-static'
14372 pgcc* | pgf77* | pgf90* | pgf95*)
14373 # Portland Group compilers (*not* the Pentium gcc compiler,
14374 # which looks to be a dead project)
14375 lt_prog_compiler_wl_F77='-Wl,'
14376 lt_prog_compiler_pic_F77='-fpic'
14377 lt_prog_compiler_static_F77='-Bstatic'
14380 lt_prog_compiler_wl_F77='-Wl,'
14381 # All Alpha code is PIC.
14382 lt_prog_compiler_static_F77='-non_shared'
14385 case `$CC -V 2>&1 | sed 5q` in
14388 lt_prog_compiler_pic_F77='-KPIC'
14389 lt_prog_compiler_static_F77='-Bstatic'
14390 lt_prog_compiler_wl_F77='-Wl,'
14393 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14394 lt_prog_compiler_pic_F77='-KPIC'
14395 lt_prog_compiler_static_F77='-Bstatic'
14396 lt_prog_compiler_wl_F77=''
14403 osf3* | osf4* | osf5*)
14404 lt_prog_compiler_wl_F77='-Wl,'
14405 # All OSF/1 code is PIC.
14406 lt_prog_compiler_static_F77='-non_shared'
14410 lt_prog_compiler_static_F77='-non_shared'
14414 lt_prog_compiler_pic_F77='-KPIC'
14415 lt_prog_compiler_static_F77='-Bstatic'
14416 case $cc_basename in
14417 f77* | f90* | f95*)
14418 lt_prog_compiler_wl_F77='-Qoption ld ';;
14420 lt_prog_compiler_wl_F77='-Wl,';;
14425 lt_prog_compiler_wl_F77='-Qoption ld '
14426 lt_prog_compiler_pic_F77='-PIC'
14427 lt_prog_compiler_static_F77='-Bstatic'
14430 sysv4 | sysv4.2uw2* | sysv4.3*)
14431 lt_prog_compiler_wl_F77='-Wl,'
14432 lt_prog_compiler_pic_F77='-KPIC'
14433 lt_prog_compiler_static_F77='-Bstatic'
14437 if test -d /usr/nec ;then
14438 lt_prog_compiler_pic_F77='-Kconform_pic'
14439 lt_prog_compiler_static_F77='-Bstatic'
14443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14444 lt_prog_compiler_wl_F77='-Wl,'
14445 lt_prog_compiler_pic_F77='-KPIC'
14446 lt_prog_compiler_static_F77='-Bstatic'
14450 lt_prog_compiler_wl_F77='-Wl,'
14451 lt_prog_compiler_can_build_shared_F77=no
14455 lt_prog_compiler_pic_F77='-pic'
14456 lt_prog_compiler_static_F77='-Bstatic'
14460 lt_prog_compiler_can_build_shared_F77=no
14465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14466 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14469 # Check to make sure the PIC flag actually works.
14471 if test -n "$lt_prog_compiler_pic_F77"; then
14473 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14474 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14475 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 lt_prog_compiler_pic_works_F77=no
14479 ac_outfile=conftest.$ac_objext
14480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14481 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14482 # Insert the option either (1) after the last *FLAGS variable, or
14483 # (2) before a word containing "conftest.", or (3) at the end.
14484 # Note that $ac_compile itself does not contain backslashes and begins
14485 # with a dollar sign (not a hyphen), so the echo should work correctly.
14486 # The option is referenced via a variable to avoid confusing sed.
14487 lt_compile=`echo "$ac_compile" | $SED \
14488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14490 -e 's:$: $lt_compiler_flag:'`
14491 (eval echo "\"\$as_me:14491: $lt_compile\"" >&5)
14492 (eval "$lt_compile" 2>conftest.err)
14494 cat conftest.err >&5
14495 echo "$as_me:14495: \$? = $ac_status" >&5
14496 if (exit $ac_status) && test -s "$ac_outfile"; then
14497 # The compiler can only warn and ignore the option if not recognized
14498 # So say no if there are warnings other than the usual output.
14499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14502 lt_prog_compiler_pic_works_F77=yes
14508 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14509 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14511 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14512 case $lt_prog_compiler_pic_F77 in
14514 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14517 lt_prog_compiler_pic_F77=
14518 lt_prog_compiler_can_build_shared_F77=no
14523 # For platforms which do not support PIC, -DPIC is meaningless:
14525 lt_prog_compiler_pic_F77=
14528 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14533 # Check to make sure the static flag actually works.
14535 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14536 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14537 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14538 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 lt_prog_compiler_static_works_F77=no
14542 save_LDFLAGS="$LDFLAGS"
14543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14544 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14546 # The linker can only warn and ignore the option if not recognized
14547 # So say no if there are warnings
14548 if test -s conftest.err; then
14549 # Append any errors to the config.log.
14550 cat conftest.err 1>&5
14551 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14553 if diff conftest.exp conftest.er2 >/dev/null; then
14554 lt_prog_compiler_static_works_F77=yes
14557 lt_prog_compiler_static_works_F77=yes
14561 LDFLAGS="$save_LDFLAGS"
14564 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14565 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14567 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14570 lt_prog_compiler_static_F77=
14574 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14576 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 lt_cv_prog_compiler_c_o_F77=no
14580 $rm -r conftest 2>/dev/null
14584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14586 lt_compiler_flag="-o out/conftest2.$ac_objext"
14587 # Insert the option either (1) after the last *FLAGS variable, or
14588 # (2) before a word containing "conftest.", or (3) at the end.
14589 # Note that $ac_compile itself does not contain backslashes and begins
14590 # with a dollar sign (not a hyphen), so the echo should work correctly.
14591 lt_compile=`echo "$ac_compile" | $SED \
14592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14594 -e 's:$: $lt_compiler_flag:'`
14595 (eval echo "\"\$as_me:14595: $lt_compile\"" >&5)
14596 (eval "$lt_compile" 2>out/conftest.err)
14598 cat out/conftest.err >&5
14599 echo "$as_me:14599: \$? = $ac_status" >&5
14600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14602 # The compiler can only warn and ignore the option if not recognized
14603 # So say no if there are warnings
14604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14607 lt_cv_prog_compiler_c_o_F77=yes
14612 # SGI C++ compiler will create directory out/ii_files/ for
14613 # template instantiation
14614 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14615 $rm out/* && rmdir out
14621 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14622 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14625 hard_links="nottested"
14626 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14627 # do not overwrite the value of need_locks provided by the user
14628 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14629 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14634 ln conftest.a conftest.b 2>&5 || hard_links=no
14635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14636 { echo "$as_me:$LINENO: result: $hard_links" >&5
14637 echo "${ECHO_T}$hard_links" >&6; }
14638 if test "$hard_links" = no; then
14639 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14640 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14647 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14648 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14651 allow_undefined_flag_F77=
14652 enable_shared_with_static_runtimes_F77=no
14654 archive_expsym_cmds_F77=
14655 old_archive_From_new_cmds_F77=
14656 old_archive_from_expsyms_cmds_F77=
14657 export_dynamic_flag_spec_F77=
14658 whole_archive_flag_spec_F77=
14659 thread_safe_flag_spec_F77=
14660 hardcode_libdir_flag_spec_F77=
14661 hardcode_libdir_flag_spec_ld_F77=
14662 hardcode_libdir_separator_F77=
14663 hardcode_direct_F77=no
14664 hardcode_minus_L_F77=no
14665 hardcode_shlibpath_var_F77=unsupported
14666 link_all_deplibs_F77=unknown
14667 hardcode_automatic_F77=no
14669 module_expsym_cmds_F77=
14670 always_export_symbols_F77=no
14671 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14672 # include_expsyms should be a list of space-separated symbols to be *always*
14673 # included in the symbol list
14674 include_expsyms_F77=
14675 # exclude_expsyms can be an extended regexp of symbols to exclude
14676 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14677 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14678 # as well as any symbol that contains `d'.
14679 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14681 # platforms (ab)use it in PIC code, but their linkers get confused if
14682 # the symbol is explicitly referenced. Since portable code cannot
14683 # rely on this symbol name, it's probably fine to never include it in
14684 # preloaded symbol tables.
14685 extract_expsyms_cmds=
14686 # Just being paranoid about ensuring that cc_basename is set.
14687 for cc_temp in $compiler""; do
14689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14695 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14698 cygwin* | mingw* | pw32*)
14699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14700 # When not using gcc, we currently assume that we are using
14701 # Microsoft Visual C++.
14702 if test "$GCC" != yes; then
14707 # we just hope/assume this is gcc and not c89 (= MSVC++)
14716 if test "$with_gnu_ld" = yes; then
14717 # If archive_cmds runs LD, not CC, wlarc should be empty
14720 # Set some defaults for GNU ld with shared library support. These
14721 # are reset later if shared libraries are not supported. Putting them
14722 # here allows them to be overridden if necessary.
14723 runpath_var=LD_RUN_PATH
14724 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14725 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14726 # ancient GNU ld didn't support --whole-archive et. al.
14727 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14728 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14730 whole_archive_flag_spec_F77=
14732 supports_anon_versioning=no
14733 case `$LD -v 2>/dev/null` in
14734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14737 *\ 2.11.*) ;; # other 2.11 versions
14738 *) supports_anon_versioning=yes ;;
14741 # See if GNU ld supports shared libraries.
14743 aix3* | aix4* | aix5*)
14744 # On AIX/PPC, the GNU linker is very broken
14745 if test "$host_cpu" != ia64; then
14749 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14750 *** to be unable to reliably create shared libraries on AIX.
14751 *** Therefore, libtool is disabling shared libraries support. If you
14752 *** really care for shared libraries, you may want to modify your PATH
14753 *** so that a non-GNU linker is found, and then restart.
14760 archive_cmds_F77='$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)'
14761 hardcode_libdir_flag_spec_F77='-L$libdir'
14762 hardcode_minus_L_F77=yes
14764 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14765 # that the semantics of dynamic libraries on AmigaOS, at least up
14766 # to version 4, is to share data among multiple programs linked
14767 # with the same dynamic library. Since this doesn't match the
14768 # behavior of shared libraries on other platforms, we can't use
14774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14775 allow_undefined_flag_F77=unsupported
14776 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14777 # support --undefined. This deserves some investigation. FIXME
14778 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784 cygwin* | mingw* | pw32*)
14785 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14786 # as there is no search path for DLLs.
14787 hardcode_libdir_flag_spec_F77='-L$libdir'
14788 allow_undefined_flag_F77=unsupported
14789 always_export_symbols_F77=no
14790 enable_shared_with_static_runtimes_F77=yes
14791 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14793 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14795 # If the export-symbols file already is a .def file (1st line
14796 # is EXPORTS), use it as is; otherwise, prepend...
14797 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14798 cp $export_symbols $output_objdir/$soname.def;
14800 echo EXPORTS > $output_objdir/$soname.def;
14801 cat $export_symbols >> $output_objdir/$soname.def;
14803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14810 hardcode_direct_F77=no
14811 hardcode_shlibpath_var_F77=no
14812 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14813 export_dynamic_flag_spec_F77='${wl}-E'
14814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14815 # Instead, shared libraries are loaded at an image base (0x10000000 by
14816 # default) and relocated if they conflict, which is a slow very memory
14817 # consuming and fragmenting process. To avoid this, we pick a random,
14818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14819 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14820 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14821 archive_expsym_cmds_F77='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'
14824 gnu* | linux* | k*bsd*-gnu)
14825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14827 case $cc_basename,$host_cpu in
14828 pgcc*) # Portland Group C compiler
14829 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14830 tmp_addflag=' $pic_flag'
14832 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14833 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14834 tmp_addflag=' $pic_flag -Mnomain' ;;
14835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14836 tmp_addflag=' -i_dynamic' ;;
14837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14838 tmp_addflag=' -i_dynamic -nofor_main' ;;
14839 ifc* | ifort*) # Intel Fortran compiler
14840 tmp_addflag=' -nofor_main' ;;
14842 case `$CC -V 2>&1 | sed 5q` in
14843 *Sun\ C*) # Sun C 5.9
14844 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14845 tmp_sharedflag='-G' ;;
14846 *Sun\ F*) # Sun Fortran 8.3
14847 tmp_sharedflag='-G' ;;
14849 tmp_sharedflag='-shared' ;;
14851 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14853 if test $supports_anon_versioning = yes; then
14854 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14856 $echo "local: *; };" >> $output_objdir/$libname.ver~
14857 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14866 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14869 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14875 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14879 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14880 *** create shared libraries on Solaris systems. Therefore, libtool
14881 *** is disabling shared libraries support. We urge you to upgrade GNU
14882 *** binutils to release 2.9.1 or newer. Another option is to modify
14883 *** your PATH or compiler configuration so that the native linker is
14884 *** used, and then restart.
14887 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14888 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14889 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14896 case `$LD -v 2>&1` in
14897 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14901 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14902 *** reliably create shared libraries on SCO systems. Therefore, libtool
14903 *** is disabling shared libraries support. We urge you to upgrade GNU
14904 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14905 *** your PATH or compiler configuration so that the native linker is
14906 *** used, and then restart.
14911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14912 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14913 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14914 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14923 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14925 hardcode_direct_F77=yes
14926 hardcode_shlibpath_var_F77=no
14930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14931 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14939 if test "$ld_shlibs_F77" = no; then
14941 hardcode_libdir_flag_spec_F77=
14942 export_dynamic_flag_spec_F77=
14943 whole_archive_flag_spec_F77=
14946 # PORTME fill in a description of your system's linker (not GNU ld)
14949 allow_undefined_flag_F77=unsupported
14950 always_export_symbols_F77=yes
14951 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14952 # Note: this linker hardcodes the directories in LIBPATH if there
14953 # are no directories specified by -L.
14954 hardcode_minus_L_F77=yes
14955 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14956 # Neither direct hardcoding nor static linking is supported with a
14958 hardcode_direct_F77=unsupported
14963 if test "$host_cpu" = ia64; then
14964 # On IA64, the linker does run time linking by default, so we don't
14965 # have to do anything special.
14966 aix_use_runtimelinking=no
14967 exp_sym_flag='-Bexport'
14970 # If we're using GNU nm, then we don't want the "-C" option.
14971 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14972 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14973 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14975 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14977 aix_use_runtimelinking=no
14979 # Test if we are trying to use run time linking or normal
14980 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14981 # need to do runtime linking.
14982 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14983 for ld_flag in $LDFLAGS; do
14984 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14985 aix_use_runtimelinking=yes
14992 exp_sym_flag='-bexport'
14993 no_entry_flag='-bnoentry'
14996 # When large executables or shared objects are built, AIX ld can
14997 # have problems creating the table of contents. If linking a library
14998 # or program results in "error TOC overflow" add -mminimal-toc to
14999 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15000 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15002 archive_cmds_F77=''
15003 hardcode_direct_F77=yes
15004 hardcode_libdir_separator_F77=':'
15005 link_all_deplibs_F77=yes
15007 if test "$GCC" = yes; then
15008 case $host_os in aix4.[012]|aix4.[012].*)
15009 # We only want to do this on AIX 4.2 and lower, the check
15010 # below for broken collect2 doesn't work under 4.3+
15011 collect2name=`${CC} -print-prog-name=collect2`
15012 if test -f "$collect2name" && \
15013 strings "$collect2name" | grep resolve_lib_name >/dev/null
15015 # We have reworked collect2
15018 # We have old collect2
15019 hardcode_direct_F77=unsupported
15020 # It fails to find uninstalled libraries when the uninstalled
15021 # path is not listed in the libpath. Setting hardcode_minus_L
15022 # to unsupported forces relinking
15023 hardcode_minus_L_F77=yes
15024 hardcode_libdir_flag_spec_F77='-L$libdir'
15025 hardcode_libdir_separator_F77=
15029 shared_flag='-shared'
15030 if test "$aix_use_runtimelinking" = yes; then
15031 shared_flag="$shared_flag "'${wl}-G'
15035 if test "$host_cpu" = ia64; then
15036 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15037 # chokes on -Wl,-G. The following line is correct:
15040 if test "$aix_use_runtimelinking" = yes; then
15041 shared_flag='${wl}-G'
15043 shared_flag='${wl}-bM:SRE'
15048 # It seems that -bexpall does not export symbols beginning with
15049 # underscore (_), so it is better to generate a list of symbols to export.
15050 always_export_symbols_F77=yes
15051 if test "$aix_use_runtimelinking" = yes; then
15052 # Warning - without using the other runtime loading flags (-brtl),
15053 # -berok will link without error, but may produce a broken library.
15054 allow_undefined_flag_F77='-berok'
15055 # Determine the default libpath from the value encoded in an empty executable.
15056 cat >conftest.$ac_ext <<_ACEOF
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (ac_try="$ac_link"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_link") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } &&
15075 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15076 { (case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_try") 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; } &&
15085 { ac_try='test -s conftest$ac_exeext'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15096 lt_aix_libpath_sed='
15097 /Import File Strings/,/^$/ {
15103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15104 # Check for a 64-bit object if we didn't find anything.
15105 if test -z "$aix_libpath"; then
15106 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15115 rm -f core conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15117 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15119 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15120 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15122 if test "$host_cpu" = ia64; then
15123 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15124 allow_undefined_flag_F77="-z nodefs"
15125 archive_expsym_cmds_F77="\$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"
15127 # Determine the default libpath from the value encoded in an empty executable.
15128 cat >conftest.$ac_ext <<_ACEOF
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (ac_try="$ac_link"
15135 case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_link") 2>conftest.er1
15142 grep -v '^ *+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15168 lt_aix_libpath_sed='
15169 /Import File Strings/,/^$/ {
15175 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15176 # Check for a 64-bit object if we didn't find anything.
15177 if test -z "$aix_libpath"; then
15178 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15187 rm -f core conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
15189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15191 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15192 # Warning - without using the other run time loading flags,
15193 # -berok will link without error, but may produce a broken library.
15194 no_undefined_flag_F77=' ${wl}-bernotok'
15195 allow_undefined_flag_F77=' ${wl}-berok'
15196 # Exported symbols can be pulled into shared objects from archives
15197 whole_archive_flag_spec_F77='$convenience'
15198 archive_cmds_need_lc_F77=yes
15199 # This is similar to how AIX traditionally builds its shared libraries.
15200 archive_expsym_cmds_F77="\$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'
15206 archive_cmds_F77='$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)'
15207 hardcode_libdir_flag_spec_F77='-L$libdir'
15208 hardcode_minus_L_F77=yes
15209 # see comment about different semantics on the GNU ld section
15214 export_dynamic_flag_spec_F77=-rdynamic
15217 cygwin* | mingw* | pw32*)
15218 # When not using gcc, we currently assume that we are using
15219 # Microsoft Visual C++.
15220 # hardcode_libdir_flag_spec is actually meaningless, as there is
15221 # no search path for DLLs.
15222 hardcode_libdir_flag_spec_F77=' '
15223 allow_undefined_flag_F77=unsupported
15224 # Tell ltmain to make .lib files, not .a files.
15226 # Tell ltmain to make .dll files, not .so files.
15228 # FIXME: Setting linknames here is a bad hack.
15229 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15230 # The linker will automatically build a .lib file if we build a DLL.
15231 old_archive_From_new_cmds_F77='true'
15232 # FIXME: Should let the user specify the lib program.
15233 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15234 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15235 enable_shared_with_static_runtimes_F77=yes
15238 darwin* | rhapsody*)
15240 rhapsody* | darwin1.[012])
15241 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15244 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15245 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15247 case ${MACOSX_DEPLOYMENT_TARGET} in
15249 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15252 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15258 archive_cmds_need_lc_F77=no
15259 hardcode_direct_F77=no
15260 hardcode_automatic_F77=yes
15261 hardcode_shlibpath_var_F77=unsupported
15262 whole_archive_flag_spec_F77=''
15263 link_all_deplibs_F77=yes
15264 if test "$GCC" = yes ; then
15265 output_verbose_link_cmd='echo'
15266 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15267 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15269 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15270 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15272 case $cc_basename in
15274 output_verbose_link_cmd='echo'
15275 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15276 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15278 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15279 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15290 hardcode_libdir_flag_spec_F77='-L$libdir'
15291 hardcode_shlibpath_var_F77=no
15298 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15299 # support. Future versions do this automatically, but an explicit c++rt0.o
15300 # does not break anything, and helps significantly (at the cost of a little
15303 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15304 hardcode_libdir_flag_spec_F77='-R$libdir'
15305 hardcode_direct_F77=yes
15306 hardcode_shlibpath_var_F77=no
15309 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15311 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15312 hardcode_direct_F77=yes
15313 hardcode_minus_L_F77=yes
15314 hardcode_shlibpath_var_F77=no
15317 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15318 freebsd* | dragonfly*)
15319 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15320 hardcode_libdir_flag_spec_F77='-R$libdir'
15321 hardcode_direct_F77=yes
15322 hardcode_shlibpath_var_F77=no
15326 if test "$GCC" = yes; then
15327 archive_cmds_F77='$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'
15329 archive_cmds_F77='$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'
15331 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15332 hardcode_libdir_separator_F77=:
15333 hardcode_direct_F77=yes
15335 # hardcode_minus_L: Not really in the search PATH,
15336 # but as the default location of the library.
15337 hardcode_minus_L_F77=yes
15338 export_dynamic_flag_spec_F77='${wl}-E'
15342 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15343 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15345 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15347 if test "$with_gnu_ld" = no; then
15348 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15349 hardcode_libdir_separator_F77=:
15351 hardcode_direct_F77=yes
15352 export_dynamic_flag_spec_F77='${wl}-E'
15354 # hardcode_minus_L: Not really in the search PATH,
15355 # but as the default location of the library.
15356 hardcode_minus_L_F77=yes
15361 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15364 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15367 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15370 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15376 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15379 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15382 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15386 if test "$with_gnu_ld" = no; then
15387 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15388 hardcode_libdir_separator_F77=:
15392 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15393 hardcode_direct_F77=no
15394 hardcode_shlibpath_var_F77=no
15397 hardcode_direct_F77=yes
15398 export_dynamic_flag_spec_F77='${wl}-E'
15400 # hardcode_minus_L: Not really in the search PATH,
15401 # but as the default location of the library.
15402 hardcode_minus_L_F77=yes
15408 irix5* | irix6* | nonstopux*)
15409 if test "$GCC" = yes; then
15410 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15412 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15413 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15415 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15416 hardcode_libdir_separator_F77=:
15417 link_all_deplibs_F77=yes
15421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15422 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15424 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15426 hardcode_libdir_flag_spec_F77='-R$libdir'
15427 hardcode_direct_F77=yes
15428 hardcode_shlibpath_var_F77=no
15432 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15433 hardcode_direct_F77=yes
15434 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15435 hardcode_libdir_separator_F77=:
15436 hardcode_shlibpath_var_F77=no
15440 if test -f /usr/libexec/ld.so; then
15441 hardcode_direct_F77=yes
15442 hardcode_shlibpath_var_F77=no
15443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15444 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15445 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15446 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15447 export_dynamic_flag_spec_F77='${wl}-E'
15450 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15451 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15452 hardcode_libdir_flag_spec_F77='-R$libdir'
15455 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15456 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15466 hardcode_libdir_flag_spec_F77='-L$libdir'
15467 hardcode_minus_L_F77=yes
15468 allow_undefined_flag_F77=unsupported
15469 archive_cmds_F77='$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'
15470 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15474 if test "$GCC" = yes; then
15475 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15476 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15478 allow_undefined_flag_F77=' -expect_unresolved \*'
15479 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15481 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15482 hardcode_libdir_separator_F77=:
15485 osf4* | osf5*) # as osf3* with the addition of -msym flag
15486 if test "$GCC" = yes; then
15487 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15488 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15489 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15491 allow_undefined_flag_F77=' -expect_unresolved \*'
15492 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15493 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15494 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15496 # Both c and cxx compiler support -rpath directly
15497 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15499 hardcode_libdir_separator_F77=:
15503 no_undefined_flag_F77=' -z text'
15504 if test "$GCC" = yes; then
15506 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15508 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15511 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15512 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15513 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15515 hardcode_libdir_flag_spec_F77='-R$libdir'
15516 hardcode_shlibpath_var_F77=no
15518 solaris2.[0-5] | solaris2.[0-5].*) ;;
15520 # The compiler driver will combine and reorder linker options,
15521 # but understands `-z linker_flag'. GCC discards it without `$wl',
15522 # but is careful enough not to reorder.
15523 # Supported since Solaris 2.6 (maybe 2.5.1?)
15524 if test "$GCC" = yes; then
15525 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15527 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15531 link_all_deplibs_F77=yes
15535 if test "x$host_vendor" = xsequent; then
15536 # Use $CC to link under sequent, because it throws in some extra .o
15537 # files that make .init and .fini sections work.
15538 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15540 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_libdir_flag_spec_F77='-L$libdir'
15543 hardcode_direct_F77=yes
15544 hardcode_minus_L_F77=yes
15545 hardcode_shlibpath_var_F77=no
15549 case $host_vendor in
15551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct_F77=yes # is this really true???
15555 ## LD is ld it makes a PLAMLIB
15556 ## CC just makes a GrossModule.
15557 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15558 reload_cmds_F77='$CC -r -o $output$reload_objs'
15559 hardcode_direct_F77=no
15562 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15566 runpath_var='LD_RUN_PATH'
15567 hardcode_shlibpath_var_F77=no
15571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_shlibpath_var_F77=no
15573 export_dynamic_flag_spec_F77='-Bexport'
15577 if test -d /usr/nec; then
15578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_shlibpath_var_F77=no
15580 runpath_var=LD_RUN_PATH
15581 hardcode_runpath_var=yes
15586 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15587 no_undefined_flag_F77='${wl}-z,text'
15588 archive_cmds_need_lc_F77=no
15589 hardcode_shlibpath_var_F77=no
15590 runpath_var='LD_RUN_PATH'
15592 if test "$GCC" = yes; then
15593 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15594 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15597 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 sysv5* | sco3.2v5* | sco5v6*)
15602 # Note: We can NOT use -z defs as we might desire, because we do not
15603 # link with -lc, and that would cause any symbols used from libc to
15604 # always be unresolved, which means just about no library would
15605 # ever link correctly. If we're not using GNU ld we use -z text
15606 # though, which does catch some bad symbols but isn't as heavy-handed
15608 no_undefined_flag_F77='${wl}-z,text'
15609 allow_undefined_flag_F77='${wl}-z,nodefs'
15610 archive_cmds_need_lc_F77=no
15611 hardcode_shlibpath_var_F77=no
15612 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15613 hardcode_libdir_separator_F77=':'
15614 link_all_deplibs_F77=yes
15615 export_dynamic_flag_spec_F77='${wl}-Bexport'
15616 runpath_var='LD_RUN_PATH'
15618 if test "$GCC" = yes; then
15619 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15620 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15622 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15623 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15629 hardcode_libdir_flag_spec_F77='-L$libdir'
15630 hardcode_shlibpath_var_F77=no
15639 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15640 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15641 test "$ld_shlibs_F77" = no && can_build_shared=no
15644 # Do we need to explicitly link libc?
15646 case "x$archive_cmds_need_lc_F77" in
15648 # Assume -lc should be added
15649 archive_cmds_need_lc_F77=yes
15651 if test "$enable_shared" = yes && test "$GCC" = yes; then
15652 case $archive_cmds_F77 in
15654 # FIXME: we may have to deal with multi-command sequences.
15657 # Test whether the compiler implicitly links with -lc since on some
15658 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15659 # to ld, don't add -lc before -lgcc.
15660 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15661 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666 (eval $ac_compile) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } 2>conftest.err; then
15672 libobjs=conftest.$ac_objext
15674 wl=$lt_prog_compiler_wl_F77
15675 pic_flag=$lt_prog_compiler_pic_F77
15681 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15682 allow_undefined_flag_F77=
15683 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15684 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }
15689 archive_cmds_need_lc_F77=no
15691 archive_cmds_need_lc_F77=yes
15693 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15695 cat conftest.err 1>&5
15698 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15699 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15706 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15708 library_names_spec=
15709 libname_spec='lib$name'
15713 postuninstall_cmds=
15717 shlibpath_overrides_runpath=unknown
15719 dynamic_linker="$host_os ld.so"
15720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15722 need_lib_prefix=unknown
15723 hardcode_into_libs=no
15725 # when you set need_version to no, make sure it does not cause -set_version
15726 # flags to be left without arguments
15727 need_version=unknown
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15733 shlibpath_var=LIBPATH
15735 # AIX 3 has no versioning support, so we append a major version to the name.
15736 soname_spec='${libname}${release}${shared_ext}$major'
15743 hardcode_into_libs=yes
15744 if test "$host_cpu" = ia64; then
15745 # AIX 5 supports IA64
15746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15747 shlibpath_var=LD_LIBRARY_PATH
15749 # With GCC up to 2.95.x, collect2 would create an import file
15750 # for dependence libraries. The import file would start with
15751 # the line `#! .'. This would cause the generated library to
15752 # depend on `.', always an invalid library. This was fixed in
15753 # development snapshots of GCC prior to 3.0.
15755 aix4 | aix4.[01] | aix4.[01].*)
15756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15758 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15761 can_build_shared=no
15765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15766 # soname into executable. Probably we can add versioning support to
15767 # collect2, so additional links can be useful in future.
15768 if test "$aix_use_runtimelinking" = yes; then
15769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15770 # instead of lib<name>.a to let people know that these are not
15771 # typical AIX shared libraries.
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 # We preserve .a as extension for shared libraries through AIX4.2
15775 # and later when we are not doing run time linking.
15776 library_names_spec='${libname}${release}.a $libname.a'
15777 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LIBPATH
15784 library_names_spec='$libname.ixlibrary $libname.a'
15785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15786 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15790 library_names_spec='${libname}${shared_ext}'
15791 dynamic_linker="$host_os ld.so"
15792 shlibpath_var=LIBRARY_PATH
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15801 shlibpath_var=LD_LIBRARY_PATH
15802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15804 # the default ld.so.conf also contains /usr/contrib/lib and
15805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15806 # libtool to hard-code these into programs
15809 cygwin* | mingw* | pw32*)
15810 version_type=windows
15815 case $GCC,$host_os in
15816 yes,cygwin* | yes,mingw* | yes,pw32*)
15817 library_names_spec='$libname.dll.a'
15818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15819 postinstall_cmds='base_file=`basename \${file}`~
15820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15821 dldir=$destdir/`dirname \$dlpath`~
15822 test -d \$dldir || mkdir -p \$dldir~
15823 $install_prog $dir/$dlname \$dldir/$dlname~
15824 chmod a+x \$dldir/$dlname'
15825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15826 dlpath=$dir/\$dldll~
15828 shlibpath_overrides_runpath=yes
15832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15834 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15837 # MinGW DLLs use traditional 'lib' prefix
15838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15840 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15841 # It is most probably a Windows format PATH printed by
15842 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15843 # path with ; separators, and with drive letters. We can handle the
15844 # drive letters (cygwin fileutils understands them), so leave them,
15845 # especially as we might pass files found there to a mingw objdump,
15846 # which wouldn't understand a cygwinified path. Ahh.
15847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15853 # pw32 DLLs use 'pw' prefix rather than 'lib'
15854 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15860 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15863 dynamic_linker='Win32 ld.exe'
15864 # FIXME: first we should search . and the directory the executable is in
15868 darwin* | rhapsody*)
15869 dynamic_linker="$host_os dyld"
15870 version_type=darwin
15873 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15874 soname_spec='${libname}${release}${major}$shared_ext'
15875 shlibpath_overrides_runpath=yes
15876 shlibpath_var=DYLD_LIBRARY_PATH
15877 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15879 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15887 soname_spec='${libname}${release}${shared_ext}$major'
15888 shlibpath_var=LD_LIBRARY_PATH
15895 freebsd* | dragonfly*)
15896 # DragonFly does not have aout. When/if they implement a new
15897 # versioning mechanism, adjust this.
15898 if test -x /usr/bin/objformat; then
15899 objformat=`/usr/bin/objformat`
15902 freebsd[123]*) objformat=aout ;;
15903 *) objformat=elf ;;
15906 version_type=freebsd-$objformat
15907 case $version_type in
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15918 shlibpath_var=LD_LIBRARY_PATH
15921 shlibpath_overrides_runpath=yes
15923 freebsd3.[01]* | freebsdelf3.[01]*)
15924 shlibpath_overrides_runpath=yes
15925 hardcode_into_libs=yes
15927 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15928 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15929 shlibpath_overrides_runpath=no
15930 hardcode_into_libs=yes
15932 *) # from 4.6 on, and DragonFly
15933 shlibpath_overrides_runpath=yes
15934 hardcode_into_libs=yes
15943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15944 soname_spec='${libname}${release}${shared_ext}$major'
15945 shlibpath_var=LD_LIBRARY_PATH
15946 hardcode_into_libs=yes
15949 hpux9* | hpux10* | hpux11*)
15950 # Give a soname corresponding to the major version so that dld.sl refuses to
15951 # link against other versions.
15958 hardcode_into_libs=yes
15959 dynamic_linker="$host_os dld.so"
15960 shlibpath_var=LD_LIBRARY_PATH
15961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 if test "X$HPUX_IA64_MODE" = X32; then
15965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15973 hardcode_into_libs=yes
15974 dynamic_linker="$host_os dld.sl"
15975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978 soname_spec='${libname}${release}${shared_ext}$major'
15979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15984 dynamic_linker="$host_os dld.sl"
15985 shlibpath_var=SHLIB_PATH
15986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988 soname_spec='${libname}${release}${shared_ext}$major'
15991 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15992 postinstall_cmds='chmod 555 $lib'
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16000 soname_spec='${libname}${release}${shared_ext}$major'
16001 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 shlibpath_overrides_runpath=no
16004 hardcode_into_libs=yes
16007 irix5* | irix6* | nonstopux*)
16009 nonstopux*) version_type=nonstopux ;;
16011 if test "$lt_cv_prog_gnu_ld" = yes; then
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16022 irix5* | nonstopux*)
16023 libsuff= shlibsuff=
16026 case $LD in # libtool.m4 will add one of these switches to LD
16027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16028 libsuff= shlibsuff= libmagic=32-bit;;
16029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16030 libsuff=32 shlibsuff=N32 libmagic=N32;;
16031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16032 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16033 *) libsuff= shlibsuff= libmagic=never-match;;
16037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16038 shlibpath_overrides_runpath=no
16039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16041 hardcode_into_libs=yes
16044 # No shared lib support for Linux oldld, aout, or coff.
16045 linux*oldld* | linux*aout* | linux*coff*)
16049 # This must be Linux ELF.
16050 linux* | k*bsd*-gnu)
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=no
16059 # This implies no fast_install, which is unacceptable.
16060 # Some rework will be needed to allow for fast_install
16061 # before this can be enabled.
16062 hardcode_into_libs=yes
16064 # find out which ABI we are using
16066 case "$host_cpu" in
16067 x86_64*|s390x*|powerpc64*)
16068 echo '#line 16068 "configure"' > conftest.$ac_ext
16069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16070 (eval $ac_compile) 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; then
16074 case `/usr/bin/file conftest.$ac_objext` in
16077 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16085 # Append ld.so.conf contents to the search path
16086 if test -f /etc/ld.so.conf; then
16087 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;/^$/d' | tr '\n' ' '`
16088 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16091 # We used to test for /lib/ld.so.1 and disable shared libraries on
16092 # powerpc, because MkLinux only supported shared libraries with the
16093 # GNU dynamic linker. Since this was broken with cross compilers,
16094 # most powerpc-linux boxes support dynamic linking these days and
16095 # people can always --disable-shared, the test was removed, and we
16096 # assume the GNU/Linux dynamic linker is in use.
16097 dynamic_linker='GNU/Linux ld.so'
16104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16107 dynamic_linker='NetBSD (a.out) ld.so'
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 dynamic_linker='NetBSD ld.elf_so'
16113 shlibpath_var=LD_LIBRARY_PATH
16114 shlibpath_overrides_runpath=yes
16115 hardcode_into_libs=yes
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 shlibpath_overrides_runpath=yes
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 shlibpath_overrides_runpath=yes
16137 sys_lib_dlsearch_path_spec="/usr/lib"
16139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16141 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16142 *) need_version=no ;;
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16146 shlibpath_var=LD_LIBRARY_PATH
16147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16149 openbsd2.[89] | openbsd2.[89].*)
16150 shlibpath_overrides_runpath=no
16153 shlibpath_overrides_runpath=yes
16157 shlibpath_overrides_runpath=yes
16162 libname_spec='$name'
16165 library_names_spec='$libname${shared_ext} $libname.a'
16166 dynamic_linker='OS/2 ld.exe'
16167 shlibpath_var=LIBPATH
16170 osf3* | osf4* | osf5*)
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16192 shlibpath_overrides_runpath=yes
16193 hardcode_into_libs=yes
16194 # ldd complains unless libraries are executable
16195 postinstall_cmds='chmod +x $lib'
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath=yes
16204 if test "$with_gnu_ld" = yes; then
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 shlibpath_var=LD_LIBRARY_PATH
16215 case $host_vendor in
16217 shlibpath_overrides_runpath=no
16219 export_dynamic_flag_spec='${wl}-Blargedynsym'
16220 runpath_var=LD_RUN_PATH
16228 shlibpath_overrides_runpath=no
16229 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16235 if test -d /usr/nec ;then
16237 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16238 soname_spec='$libname${shared_ext}.$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16244 version_type=freebsd-elf
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 hardcode_into_libs=yes
16251 if test "$with_gnu_ld" = yes; then
16252 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16253 shlibpath_overrides_runpath=no
16255 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16256 shlibpath_overrides_runpath=yes
16259 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16263 sys_lib_dlsearch_path_spec='/usr/lib'
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16269 soname_spec='${libname}${release}${shared_ext}$major'
16270 shlibpath_var=LD_LIBRARY_PATH
16277 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16278 echo "${ECHO_T}$dynamic_linker" >&6; }
16279 test "$dynamic_linker" = no && can_build_shared=no
16281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16282 if test "$GCC" = yes; then
16283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16286 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16287 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16288 hardcode_action_F77=
16289 if test -n "$hardcode_libdir_flag_spec_F77" || \
16290 test -n "$runpath_var_F77" || \
16291 test "X$hardcode_automatic_F77" = "Xyes" ; then
16293 # We can hardcode non-existant directories.
16294 if test "$hardcode_direct_F77" != no &&
16295 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16296 # have to relink, otherwise we might link with an installed library
16297 # when we should be linking with a yet-to-be-installed one
16298 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16299 test "$hardcode_minus_L_F77" != no; then
16300 # Linking always hardcodes the temporary library directory.
16301 hardcode_action_F77=relink
16303 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16304 hardcode_action_F77=immediate
16307 # We cannot hardcode anything, or else we can only hardcode existing
16309 hardcode_action_F77=unsupported
16311 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16312 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16314 if test "$hardcode_action_F77" = relink; then
16315 # Fast installation is not supported
16316 enable_fast_install=no
16317 elif test "$shlibpath_overrides_runpath" = yes ||
16318 test "$enable_shared" = no; then
16319 # Fast installation is not necessary
16320 enable_fast_install=needless
16324 # The else clause should only fire when bootstrapping the
16325 # libtool distribution, otherwise you forgot to ship ltmain.sh
16326 # with your package, and you will get complaints that there are
16327 # no rules to generate ltmain.sh.
16328 if test -f "$ltmain"; then
16329 # See if we are running on zsh, and set the options which allow our commands through
16330 # without removal of \ escapes.
16331 if test -n "${ZSH_VERSION+set}" ; then
16332 setopt NO_GLOB_SUBST
16334 # Now quote all the things that may contain metacharacters while being
16335 # careful not to overquote the AC_SUBSTed values. We take copies of the
16336 # variables and quote the copies for generation of the libtool script.
16337 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16339 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16340 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16341 deplibs_check_method reload_flag reload_cmds need_locks \
16342 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16343 lt_cv_sys_global_symbol_to_c_name_address \
16344 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16345 old_postinstall_cmds old_postuninstall_cmds \
16349 lt_prog_compiler_wl_F77 \
16350 lt_prog_compiler_pic_F77 \
16351 lt_prog_compiler_static_F77 \
16352 lt_prog_compiler_no_builtin_flag_F77 \
16353 export_dynamic_flag_spec_F77 \
16354 thread_safe_flag_spec_F77 \
16355 whole_archive_flag_spec_F77 \
16356 enable_shared_with_static_runtimes_F77 \
16357 old_archive_cmds_F77 \
16358 old_archive_from_new_cmds_F77 \
16359 predep_objects_F77 \
16360 postdep_objects_F77 \
16363 compiler_lib_search_path_F77 \
16365 archive_expsym_cmds_F77 \
16366 postinstall_cmds_F77 \
16367 postuninstall_cmds_F77 \
16368 old_archive_from_expsyms_cmds_F77 \
16369 allow_undefined_flag_F77 \
16370 no_undefined_flag_F77 \
16371 export_symbols_cmds_F77 \
16372 hardcode_libdir_flag_spec_F77 \
16373 hardcode_libdir_flag_spec_ld_F77 \
16374 hardcode_libdir_separator_F77 \
16375 hardcode_automatic_F77 \
16377 module_expsym_cmds_F77 \
16378 lt_cv_prog_compiler_c_o_F77 \
16379 fix_srcfile_path_F77 \
16380 exclude_expsyms_F77 \
16381 include_expsyms_F77; do
16384 old_archive_cmds_F77 | \
16385 old_archive_from_new_cmds_F77 | \
16386 archive_cmds_F77 | \
16387 archive_expsym_cmds_F77 | \
16388 module_cmds_F77 | \
16389 module_expsym_cmds_F77 | \
16390 old_archive_from_expsyms_cmds_F77 | \
16391 export_symbols_cmds_F77 | \
16392 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16393 postinstall_cmds | postuninstall_cmds | \
16394 old_postinstall_cmds | old_postuninstall_cmds | \
16395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16396 # Double-quote double-evaled strings.
16397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16406 *'\$0 --fallback-echo"')
16407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16413 cat <<__EOF__ >> "$cfgfile"
16414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16418 # Shell to use when invoking shell scripts.
16421 # Whether or not to build shared libraries.
16422 build_libtool_libs=$enable_shared
16424 # Whether or not to build static libraries.
16425 build_old_libs=$enable_static
16427 # Whether or not to add -lc for building shared libraries.
16428 build_libtool_need_lc=$archive_cmds_need_lc_F77
16430 # Whether or not to disallow shared libs when runtime libs are static
16431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16433 # Whether or not to optimize for fast installation.
16434 fast_install=$enable_fast_install
16437 host_alias=$host_alias
16441 # The build system.
16442 build_alias=$build_alias
16446 # An echo program that does not interpret backslashes.
16451 AR_FLAGS=$lt_AR_FLAGS
16456 # LTCC compiler flags.
16457 LTCFLAGS=$lt_LTCFLAGS
16459 # A language-specific compiler.
16460 CC=$lt_compiler_F77
16462 # Is the compiler the GNU C compiler?
16465 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16466 gcc_ver=\`gcc -dumpversion\`
16471 # The linker used to build libraries.
16474 # Whether we need hard or soft links.
16477 # A BSD-compatible nm program.
16480 # A symbol stripping program
16483 # Used to examine libraries when file_magic_cmd begins "file"
16484 MAGIC_CMD=$MAGIC_CMD
16486 # Used on cygwin: DLL creation program.
16489 # Used on cygwin: object dumper.
16492 # Used on cygwin: assembler.
16495 # The name of the directory that contains temporary libtool files.
16498 # How to create reloadable object files.
16499 reload_flag=$lt_reload_flag
16500 reload_cmds=$lt_reload_cmds
16502 # How to pass a linker flag through the compiler.
16503 wl=$lt_lt_prog_compiler_wl_F77
16505 # Object file suffix (normally "o").
16506 objext="$ac_objext"
16508 # Old archive suffix (normally "a").
16511 # Shared library suffix (normally ".so").
16512 shrext_cmds='$shrext_cmds'
16514 # Executable file suffix (normally "").
16517 # Additional compiler flags for building library objects.
16518 pic_flag=$lt_lt_prog_compiler_pic_F77
16521 # What is the maximum length of a command?
16522 max_cmd_len=$lt_cv_sys_max_cmd_len
16524 # Does compiler simultaneously support -c and -o options?
16525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16527 # Must we lock files when doing compilation?
16528 need_locks=$lt_need_locks
16530 # Do we need the lib prefix for modules?
16531 need_lib_prefix=$need_lib_prefix
16533 # Do we need a version for libraries?
16534 need_version=$need_version
16536 # Whether dlopen is supported.
16537 dlopen_support=$enable_dlopen
16539 # Whether dlopen of programs is supported.
16540 dlopen_self=$enable_dlopen_self
16542 # Whether dlopen of statically linked programs is supported.
16543 dlopen_self_static=$enable_dlopen_self_static
16545 # Compiler flag to prevent dynamic linking.
16546 link_static_flag=$lt_lt_prog_compiler_static_F77
16548 # Compiler flag to turn off builtin functions.
16549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16551 # Compiler flag to allow reflexive dlopens.
16552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16554 # Compiler flag to generate shared objects directly from archives.
16555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16557 # Compiler flag to generate thread-safe objects.
16558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16560 # Library versioning type.
16561 version_type=$version_type
16563 # Format of library name prefix.
16564 libname_spec=$lt_libname_spec
16566 # List of archive names. First name is the real one, the rest are links.
16567 # The last name is the one that the linker finds with -lNAME.
16568 library_names_spec=$lt_library_names_spec
16570 # The coded name of the library, if different from the real name.
16571 soname_spec=$lt_soname_spec
16573 # Commands used to build and install an old-style archive.
16575 old_archive_cmds=$lt_old_archive_cmds_F77
16576 old_postinstall_cmds=$lt_old_postinstall_cmds
16577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16579 # Create an old-style archive from a shared archive.
16580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16582 # Create a temporary old-style archive to link instead of a shared archive.
16583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16585 # Commands used to build and install a shared archive.
16586 archive_cmds=$lt_archive_cmds_F77
16587 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16588 postinstall_cmds=$lt_postinstall_cmds
16589 postuninstall_cmds=$lt_postuninstall_cmds
16591 # Commands used to build a loadable module (assumed same as above if empty)
16592 module_cmds=$lt_module_cmds_F77
16593 module_expsym_cmds=$lt_module_expsym_cmds_F77
16595 # Commands to strip libraries.
16596 old_striplib=$lt_old_striplib
16597 striplib=$lt_striplib
16599 # Dependencies to place before the objects being linked to create a
16601 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16603 # Dependencies to place after the objects being linked to create a
16605 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16607 # Dependencies to place before the objects being linked to create a
16609 predeps=$lt_predeps_F77
16611 # Dependencies to place after the objects being linked to create a
16613 postdeps=$lt_postdeps_F77
16615 # The library search path used internally by the compiler when linking
16616 # a shared library.
16617 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16619 # Method to check whether dependent libraries are shared objects.
16620 deplibs_check_method=$lt_deplibs_check_method
16622 # Command to use when deplibs_check_method == file_magic.
16623 file_magic_cmd=$lt_file_magic_cmd
16625 # Flag that allows shared libraries with undefined symbols to be built.
16626 allow_undefined_flag=$lt_allow_undefined_flag_F77
16628 # Flag that forces no undefined symbols.
16629 no_undefined_flag=$lt_no_undefined_flag_F77
16631 # Commands used to finish a libtool library installation in a directory.
16632 finish_cmds=$lt_finish_cmds
16634 # Same as above, but a single script fragment to be evaled but not shown.
16635 finish_eval=$lt_finish_eval
16637 # Take the output of nm and produce a listing of raw symbols and C names.
16638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16640 # Transform the output of nm in a proper C declaration
16641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16643 # Transform the output of nm in a C name address pair
16644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16646 # This is the shared library runtime path variable.
16647 runpath_var=$runpath_var
16649 # This is the shared library path variable.
16650 shlibpath_var=$shlibpath_var
16652 # Is shlibpath searched before the hard-coded library search path?
16653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16655 # How to hardcode a shared library path into an executable.
16656 hardcode_action=$hardcode_action_F77
16658 # Whether we should hardcode library paths into libraries.
16659 hardcode_into_libs=$hardcode_into_libs
16661 # Flag to hardcode \$libdir into a binary during linking.
16662 # This must work even if \$libdir does not exist.
16663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16665 # If ld is used when linking, flag to hardcode \$libdir into
16666 # a binary during linking. This must work even if \$libdir does
16668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16670 # Whether we need a single -rpath flag with a separated argument.
16671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16674 # resulting binary.
16675 hardcode_direct=$hardcode_direct_F77
16677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16678 # resulting binary.
16679 hardcode_minus_L=$hardcode_minus_L_F77
16681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16682 # the resulting binary.
16683 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16685 # Set to yes if building a shared library automatically hardcodes DIR into the library
16686 # and all subsequent libraries and executables linked against it.
16687 hardcode_automatic=$hardcode_automatic_F77
16689 # Variables whose values should be saved in libtool wrapper scripts and
16690 # restored at relink time.
16691 variables_saved_for_relink="$variables_saved_for_relink"
16693 # Whether libtool must link a program against all its dependency libraries.
16694 link_all_deplibs=$link_all_deplibs_F77
16696 # Compile-time system search path for libraries
16697 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16699 # Run-time system search path for libraries
16700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16702 # Fix the shell variable \$srcfile for the compiler.
16703 fix_srcfile_path=$lt_fix_srcfile_path
16705 # Set to yes if exported symbols are required.
16706 always_export_symbols=$always_export_symbols_F77
16708 # The commands to list exported symbols.
16709 export_symbols_cmds=$lt_export_symbols_cmds_F77
16711 # The commands to extract the exported symbol list from a shared archive.
16712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16714 # Symbols that should not be listed in the preloaded symbols.
16715 exclude_expsyms=$lt_exclude_expsyms_F77
16717 # Symbols that must always be exported.
16718 include_expsyms=$lt_include_expsyms_F77
16720 # ### END LIBTOOL TAG CONFIG: $tagname
16726 # If there is no Makefile yet, we rely on a make rule to execute
16727 # `config.status --recheck' to rerun these tests and create the
16728 # libtool script then.
16729 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16730 if test -f "$ltmain_in"; then
16731 test -f Makefile && make "$ltmain"
16737 ac_cpp='$CPP $CPPFLAGS'
16738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16750 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16753 # Source file extension for Java test sources.
16756 # Object file extension for compiled Java test sources.
16760 # Code to be used in simple compile tests
16761 lt_simple_compile_test_code="class foo {}"
16763 # Code to be used in simple link tests
16764 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16768 # If no C compiler was specified, use CC.
16771 # If no C compiler flags were specified, use CFLAGS.
16772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16774 # Allow CC to be a program name with arguments.
16778 # save warnings/boilerplate of simple test code
16779 ac_outfile=conftest.$ac_objext
16780 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16781 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16782 _lt_compiler_boilerplate=`cat conftest.err`
16785 ac_outfile=conftest.$ac_objext
16786 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16787 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16788 _lt_linker_boilerplate=`cat conftest.err`
16792 # Allow CC to be a program name with arguments.
16797 for cc_temp in $compiler""; do
16799 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16800 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16805 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16809 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16810 archive_cmds_need_lc_GCJ=no
16812 old_archive_cmds_GCJ=$old_archive_cmds
16815 lt_prog_compiler_no_builtin_flag_GCJ=
16817 if test "$GCC" = yes; then
16818 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16821 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16822 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16823 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 lt_cv_prog_compiler_rtti_exceptions=no
16827 ac_outfile=conftest.$ac_objext
16828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16829 lt_compiler_flag="-fno-rtti -fno-exceptions"
16830 # Insert the option either (1) after the last *FLAGS variable, or
16831 # (2) before a word containing "conftest.", or (3) at the end.
16832 # Note that $ac_compile itself does not contain backslashes and begins
16833 # with a dollar sign (not a hyphen), so the echo should work correctly.
16834 # The option is referenced via a variable to avoid confusing sed.
16835 lt_compile=`echo "$ac_compile" | $SED \
16836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16838 -e 's:$: $lt_compiler_flag:'`
16839 (eval echo "\"\$as_me:16839: $lt_compile\"" >&5)
16840 (eval "$lt_compile" 2>conftest.err)
16842 cat conftest.err >&5
16843 echo "$as_me:16843: \$? = $ac_status" >&5
16844 if (exit $ac_status) && test -s "$ac_outfile"; then
16845 # The compiler can only warn and ignore the option if not recognized
16846 # So say no if there are warnings other than the usual output.
16847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16850 lt_cv_prog_compiler_rtti_exceptions=yes
16856 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16857 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16859 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16860 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16867 lt_prog_compiler_wl_GCJ=
16868 lt_prog_compiler_pic_GCJ=
16869 lt_prog_compiler_static_GCJ=
16871 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16872 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16874 if test "$GCC" = yes; then
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 lt_prog_compiler_static_GCJ='-static'
16880 # All AIX code is PIC.
16881 if test "$host_cpu" = ia64; then
16882 # AIX 5 now supports IA64 processor
16883 lt_prog_compiler_static_GCJ='-Bstatic'
16888 # FIXME: we need at least 68020 code to build shared libraries, but
16889 # adding the `-m68020' flag to GCC prevents building anything better,
16891 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16895 # PIC is the default for these OSes.
16898 mingw* | cygwin* | pw32* | os2*)
16899 # This hack is so that the source file can tell whether it is being
16900 # built for inclusion in a dll (and should export symbols for example).
16901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16902 # (--disable-auto-import) libraries
16903 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16906 darwin* | rhapsody*)
16907 # PIC is the default on this platform
16908 # Common symbols not allowed in MH_DYLIB files
16909 lt_prog_compiler_pic_GCJ='-fno-common'
16913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16914 # Instead, we relocate shared libraries at runtime.
16918 # Just because we use GCC doesn't mean we suddenly get shared libraries
16919 # on systems that don't support them.
16920 lt_prog_compiler_can_build_shared_GCJ=no
16925 if test -d /usr/nec; then
16926 lt_prog_compiler_pic_GCJ=-Kconform_pic
16931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16932 # not for PA HP-UX.
16938 lt_prog_compiler_pic_GCJ='-fPIC'
16944 lt_prog_compiler_pic_GCJ='-fPIC'
16948 # PORTME Check for flag to pass linker flags through the system compiler.
16951 lt_prog_compiler_wl_GCJ='-Wl,'
16952 if test "$host_cpu" = ia64; then
16953 # AIX 5 now supports IA64 processor
16954 lt_prog_compiler_static_GCJ='-Bstatic'
16956 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16960 # PIC is the default on this platform
16961 # Common symbols not allowed in MH_DYLIB files
16962 case $cc_basename in
16964 lt_prog_compiler_pic_GCJ='-qnocommon'
16965 lt_prog_compiler_wl_GCJ='-Wl,'
16970 mingw* | cygwin* | pw32* | os2*)
16971 # This hack is so that the source file can tell whether it is being
16972 # built for inclusion in a dll (and should export symbols for example).
16973 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16976 hpux9* | hpux10* | hpux11*)
16977 lt_prog_compiler_wl_GCJ='-Wl,'
16978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16979 # not for PA HP-UX.
16985 lt_prog_compiler_pic_GCJ='+Z'
16988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16989 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16992 irix5* | irix6* | nonstopux*)
16993 lt_prog_compiler_wl_GCJ='-Wl,'
16994 # PIC (with -KPIC) is the default.
16995 lt_prog_compiler_static_GCJ='-non_shared'
16999 lt_prog_compiler_pic_GCJ='-KPIC'
17000 lt_prog_compiler_static_GCJ='-Bstatic'
17003 linux* | k*bsd*-gnu)
17004 case $cc_basename in
17006 lt_prog_compiler_wl_GCJ='-Wl,'
17007 lt_prog_compiler_pic_GCJ='-KPIC'
17008 lt_prog_compiler_static_GCJ='-static'
17010 pgcc* | pgf77* | pgf90* | pgf95*)
17011 # Portland Group compilers (*not* the Pentium gcc compiler,
17012 # which looks to be a dead project)
17013 lt_prog_compiler_wl_GCJ='-Wl,'
17014 lt_prog_compiler_pic_GCJ='-fpic'
17015 lt_prog_compiler_static_GCJ='-Bstatic'
17018 lt_prog_compiler_wl_GCJ='-Wl,'
17019 # All Alpha code is PIC.
17020 lt_prog_compiler_static_GCJ='-non_shared'
17023 case `$CC -V 2>&1 | sed 5q` in
17026 lt_prog_compiler_pic_GCJ='-KPIC'
17027 lt_prog_compiler_static_GCJ='-Bstatic'
17028 lt_prog_compiler_wl_GCJ='-Wl,'
17031 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17032 lt_prog_compiler_pic_GCJ='-KPIC'
17033 lt_prog_compiler_static_GCJ='-Bstatic'
17034 lt_prog_compiler_wl_GCJ=''
17041 osf3* | osf4* | osf5*)
17042 lt_prog_compiler_wl_GCJ='-Wl,'
17043 # All OSF/1 code is PIC.
17044 lt_prog_compiler_static_GCJ='-non_shared'
17048 lt_prog_compiler_static_GCJ='-non_shared'
17052 lt_prog_compiler_pic_GCJ='-KPIC'
17053 lt_prog_compiler_static_GCJ='-Bstatic'
17054 case $cc_basename in
17055 f77* | f90* | f95*)
17056 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17058 lt_prog_compiler_wl_GCJ='-Wl,';;
17063 lt_prog_compiler_wl_GCJ='-Qoption ld '
17064 lt_prog_compiler_pic_GCJ='-PIC'
17065 lt_prog_compiler_static_GCJ='-Bstatic'
17068 sysv4 | sysv4.2uw2* | sysv4.3*)
17069 lt_prog_compiler_wl_GCJ='-Wl,'
17070 lt_prog_compiler_pic_GCJ='-KPIC'
17071 lt_prog_compiler_static_GCJ='-Bstatic'
17075 if test -d /usr/nec ;then
17076 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17077 lt_prog_compiler_static_GCJ='-Bstatic'
17081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17082 lt_prog_compiler_wl_GCJ='-Wl,'
17083 lt_prog_compiler_pic_GCJ='-KPIC'
17084 lt_prog_compiler_static_GCJ='-Bstatic'
17088 lt_prog_compiler_wl_GCJ='-Wl,'
17089 lt_prog_compiler_can_build_shared_GCJ=no
17093 lt_prog_compiler_pic_GCJ='-pic'
17094 lt_prog_compiler_static_GCJ='-Bstatic'
17098 lt_prog_compiler_can_build_shared_GCJ=no
17103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17104 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17107 # Check to make sure the PIC flag actually works.
17109 if test -n "$lt_prog_compiler_pic_GCJ"; then
17111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17113 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 lt_prog_compiler_pic_works_GCJ=no
17117 ac_outfile=conftest.$ac_objext
17118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17119 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17120 # Insert the option either (1) after the last *FLAGS variable, or
17121 # (2) before a word containing "conftest.", or (3) at the end.
17122 # Note that $ac_compile itself does not contain backslashes and begins
17123 # with a dollar sign (not a hyphen), so the echo should work correctly.
17124 # The option is referenced via a variable to avoid confusing sed.
17125 lt_compile=`echo "$ac_compile" | $SED \
17126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17128 -e 's:$: $lt_compiler_flag:'`
17129 (eval echo "\"\$as_me:17129: $lt_compile\"" >&5)
17130 (eval "$lt_compile" 2>conftest.err)
17132 cat conftest.err >&5
17133 echo "$as_me:17133: \$? = $ac_status" >&5
17134 if (exit $ac_status) && test -s "$ac_outfile"; then
17135 # The compiler can only warn and ignore the option if not recognized
17136 # So say no if there are warnings other than the usual output.
17137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17140 lt_prog_compiler_pic_works_GCJ=yes
17146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17147 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17149 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17150 case $lt_prog_compiler_pic_GCJ in
17152 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17155 lt_prog_compiler_pic_GCJ=
17156 lt_prog_compiler_can_build_shared_GCJ=no
17161 # For platforms which do not support PIC, -DPIC is meaningless:
17163 lt_prog_compiler_pic_GCJ=
17166 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17171 # Check to make sure the static flag actually works.
17173 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17174 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17176 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 lt_prog_compiler_static_works_GCJ=no
17180 save_LDFLAGS="$LDFLAGS"
17181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17182 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17184 # The linker can only warn and ignore the option if not recognized
17185 # So say no if there are warnings
17186 if test -s conftest.err; then
17187 # Append any errors to the config.log.
17188 cat conftest.err 1>&5
17189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17191 if diff conftest.exp conftest.er2 >/dev/null; then
17192 lt_prog_compiler_static_works_GCJ=yes
17195 lt_prog_compiler_static_works_GCJ=yes
17199 LDFLAGS="$save_LDFLAGS"
17202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17203 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17205 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17208 lt_prog_compiler_static_GCJ=
17212 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17214 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 lt_cv_prog_compiler_c_o_GCJ=no
17218 $rm -r conftest 2>/dev/null
17222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17224 lt_compiler_flag="-o out/conftest2.$ac_objext"
17225 # Insert the option either (1) after the last *FLAGS variable, or
17226 # (2) before a word containing "conftest.", or (3) at the end.
17227 # Note that $ac_compile itself does not contain backslashes and begins
17228 # with a dollar sign (not a hyphen), so the echo should work correctly.
17229 lt_compile=`echo "$ac_compile" | $SED \
17230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17232 -e 's:$: $lt_compiler_flag:'`
17233 (eval echo "\"\$as_me:17233: $lt_compile\"" >&5)
17234 (eval "$lt_compile" 2>out/conftest.err)
17236 cat out/conftest.err >&5
17237 echo "$as_me:17237: \$? = $ac_status" >&5
17238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17240 # The compiler can only warn and ignore the option if not recognized
17241 # So say no if there are warnings
17242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17245 lt_cv_prog_compiler_c_o_GCJ=yes
17250 # SGI C++ compiler will create directory out/ii_files/ for
17251 # template instantiation
17252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17253 $rm out/* && rmdir out
17259 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17263 hard_links="nottested"
17264 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17265 # do not overwrite the value of need_locks provided by the user
17266 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17272 ln conftest.a conftest.b 2>&5 || hard_links=no
17273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17274 { echo "$as_me:$LINENO: result: $hard_links" >&5
17275 echo "${ECHO_T}$hard_links" >&6; }
17276 if test "$hard_links" = no; then
17277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17285 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17289 allow_undefined_flag_GCJ=
17290 enable_shared_with_static_runtimes_GCJ=no
17292 archive_expsym_cmds_GCJ=
17293 old_archive_From_new_cmds_GCJ=
17294 old_archive_from_expsyms_cmds_GCJ=
17295 export_dynamic_flag_spec_GCJ=
17296 whole_archive_flag_spec_GCJ=
17297 thread_safe_flag_spec_GCJ=
17298 hardcode_libdir_flag_spec_GCJ=
17299 hardcode_libdir_flag_spec_ld_GCJ=
17300 hardcode_libdir_separator_GCJ=
17301 hardcode_direct_GCJ=no
17302 hardcode_minus_L_GCJ=no
17303 hardcode_shlibpath_var_GCJ=unsupported
17304 link_all_deplibs_GCJ=unknown
17305 hardcode_automatic_GCJ=no
17307 module_expsym_cmds_GCJ=
17308 always_export_symbols_GCJ=no
17309 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17310 # include_expsyms should be a list of space-separated symbols to be *always*
17311 # included in the symbol list
17312 include_expsyms_GCJ=
17313 # exclude_expsyms can be an extended regexp of symbols to exclude
17314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17316 # as well as any symbol that contains `d'.
17317 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17319 # platforms (ab)use it in PIC code, but their linkers get confused if
17320 # the symbol is explicitly referenced. Since portable code cannot
17321 # rely on this symbol name, it's probably fine to never include it in
17322 # preloaded symbol tables.
17323 extract_expsyms_cmds=
17324 # Just being paranoid about ensuring that cc_basename is set.
17325 for cc_temp in $compiler""; do
17327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17336 cygwin* | mingw* | pw32*)
17337 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17338 # When not using gcc, we currently assume that we are using
17339 # Microsoft Visual C++.
17340 if test "$GCC" != yes; then
17345 # we just hope/assume this is gcc and not c89 (= MSVC++)
17354 if test "$with_gnu_ld" = yes; then
17355 # If archive_cmds runs LD, not CC, wlarc should be empty
17358 # Set some defaults for GNU ld with shared library support. These
17359 # are reset later if shared libraries are not supported. Putting them
17360 # here allows them to be overridden if necessary.
17361 runpath_var=LD_RUN_PATH
17362 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17363 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17364 # ancient GNU ld didn't support --whole-archive et. al.
17365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17366 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17368 whole_archive_flag_spec_GCJ=
17370 supports_anon_versioning=no
17371 case `$LD -v 2>/dev/null` in
17372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17375 *\ 2.11.*) ;; # other 2.11 versions
17376 *) supports_anon_versioning=yes ;;
17379 # See if GNU ld supports shared libraries.
17381 aix3* | aix4* | aix5*)
17382 # On AIX/PPC, the GNU linker is very broken
17383 if test "$host_cpu" != ia64; then
17387 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17388 *** to be unable to reliably create shared libraries on AIX.
17389 *** Therefore, libtool is disabling shared libraries support. If you
17390 *** really care for shared libraries, you may want to modify your PATH
17391 *** so that a non-GNU linker is found, and then restart.
17398 archive_cmds_GCJ='$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)'
17399 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17400 hardcode_minus_L_GCJ=yes
17402 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17403 # that the semantics of dynamic libraries on AmigaOS, at least up
17404 # to version 4, is to share data among multiple programs linked
17405 # with the same dynamic library. Since this doesn't match the
17406 # behavior of shared libraries on other platforms, we can't use
17412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17413 allow_undefined_flag_GCJ=unsupported
17414 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17415 # support --undefined. This deserves some investigation. FIXME
17416 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17422 cygwin* | mingw* | pw32*)
17423 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17424 # as there is no search path for DLLs.
17425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17426 allow_undefined_flag_GCJ=unsupported
17427 always_export_symbols_GCJ=no
17428 enable_shared_with_static_runtimes_GCJ=yes
17429 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17431 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17432 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17433 # If the export-symbols file already is a .def file (1st line
17434 # is EXPORTS), use it as is; otherwise, prepend...
17435 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17436 cp $export_symbols $output_objdir/$soname.def;
17438 echo EXPORTS > $output_objdir/$soname.def;
17439 cat $export_symbols >> $output_objdir/$soname.def;
17441 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17448 hardcode_direct_GCJ=no
17449 hardcode_shlibpath_var_GCJ=no
17450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17451 export_dynamic_flag_spec_GCJ='${wl}-E'
17452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17453 # Instead, shared libraries are loaded at an image base (0x10000000 by
17454 # default) and relocated if they conflict, which is a slow very memory
17455 # consuming and fragmenting process. To avoid this, we pick a random,
17456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17458 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17459 archive_expsym_cmds_GCJ='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'
17462 gnu* | linux* | k*bsd*-gnu)
17463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17465 case $cc_basename,$host_cpu in
17466 pgcc*) # Portland Group C compiler
17467 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17468 tmp_addflag=' $pic_flag'
17470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17471 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17472 tmp_addflag=' $pic_flag -Mnomain' ;;
17473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17474 tmp_addflag=' -i_dynamic' ;;
17475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17476 tmp_addflag=' -i_dynamic -nofor_main' ;;
17477 ifc* | ifort*) # Intel Fortran compiler
17478 tmp_addflag=' -nofor_main' ;;
17480 case `$CC -V 2>&1 | sed 5q` in
17481 *Sun\ C*) # Sun C 5.9
17482 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17483 tmp_sharedflag='-G' ;;
17484 *Sun\ F*) # Sun Fortran 8.3
17485 tmp_sharedflag='-G' ;;
17487 tmp_sharedflag='-shared' ;;
17489 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491 if test $supports_anon_versioning = yes; then
17492 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17493 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17494 $echo "local: *; };" >> $output_objdir/$libname.ver~
17495 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17504 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17507 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17508 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17513 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17518 *** create shared libraries on Solaris systems. Therefore, libtool
17519 *** is disabling shared libraries support. We urge you to upgrade GNU
17520 *** binutils to release 2.9.1 or newer. Another option is to modify
17521 *** your PATH or compiler configuration so that the native linker is
17522 *** used, and then restart.
17525 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17527 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17534 case `$LD -v 2>&1` in
17535 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17539 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17540 *** reliably create shared libraries on SCO systems. Therefore, libtool
17541 *** is disabling shared libraries support. We urge you to upgrade GNU
17542 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17543 *** your PATH or compiler configuration so that the native linker is
17544 *** used, and then restart.
17549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17550 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17552 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17561 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17563 hardcode_direct_GCJ=yes
17564 hardcode_shlibpath_var_GCJ=no
17568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17569 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17570 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17577 if test "$ld_shlibs_GCJ" = no; then
17579 hardcode_libdir_flag_spec_GCJ=
17580 export_dynamic_flag_spec_GCJ=
17581 whole_archive_flag_spec_GCJ=
17584 # PORTME fill in a description of your system's linker (not GNU ld)
17587 allow_undefined_flag_GCJ=unsupported
17588 always_export_symbols_GCJ=yes
17589 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17590 # Note: this linker hardcodes the directories in LIBPATH if there
17591 # are no directories specified by -L.
17592 hardcode_minus_L_GCJ=yes
17593 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17594 # Neither direct hardcoding nor static linking is supported with a
17596 hardcode_direct_GCJ=unsupported
17601 if test "$host_cpu" = ia64; then
17602 # On IA64, the linker does run time linking by default, so we don't
17603 # have to do anything special.
17604 aix_use_runtimelinking=no
17605 exp_sym_flag='-Bexport'
17608 # If we're using GNU nm, then we don't want the "-C" option.
17609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17610 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17611 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17613 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17615 aix_use_runtimelinking=no
17617 # Test if we are trying to use run time linking or normal
17618 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17619 # need to do runtime linking.
17620 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17621 for ld_flag in $LDFLAGS; do
17622 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17623 aix_use_runtimelinking=yes
17630 exp_sym_flag='-bexport'
17631 no_entry_flag='-bnoentry'
17634 # When large executables or shared objects are built, AIX ld can
17635 # have problems creating the table of contents. If linking a library
17636 # or program results in "error TOC overflow" add -mminimal-toc to
17637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17640 archive_cmds_GCJ=''
17641 hardcode_direct_GCJ=yes
17642 hardcode_libdir_separator_GCJ=':'
17643 link_all_deplibs_GCJ=yes
17645 if test "$GCC" = yes; then
17646 case $host_os in aix4.[012]|aix4.[012].*)
17647 # We only want to do this on AIX 4.2 and lower, the check
17648 # below for broken collect2 doesn't work under 4.3+
17649 collect2name=`${CC} -print-prog-name=collect2`
17650 if test -f "$collect2name" && \
17651 strings "$collect2name" | grep resolve_lib_name >/dev/null
17653 # We have reworked collect2
17656 # We have old collect2
17657 hardcode_direct_GCJ=unsupported
17658 # It fails to find uninstalled libraries when the uninstalled
17659 # path is not listed in the libpath. Setting hardcode_minus_L
17660 # to unsupported forces relinking
17661 hardcode_minus_L_GCJ=yes
17662 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17663 hardcode_libdir_separator_GCJ=
17667 shared_flag='-shared'
17668 if test "$aix_use_runtimelinking" = yes; then
17669 shared_flag="$shared_flag "'${wl}-G'
17673 if test "$host_cpu" = ia64; then
17674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17675 # chokes on -Wl,-G. The following line is correct:
17678 if test "$aix_use_runtimelinking" = yes; then
17679 shared_flag='${wl}-G'
17681 shared_flag='${wl}-bM:SRE'
17686 # It seems that -bexpall does not export symbols beginning with
17687 # underscore (_), so it is better to generate a list of symbols to export.
17688 always_export_symbols_GCJ=yes
17689 if test "$aix_use_runtimelinking" = yes; then
17690 # Warning - without using the other runtime loading flags (-brtl),
17691 # -berok will link without error, but may produce a broken library.
17692 allow_undefined_flag_GCJ='-berok'
17693 # Determine the default libpath from the value encoded in an empty executable.
17694 cat >conftest.$ac_ext <<_ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (ac_try="$ac_link"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_link") 2>conftest.er1
17718 grep -v '^ *+' conftest.er1 >conftest.err
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } &&
17723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17724 { (case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_try") 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
17734 { (case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_try") 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17744 lt_aix_libpath_sed='
17745 /Import File Strings/,/^$/ {
17751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17752 # Check for a 64-bit object if we didn't find anything.
17753 if test -z "$aix_libpath"; then
17754 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17763 rm -f core conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17767 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17768 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17770 if test "$host_cpu" = ia64; then
17771 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17772 allow_undefined_flag_GCJ="-z nodefs"
17773 archive_expsym_cmds_GCJ="\$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"
17775 # Determine the default libpath from the value encoded in an empty executable.
17776 cat >conftest.$ac_ext <<_ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_link") 2>conftest.er1
17800 grep -v '^ *+' conftest.er1 >conftest.err
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17806 { (case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_try") 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest$ac_exeext'
17816 { (case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_try") 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17826 lt_aix_libpath_sed='
17827 /Import File Strings/,/^$/ {
17833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17834 # Check for a 64-bit object if we didn't find anything.
17835 if test -z "$aix_libpath"; then
17836 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17845 rm -f core conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17849 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17850 # Warning - without using the other run time loading flags,
17851 # -berok will link without error, but may produce a broken library.
17852 no_undefined_flag_GCJ=' ${wl}-bernotok'
17853 allow_undefined_flag_GCJ=' ${wl}-berok'
17854 # Exported symbols can be pulled into shared objects from archives
17855 whole_archive_flag_spec_GCJ='$convenience'
17856 archive_cmds_need_lc_GCJ=yes
17857 # This is similar to how AIX traditionally builds its shared libraries.
17858 archive_expsym_cmds_GCJ="\$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'
17864 archive_cmds_GCJ='$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)'
17865 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17866 hardcode_minus_L_GCJ=yes
17867 # see comment about different semantics on the GNU ld section
17872 export_dynamic_flag_spec_GCJ=-rdynamic
17875 cygwin* | mingw* | pw32*)
17876 # When not using gcc, we currently assume that we are using
17877 # Microsoft Visual C++.
17878 # hardcode_libdir_flag_spec is actually meaningless, as there is
17879 # no search path for DLLs.
17880 hardcode_libdir_flag_spec_GCJ=' '
17881 allow_undefined_flag_GCJ=unsupported
17882 # Tell ltmain to make .lib files, not .a files.
17884 # Tell ltmain to make .dll files, not .so files.
17886 # FIXME: Setting linknames here is a bad hack.
17887 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17888 # The linker will automatically build a .lib file if we build a DLL.
17889 old_archive_From_new_cmds_GCJ='true'
17890 # FIXME: Should let the user specify the lib program.
17891 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17892 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17893 enable_shared_with_static_runtimes_GCJ=yes
17896 darwin* | rhapsody*)
17898 rhapsody* | darwin1.[012])
17899 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17902 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17903 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17905 case ${MACOSX_DEPLOYMENT_TARGET} in
17907 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17910 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17916 archive_cmds_need_lc_GCJ=no
17917 hardcode_direct_GCJ=no
17918 hardcode_automatic_GCJ=yes
17919 hardcode_shlibpath_var_GCJ=unsupported
17920 whole_archive_flag_spec_GCJ=''
17921 link_all_deplibs_GCJ=yes
17922 if test "$GCC" = yes ; then
17923 output_verbose_link_cmd='echo'
17924 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17925 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17926 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17927 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17928 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17930 case $cc_basename in
17932 output_verbose_link_cmd='echo'
17933 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17934 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17935 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17936 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17937 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17947 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17949 hardcode_shlibpath_var_GCJ=no
17956 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17957 # support. Future versions do this automatically, but an explicit c++rt0.o
17958 # does not break anything, and helps significantly (at the cost of a little
17961 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17962 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17963 hardcode_direct_GCJ=yes
17964 hardcode_shlibpath_var_GCJ=no
17967 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17970 hardcode_direct_GCJ=yes
17971 hardcode_minus_L_GCJ=yes
17972 hardcode_shlibpath_var_GCJ=no
17975 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17976 freebsd* | dragonfly*)
17977 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17978 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17979 hardcode_direct_GCJ=yes
17980 hardcode_shlibpath_var_GCJ=no
17984 if test "$GCC" = yes; then
17985 archive_cmds_GCJ='$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'
17987 archive_cmds_GCJ='$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'
17989 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17990 hardcode_libdir_separator_GCJ=:
17991 hardcode_direct_GCJ=yes
17993 # hardcode_minus_L: Not really in the search PATH,
17994 # but as the default location of the library.
17995 hardcode_minus_L_GCJ=yes
17996 export_dynamic_flag_spec_GCJ='${wl}-E'
18000 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18001 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18003 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18005 if test "$with_gnu_ld" = no; then
18006 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18007 hardcode_libdir_separator_GCJ=:
18009 hardcode_direct_GCJ=yes
18010 export_dynamic_flag_spec_GCJ='${wl}-E'
18012 # hardcode_minus_L: Not really in the search PATH,
18013 # but as the default location of the library.
18014 hardcode_minus_L_GCJ=yes
18019 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18022 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18025 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18028 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18034 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18037 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18040 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18044 if test "$with_gnu_ld" = no; then
18045 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18046 hardcode_libdir_separator_GCJ=:
18050 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18051 hardcode_direct_GCJ=no
18052 hardcode_shlibpath_var_GCJ=no
18055 hardcode_direct_GCJ=yes
18056 export_dynamic_flag_spec_GCJ='${wl}-E'
18058 # hardcode_minus_L: Not really in the search PATH,
18059 # but as the default location of the library.
18060 hardcode_minus_L_GCJ=yes
18066 irix5* | irix6* | nonstopux*)
18067 if test "$GCC" = yes; then
18068 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18070 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18071 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18073 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18074 hardcode_libdir_separator_GCJ=:
18075 link_all_deplibs_GCJ=yes
18079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18080 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18082 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18084 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18085 hardcode_direct_GCJ=yes
18086 hardcode_shlibpath_var_GCJ=no
18090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18091 hardcode_direct_GCJ=yes
18092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18093 hardcode_libdir_separator_GCJ=:
18094 hardcode_shlibpath_var_GCJ=no
18098 if test -f /usr/libexec/ld.so; then
18099 hardcode_direct_GCJ=yes
18100 hardcode_shlibpath_var_GCJ=no
18101 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18102 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18103 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18104 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18105 export_dynamic_flag_spec_GCJ='${wl}-E'
18108 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18109 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18113 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18114 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18124 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18125 hardcode_minus_L_GCJ=yes
18126 allow_undefined_flag_GCJ=unsupported
18127 archive_cmds_GCJ='$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'
18128 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18132 if test "$GCC" = yes; then
18133 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18134 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18136 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18137 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18139 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18140 hardcode_libdir_separator_GCJ=:
18143 osf4* | osf5*) # as osf3* with the addition of -msym flag
18144 if test "$GCC" = yes; then
18145 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18146 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18147 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18149 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18150 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18151 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18152 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18154 # Both c and cxx compiler support -rpath directly
18155 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18157 hardcode_libdir_separator_GCJ=:
18161 no_undefined_flag_GCJ=' -z text'
18162 if test "$GCC" = yes; then
18164 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18165 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18166 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18169 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18170 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18173 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18174 hardcode_shlibpath_var_GCJ=no
18176 solaris2.[0-5] | solaris2.[0-5].*) ;;
18178 # The compiler driver will combine and reorder linker options,
18179 # but understands `-z linker_flag'. GCC discards it without `$wl',
18180 # but is careful enough not to reorder.
18181 # Supported since Solaris 2.6 (maybe 2.5.1?)
18182 if test "$GCC" = yes; then
18183 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18185 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18189 link_all_deplibs_GCJ=yes
18193 if test "x$host_vendor" = xsequent; then
18194 # Use $CC to link under sequent, because it throws in some extra .o
18195 # files that make .init and .fini sections work.
18196 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18198 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18200 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18201 hardcode_direct_GCJ=yes
18202 hardcode_minus_L_GCJ=yes
18203 hardcode_shlibpath_var_GCJ=no
18207 case $host_vendor in
18209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18210 hardcode_direct_GCJ=yes # is this really true???
18213 ## LD is ld it makes a PLAMLIB
18214 ## CC just makes a GrossModule.
18215 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18216 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18217 hardcode_direct_GCJ=no
18220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18221 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18224 runpath_var='LD_RUN_PATH'
18225 hardcode_shlibpath_var_GCJ=no
18229 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18230 hardcode_shlibpath_var_GCJ=no
18231 export_dynamic_flag_spec_GCJ='-Bexport'
18235 if test -d /usr/nec; then
18236 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18237 hardcode_shlibpath_var_GCJ=no
18238 runpath_var=LD_RUN_PATH
18239 hardcode_runpath_var=yes
18244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18245 no_undefined_flag_GCJ='${wl}-z,text'
18246 archive_cmds_need_lc_GCJ=no
18247 hardcode_shlibpath_var_GCJ=no
18248 runpath_var='LD_RUN_PATH'
18250 if test "$GCC" = yes; then
18251 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18252 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18254 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18255 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18259 sysv5* | sco3.2v5* | sco5v6*)
18260 # Note: We can NOT use -z defs as we might desire, because we do not
18261 # link with -lc, and that would cause any symbols used from libc to
18262 # always be unresolved, which means just about no library would
18263 # ever link correctly. If we're not using GNU ld we use -z text
18264 # though, which does catch some bad symbols but isn't as heavy-handed
18266 no_undefined_flag_GCJ='${wl}-z,text'
18267 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18268 archive_cmds_need_lc_GCJ=no
18269 hardcode_shlibpath_var_GCJ=no
18270 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18271 hardcode_libdir_separator_GCJ=':'
18272 link_all_deplibs_GCJ=yes
18273 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18274 runpath_var='LD_RUN_PATH'
18276 if test "$GCC" = yes; then
18277 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18278 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18280 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18281 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18286 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18287 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18288 hardcode_shlibpath_var_GCJ=no
18297 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18298 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18299 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18302 # Do we need to explicitly link libc?
18304 case "x$archive_cmds_need_lc_GCJ" in
18306 # Assume -lc should be added
18307 archive_cmds_need_lc_GCJ=yes
18309 if test "$enable_shared" = yes && test "$GCC" = yes; then
18310 case $archive_cmds_GCJ in
18312 # FIXME: we may have to deal with multi-command sequences.
18315 # Test whether the compiler implicitly links with -lc since on some
18316 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18317 # to ld, don't add -lc before -lgcc.
18318 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18319 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18324 (eval $ac_compile) 2>&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } 2>conftest.err; then
18330 libobjs=conftest.$ac_objext
18332 wl=$lt_prog_compiler_wl_GCJ
18333 pic_flag=$lt_prog_compiler_pic_GCJ
18339 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18340 allow_undefined_flag_GCJ=
18341 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18342 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }
18347 archive_cmds_need_lc_GCJ=no
18349 archive_cmds_need_lc_GCJ=yes
18351 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18353 cat conftest.err 1>&5
18356 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18357 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18364 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18366 library_names_spec=
18367 libname_spec='lib$name'
18371 postuninstall_cmds=
18375 shlibpath_overrides_runpath=unknown
18377 dynamic_linker="$host_os ld.so"
18378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18380 need_lib_prefix=unknown
18381 hardcode_into_libs=no
18383 # when you set need_version to no, make sure it does not cause -set_version
18384 # flags to be left without arguments
18385 need_version=unknown
18390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18391 shlibpath_var=LIBPATH
18393 # AIX 3 has no versioning support, so we append a major version to the name.
18394 soname_spec='${libname}${release}${shared_ext}$major'
18401 hardcode_into_libs=yes
18402 if test "$host_cpu" = ia64; then
18403 # AIX 5 supports IA64
18404 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18405 shlibpath_var=LD_LIBRARY_PATH
18407 # With GCC up to 2.95.x, collect2 would create an import file
18408 # for dependence libraries. The import file would start with
18409 # the line `#! .'. This would cause the generated library to
18410 # depend on `.', always an invalid library. This was fixed in
18411 # development snapshots of GCC prior to 3.0.
18413 aix4 | aix4.[01] | aix4.[01].*)
18414 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18416 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18419 can_build_shared=no
18423 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18424 # soname into executable. Probably we can add versioning support to
18425 # collect2, so additional links can be useful in future.
18426 if test "$aix_use_runtimelinking" = yes; then
18427 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18428 # instead of lib<name>.a to let people know that these are not
18429 # typical AIX shared libraries.
18430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432 # We preserve .a as extension for shared libraries through AIX4.2
18433 # and later when we are not doing run time linking.
18434 library_names_spec='${libname}${release}.a $libname.a'
18435 soname_spec='${libname}${release}${shared_ext}$major'
18437 shlibpath_var=LIBPATH
18442 library_names_spec='$libname.ixlibrary $libname.a'
18443 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18444 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18448 library_names_spec='${libname}${shared_ext}'
18449 dynamic_linker="$host_os ld.so"
18450 shlibpath_var=LIBRARY_PATH
18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457 soname_spec='${libname}${release}${shared_ext}$major'
18458 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18459 shlibpath_var=LD_LIBRARY_PATH
18460 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18461 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18462 # the default ld.so.conf also contains /usr/contrib/lib and
18463 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18464 # libtool to hard-code these into programs
18467 cygwin* | mingw* | pw32*)
18468 version_type=windows
18473 case $GCC,$host_os in
18474 yes,cygwin* | yes,mingw* | yes,pw32*)
18475 library_names_spec='$libname.dll.a'
18476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18477 postinstall_cmds='base_file=`basename \${file}`~
18478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18479 dldir=$destdir/`dirname \$dlpath`~
18480 test -d \$dldir || mkdir -p \$dldir~
18481 $install_prog $dir/$dlname \$dldir/$dlname~
18482 chmod a+x \$dldir/$dlname'
18483 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18484 dlpath=$dir/\$dldll~
18486 shlibpath_overrides_runpath=yes
18490 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18491 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18492 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18495 # MinGW DLLs use traditional 'lib' prefix
18496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18497 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18498 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18499 # It is most probably a Windows format PATH printed by
18500 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18501 # path with ; separators, and with drive letters. We can handle the
18502 # drive letters (cygwin fileutils understands them), so leave them,
18503 # especially as we might pass files found there to a mingw objdump,
18504 # which wouldn't understand a cygwinified path. Ahh.
18505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18507 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18511 # pw32 DLLs use 'pw' prefix rather than 'lib'
18512 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18518 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18521 dynamic_linker='Win32 ld.exe'
18522 # FIXME: first we should search . and the directory the executable is in
18526 darwin* | rhapsody*)
18527 dynamic_linker="$host_os dyld"
18528 version_type=darwin
18531 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18532 soname_spec='${libname}${release}${major}$shared_ext'
18533 shlibpath_overrides_runpath=yes
18534 shlibpath_var=DYLD_LIBRARY_PATH
18535 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LD_LIBRARY_PATH
18553 freebsd* | dragonfly*)
18554 # DragonFly does not have aout. When/if they implement a new
18555 # versioning mechanism, adjust this.
18556 if test -x /usr/bin/objformat; then
18557 objformat=`/usr/bin/objformat`
18560 freebsd[123]*) objformat=aout ;;
18561 *) objformat=elf ;;
18564 version_type=freebsd-$objformat
18565 case $version_type in
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18576 shlibpath_var=LD_LIBRARY_PATH
18579 shlibpath_overrides_runpath=yes
18581 freebsd3.[01]* | freebsdelf3.[01]*)
18582 shlibpath_overrides_runpath=yes
18583 hardcode_into_libs=yes
18585 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18586 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18587 shlibpath_overrides_runpath=no
18588 hardcode_into_libs=yes
18590 *) # from 4.6 on, and DragonFly
18591 shlibpath_overrides_runpath=yes
18592 hardcode_into_libs=yes
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 hardcode_into_libs=yes
18607 hpux9* | hpux10* | hpux11*)
18608 # Give a soname corresponding to the major version so that dld.sl refuses to
18609 # link against other versions.
18616 hardcode_into_libs=yes
18617 dynamic_linker="$host_os dld.so"
18618 shlibpath_var=LD_LIBRARY_PATH
18619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18621 soname_spec='${libname}${release}${shared_ext}$major'
18622 if test "X$HPUX_IA64_MODE" = X32; then
18623 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18625 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18631 hardcode_into_libs=yes
18632 dynamic_linker="$host_os dld.sl"
18633 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636 soname_spec='${libname}${release}${shared_ext}$major'
18637 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18642 dynamic_linker="$host_os dld.sl"
18643 shlibpath_var=SHLIB_PATH
18644 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646 soname_spec='${libname}${release}${shared_ext}$major'
18649 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18650 postinstall_cmds='chmod 555 $lib'
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18658 soname_spec='${libname}${release}${shared_ext}$major'
18659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18660 shlibpath_var=LD_LIBRARY_PATH
18661 shlibpath_overrides_runpath=no
18662 hardcode_into_libs=yes
18665 irix5* | irix6* | nonstopux*)
18667 nonstopux*) version_type=nonstopux ;;
18669 if test "$lt_cv_prog_gnu_ld" = yes; then
18677 soname_spec='${libname}${release}${shared_ext}$major'
18678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18680 irix5* | nonstopux*)
18681 libsuff= shlibsuff=
18684 case $LD in # libtool.m4 will add one of these switches to LD
18685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18686 libsuff= shlibsuff= libmagic=32-bit;;
18687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18688 libsuff=32 shlibsuff=N32 libmagic=N32;;
18689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18691 *) libsuff= shlibsuff= libmagic=never-match;;
18695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18696 shlibpath_overrides_runpath=no
18697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18699 hardcode_into_libs=yes
18702 # No shared lib support for Linux oldld, aout, or coff.
18703 linux*oldld* | linux*aout* | linux*coff*)
18707 # This must be Linux ELF.
18708 linux* | k*bsd*-gnu)
18712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18713 soname_spec='${libname}${release}${shared_ext}$major'
18714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18715 shlibpath_var=LD_LIBRARY_PATH
18716 shlibpath_overrides_runpath=no
18717 # This implies no fast_install, which is unacceptable.
18718 # Some rework will be needed to allow for fast_install
18719 # before this can be enabled.
18720 hardcode_into_libs=yes
18722 # find out which ABI we are using
18724 case "$host_cpu" in
18725 x86_64*|s390x*|powerpc64*)
18726 echo '#line 18726 "configure"' > conftest.$ac_ext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728 (eval $ac_compile) 2>&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; then
18732 case `/usr/bin/file conftest.$ac_objext` in
18735 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18743 # Append ld.so.conf contents to the search path
18744 if test -f /etc/ld.so.conf; then
18745 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;/^$/d' | tr '\n' ' '`
18746 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18749 # We used to test for /lib/ld.so.1 and disable shared libraries on
18750 # powerpc, because MkLinux only supported shared libraries with the
18751 # GNU dynamic linker. Since this was broken with cross compilers,
18752 # most powerpc-linux boxes support dynamic linking these days and
18753 # people can always --disable-shared, the test was removed, and we
18754 # assume the GNU/Linux dynamic linker is in use.
18755 dynamic_linker='GNU/Linux ld.so'
18762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18765 dynamic_linker='NetBSD (a.out) ld.so'
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18768 soname_spec='${libname}${release}${shared_ext}$major'
18769 dynamic_linker='NetBSD ld.elf_so'
18771 shlibpath_var=LD_LIBRARY_PATH
18772 shlibpath_overrides_runpath=yes
18773 hardcode_into_libs=yes
18778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779 shlibpath_var=LD_LIBRARY_PATH
18780 shlibpath_overrides_runpath=yes
18787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18788 soname_spec='${libname}${release}${shared_ext}$major'
18789 shlibpath_var=LD_LIBRARY_PATH
18790 shlibpath_overrides_runpath=yes
18795 sys_lib_dlsearch_path_spec="/usr/lib"
18797 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18799 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18800 *) need_version=no ;;
18802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18804 shlibpath_var=LD_LIBRARY_PATH
18805 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18807 openbsd2.[89] | openbsd2.[89].*)
18808 shlibpath_overrides_runpath=no
18811 shlibpath_overrides_runpath=yes
18815 shlibpath_overrides_runpath=yes
18820 libname_spec='$name'
18823 library_names_spec='$libname${shared_ext} $libname.a'
18824 dynamic_linker='OS/2 ld.exe'
18825 shlibpath_var=LIBPATH
18828 osf3* | osf4* | osf5*)
18832 soname_spec='${libname}${release}${shared_ext}$major'
18833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18834 shlibpath_var=LD_LIBRARY_PATH
18835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18836 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848 soname_spec='${libname}${release}${shared_ext}$major'
18849 shlibpath_var=LD_LIBRARY_PATH
18850 shlibpath_overrides_runpath=yes
18851 hardcode_into_libs=yes
18852 # ldd complains unless libraries are executable
18853 postinstall_cmds='chmod +x $lib'
18858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18860 shlibpath_var=LD_LIBRARY_PATH
18861 shlibpath_overrides_runpath=yes
18862 if test "$with_gnu_ld" = yes; then
18870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871 soname_spec='${libname}${release}${shared_ext}$major'
18872 shlibpath_var=LD_LIBRARY_PATH
18873 case $host_vendor in
18875 shlibpath_overrides_runpath=no
18877 export_dynamic_flag_spec='${wl}-Blargedynsym'
18878 runpath_var=LD_RUN_PATH
18886 shlibpath_overrides_runpath=no
18887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18893 if test -d /usr/nec ;then
18895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18896 soname_spec='$libname${shared_ext}.$major'
18897 shlibpath_var=LD_LIBRARY_PATH
18901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18902 version_type=freebsd-elf
18905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18906 soname_spec='${libname}${release}${shared_ext}$major'
18907 shlibpath_var=LD_LIBRARY_PATH
18908 hardcode_into_libs=yes
18909 if test "$with_gnu_ld" = yes; then
18910 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18911 shlibpath_overrides_runpath=no
18913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18914 shlibpath_overrides_runpath=yes
18917 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18921 sys_lib_dlsearch_path_spec='/usr/lib'
18926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18927 soname_spec='${libname}${release}${shared_ext}$major'
18928 shlibpath_var=LD_LIBRARY_PATH
18935 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18936 echo "${ECHO_T}$dynamic_linker" >&6; }
18937 test "$dynamic_linker" = no && can_build_shared=no
18939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18940 if test "$GCC" = yes; then
18941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18944 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18945 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18946 hardcode_action_GCJ=
18947 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18948 test -n "$runpath_var_GCJ" || \
18949 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18951 # We can hardcode non-existant directories.
18952 if test "$hardcode_direct_GCJ" != no &&
18953 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18954 # have to relink, otherwise we might link with an installed library
18955 # when we should be linking with a yet-to-be-installed one
18956 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18957 test "$hardcode_minus_L_GCJ" != no; then
18958 # Linking always hardcodes the temporary library directory.
18959 hardcode_action_GCJ=relink
18961 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18962 hardcode_action_GCJ=immediate
18965 # We cannot hardcode anything, or else we can only hardcode existing
18967 hardcode_action_GCJ=unsupported
18969 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18970 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18972 if test "$hardcode_action_GCJ" = relink; then
18973 # Fast installation is not supported
18974 enable_fast_install=no
18975 elif test "$shlibpath_overrides_runpath" = yes ||
18976 test "$enable_shared" = no; then
18977 # Fast installation is not necessary
18978 enable_fast_install=needless
18982 # The else clause should only fire when bootstrapping the
18983 # libtool distribution, otherwise you forgot to ship ltmain.sh
18984 # with your package, and you will get complaints that there are
18985 # no rules to generate ltmain.sh.
18986 if test -f "$ltmain"; then
18987 # See if we are running on zsh, and set the options which allow our commands through
18988 # without removal of \ escapes.
18989 if test -n "${ZSH_VERSION+set}" ; then
18990 setopt NO_GLOB_SUBST
18992 # Now quote all the things that may contain metacharacters while being
18993 # careful not to overquote the AC_SUBSTed values. We take copies of the
18994 # variables and quote the copies for generation of the libtool script.
18995 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18997 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18998 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18999 deplibs_check_method reload_flag reload_cmds need_locks \
19000 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19001 lt_cv_sys_global_symbol_to_c_name_address \
19002 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19003 old_postinstall_cmds old_postuninstall_cmds \
19007 lt_prog_compiler_wl_GCJ \
19008 lt_prog_compiler_pic_GCJ \
19009 lt_prog_compiler_static_GCJ \
19010 lt_prog_compiler_no_builtin_flag_GCJ \
19011 export_dynamic_flag_spec_GCJ \
19012 thread_safe_flag_spec_GCJ \
19013 whole_archive_flag_spec_GCJ \
19014 enable_shared_with_static_runtimes_GCJ \
19015 old_archive_cmds_GCJ \
19016 old_archive_from_new_cmds_GCJ \
19017 predep_objects_GCJ \
19018 postdep_objects_GCJ \
19021 compiler_lib_search_path_GCJ \
19023 archive_expsym_cmds_GCJ \
19024 postinstall_cmds_GCJ \
19025 postuninstall_cmds_GCJ \
19026 old_archive_from_expsyms_cmds_GCJ \
19027 allow_undefined_flag_GCJ \
19028 no_undefined_flag_GCJ \
19029 export_symbols_cmds_GCJ \
19030 hardcode_libdir_flag_spec_GCJ \
19031 hardcode_libdir_flag_spec_ld_GCJ \
19032 hardcode_libdir_separator_GCJ \
19033 hardcode_automatic_GCJ \
19035 module_expsym_cmds_GCJ \
19036 lt_cv_prog_compiler_c_o_GCJ \
19037 fix_srcfile_path_GCJ \
19038 exclude_expsyms_GCJ \
19039 include_expsyms_GCJ; do
19042 old_archive_cmds_GCJ | \
19043 old_archive_from_new_cmds_GCJ | \
19044 archive_cmds_GCJ | \
19045 archive_expsym_cmds_GCJ | \
19046 module_cmds_GCJ | \
19047 module_expsym_cmds_GCJ | \
19048 old_archive_from_expsyms_cmds_GCJ | \
19049 export_symbols_cmds_GCJ | \
19050 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19051 postinstall_cmds | postuninstall_cmds | \
19052 old_postinstall_cmds | old_postuninstall_cmds | \
19053 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19054 # Double-quote double-evaled strings.
19055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19058 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19064 *'\$0 --fallback-echo"')
19065 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19071 cat <<__EOF__ >> "$cfgfile"
19072 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19074 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19076 # Shell to use when invoking shell scripts.
19079 # Whether or not to build shared libraries.
19080 build_libtool_libs=$enable_shared
19082 # Whether or not to build static libraries.
19083 build_old_libs=$enable_static
19085 # Whether or not to add -lc for building shared libraries.
19086 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19088 # Whether or not to disallow shared libs when runtime libs are static
19089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19091 # Whether or not to optimize for fast installation.
19092 fast_install=$enable_fast_install
19095 host_alias=$host_alias
19099 # The build system.
19100 build_alias=$build_alias
19104 # An echo program that does not interpret backslashes.
19109 AR_FLAGS=$lt_AR_FLAGS
19114 # LTCC compiler flags.
19115 LTCFLAGS=$lt_LTCFLAGS
19117 # A language-specific compiler.
19118 CC=$lt_compiler_GCJ
19120 # Is the compiler the GNU C compiler?
19123 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19124 gcc_ver=\`gcc -dumpversion\`
19129 # The linker used to build libraries.
19132 # Whether we need hard or soft links.
19135 # A BSD-compatible nm program.
19138 # A symbol stripping program
19141 # Used to examine libraries when file_magic_cmd begins "file"
19142 MAGIC_CMD=$MAGIC_CMD
19144 # Used on cygwin: DLL creation program.
19147 # Used on cygwin: object dumper.
19150 # Used on cygwin: assembler.
19153 # The name of the directory that contains temporary libtool files.
19156 # How to create reloadable object files.
19157 reload_flag=$lt_reload_flag
19158 reload_cmds=$lt_reload_cmds
19160 # How to pass a linker flag through the compiler.
19161 wl=$lt_lt_prog_compiler_wl_GCJ
19163 # Object file suffix (normally "o").
19164 objext="$ac_objext"
19166 # Old archive suffix (normally "a").
19169 # Shared library suffix (normally ".so").
19170 shrext_cmds='$shrext_cmds'
19172 # Executable file suffix (normally "").
19175 # Additional compiler flags for building library objects.
19176 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19179 # What is the maximum length of a command?
19180 max_cmd_len=$lt_cv_sys_max_cmd_len
19182 # Does compiler simultaneously support -c and -o options?
19183 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19185 # Must we lock files when doing compilation?
19186 need_locks=$lt_need_locks
19188 # Do we need the lib prefix for modules?
19189 need_lib_prefix=$need_lib_prefix
19191 # Do we need a version for libraries?
19192 need_version=$need_version
19194 # Whether dlopen is supported.
19195 dlopen_support=$enable_dlopen
19197 # Whether dlopen of programs is supported.
19198 dlopen_self=$enable_dlopen_self
19200 # Whether dlopen of statically linked programs is supported.
19201 dlopen_self_static=$enable_dlopen_self_static
19203 # Compiler flag to prevent dynamic linking.
19204 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19206 # Compiler flag to turn off builtin functions.
19207 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19209 # Compiler flag to allow reflexive dlopens.
19210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19212 # Compiler flag to generate shared objects directly from archives.
19213 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19215 # Compiler flag to generate thread-safe objects.
19216 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19218 # Library versioning type.
19219 version_type=$version_type
19221 # Format of library name prefix.
19222 libname_spec=$lt_libname_spec
19224 # List of archive names. First name is the real one, the rest are links.
19225 # The last name is the one that the linker finds with -lNAME.
19226 library_names_spec=$lt_library_names_spec
19228 # The coded name of the library, if different from the real name.
19229 soname_spec=$lt_soname_spec
19231 # Commands used to build and install an old-style archive.
19233 old_archive_cmds=$lt_old_archive_cmds_GCJ
19234 old_postinstall_cmds=$lt_old_postinstall_cmds
19235 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19237 # Create an old-style archive from a shared archive.
19238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19240 # Create a temporary old-style archive to link instead of a shared archive.
19241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19243 # Commands used to build and install a shared archive.
19244 archive_cmds=$lt_archive_cmds_GCJ
19245 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19246 postinstall_cmds=$lt_postinstall_cmds
19247 postuninstall_cmds=$lt_postuninstall_cmds
19249 # Commands used to build a loadable module (assumed same as above if empty)
19250 module_cmds=$lt_module_cmds_GCJ
19251 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19253 # Commands to strip libraries.
19254 old_striplib=$lt_old_striplib
19255 striplib=$lt_striplib
19257 # Dependencies to place before the objects being linked to create a
19259 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19261 # Dependencies to place after the objects being linked to create a
19263 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19265 # Dependencies to place before the objects being linked to create a
19267 predeps=$lt_predeps_GCJ
19269 # Dependencies to place after the objects being linked to create a
19271 postdeps=$lt_postdeps_GCJ
19273 # The library search path used internally by the compiler when linking
19274 # a shared library.
19275 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19277 # Method to check whether dependent libraries are shared objects.
19278 deplibs_check_method=$lt_deplibs_check_method
19280 # Command to use when deplibs_check_method == file_magic.
19281 file_magic_cmd=$lt_file_magic_cmd
19283 # Flag that allows shared libraries with undefined symbols to be built.
19284 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19286 # Flag that forces no undefined symbols.
19287 no_undefined_flag=$lt_no_undefined_flag_GCJ
19289 # Commands used to finish a libtool library installation in a directory.
19290 finish_cmds=$lt_finish_cmds
19292 # Same as above, but a single script fragment to be evaled but not shown.
19293 finish_eval=$lt_finish_eval
19295 # Take the output of nm and produce a listing of raw symbols and C names.
19296 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19298 # Transform the output of nm in a proper C declaration
19299 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19301 # Transform the output of nm in a C name address pair
19302 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19304 # This is the shared library runtime path variable.
19305 runpath_var=$runpath_var
19307 # This is the shared library path variable.
19308 shlibpath_var=$shlibpath_var
19310 # Is shlibpath searched before the hard-coded library search path?
19311 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19313 # How to hardcode a shared library path into an executable.
19314 hardcode_action=$hardcode_action_GCJ
19316 # Whether we should hardcode library paths into libraries.
19317 hardcode_into_libs=$hardcode_into_libs
19319 # Flag to hardcode \$libdir into a binary during linking.
19320 # This must work even if \$libdir does not exist.
19321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19323 # If ld is used when linking, flag to hardcode \$libdir into
19324 # a binary during linking. This must work even if \$libdir does
19326 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19328 # Whether we need a single -rpath flag with a separated argument.
19329 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19331 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19332 # resulting binary.
19333 hardcode_direct=$hardcode_direct_GCJ
19335 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19336 # resulting binary.
19337 hardcode_minus_L=$hardcode_minus_L_GCJ
19339 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19340 # the resulting binary.
19341 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19343 # Set to yes if building a shared library automatically hardcodes DIR into the library
19344 # and all subsequent libraries and executables linked against it.
19345 hardcode_automatic=$hardcode_automatic_GCJ
19347 # Variables whose values should be saved in libtool wrapper scripts and
19348 # restored at relink time.
19349 variables_saved_for_relink="$variables_saved_for_relink"
19351 # Whether libtool must link a program against all its dependency libraries.
19352 link_all_deplibs=$link_all_deplibs_GCJ
19354 # Compile-time system search path for libraries
19355 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19357 # Run-time system search path for libraries
19358 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19360 # Fix the shell variable \$srcfile for the compiler.
19361 fix_srcfile_path=$lt_fix_srcfile_path
19363 # Set to yes if exported symbols are required.
19364 always_export_symbols=$always_export_symbols_GCJ
19366 # The commands to list exported symbols.
19367 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19369 # The commands to extract the exported symbol list from a shared archive.
19370 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19372 # Symbols that should not be listed in the preloaded symbols.
19373 exclude_expsyms=$lt_exclude_expsyms_GCJ
19375 # Symbols that must always be exported.
19376 include_expsyms=$lt_include_expsyms_GCJ
19378 # ### END LIBTOOL TAG CONFIG: $tagname
19384 # If there is no Makefile yet, we rely on a make rule to execute
19385 # `config.status --recheck' to rerun these tests and create the
19386 # libtool script then.
19387 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19388 if test -f "$ltmain_in"; then
19389 test -f Makefile && make "$ltmain"
19395 ac_cpp='$CPP $CPPFLAGS'
19396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19410 # Source file extension for RC test sources.
19413 # Object file extension for compiled RC test sources.
19417 # Code to be used in simple compile tests
19418 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19420 # Code to be used in simple link tests
19421 lt_simple_link_test_code="$lt_simple_compile_test_code"
19423 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19425 # If no C compiler was specified, use CC.
19428 # If no C compiler flags were specified, use CFLAGS.
19429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19431 # Allow CC to be a program name with arguments.
19435 # save warnings/boilerplate of simple test code
19436 ac_outfile=conftest.$ac_objext
19437 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19438 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19439 _lt_compiler_boilerplate=`cat conftest.err`
19442 ac_outfile=conftest.$ac_objext
19443 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19444 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19445 _lt_linker_boilerplate=`cat conftest.err`
19449 # Allow CC to be a program name with arguments.
19454 for cc_temp in $compiler""; do
19456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19462 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19464 lt_cv_prog_compiler_c_o_RC=yes
19466 # The else clause should only fire when bootstrapping the
19467 # libtool distribution, otherwise you forgot to ship ltmain.sh
19468 # with your package, and you will get complaints that there are
19469 # no rules to generate ltmain.sh.
19470 if test -f "$ltmain"; then
19471 # See if we are running on zsh, and set the options which allow our commands through
19472 # without removal of \ escapes.
19473 if test -n "${ZSH_VERSION+set}" ; then
19474 setopt NO_GLOB_SUBST
19476 # Now quote all the things that may contain metacharacters while being
19477 # careful not to overquote the AC_SUBSTed values. We take copies of the
19478 # variables and quote the copies for generation of the libtool script.
19479 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19481 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19482 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19483 deplibs_check_method reload_flag reload_cmds need_locks \
19484 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19485 lt_cv_sys_global_symbol_to_c_name_address \
19486 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19487 old_postinstall_cmds old_postuninstall_cmds \
19491 lt_prog_compiler_wl_RC \
19492 lt_prog_compiler_pic_RC \
19493 lt_prog_compiler_static_RC \
19494 lt_prog_compiler_no_builtin_flag_RC \
19495 export_dynamic_flag_spec_RC \
19496 thread_safe_flag_spec_RC \
19497 whole_archive_flag_spec_RC \
19498 enable_shared_with_static_runtimes_RC \
19499 old_archive_cmds_RC \
19500 old_archive_from_new_cmds_RC \
19501 predep_objects_RC \
19502 postdep_objects_RC \
19505 compiler_lib_search_path_RC \
19507 archive_expsym_cmds_RC \
19508 postinstall_cmds_RC \
19509 postuninstall_cmds_RC \
19510 old_archive_from_expsyms_cmds_RC \
19511 allow_undefined_flag_RC \
19512 no_undefined_flag_RC \
19513 export_symbols_cmds_RC \
19514 hardcode_libdir_flag_spec_RC \
19515 hardcode_libdir_flag_spec_ld_RC \
19516 hardcode_libdir_separator_RC \
19517 hardcode_automatic_RC \
19519 module_expsym_cmds_RC \
19520 lt_cv_prog_compiler_c_o_RC \
19521 fix_srcfile_path_RC \
19522 exclude_expsyms_RC \
19523 include_expsyms_RC; do
19526 old_archive_cmds_RC | \
19527 old_archive_from_new_cmds_RC | \
19528 archive_cmds_RC | \
19529 archive_expsym_cmds_RC | \
19531 module_expsym_cmds_RC | \
19532 old_archive_from_expsyms_cmds_RC | \
19533 export_symbols_cmds_RC | \
19534 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19535 postinstall_cmds | postuninstall_cmds | \
19536 old_postinstall_cmds | old_postuninstall_cmds | \
19537 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19538 # Double-quote double-evaled strings.
19539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19548 *'\$0 --fallback-echo"')
19549 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19555 cat <<__EOF__ >> "$cfgfile"
19556 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19558 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19560 # Shell to use when invoking shell scripts.
19563 # Whether or not to build shared libraries.
19564 build_libtool_libs=$enable_shared
19566 # Whether or not to build static libraries.
19567 build_old_libs=$enable_static
19569 # Whether or not to add -lc for building shared libraries.
19570 build_libtool_need_lc=$archive_cmds_need_lc_RC
19572 # Whether or not to disallow shared libs when runtime libs are static
19573 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19575 # Whether or not to optimize for fast installation.
19576 fast_install=$enable_fast_install
19579 host_alias=$host_alias
19583 # The build system.
19584 build_alias=$build_alias
19588 # An echo program that does not interpret backslashes.
19593 AR_FLAGS=$lt_AR_FLAGS
19598 # LTCC compiler flags.
19599 LTCFLAGS=$lt_LTCFLAGS
19601 # A language-specific compiler.
19604 # Is the compiler the GNU C compiler?
19607 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19608 gcc_ver=\`gcc -dumpversion\`
19613 # The linker used to build libraries.
19616 # Whether we need hard or soft links.
19619 # A BSD-compatible nm program.
19622 # A symbol stripping program
19625 # Used to examine libraries when file_magic_cmd begins "file"
19626 MAGIC_CMD=$MAGIC_CMD
19628 # Used on cygwin: DLL creation program.
19631 # Used on cygwin: object dumper.
19634 # Used on cygwin: assembler.
19637 # The name of the directory that contains temporary libtool files.
19640 # How to create reloadable object files.
19641 reload_flag=$lt_reload_flag
19642 reload_cmds=$lt_reload_cmds
19644 # How to pass a linker flag through the compiler.
19645 wl=$lt_lt_prog_compiler_wl_RC
19647 # Object file suffix (normally "o").
19648 objext="$ac_objext"
19650 # Old archive suffix (normally "a").
19653 # Shared library suffix (normally ".so").
19654 shrext_cmds='$shrext_cmds'
19656 # Executable file suffix (normally "").
19659 # Additional compiler flags for building library objects.
19660 pic_flag=$lt_lt_prog_compiler_pic_RC
19663 # What is the maximum length of a command?
19664 max_cmd_len=$lt_cv_sys_max_cmd_len
19666 # Does compiler simultaneously support -c and -o options?
19667 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19669 # Must we lock files when doing compilation?
19670 need_locks=$lt_need_locks
19672 # Do we need the lib prefix for modules?
19673 need_lib_prefix=$need_lib_prefix
19675 # Do we need a version for libraries?
19676 need_version=$need_version
19678 # Whether dlopen is supported.
19679 dlopen_support=$enable_dlopen
19681 # Whether dlopen of programs is supported.
19682 dlopen_self=$enable_dlopen_self
19684 # Whether dlopen of statically linked programs is supported.
19685 dlopen_self_static=$enable_dlopen_self_static
19687 # Compiler flag to prevent dynamic linking.
19688 link_static_flag=$lt_lt_prog_compiler_static_RC
19690 # Compiler flag to turn off builtin functions.
19691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19693 # Compiler flag to allow reflexive dlopens.
19694 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19696 # Compiler flag to generate shared objects directly from archives.
19697 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19699 # Compiler flag to generate thread-safe objects.
19700 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19702 # Library versioning type.
19703 version_type=$version_type
19705 # Format of library name prefix.
19706 libname_spec=$lt_libname_spec
19708 # List of archive names. First name is the real one, the rest are links.
19709 # The last name is the one that the linker finds with -lNAME.
19710 library_names_spec=$lt_library_names_spec
19712 # The coded name of the library, if different from the real name.
19713 soname_spec=$lt_soname_spec
19715 # Commands used to build and install an old-style archive.
19717 old_archive_cmds=$lt_old_archive_cmds_RC
19718 old_postinstall_cmds=$lt_old_postinstall_cmds
19719 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19721 # Create an old-style archive from a shared archive.
19722 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19724 # Create a temporary old-style archive to link instead of a shared archive.
19725 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19727 # Commands used to build and install a shared archive.
19728 archive_cmds=$lt_archive_cmds_RC
19729 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19730 postinstall_cmds=$lt_postinstall_cmds
19731 postuninstall_cmds=$lt_postuninstall_cmds
19733 # Commands used to build a loadable module (assumed same as above if empty)
19734 module_cmds=$lt_module_cmds_RC
19735 module_expsym_cmds=$lt_module_expsym_cmds_RC
19737 # Commands to strip libraries.
19738 old_striplib=$lt_old_striplib
19739 striplib=$lt_striplib
19741 # Dependencies to place before the objects being linked to create a
19743 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19745 # Dependencies to place after the objects being linked to create a
19747 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19749 # Dependencies to place before the objects being linked to create a
19751 predeps=$lt_predeps_RC
19753 # Dependencies to place after the objects being linked to create a
19755 postdeps=$lt_postdeps_RC
19757 # The library search path used internally by the compiler when linking
19758 # a shared library.
19759 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19761 # Method to check whether dependent libraries are shared objects.
19762 deplibs_check_method=$lt_deplibs_check_method
19764 # Command to use when deplibs_check_method == file_magic.
19765 file_magic_cmd=$lt_file_magic_cmd
19767 # Flag that allows shared libraries with undefined symbols to be built.
19768 allow_undefined_flag=$lt_allow_undefined_flag_RC
19770 # Flag that forces no undefined symbols.
19771 no_undefined_flag=$lt_no_undefined_flag_RC
19773 # Commands used to finish a libtool library installation in a directory.
19774 finish_cmds=$lt_finish_cmds
19776 # Same as above, but a single script fragment to be evaled but not shown.
19777 finish_eval=$lt_finish_eval
19779 # Take the output of nm and produce a listing of raw symbols and C names.
19780 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19782 # Transform the output of nm in a proper C declaration
19783 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19785 # Transform the output of nm in a C name address pair
19786 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19788 # This is the shared library runtime path variable.
19789 runpath_var=$runpath_var
19791 # This is the shared library path variable.
19792 shlibpath_var=$shlibpath_var
19794 # Is shlibpath searched before the hard-coded library search path?
19795 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19797 # How to hardcode a shared library path into an executable.
19798 hardcode_action=$hardcode_action_RC
19800 # Whether we should hardcode library paths into libraries.
19801 hardcode_into_libs=$hardcode_into_libs
19803 # Flag to hardcode \$libdir into a binary during linking.
19804 # This must work even if \$libdir does not exist.
19805 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19807 # If ld is used when linking, flag to hardcode \$libdir into
19808 # a binary during linking. This must work even if \$libdir does
19810 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19812 # Whether we need a single -rpath flag with a separated argument.
19813 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19815 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19816 # resulting binary.
19817 hardcode_direct=$hardcode_direct_RC
19819 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19820 # resulting binary.
19821 hardcode_minus_L=$hardcode_minus_L_RC
19823 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19824 # the resulting binary.
19825 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19827 # Set to yes if building a shared library automatically hardcodes DIR into the library
19828 # and all subsequent libraries and executables linked against it.
19829 hardcode_automatic=$hardcode_automatic_RC
19831 # Variables whose values should be saved in libtool wrapper scripts and
19832 # restored at relink time.
19833 variables_saved_for_relink="$variables_saved_for_relink"
19835 # Whether libtool must link a program against all its dependency libraries.
19836 link_all_deplibs=$link_all_deplibs_RC
19838 # Compile-time system search path for libraries
19839 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19841 # Run-time system search path for libraries
19842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19844 # Fix the shell variable \$srcfile for the compiler.
19845 fix_srcfile_path=$lt_fix_srcfile_path
19847 # Set to yes if exported symbols are required.
19848 always_export_symbols=$always_export_symbols_RC
19850 # The commands to list exported symbols.
19851 export_symbols_cmds=$lt_export_symbols_cmds_RC
19853 # The commands to extract the exported symbol list from a shared archive.
19854 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19856 # Symbols that should not be listed in the preloaded symbols.
19857 exclude_expsyms=$lt_exclude_expsyms_RC
19859 # Symbols that must always be exported.
19860 include_expsyms=$lt_include_expsyms_RC
19862 # ### END LIBTOOL TAG CONFIG: $tagname
19868 # If there is no Makefile yet, we rely on a make rule to execute
19869 # `config.status --recheck' to rerun these tests and create the
19870 # libtool script then.
19871 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19872 if test -f "$ltmain_in"; then
19873 test -f Makefile && make "$ltmain"
19879 ac_cpp='$CPP $CPPFLAGS'
19880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19889 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19890 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19891 { (exit 1); exit 1; }; }
19895 # Append the new tag name to the list of available tags.
19896 if test -n "$tagname" ; then
19897 available_tags="$available_tags $tagname"
19903 # Now substitute the updated list of available tags.
19904 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19905 mv "${ofile}T" "$ofile"
19909 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19910 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19911 { (exit 1); exit 1; }; }
19917 # This can be used to rebuild libtool when needed
19918 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19920 # Always use our own libtool.
19921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19923 # Prevent multiple expansion
19946 ac_cpp='$CPP $CPPFLAGS'
19947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19953 ac_cpp='$CPP $CPPFLAGS'
19954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19957 if test -n "$ac_tool_prefix"; then
19958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19959 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19962 if test "${ac_cv_prog_CC+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 if test -n "$CC"; then
19966 ac_cv_prog_CC="$CC" # Let the user override the test.
19968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in $PATH
19972 test -z "$as_dir" && as_dir=.
19973 for ac_exec_ext in '' $ac_executable_extensions; do
19974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19975 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19986 if test -n "$CC"; then
19987 { echo "$as_me:$LINENO: result: $CC" >&5
19988 echo "${ECHO_T}$CC" >&6; }
19990 { echo "$as_me:$LINENO: result: no" >&5
19991 echo "${ECHO_T}no" >&6; }
19996 if test -z "$ac_cv_prog_CC"; then
19998 # Extract the first word of "gcc", so it can be a program name with args.
19999 set dummy gcc; ac_word=$2
20000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 if test -n "$ac_ct_CC"; then
20006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20009 for as_dir in $PATH
20012 test -z "$as_dir" && as_dir=.
20013 for ac_exec_ext in '' $ac_executable_extensions; do
20014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20015 ac_cv_prog_ac_ct_CC="gcc"
20016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20026 if test -n "$ac_ct_CC"; then
20027 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20028 echo "${ECHO_T}$ac_ct_CC" >&6; }
20030 { echo "$as_me:$LINENO: result: no" >&5
20031 echo "${ECHO_T}no" >&6; }
20034 if test "x$ac_ct_CC" = x; then
20037 case $cross_compiling:$ac_tool_warned in
20039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20040 whose name does not start with the host triplet. If you think this
20041 configuration is useful to you, please write to autoconf@gnu.org." >&5
20042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20043 whose name does not start with the host triplet. If you think this
20044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20045 ac_tool_warned=yes ;;
20050 CC="$ac_cv_prog_CC"
20053 if test -z "$CC"; then
20054 if test -n "$ac_tool_prefix"; then
20055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20056 set dummy ${ac_tool_prefix}cc; ac_word=$2
20057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20059 if test "${ac_cv_prog_CC+set}" = set; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 if test -n "$CC"; then
20063 ac_cv_prog_CC="$CC" # Let the user override the test.
20065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066 for as_dir in $PATH
20069 test -z "$as_dir" && as_dir=.
20070 for ac_exec_ext in '' $ac_executable_extensions; do
20071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20072 ac_cv_prog_CC="${ac_tool_prefix}cc"
20073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20083 if test -n "$CC"; then
20084 { echo "$as_me:$LINENO: result: $CC" >&5
20085 echo "${ECHO_T}$CC" >&6; }
20087 { echo "$as_me:$LINENO: result: no" >&5
20088 echo "${ECHO_T}no" >&6; }
20094 if test -z "$CC"; then
20095 # Extract the first word of "cc", so it can be a program name with args.
20096 set dummy cc; ac_word=$2
20097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20099 if test "${ac_cv_prog_CC+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20102 if test -n "$CC"; then
20103 ac_cv_prog_CC="$CC" # Let the user override the test.
20105 ac_prog_rejected=no
20106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20107 for as_dir in $PATH
20110 test -z "$as_dir" && as_dir=.
20111 for ac_exec_ext in '' $ac_executable_extensions; do
20112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20114 ac_prog_rejected=yes
20118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20125 if test $ac_prog_rejected = yes; then
20126 # We found a bogon in the path, so make sure we never use it.
20127 set dummy $ac_cv_prog_CC
20129 if test $# != 0; then
20130 # We chose a different compiler from the bogus one.
20131 # However, it has the same basename, so the bogon will be chosen
20132 # first if we set CC to just the basename; use the full file name.
20134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20140 if test -n "$CC"; then
20141 { echo "$as_me:$LINENO: result: $CC" >&5
20142 echo "${ECHO_T}$CC" >&6; }
20144 { echo "$as_me:$LINENO: result: no" >&5
20145 echo "${ECHO_T}no" >&6; }
20150 if test -z "$CC"; then
20151 if test -n "$ac_tool_prefix"; then
20152 for ac_prog in cl.exe
20154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20158 if test "${ac_cv_prog_CC+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 if test -n "$CC"; then
20162 ac_cv_prog_CC="$CC" # Let the user override the test.
20164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 for as_dir in $PATH
20168 test -z "$as_dir" && as_dir=.
20169 for ac_exec_ext in '' $ac_executable_extensions; do
20170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20182 if test -n "$CC"; then
20183 { echo "$as_me:$LINENO: result: $CC" >&5
20184 echo "${ECHO_T}$CC" >&6; }
20186 { echo "$as_me:$LINENO: result: no" >&5
20187 echo "${ECHO_T}no" >&6; }
20191 test -n "$CC" && break
20194 if test -z "$CC"; then
20196 for ac_prog in cl.exe
20198 # Extract the first word of "$ac_prog", so it can be a program name with args.
20199 set dummy $ac_prog; ac_word=$2
20200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 if test -n "$ac_ct_CC"; then
20206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20209 for as_dir in $PATH
20212 test -z "$as_dir" && as_dir=.
20213 for ac_exec_ext in '' $ac_executable_extensions; do
20214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20215 ac_cv_prog_ac_ct_CC="$ac_prog"
20216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20226 if test -n "$ac_ct_CC"; then
20227 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20228 echo "${ECHO_T}$ac_ct_CC" >&6; }
20230 { echo "$as_me:$LINENO: result: no" >&5
20231 echo "${ECHO_T}no" >&6; }
20235 test -n "$ac_ct_CC" && break
20238 if test "x$ac_ct_CC" = x; then
20241 case $cross_compiling:$ac_tool_warned in
20243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20244 whose name does not start with the host triplet. If you think this
20245 configuration is useful to you, please write to autoconf@gnu.org." >&5
20246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20247 whose name does not start with the host triplet. If you think this
20248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20249 ac_tool_warned=yes ;;
20258 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20259 See \`config.log' for more details." >&5
20260 echo "$as_me: error: no acceptable C compiler found in \$PATH
20261 See \`config.log' for more details." >&2;}
20262 { (exit 1); exit 1; }; }
20264 # Provide some information about the compiler.
20265 echo "$as_me:$LINENO: checking for C compiler version" >&5
20266 ac_compiler=`set X $ac_compile; echo $2`
20267 { (ac_try="$ac_compiler --version >&5"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_compiler --version >&5") 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }
20277 { (ac_try="$ac_compiler -v >&5"
20278 case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compiler -v >&5") 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }
20287 { (ac_try="$ac_compiler -V >&5"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_compiler -V >&5") 2>&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }
20298 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20321 rm -f conftest.$ac_objext
20322 if { (ac_try="$ac_compile"
20323 case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_compile") 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest.$ac_objext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_compiler_gnu=yes
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20367 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20368 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20369 GCC=`test $ac_compiler_gnu = yes && echo yes`
20370 ac_test_CFLAGS=${CFLAGS+set}
20371 ac_save_CFLAGS=$CFLAGS
20372 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20373 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20374 if test "${ac_cv_prog_cc_g+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 ac_save_c_werror_flag=$ac_c_werror_flag
20378 ac_c_werror_flag=yes
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20396 rm -f conftest.$ac_objext
20397 if { (ac_try="$ac_compile"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_compile") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411 { (case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_try") 2>&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest.$ac_objext'
20421 { (case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_try") 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_prog_cc_g=yes
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20436 cat >conftest.$ac_ext <<_ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20451 rm -f conftest.$ac_objext
20452 if { (ac_try="$ac_compile"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_compile") 2>conftest.er1
20460 grep -v '^ *+' conftest.er1 >conftest.err
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20466 { (case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_try") 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try='test -s conftest.$ac_objext'
20476 { (case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_try") 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_c_werror_flag=$ac_save_c_werror_flag
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20507 rm -f conftest.$ac_objext
20508 if { (ac_try="$ac_compile"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_compile") 2>conftest.er1
20516 grep -v '^ *+' conftest.er1 >conftest.err
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
20521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20522 { (case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_try") 2>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try='test -s conftest.$ac_objext'
20532 { (case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_try") 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 ac_cv_prog_cc_g=yes
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556 ac_c_werror_flag=$ac_save_c_werror_flag
20558 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20559 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20560 if test "$ac_test_CFLAGS" = set; then
20561 CFLAGS=$ac_save_CFLAGS
20562 elif test $ac_cv_prog_cc_g = yes; then
20563 if test "$GCC" = yes; then
20569 if test "$GCC" = yes; then
20575 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20576 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20577 if test "${ac_cv_prog_cc_c89+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 ac_cv_prog_cc_c89=no
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 #include <stdarg.h>
20590 #include <sys/types.h>
20591 #include <sys/stat.h>
20592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20593 struct buf { int x; };
20594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20595 static char *e (p, i)
20601 static char *f (char * (*g) (char **, int), char **p, ...)
20606 s = g (p, va_arg (v,int));
20611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20612 function prototypes and stuff, but not '\xHH' hex character constants.
20613 These don't provoke an error unfortunately, instead are silently treated
20614 as 'x'. The following induces an error, until -std is added to get
20615 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20616 array size at least. It's necessary to write '\x00'==0 to get something
20617 that's true only with -std. */
20618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20621 inside strings and character constants. */
20623 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20625 int test (int i, double x);
20626 struct s1 {int (*f) (int a);};
20627 struct s2 {int (*f) (double a);};
20628 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20634 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20639 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20640 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20642 CC="$ac_save_CC $ac_arg"
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_compile") 2>conftest.er1
20652 grep -v '^ *+' conftest.er1 >conftest.err
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
20657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20658 { (case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_try") 2>&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; } &&
20667 { ac_try='test -s conftest.$ac_objext'
20668 { (case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_try") 2>&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; }; then
20677 ac_cv_prog_cc_c89=$ac_arg
20679 echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20685 rm -f core conftest.err conftest.$ac_objext
20686 test "x$ac_cv_prog_cc_c89" != "xno" && break
20688 rm -f conftest.$ac_ext
20693 case "x$ac_cv_prog_cc_c89" in
20695 { echo "$as_me:$LINENO: result: none needed" >&5
20696 echo "${ECHO_T}none needed" >&6; } ;;
20698 { echo "$as_me:$LINENO: result: unsupported" >&5
20699 echo "${ECHO_T}unsupported" >&6; } ;;
20701 CC="$CC $ac_cv_prog_cc_c89"
20702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20703 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20708 ac_cpp='$CPP $CPPFLAGS'
20709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20713 depcc="$CC" am_compiler_list=
20715 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20716 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20717 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20721 # We make a subdir and do the tests there. Otherwise we can end up
20722 # making bogus files that we don't know about and never remove. For
20723 # instance it was reported that on HP-UX the gcc test will end up
20724 # making a dummy file named `D' -- because `-MD' means `put the output
20727 # Copy depcomp to subdir because otherwise we won't find it if we're
20728 # using a relative directory.
20729 cp "$am_depcomp" conftest.dir
20731 # We will build objects and dependencies in a subdirectory because
20732 # it helps to detect inapplicable dependency modes. For instance
20733 # both Tru64's cc and ICC support -MD to output dependencies as a
20734 # side effect of compilation, but ICC will put the dependencies in
20735 # the current directory while Tru64 will put them in the object
20739 am_cv_CC_dependencies_compiler_type=none
20740 if test "$am_compiler_list" = ""; then
20741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20743 for depmode in $am_compiler_list; do
20744 # Setup a source with many dependencies, because some compilers
20745 # like to wrap large dependency lists on column 80 (with \), and
20746 # we should not choose a depcomp mode which is confused by this.
20748 # We need to recreate these files for each test, as the compiler may
20749 # overwrite some of them when testing with obscure command lines.
20750 # This happens at least with the AIX C compiler.
20752 for i in 1 2 3 4 5 6; do
20753 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20754 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20755 # Solaris 8's {/usr,}/bin/sh.
20756 touch sub/conftst$i.h
20758 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20762 # after this tag, mechanisms are not by side-effect, so they'll
20763 # only be used when explicitly requested
20764 if test "x$enable_dependency_tracking" = xyes; then
20772 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20773 # mode. It turns out that the SunPro C++ compiler does not properly
20774 # handle `-M -o', and we need to detect this.
20775 if depmode=$depmode \
20776 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20777 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20778 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20779 >/dev/null 2>conftest.err &&
20780 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20781 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20782 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20783 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20784 # icc doesn't choke on unknown options, it will just issue warnings
20785 # or remarks (even with -Werror). So we grep stderr for any message
20786 # that says an option was ignored or not supported.
20787 # When given -MP, icc 7.0 and 7.1 complain thusly:
20788 # icc: Command line warning: ignoring option '-M'; no argument required
20789 # The diagnosis changed in icc 8.0:
20790 # icc: Command line remark: option '-MP' not supported
20791 if (grep 'ignoring option' conftest.err ||
20792 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20793 am_cv_CC_dependencies_compiler_type=$depmode
20800 rm -rf conftest.dir
20802 am_cv_CC_dependencies_compiler_type=none
20806 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20807 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20808 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20811 test "x$enable_dependency_tracking" != xno \
20812 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20813 am__fastdepCC_TRUE=
20814 am__fastdepCC_FALSE='#'
20816 am__fastdepCC_TRUE='#'
20817 am__fastdepCC_FALSE=
20822 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20823 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20824 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20825 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 cat >conftest.make <<\_ACEOF
20831 @echo '@@@%%%=$(MAKE)=@@@%%%'
20833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20834 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20835 *@@@%%%=?*=@@@%%%*)
20836 eval ac_cv_prog_make_${ac_make}_set=yes;;
20838 eval ac_cv_prog_make_${ac_make}_set=no;;
20840 rm -f conftest.make
20842 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20843 { echo "$as_me:$LINENO: result: yes" >&5
20844 echo "${ECHO_T}yes" >&6; }
20847 { echo "$as_me:$LINENO: result: no" >&5
20848 echo "${ECHO_T}no" >&6; }
20849 SET_MAKE="MAKE=${MAKE-make}"
20853 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20854 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20855 if test "${ac_cv_header_stdc+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 cat >conftest.$ac_ext <<_ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20864 #include <stdlib.h>
20865 #include <stdarg.h>
20866 #include <string.h>
20877 rm -f conftest.$ac_objext
20878 if { (ac_try="$ac_compile"
20879 case "(($ac_try" in
20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884 (eval "$ac_compile") 2>conftest.er1
20886 grep -v '^ *+' conftest.er1 >conftest.err
20888 cat conftest.err >&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } &&
20891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20892 { (case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_try") 2>&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; } &&
20901 { ac_try='test -s conftest.$ac_objext'
20902 { (case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_try") 2>&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911 ac_cv_header_stdc=yes
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ac_cv_header_stdc=no
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921 if test $ac_cv_header_stdc = yes; then
20922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20923 cat >conftest.$ac_ext <<_ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20929 #include <string.h>
20932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20933 $EGREP "memchr" >/dev/null 2>&1; then
20936 ac_cv_header_stdc=no
20942 if test $ac_cv_header_stdc = yes; then
20943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20944 cat >conftest.$ac_ext <<_ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20950 #include <stdlib.h>
20953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20954 $EGREP "free" >/dev/null 2>&1; then
20957 ac_cv_header_stdc=no
20963 if test $ac_cv_header_stdc = yes; then
20964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20965 if test "$cross_compiling" = yes; then
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20975 #include <stdlib.h>
20976 #if ((' ' & 0x0FF) == 0x020)
20977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20980 # define ISLOWER(c) \
20981 (('a' <= (c) && (c) <= 'i') \
20982 || ('j' <= (c) && (c) <= 'r') \
20983 || ('s' <= (c) && (c) <= 'z'))
20984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20992 for (i = 0; i < 256; i++)
20993 if (XOR (islower (i), ISLOWER (i))
20994 || toupper (i) != TOUPPER (i))
20999 rm -f conftest$ac_exeext
21000 if { (ac_try="$ac_link"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_link") 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21010 { (case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21021 echo "$as_me: program exited with status $ac_status" >&5
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ( exit $ac_status )
21026 ac_cv_header_stdc=no
21028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21034 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21035 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21036 if test $ac_cv_header_stdc = yes; then
21038 cat >>confdefs.h <<\_ACEOF
21039 #define STDC_HEADERS 1
21050 ac_header_dirent=no
21051 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21052 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21053 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21054 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 cat >conftest.$ac_ext <<_ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21064 #include <sys/types.h>
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_compile") 2>conftest.er1
21085 grep -v '^ *+' conftest.er1 >conftest.err
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } &&
21090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21091 { (case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_try") 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; } &&
21100 { ac_try='test -s conftest.$ac_objext'
21101 { (case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_try") 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 eval "$as_ac_Header=yes"
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 eval "$as_ac_Header=no"
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 ac_res=`eval echo '${'$as_ac_Header'}'`
21121 { echo "$as_me:$LINENO: result: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21124 cat >>confdefs.h <<_ACEOF
21125 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21128 ac_header_dirent=$ac_hdr; break
21132 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21133 if test $ac_header_dirent = dirent.h; then
21134 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21135 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21136 if test "${ac_cv_search_opendir+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 ac_func_search_save_LIBS=$LIBS
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21147 /* Override any GCC internal prototype to avoid an error.
21148 Use char because int might match the return type of a GCC
21149 builtin and then its argument prototype would still apply. */
21162 for ac_lib in '' dir; do
21163 if test -z "$ac_lib"; then
21164 ac_res="none required"
21167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21169 rm -f conftest.$ac_objext conftest$ac_exeext
21170 if { (ac_try="$ac_link"
21171 case "(($ac_try" in
21172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173 *) ac_try_echo=$ac_try;;
21175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21176 (eval "$ac_link") 2>conftest.er1
21178 grep -v '^ *+' conftest.er1 >conftest.err
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
21183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21184 { (case "(($ac_try" in
21185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186 *) ac_try_echo=$ac_try;;
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189 (eval "$ac_try") 2>&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; } &&
21193 { ac_try='test -s conftest$ac_exeext'
21194 { (case "(($ac_try" in
21195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196 *) ac_try_echo=$ac_try;;
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199 (eval "$ac_try") 2>&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_search_opendir=$ac_res
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21211 rm -f core conftest.err conftest.$ac_objext \
21213 if test "${ac_cv_search_opendir+set}" = set; then
21217 if test "${ac_cv_search_opendir+set}" = set; then
21220 ac_cv_search_opendir=no
21222 rm conftest.$ac_ext
21223 LIBS=$ac_func_search_save_LIBS
21225 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21226 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21227 ac_res=$ac_cv_search_opendir
21228 if test "$ac_res" != no; then
21229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21234 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21235 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21236 if test "${ac_cv_search_opendir+set}" = set; then
21237 echo $ECHO_N "(cached) $ECHO_C" >&6
21239 ac_func_search_save_LIBS=$LIBS
21240 cat >conftest.$ac_ext <<_ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21247 /* Override any GCC internal prototype to avoid an error.
21248 Use char because int might match the return type of a GCC
21249 builtin and then its argument prototype would still apply. */
21262 for ac_lib in '' x; do
21263 if test -z "$ac_lib"; then
21264 ac_res="none required"
21267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21269 rm -f conftest.$ac_objext conftest$ac_exeext
21270 if { (ac_try="$ac_link"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_link") 2>conftest.er1
21278 grep -v '^ *+' conftest.er1 >conftest.err
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } &&
21283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21284 { (case "(($ac_try" in
21285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286 *) ac_try_echo=$ac_try;;
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289 (eval "$ac_try") 2>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; } &&
21293 { ac_try='test -s conftest$ac_exeext'
21294 { (case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_try") 2>&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then
21303 ac_cv_search_opendir=$ac_res
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21311 rm -f core conftest.err conftest.$ac_objext \
21313 if test "${ac_cv_search_opendir+set}" = set; then
21317 if test "${ac_cv_search_opendir+set}" = set; then
21320 ac_cv_search_opendir=no
21322 rm conftest.$ac_ext
21323 LIBS=$ac_func_search_save_LIBS
21325 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21326 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21327 ac_res=$ac_cv_search_opendir
21328 if test "$ac_res" != no; then
21329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21337 for ac_header in unistd.h
21339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21344 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 ac_res=`eval echo '${'$as_ac_Header'}'`
21347 { echo "$as_me:$LINENO: result: $ac_res" >&5
21348 echo "${ECHO_T}$ac_res" >&6; }
21350 # Is the header compilable?
21351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21353 cat >conftest.$ac_ext <<_ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359 $ac_includes_default
21360 #include <$ac_header>
21362 rm -f conftest.$ac_objext
21363 if { (ac_try="$ac_compile"
21364 case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_compile") 2>conftest.er1
21371 grep -v '^ *+' conftest.er1 >conftest.err
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } &&
21376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21377 { (case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_try") 2>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; } &&
21386 { ac_try='test -s conftest.$ac_objext'
21387 { (case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_try") 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; }; then
21396 ac_header_compiler=yes
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 ac_header_compiler=no
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21406 echo "${ECHO_T}$ac_header_compiler" >&6; }
21408 # Is the header present?
21409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21411 cat >conftest.$ac_ext <<_ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 #include <$ac_header>
21419 if { (ac_try="$ac_cpp conftest.$ac_ext"
21420 case "(($ac_try" in
21421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422 *) ac_try_echo=$ac_try;;
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21427 grep -v '^ *+' conftest.er1 >conftest.err
21429 cat conftest.err >&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } >/dev/null; then
21432 if test -s conftest.err; then
21433 ac_cpp_err=$ac_c_preproc_warn_flag
21434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21441 if test -z "$ac_cpp_err"; then
21442 ac_header_preproc=yes
21444 echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21447 ac_header_preproc=no
21450 rm -f conftest.err conftest.$ac_ext
21451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21452 echo "${ECHO_T}$ac_header_preproc" >&6; }
21454 # So? What about this header?
21455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21461 ac_header_preproc=yes
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 eval "$as_ac_Header=\$ac_header_preproc"
21486 ac_res=`eval echo '${'$as_ac_Header'}'`
21487 { echo "$as_me:$LINENO: result: $ac_res" >&5
21488 echo "${ECHO_T}$ac_res" >&6; }
21491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21492 cat >>confdefs.h <<_ACEOF
21493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21497 { { echo "$as_me:$LINENO: error: required header file missing" >&5
21498 echo "$as_me: error: required header file missing" >&2;}
21499 { (exit 1); exit 1; }; }
21509 for ac_header in sys/stat.h sys/wait.h sys/time.h sys/timeb.h
21511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 ac_res=`eval echo '${'$as_ac_Header'}'`
21519 { echo "$as_me:$LINENO: result: $ac_res" >&5
21520 echo "${ECHO_T}$ac_res" >&6; }
21522 # Is the header compilable?
21523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21525 cat >conftest.$ac_ext <<_ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531 $ac_includes_default
21532 #include <$ac_header>
21534 rm -f conftest.$ac_objext
21535 if { (ac_try="$ac_compile"
21536 case "(($ac_try" in
21537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538 *) ac_try_echo=$ac_try;;
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541 (eval "$ac_compile") 2>conftest.er1
21543 grep -v '^ *+' conftest.er1 >conftest.err
21545 cat conftest.err >&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); } &&
21548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21549 { (case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_try") 2>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; } &&
21558 { ac_try='test -s conftest.$ac_objext'
21559 { (case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_try") 2>&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; }; then
21568 ac_header_compiler=yes
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21573 ac_header_compiler=no
21576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21578 echo "${ECHO_T}$ac_header_compiler" >&6; }
21580 # Is the header present?
21581 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21583 cat >conftest.$ac_ext <<_ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 #include <$ac_header>
21591 if { (ac_try="$ac_cpp conftest.$ac_ext"
21592 case "(($ac_try" in
21593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21599 grep -v '^ *+' conftest.er1 >conftest.err
21601 cat conftest.err >&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } >/dev/null; then
21604 if test -s conftest.err; then
21605 ac_cpp_err=$ac_c_preproc_warn_flag
21606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21613 if test -z "$ac_cpp_err"; then
21614 ac_header_preproc=yes
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ac_header_preproc=no
21622 rm -f conftest.err conftest.$ac_ext
21623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21624 echo "${ECHO_T}$ac_header_preproc" >&6; }
21626 # So? What about this header?
21627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21633 ac_header_preproc=yes
21636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 eval "$as_ac_Header=\$ac_header_preproc"
21658 ac_res=`eval echo '${'$as_ac_Header'}'`
21659 { echo "$as_me:$LINENO: result: $ac_res" >&5
21660 echo "${ECHO_T}$ac_res" >&6; }
21663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21664 cat >>confdefs.h <<_ACEOF
21665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21673 # Check whether --enable-lua was given.
21674 if test "${enable_lua+set}" = set; then
21675 enableval=$enable_lua; case "${enableval}" in
21678 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-lua" >&5
21679 echo "$as_me: error: bad value ${enableval} for --enable-lua" >&2;}
21680 { (exit 1); exit 1; }; } ;;
21688 for ac_header in lua.h
21690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 ac_res=`eval echo '${'$as_ac_Header'}'`
21698 { echo "$as_me:$LINENO: result: $ac_res" >&5
21699 echo "${ECHO_T}$ac_res" >&6; }
21701 # Is the header compilable?
21702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21704 cat >conftest.$ac_ext <<_ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 $ac_includes_default
21711 #include <$ac_header>
21713 rm -f conftest.$ac_objext
21714 if { (ac_try="$ac_compile"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_compile") 2>conftest.er1
21722 grep -v '^ *+' conftest.er1 >conftest.err
21724 cat conftest.err >&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); } &&
21727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21728 { (case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_try") 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; } &&
21737 { ac_try='test -s conftest.$ac_objext'
21738 { (case "(($ac_try" in
21739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740 *) ac_try_echo=$ac_try;;
21742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21743 (eval "$ac_try") 2>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21747 ac_header_compiler=yes
21749 echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21752 ac_header_compiler=no
21755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21757 echo "${ECHO_T}$ac_header_compiler" >&6; }
21759 # Is the header present?
21760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21762 cat >conftest.$ac_ext <<_ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21768 #include <$ac_header>
21770 if { (ac_try="$ac_cpp conftest.$ac_ext"
21771 case "(($ac_try" in
21772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773 *) ac_try_echo=$ac_try;;
21775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21778 grep -v '^ *+' conftest.er1 >conftest.err
21780 cat conftest.err >&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } >/dev/null; then
21783 if test -s conftest.err; then
21784 ac_cpp_err=$ac_c_preproc_warn_flag
21785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21792 if test -z "$ac_cpp_err"; then
21793 ac_header_preproc=yes
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ac_header_preproc=no
21801 rm -f conftest.err conftest.$ac_ext
21802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21803 echo "${ECHO_T}$ac_header_preproc" >&6; }
21805 # So? What about this header?
21806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21812 ac_header_preproc=yes
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21835 eval "$as_ac_Header=\$ac_header_preproc"
21837 ac_res=`eval echo '${'$as_ac_Header'}'`
21838 { echo "$as_me:$LINENO: result: $ac_res" >&5
21839 echo "${ECHO_T}$ac_res" >&6; }
21842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21843 cat >>confdefs.h <<_ACEOF
21844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21854 if test x$lua = xtrue; then
21855 { echo "$as_me:$LINENO: Will build the Lua module" >&5
21856 echo "$as_me: Will build the Lua module" >&6;}
21858 { echo "$as_me:$LINENO: Skipping the lua module" >&5
21859 echo "$as_me: Skipping the lua module" >&6;}
21863 if test x$lua = xtrue; then
21874 for ac_func in access atoi
21876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 cat >conftest.$ac_ext <<_ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21890 #define $ac_func innocuous_$ac_func
21892 /* System header to define __stub macros and hopefully few prototypes,
21893 which can conflict with char $ac_func (); below.
21894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21895 <limits.h> exists even on freestanding compilers. */
21898 # include <limits.h>
21900 # include <assert.h>
21905 /* Override any GCC internal prototype to avoid an error.
21906 Use char because int might match the return type of a GCC
21907 builtin and then its argument prototype would still apply. */
21912 /* The GNU C library defines this for functions which it implements
21913 to always fail with ENOSYS. Some functions are actually named
21914 something starting with __ and the normal name is an alias. */
21915 #if defined __stub_$ac_func || defined __stub___$ac_func
21922 return $ac_func ();
21927 rm -f conftest.$ac_objext conftest$ac_exeext
21928 if { (ac_try="$ac_link"
21929 case "(($ac_try" in
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931 *) ac_try_echo=$ac_try;;
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934 (eval "$ac_link") 2>conftest.er1
21936 grep -v '^ *+' conftest.er1 >conftest.err
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } &&
21941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21942 { (case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_try") 2>&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; } &&
21951 { ac_try='test -s conftest$ac_exeext'
21952 { (case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_try") 2>&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; }; then
21961 eval "$as_ac_var=yes"
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 eval "$as_ac_var=no"
21969 rm -f core conftest.err conftest.$ac_objext \
21970 conftest$ac_exeext conftest.$ac_ext
21972 ac_res=`eval echo '${'$as_ac_var'}'`
21973 { echo "$as_me:$LINENO: result: $ac_res" >&5
21974 echo "${ECHO_T}$ac_res" >&6; }
21975 if test `eval echo '${'$as_ac_var'}'` = yes; then
21976 cat >>confdefs.h <<_ACEOF
21977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21981 { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
21982 echo "$as_me: error: required standard library function missing" >&2;}
21983 { (exit 1); exit 1; }; }
21993 for ac_func in snprintf gettimeofday ftime mkstemp mktemp
21995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 cat >conftest.$ac_ext <<_ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22009 #define $ac_func innocuous_$ac_func
22011 /* System header to define __stub macros and hopefully few prototypes,
22012 which can conflict with char $ac_func (); below.
22013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22014 <limits.h> exists even on freestanding compilers. */
22017 # include <limits.h>
22019 # include <assert.h>
22024 /* Override any GCC internal prototype to avoid an error.
22025 Use char because int might match the return type of a GCC
22026 builtin and then its argument prototype would still apply. */
22031 /* The GNU C library defines this for functions which it implements
22032 to always fail with ENOSYS. Some functions are actually named
22033 something starting with __ and the normal name is an alias. */
22034 #if defined __stub_$ac_func || defined __stub___$ac_func
22041 return $ac_func ();
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (ac_try="$ac_link"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_link") 2>conftest.er1
22055 grep -v '^ *+' conftest.er1 >conftest.err
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } &&
22060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22061 { (case "(($ac_try" in
22062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063 *) ac_try_echo=$ac_try;;
22065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066 (eval "$ac_try") 2>&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; } &&
22070 { ac_try='test -s conftest$ac_exeext'
22071 { (case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22076 (eval "$ac_try") 2>&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 eval "$as_ac_var=yes"
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22085 eval "$as_ac_var=no"
22088 rm -f core conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext conftest.$ac_ext
22091 ac_res=`eval echo '${'$as_ac_var'}'`
22092 { echo "$as_me:$LINENO: result: $ac_res" >&5
22093 echo "${ECHO_T}$ac_res" >&6; }
22094 if test `eval echo '${'$as_ac_var'}'` = yes; then
22095 cat >>confdefs.h <<_ACEOF
22096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22105 { echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
22106 echo $ECHO_N "checking for st_mtim in struct stat... $ECHO_C" >&6; }
22107 if test "${ac_cv_struct_st_mtim+set}" = set; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22116 #include <sys/types.h>
22117 #include <sys/stat.h>
22121 struct stat s; s.st_mtim;
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_compile") 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } &&
22140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22141 { (case "(($ac_try" in
22142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143 *) ac_try_echo=$ac_try;;
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146 (eval "$ac_try") 2>&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); }; } &&
22150 { ac_try='test -s conftest.$ac_objext'
22151 { (case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_try") 2>&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); }; }; then
22160 ac_cv_struct_st_mtim=yes
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22165 ac_cv_struct_st_mtim=no
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
22171 echo "${ECHO_T}$ac_cv_struct_st_mtim" >&6; }
22172 if test $ac_cv_struct_st_mtim = yes; then
22174 cat >>confdefs.h <<\_ACEOF
22175 #define HAVE_ST_MTIM 1
22182 ac_config_files="$ac_config_files Makefile"
22184 cat >confcache <<\_ACEOF
22185 # This file is a shell script that caches the results of configure
22186 # tests run on this system so they can be shared between configure
22187 # scripts and configure runs, see configure's option --config-cache.
22188 # It is not useful on other systems. If it contains results you don't
22189 # want to keep, you may remove or edit it.
22191 # config.status only pays attention to the cache file if you give it
22192 # the --recheck option to rerun configure.
22194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22196 # following values.
22200 # The following way of writing the cache mishandles newlines in values,
22201 # but we know of no workaround that is simple, portable, and efficient.
22202 # So, we kill variables containing newlines.
22203 # Ultrix sh set writes to stderr and can't be redirected directly,
22204 # and sets the high bit in the cache file unless we assign to the vars.
22206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22207 eval ac_val=\$$ac_var
22211 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22212 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22215 _ | IFS | as_nl) ;; #(
22216 *) $as_unset $ac_var ;;
22222 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22223 *${as_nl}ac_space=\ *)
22224 # `set' does not quote correctly, so add quotes (double-quote
22225 # substitution turns \\\\ into \\, and sed turns \\ into \).
22228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22231 # `set' quotes correctly as required by POSIX, so do not add quotes.
22232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22246 if test -w "$cache_file"; then
22247 test "x$cache_file" != "x/dev/null" &&
22248 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22249 echo "$as_me: updating cache $cache_file" >&6;}
22250 cat confcache >$cache_file
22252 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22253 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22259 # Let make expand exec_prefix.
22260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22262 DEFS=-DHAVE_CONFIG_H
22266 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22267 # 1. Remove the extension, and $U if already installed.
22268 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22269 ac_i=`echo "$ac_i" | sed "$ac_script"`
22270 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22271 # will be set to the directory where LIBOBJS objects are built.
22272 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22273 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22275 LIBOBJS=$ac_libobjs
22277 LTLIBOBJS=$ac_ltlibobjs
22280 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22281 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22282 Usually this means the macro was only invoked conditionally." >&5
22283 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22284 Usually this means the macro was only invoked conditionally." >&2;}
22285 { (exit 1); exit 1; }; }
22287 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22288 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22289 Usually this means the macro was only invoked conditionally." >&5
22290 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22291 Usually this means the macro was only invoked conditionally." >&2;}
22292 { (exit 1); exit 1; }; }
22294 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22295 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22296 Usually this means the macro was only invoked conditionally." >&5
22297 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22298 Usually this means the macro was only invoked conditionally." >&2;}
22299 { (exit 1); exit 1; }; }
22301 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22302 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22303 Usually this means the macro was only invoked conditionally." >&5
22304 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22305 Usually this means the macro was only invoked conditionally." >&2;}
22306 { (exit 1); exit 1; }; }
22308 if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
22309 { { echo "$as_me:$LINENO: error: conditional \"WITH_LUA\" was never defined.
22310 Usually this means the macro was only invoked conditionally." >&5
22311 echo "$as_me: error: conditional \"WITH_LUA\" was never defined.
22312 Usually this means the macro was only invoked conditionally." >&2;}
22313 { (exit 1); exit 1; }; }
22316 : ${CONFIG_STATUS=./config.status}
22317 ac_clean_files_save=$ac_clean_files
22318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22321 cat >$CONFIG_STATUS <<_ACEOF
22323 # Generated by $as_me.
22324 # Run this file to recreate the current configuration.
22325 # Compiler output produced by configure, useful for debugging
22326 # configure, is in config.log if it exists.
22329 ac_cs_recheck=false
22331 SHELL=\${CONFIG_SHELL-$SHELL}
22334 cat >>$CONFIG_STATUS <<\_ACEOF
22335 ## --------------------- ##
22336 ## M4sh Initialization. ##
22337 ## --------------------- ##
22339 # Be Bourne compatible
22340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22343 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22344 # is contrary to our usage. Disable this feature.
22345 alias -g '${1+"$@"}'='"$@"'
22346 setopt NO_GLOB_SUBST
22348 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22350 BIN_SH=xpg4; export BIN_SH # for Tru64
22351 DUALCASE=1; export DUALCASE # for MKS sh
22355 # Avoid depending upon Character Ranges.
22356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22359 as_cr_digits='0123456789'
22360 as_cr_alnum=$as_cr_Letters$as_cr_digits
22362 # The user is always right.
22363 if test "${PATH_SEPARATOR+set}" != set; then
22364 echo "#! /bin/sh" >conf$$.sh
22365 echo "exit 0" >>conf$$.sh
22367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22375 # Support unset when possible.
22376 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22384 # We need space, tab and new line, in precisely that order. Quoting is
22385 # there to prevent editors from complaining about space-tab.
22386 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22387 # splitting by setting IFS to empty value.)
22392 # Find who we are. Look in the path if we contain no directory separator.
22394 *[\\/]* ) as_myself=$0 ;;
22395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22396 for as_dir in $PATH
22399 test -z "$as_dir" && as_dir=.
22400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22406 # We did not find ourselves, most probably we were run as `sh COMMAND'
22407 # in which case we are not to be found in the path.
22408 if test "x$as_myself" = x; then
22411 if test ! -f "$as_myself"; then
22412 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22413 { (exit 1); exit 1; }
22416 # Work around bugs in pre-3.0 UWIN ksh.
22417 for as_var in ENV MAIL MAILPATH
22418 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22428 LC_TELEPHONE LC_TIME
22430 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22431 eval $as_var=C; export $as_var
22433 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22437 # Required to use basename.
22438 if expr a : '\(a\)' >/dev/null 2>&1 &&
22439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22446 as_basename=basename
22452 # Name of the executable.
22453 as_me=`$as_basename -- "$0" ||
22454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22455 X"$0" : 'X\(//\)$' \| \
22456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22458 sed '/^.*\/\([^/][^/]*\)\/*$/{
22477 as_lineno_1=$LINENO
22478 as_lineno_2=$LINENO
22479 test "x$as_lineno_1" != "x$as_lineno_2" &&
22480 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22482 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22483 # uniformly replaced by the line number. The first 'sed' inserts a
22484 # line-number line after each line using $LINENO; the second 'sed'
22485 # does the real work. The second script uses 'N' to pair each
22486 # line-number line with the line containing $LINENO, and appends
22487 # trailing '-' during substitution so that $LINENO is not a special
22488 # case at line end.
22489 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22490 # scripts with optimization help from Paolo Bonzini. Blame Lee
22491 # E. McMahon (1931-1989) for sed's syntax. :-)
22503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22506 ' >$as_me.lineno &&
22507 chmod +x "$as_me.lineno" ||
22508 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22509 { (exit 1); exit 1; }; }
22511 # Don't try to exec as it changes $[0], causing all sort of problems
22512 # (the dirname of $[0] is not the place where we might find the
22513 # original and so on. Autoconf is especially sensitive to this).
22514 . "./$as_me.lineno"
22515 # Exit status is that of the last command.
22520 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22526 ECHO_C= ECHO_N= ECHO_T=
22527 case `echo -n x` in
22529 case `echo 'x\c'` in
22530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22537 if expr a : '\(a\)' >/dev/null 2>&1 &&
22538 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22544 rm -f conf$$ conf$$.exe conf$$.file
22545 if test -d conf$$.dir; then
22546 rm -f conf$$.dir/conf$$.file
22552 if ln -s conf$$.file conf$$ 2>/dev/null; then
22554 # ... but there are two gotchas:
22555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22557 # In both cases, we have to default to `cp -p'.
22558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22560 elif ln conf$$.file conf$$ 2>/dev/null; then
22565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22566 rmdir conf$$.dir 2>/dev/null
22568 if mkdir -p . 2>/dev/null; then
22571 test -d ./-p && rmdir ./-p
22575 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22576 # systems may use methods other than mode bits to determine executability.
22577 cat >conf$$.file <<_ASEOF
22581 chmod +x conf$$.file
22582 if test -x conf$$.file >/dev/null 2>&1; then
22583 as_executable_p="test -x"
22589 # Sed expression to map a string onto a valid CPP name.
22590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22592 # Sed expression to map a string onto a valid variable name.
22593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22598 # Save the log message, to keep $[0] and so on meaningful, and to
22599 # report actual input values of CONFIG_FILES etc. instead of their
22600 # values after options handling.
22602 This file was extended by $as_me, which was
22603 generated by GNU Autoconf 2.60. Invocation command line was
22605 CONFIG_FILES = $CONFIG_FILES
22606 CONFIG_HEADERS = $CONFIG_HEADERS
22607 CONFIG_LINKS = $CONFIG_LINKS
22608 CONFIG_COMMANDS = $CONFIG_COMMANDS
22611 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22616 cat >>$CONFIG_STATUS <<_ACEOF
22617 # Files that config.status was made for.
22618 config_files="$ac_config_files"
22619 config_headers="$ac_config_headers"
22620 config_commands="$ac_config_commands"
22624 cat >>$CONFIG_STATUS <<\_ACEOF
22626 \`$as_me' instantiates files from templates according to the
22627 current configuration.
22629 Usage: $0 [OPTIONS] [FILE]...
22631 -h, --help print this help, then exit
22632 -V, --version print version number, then exit
22633 -q, --quiet do not print progress messages
22634 -d, --debug don't remove temporary files
22635 --recheck update $as_me by reconfiguring in the same conditions
22636 --file=FILE[:TEMPLATE]
22637 instantiate the configuration file FILE
22638 --header=FILE[:TEMPLATE]
22639 instantiate the configuration header FILE
22641 Configuration files:
22644 Configuration headers:
22647 Configuration commands:
22650 Report bugs to <bug-autoconf@gnu.org>."
22653 cat >>$CONFIG_STATUS <<_ACEOF
22656 configured by $0, generated by GNU Autoconf 2.60,
22657 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22659 Copyright (C) 2006 Free Software Foundation, Inc.
22660 This config.status script is free software; the Free Software Foundation
22661 gives unlimited permission to copy, distribute and modify it."
22669 cat >>$CONFIG_STATUS <<\_ACEOF
22670 # If no file are specified by the user, then we need to provide default
22671 # value. By we need to know if files were specified by the user.
22677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22678 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22689 # Handling of the options.
22690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22692 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22693 echo "$ac_cs_version"; exit ;;
22694 --debug | --debu | --deb | --de | --d | -d )
22696 --file | --fil | --fi | --f )
22698 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22699 ac_need_defaults=false;;
22700 --header | --heade | --head | --hea )
22702 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22703 ac_need_defaults=false;;
22705 # Conflict between --help and --header
22706 { echo "$as_me: error: ambiguous option: $1
22707 Try \`$0 --help' for more information." >&2
22708 { (exit 1); exit 1; }; };;
22709 --help | --hel | -h )
22710 echo "$ac_cs_usage"; exit ;;
22711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22712 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22715 # This is an error.
22716 -*) { echo "$as_me: error: unrecognized option: $1
22717 Try \`$0 --help' for more information." >&2
22718 { (exit 1); exit 1; }; } ;;
22720 *) ac_config_targets="$ac_config_targets $1"
22721 ac_need_defaults=false ;;
22727 ac_configure_extra_args=
22729 if $ac_cs_silent; then
22731 ac_configure_extra_args="$ac_configure_extra_args --silent"
22735 cat >>$CONFIG_STATUS <<_ACEOF
22736 if \$ac_cs_recheck; then
22737 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22738 CONFIG_SHELL=$SHELL
22739 export CONFIG_SHELL
22740 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22744 cat >>$CONFIG_STATUS <<\_ACEOF
22748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22749 ## Running $as_me. ##
22755 cat >>$CONFIG_STATUS <<_ACEOF
22759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22763 cat >>$CONFIG_STATUS <<\_ACEOF
22765 # Handling of arguments.
22766 for ac_config_target in $ac_config_targets
22768 case $ac_config_target in
22769 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22770 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22773 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22774 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22775 { (exit 1); exit 1; }; };;
22780 # If the user did not use the arguments to specify the items to instantiate,
22781 # then the envvar interface is used. Set only those that are not.
22782 # We use the long form for the default assignment because of an extremely
22783 # bizarre bug on SunOS 4.1.3.
22784 if $ac_need_defaults; then
22785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22790 # Have a temporary directory for convenience. Make it in the build tree
22791 # simply because there is no reason against having it here, and in addition,
22792 # creating and moving files from /tmp can sometimes cause problems.
22793 # Hook for its removal unless debugging.
22794 # Note that there is a small window in which the directory will not be cleaned:
22795 # after its creation but before its name has been assigned to `$tmp'.
22799 trap 'exit_status=$?
22800 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22802 trap '{ (exit 1); exit 1; }' 1 2 13 15
22804 # Create a (secure) tmp directory for tmp files.
22807 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22808 test -n "$tmp" && test -d "$tmp"
22811 tmp=./conf$$-$RANDOM
22812 (umask 077 && mkdir "$tmp")
22815 echo "$me: cannot create a temporary directory in ." >&2
22816 { (exit 1); exit 1; }
22820 # Set up the sed scripts for CONFIG_FILES section.
22823 # No need to generate the scripts if there are no CONFIG_FILES.
22824 # This happens for instance when ./config.status config.h
22825 if test -n "$CONFIG_FILES"; then
22832 for ac_last_try in false false false false false :; do
22833 cat >conf$$subs.sed <<_ACEOF
22834 SHELL!$SHELL$ac_delim
22835 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22836 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22837 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22838 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22839 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22840 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22841 exec_prefix!$exec_prefix$ac_delim
22842 prefix!$prefix$ac_delim
22843 program_transform_name!$program_transform_name$ac_delim
22844 bindir!$bindir$ac_delim
22845 sbindir!$sbindir$ac_delim
22846 libexecdir!$libexecdir$ac_delim
22847 datarootdir!$datarootdir$ac_delim
22848 datadir!$datadir$ac_delim
22849 sysconfdir!$sysconfdir$ac_delim
22850 sharedstatedir!$sharedstatedir$ac_delim
22851 localstatedir!$localstatedir$ac_delim
22852 includedir!$includedir$ac_delim
22853 oldincludedir!$oldincludedir$ac_delim
22854 docdir!$docdir$ac_delim
22855 infodir!$infodir$ac_delim
22856 htmldir!$htmldir$ac_delim
22857 dvidir!$dvidir$ac_delim
22858 pdfdir!$pdfdir$ac_delim
22859 psdir!$psdir$ac_delim
22860 libdir!$libdir$ac_delim
22861 localedir!$localedir$ac_delim
22862 mandir!$mandir$ac_delim
22863 DEFS!$DEFS$ac_delim
22864 ECHO_C!$ECHO_C$ac_delim
22865 ECHO_N!$ECHO_N$ac_delim
22866 ECHO_T!$ECHO_T$ac_delim
22867 LIBS!$LIBS$ac_delim
22868 build_alias!$build_alias$ac_delim
22869 host_alias!$host_alias$ac_delim
22870 target_alias!$target_alias$ac_delim
22871 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22872 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22873 INSTALL_DATA!$INSTALL_DATA$ac_delim
22874 am__isrc!$am__isrc$ac_delim
22875 CYGPATH_W!$CYGPATH_W$ac_delim
22876 PACKAGE!$PACKAGE$ac_delim
22877 VERSION!$VERSION$ac_delim
22878 ACLOCAL!$ACLOCAL$ac_delim
22879 AUTOCONF!$AUTOCONF$ac_delim
22880 AUTOMAKE!$AUTOMAKE$ac_delim
22881 AUTOHEADER!$AUTOHEADER$ac_delim
22882 MAKEINFO!$MAKEINFO$ac_delim
22883 install_sh!$install_sh$ac_delim
22884 STRIP!$STRIP$ac_delim
22885 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22886 mkdir_p!$mkdir_p$ac_delim
22888 SET_MAKE!$SET_MAKE$ac_delim
22889 am__leading_dot!$am__leading_dot$ac_delim
22890 AMTAR!$AMTAR$ac_delim
22891 am__tar!$am__tar$ac_delim
22892 am__untar!$am__untar$ac_delim
22893 build!$build$ac_delim
22894 build_cpu!$build_cpu$ac_delim
22895 build_vendor!$build_vendor$ac_delim
22896 build_os!$build_os$ac_delim
22897 host!$host$ac_delim
22898 host_cpu!$host_cpu$ac_delim
22899 host_vendor!$host_vendor$ac_delim
22900 host_os!$host_os$ac_delim
22902 CFLAGS!$CFLAGS$ac_delim
22903 LDFLAGS!$LDFLAGS$ac_delim
22904 CPPFLAGS!$CPPFLAGS$ac_delim
22905 ac_ct_CC!$ac_ct_CC$ac_delim
22906 EXEEXT!$EXEEXT$ac_delim
22907 OBJEXT!$OBJEXT$ac_delim
22908 DEPDIR!$DEPDIR$ac_delim
22909 am__include!$am__include$ac_delim
22910 am__quote!$am__quote$ac_delim
22911 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22912 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22913 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22914 CCDEPMODE!$CCDEPMODE$ac_delim
22915 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22916 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22918 GREP!$GREP$ac_delim
22919 EGREP!$EGREP$ac_delim
22920 LN_S!$LN_S$ac_delim
22921 ECHO!$ECHO$ac_delim
22923 RANLIB!$RANLIB$ac_delim
22926 CXXFLAGS!$CXXFLAGS$ac_delim
22927 ac_ct_CXX!$ac_ct_CXX$ac_delim
22928 CXXDEPMODE!$CXXDEPMODE$ac_delim
22929 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22930 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22933 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22935 elif $ac_last_try; then
22936 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22937 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22938 { (exit 1); exit 1; }; }
22940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22944 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22945 if test -n "$ac_eof"; then
22946 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22947 ac_eof=`expr $ac_eof + 1`
22950 cat >>$CONFIG_STATUS <<_ACEOF
22951 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22955 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22956 s/^/s,@/; s/!/@,|#_!!_#|/
22959 s/'"$ac_delim"'$/,g/; t
22961 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22962 ' >>$CONFIG_STATUS <conf$$subs.sed
22963 rm -f conf$$subs.sed
22964 cat >>$CONFIG_STATUS <<_ACEOF
22970 for ac_last_try in false false false false false :; do
22971 cat >conf$$subs.sed <<_ACEOF
22972 CXXCPP!$CXXCPP$ac_delim
22974 FFLAGS!$FFLAGS$ac_delim
22975 ac_ct_F77!$ac_ct_F77$ac_delim
22976 LIBTOOL!$LIBTOOL$ac_delim
22977 WITH_LUA_TRUE!$WITH_LUA_TRUE$ac_delim
22978 WITH_LUA_FALSE!$WITH_LUA_FALSE$ac_delim
22979 LIBOBJS!$LIBOBJS$ac_delim
22980 LTLIBOBJS!$LTLIBOBJS$ac_delim
22983 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22985 elif $ac_last_try; then
22986 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22987 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22988 { (exit 1); exit 1; }; }
22990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22994 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22995 if test -n "$ac_eof"; then
22996 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22997 ac_eof=`expr $ac_eof + 1`
23000 cat >>$CONFIG_STATUS <<_ACEOF
23001 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23005 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23006 s/^/s,@/; s/!/@,|#_!!_#|/
23009 s/'"$ac_delim"'$/,g/; t
23011 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23012 ' >>$CONFIG_STATUS <conf$$subs.sed
23013 rm -f conf$$subs.sed
23014 cat >>$CONFIG_STATUS <<_ACEOF
23021 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23022 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23023 # trailing colons and then remove the whole line if VPATH becomes empty
23024 # (actually we leave an empty line to preserve line numbers).
23025 if test "x$srcdir" = x.; then
23026 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23027 s/:*\$(srcdir):*/:/
23028 s/:*\${srcdir}:*/:/
23030 s/^\([^=]*=[ ]*\):*/\1/
23036 cat >>$CONFIG_STATUS <<\_ACEOF
23037 fi # test -n "$CONFIG_FILES"
23040 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23043 :[FHLC]) ac_mode=$ac_tag; continue;;
23045 case $ac_mode$ac_tag in
23047 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23048 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23049 { (exit 1); exit 1; }; };;
23050 :[FH]-) ac_tag=-:-;;
23051 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23068 -) ac_f="$tmp/stdin";;
23069 *) # Look for the file first in the build tree, then in the source tree
23070 # (if the path is not absolute). The absolute path cannot be DOS-style,
23071 # because $ac_f cannot contain `:'.
23075 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23077 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23078 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23079 { (exit 1); exit 1; }; };;
23081 ac_file_inputs="$ac_file_inputs $ac_f"
23084 # Let's still pretend it is `configure' which instantiates (i.e., don't
23085 # use $as_me), people would be surprised to read:
23086 # /* config.h. Generated by config.status. */
23087 configure_input="Generated from "`IFS=:
23088 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23089 if test x"$ac_file" != x-; then
23090 configure_input="$ac_file. $configure_input"
23091 { echo "$as_me:$LINENO: creating $ac_file" >&5
23092 echo "$as_me: creating $ac_file" >&6;}
23096 *:-:* | *:-) cat >"$tmp/stdin";;
23101 ac_dir=`$as_dirname -- "$ac_file" ||
23102 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23103 X"$ac_file" : 'X\(//\)[^/]' \| \
23104 X"$ac_file" : 'X\(//\)$' \| \
23105 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23111 /^X\(\/\/\)[^/].*/{
23126 -*) as_dir=./$as_dir;;
23128 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23132 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23133 *) as_qdir=$as_dir;;
23135 as_dirs="'$as_qdir' $as_dirs"
23136 as_dir=`$as_dirname -- "$as_dir" ||
23137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23138 X"$as_dir" : 'X\(//\)[^/]' \| \
23139 X"$as_dir" : 'X\(//\)$' \| \
23140 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23146 /^X\(\/\/\)[^/].*/{
23159 test -d "$as_dir" && break
23161 test -z "$as_dirs" || eval "mkdir $as_dirs"
23162 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23163 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23164 { (exit 1); exit 1; }; }; }
23168 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23170 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23171 # A ".." for each directory in $ac_dir_suffix.
23172 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23173 case $ac_top_builddir_sub in
23174 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23175 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23178 ac_abs_top_builddir=$ac_pwd
23179 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23180 # for backward compatibility:
23181 ac_top_builddir=$ac_top_build_prefix
23184 .) # We are building in place.
23186 ac_top_srcdir=$ac_top_builddir_sub
23187 ac_abs_top_srcdir=$ac_pwd ;;
23188 [\\/]* | ?:[\\/]* ) # Absolute name.
23189 ac_srcdir=$srcdir$ac_dir_suffix;
23190 ac_top_srcdir=$srcdir
23191 ac_abs_top_srcdir=$srcdir ;;
23192 *) # Relative name.
23193 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23194 ac_top_srcdir=$ac_top_build_prefix$srcdir
23195 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23197 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23208 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23210 ac_MKDIR_P=$MKDIR_P
23212 [\\/$]* | ?:[\\/]* ) ;;
23213 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23218 # If the template does not know about datarootdir, expand it.
23219 # FIXME: This hack should be removed a few years after 2.60.
23220 ac_datarootdir_hack=; ac_datarootdir_seen=
23222 case `sed -n '/datarootdir/ {
23231 ' $ac_file_inputs` in
23232 *datarootdir*) ac_datarootdir_seen=yes;;
23233 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23234 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23235 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23237 cat >>$CONFIG_STATUS <<_ACEOF
23238 ac_datarootdir_hack='
23239 s&@datadir@&$datadir&g
23240 s&@docdir@&$docdir&g
23241 s&@infodir@&$infodir&g
23242 s&@localedir@&$localedir&g
23243 s&@mandir@&$mandir&g
23244 s&\\\${datarootdir}&$datarootdir&g' ;;
23248 # Neutralize VPATH when `$srcdir' = `.'.
23249 # Shell code in configure.ac might set extrasub.
23250 # FIXME: do we really want to maintain this feature?
23251 cat >>$CONFIG_STATUS <<_ACEOF
23255 cat >>$CONFIG_STATUS <<\_ACEOF
23257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23258 s&@configure_input@&$configure_input&;t t
23259 s&@top_builddir@&$ac_top_builddir_sub&;t t
23260 s&@srcdir@&$ac_srcdir&;t t
23261 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23262 s&@top_srcdir@&$ac_top_srcdir&;t t
23263 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23264 s&@builddir@&$ac_builddir&;t t
23265 s&@abs_builddir@&$ac_abs_builddir&;t t
23266 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23267 s&@INSTALL@&$ac_INSTALL&;t t
23268 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23269 $ac_datarootdir_hack
23270 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23272 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23273 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23274 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23275 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23276 which seems to be undefined. Please make sure it is defined." >&5
23277 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23278 which seems to be undefined. Please make sure it is defined." >&2;}
23282 -) cat "$tmp/out"; rm -f "$tmp/out";;
23283 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23292 # Transform confdefs.h into a sed script `conftest.defines', that
23293 # substitutes the proper values into config.h.in to produce config.h.
23294 rm -f conftest.defines conftest.tail
23295 # First, append a space to every undef/define line, to ease matching.
23296 echo 's/$/ /' >conftest.defines
23297 # Then, protect against being on the right side of a sed subst, or in
23298 # an unquoted here document, in config.status. If some macros were
23299 # called several times there might be several #defines for the same
23300 # symbol, which is useless. But do not sort them, since the last
23301 # AC_DEFINE must be honored.
23302 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23303 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23304 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23305 # PARAMS is the parameter list in the macro definition--in most cases, it's
23306 # just an empty string.
23307 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23308 ac_dB='\\)[ (].*,\\1define\\2'
23316 s/^[ ]*#[ ]*define[ ][ ]*//
23321 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23322 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23323 ' >>conftest.defines
23325 # Remove the space that was appended to ease matching.
23326 # Then replace #undef with comments. This is necessary, for
23327 # example, in the case of _POSIX_SOURCE, which is predefined and required
23328 # on some systems where configure will not decide to define it.
23329 # (The regexp can be short, since the line contains either #define or #undef.)
23331 s,^[ #]*u.*,/* & */,' >>conftest.defines
23333 # Break up conftest.defines:
23334 ac_max_sed_lines=50
23336 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23337 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23338 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23340 ac_in='$ac_file_inputs'
23341 ac_out='"$tmp/out1"'
23342 ac_nxt='"$tmp/out2"'
23346 # Write a here document:
23347 cat >>$CONFIG_STATUS <<_ACEOF
23348 # First, check the format of the line:
23349 cat >"\$tmp/defines.sed" <<\\CEOF
23350 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23351 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23355 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23357 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23358 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23359 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23360 grep . conftest.tail >/dev/null || break
23361 rm -f conftest.defines
23362 mv conftest.tail conftest.defines
23364 rm -f conftest.defines conftest.tail
23366 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23367 cat >>$CONFIG_STATUS <<\_ACEOF
23368 if test x"$ac_file" != x-; then
23369 echo "/* $configure_input */" >"$tmp/config.h"
23370 cat "$ac_result" >>"$tmp/config.h"
23371 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23372 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23373 echo "$as_me: $ac_file is unchanged" >&6;}
23376 mv "$tmp/config.h" $ac_file
23379 echo "/* $configure_input */"
23383 # Compute $ac_file's index in $config_headers.
23386 for _am_header in $config_headers :; do
23387 case $_am_header in
23388 $_am_arg | $_am_arg:* )
23391 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23394 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23395 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23396 X"$_am_arg" : 'X\(//\)[^/]' \| \
23397 X"$_am_arg" : 'X\(//\)$' \| \
23398 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23404 /^X\(\/\/\)[^/].*/{
23416 s/.*/./; q'`/stamp-h$_am_stamp_count
23419 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23420 echo "$as_me: executing $ac_file commands" >&6;}
23425 case $ac_file$ac_mode in
23426 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23427 # Strip MF so we end up with the name of the file.
23428 mf=`echo "$mf" | sed -e 's/:.*$//'`
23429 # Check whether this is an Automake generated Makefile or not.
23430 # We used to match only the files named `Makefile.in', but
23431 # some people rename them; so instead we look at the file content.
23432 # Grep'ing the first line is not enough: some people post-process
23433 # each Makefile.in and add a new line on top of each file to say so.
23434 # Grep'ing the whole file is not good either: AIX grep has a line
23435 # limit of 2048, but all sed's we know have understand at least 4000.
23436 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23437 dirpart=`$as_dirname -- "$mf" ||
23438 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23439 X"$mf" : 'X\(//\)[^/]' \| \
23440 X"$mf" : 'X\(//\)$' \| \
23441 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23447 /^X\(\/\/\)[^/].*/{
23463 # Extract the definition of DEPDIR, am__include, and am__quote
23464 # from the Makefile without running `make'.
23465 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23466 test -z "$DEPDIR" && continue
23467 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23468 test -z "am__include" && continue
23469 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23470 # When using ansi2knr, U may be empty or an underscore; expand it
23471 U=`sed -n 's/^U = //p' < "$mf"`
23472 # Find all dependency output files, they are included files with
23473 # $(DEPDIR) in their names. We invoke sed twice because it is the
23474 # simplest approach to changing $(DEPDIR) to its actual value in the
23476 for file in `sed -n "
23477 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23478 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23479 # Make sure the directory exists.
23480 test -f "$dirpart/$file" && continue
23481 fdir=`$as_dirname -- "$file" ||
23482 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483 X"$file" : 'X\(//\)[^/]' \| \
23484 X"$file" : 'X\(//\)$' \| \
23485 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23491 /^X\(\/\/\)[^/].*/{
23504 { as_dir=$dirpart/$fdir
23506 -*) as_dir=./$as_dir;;
23508 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23512 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23513 *) as_qdir=$as_dir;;
23515 as_dirs="'$as_qdir' $as_dirs"
23516 as_dir=`$as_dirname -- "$as_dir" ||
23517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23518 X"$as_dir" : 'X\(//\)[^/]' \| \
23519 X"$as_dir" : 'X\(//\)$' \| \
23520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23526 /^X\(\/\/\)[^/].*/{
23539 test -d "$as_dir" && break
23541 test -z "$as_dirs" || eval "mkdir $as_dirs"
23542 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23543 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23544 { (exit 1); exit 1; }; }; }
23545 # echo "creating $dirpart/$file"
23546 echo '# dummy' > "$dirpart/$file"
23555 { (exit 0); exit 0; }
23557 chmod +x $CONFIG_STATUS
23558 ac_clean_files=$ac_clean_files_save
23561 # configure is writing to config.log, and then calls config.status.
23562 # config.status does its own redirection, appending to config.log.
23563 # Unfortunately, on DOS this fails, as config.log is still kept open
23564 # by configure, so config.status won't be able to write to it; its
23565 # output is simply discarded. So we exec the FD to /dev/null,
23566 # effectively closing config.log, so it can be properly (re)opened and
23567 # appended to by config.status. When coming back to configure, we
23568 # need to make the FD available again.
23569 if test "$no_create" != yes; then
23571 ac_config_status_args=
23572 test "$silent" = yes &&
23573 ac_config_status_args="$ac_config_status_args --quiet"
23575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23578 # would make configure fail if this is the last instruction.
23579 $ac_cs_success || { (exit 1); exit 1; }