2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for sqlite 3.7.6.2.
5 # Report bugs to <http://www.sqlite.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
691 # maybe with a smaller string...
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 # Oops. We lost completely, so just stick with echo.
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
740 ac_default_prefix=/usr/local
742 ac_config_libobj_dir=.
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='sqlite'
752 PACKAGE_TARNAME='sqlite'
753 PACKAGE_VERSION='3.7.6.2'
754 PACKAGE_STRING='sqlite 3.7.6.2'
755 PACKAGE_BUGREPORT='http://www.sqlite.org'
757 ac_unique_file="sqlite3.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
771 # ifdef HAVE_STDLIB_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
803 program_transform_name
844 INSTALL_STRIP_PROGRAM
898 DYNAMIC_EXTENSION_FLAGS
903 enable_option_checking
905 enable_dependency_tracking
915 enable_dynamic_extensions
917 ac_precious_vars='build_alias
934 # Initialize some variables set by options.
936 ac_init_version=false
937 ac_unrecognized_opts=
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
948 program_transform_name=s,x,x,
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
994 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 # Accept the important Cygnus configure options, so we can diagnose typos.
1000 case $ac_dashdash$ac_option in
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007 bindir=$ac_optarg ;;
1009 -build | --build | --buil | --bui | --bu)
1010 ac_prev=build_alias ;;
1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012 build_alias=$ac_optarg ;;
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019 cache_file=$ac_optarg ;;
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
1024 -datadir | --datadir | --datadi | --datad)
1026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027 datadir=$ac_optarg ;;
1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1036 -disable-* | --disable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_$ac_useropt"
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1051 eval enable_$ac_useropt=no ;;
1053 -docdir | --docdir | --docdi | --doc | --do)
1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056 docdir=$ac_optarg ;;
1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061 dvidir=$ac_optarg ;;
1063 -enable-* | --enable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_$ac_useropt"
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1078 eval enable_$ac_useropt=\$ac_optarg ;;
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 htmldir=$ac_optarg ;;
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1123 -libdir | --libdir | --libdi | --libd)
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1214 -psdir | --psdir | --psdi | --psd | --ps)
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 sbindir=$ac_optarg ;;
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 sharedstatedir=$ac_optarg ;;
1240 -site | --site | --sit)
1242 -site=* | --site=* | --sit=*)
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1283 eval with_$ac_useropt=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1290 { (exit 1); exit 1; }; }
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1300 eval with_$ac_useropt=no ;;
1303 # Obsolete; use --with-x.
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311 x_includes=$ac_optarg ;;
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318 x_libraries=$ac_optarg ;;
1320 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1321 Try \`$0 --help' for more information." >&2
1322 { (exit 1); exit 1; }; }
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1329 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1330 { (exit 1); exit 1; }; }
1331 eval $ac_envvar=\$ac_optarg
1332 export $ac_envvar ;;
1335 # FIXME: should be removed in autoconf 3.0.
1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 if test -n "$ac_prev"; then
1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1348 { (exit 1); exit 1; }; }
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1354 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1355 { (exit 1); exit 1; }; } ;;
1356 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1379 { (exit 1); exit 1; }; }
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1387 target=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403 test "$silent" = yes && exec 6>/dev/null
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1410 { (exit 1); exit 1; }; }
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1413 { (exit 1); exit 1; }; }
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1448 ac_srcdir_defaulted=no
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1453 { (exit 1); exit 1; }; }
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1458 { (exit 1); exit 1; }; }
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1484 \`configure' configures sqlite 3.7.6.2 to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 if test -n "$ac_init_help"; then
1553 case $ac_init_help in
1554 short | recursive ) echo "Configuration of sqlite 3.7.6.2:";;
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --disable-largefile omit support for large files
1563 --disable-dependency-tracking speeds up one-time build
1564 --enable-dependency-tracking do not reject slow dependency extractors
1565 --enable-shared[=PKGS] build shared libraries [default=yes]
1566 --enable-static[=PKGS] build static libraries [default=yes]
1567 --enable-fast-install[=PKGS]
1568 optimize for fast installation [default=yes]
1569 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --enable-readline use readline in shell tool (yes, no) [default=yes]
1571 --enable-threadsafe build a thread-safe library [default=yes]
1572 --enable-dynamic-extensions
1573 support loadable extensions [default=yes]
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1581 --with-tags[=TAGS] include additional configurations [automatic]
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
1594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1601 Report bugs to <http://www.sqlite.org>.
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1631 .) # We are building in place.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1664 sqlite configure 3.7.6.2
1665 generated by GNU Autoconf 2.62
1667 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1678 It was created by sqlite $as_me 3.7.6.2, which was
1679 generated by GNU Autoconf 2.62. Invocation command line was
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir=.
1715 $as_echo "PATH: $as_dir"
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_must_keep_next=false
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1750 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768 -* ) ac_must_keep_next=true ;;
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log. We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1795 # The following way of writing the cache mishandles newlines in values,
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1802 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806 _ | IFS | as_nl) ;; #(
1807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1808 *) $as_unset $ac_var ;;
1813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
1816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1833 for ac_var in $ac_subst_vars
1835 eval ac_val=\$$ac_var
1837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 $as_echo "$ac_var='\''$ac_val'\''"
1843 if test -n "$ac_subst_files"; then
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1850 for ac_var in $ac_subst_files
1852 eval ac_val=\$$ac_var
1854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 $as_echo "$ac_var='\''$ac_val'\''"
1861 if test -s confdefs.h; then
1871 test "$ac_signal" != 0 &&
1872 $as_echo "$as_me: caught signal $ac_signal"
1873 $as_echo "$as_me: exit $exit_status"
1875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1879 for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1887 # Predefined preprocessor variables.
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer an explicitly selected file to automatically selected ones.
1918 if test -n "$CONFIG_SITE"; then
1919 ac_site_file1=$CONFIG_SITE
1920 elif test "x$prefix" != xNONE; then
1921 ac_site_file1=$prefix/share/config.site
1922 ac_site_file2=$prefix/etc/config.site
1924 ac_site_file1=$ac_default_prefix/share/config.site
1925 ac_site_file2=$ac_default_prefix/etc/config.site
1927 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1929 test "x$ac_site_file" = xNONE && continue
1930 if test -r "$ac_site_file"; then
1931 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1933 sed 's/^/| /' "$ac_site_file" >&5
1938 if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
1942 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943 $as_echo "$as_me: loading cache $cache_file" >&6;}
1945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
1950 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951 $as_echo "$as_me: creating cache $cache_file" >&6;}
1955 # Check that the precious variables saved in the cache have kept the same
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w=`echo x $ac_old_val`
1977 ac_new_val_w=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted=:
1983 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\$ac_old_val
1987 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1988 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 *) ac_arg=$ac_var=$ac_new_val ;;
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2005 if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010 { (exit 1); exit 1; }; }
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047 am__api_version="1.9"
2049 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2050 if test -f "$ac_dir/install-sh"; then
2052 ac_install_sh="$ac_aux_dir/install-sh -c"
2054 elif test -f "$ac_dir/install.sh"; then
2056 ac_install_sh="$ac_aux_dir/install.sh -c"
2058 elif test -f "$ac_dir/shtool"; then
2060 ac_install_sh="$ac_aux_dir/shtool install -c"
2064 if test -z "$ac_aux_dir"; then
2065 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2066 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2067 { (exit 1); exit 1; }; }
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2079 # Find a good install program. We prefer a C program (faster),
2080 # so one script is as good as another. But avoid the broken or
2081 # incompatible versions:
2082 # SysV /etc/install, /usr/sbin/install
2083 # SunOS /usr/etc/install
2084 # IRIX /sbin/install
2086 # AmigaOS /C/install, which installs bootblocks on floppy discs
2087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2090 # OS/2's system install, which has a completely different semantic
2091 # ./install, which can be erroneously created by make from ./install.sh.
2092 # Reject install programs that cannot install multiple files.
2093 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2095 if test -z "$INSTALL"; then
2096 if test "${ac_cv_path_install+set}" = set; then
2097 $as_echo_n "(cached) " >&6
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 # Account for people who put trailing slashes in PATH elements.
2106 ./ | .// | /cC/* | \
2107 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2111 # OSF1 and SCO ODT 3.0 have their own names for install.
2112 # Don't use installbsd from OSF since it installs stuff as root
2114 for ac_prog in ginstall scoinst install; do
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2117 if test $ac_prog = install &&
2118 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119 # AIX install. It has an incompatible calling convention.
2121 elif test $ac_prog = install &&
2122 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123 # program-specific install script used by HP pwplus--don't use.
2126 rm -rf conftest.one conftest.two conftest.dir
2127 echo one > conftest.one
2128 echo two > conftest.two
2130 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2131 test -s conftest.one && test -s conftest.two &&
2132 test -s conftest.dir/conftest.one &&
2133 test -s conftest.dir/conftest.two
2135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2148 rm -rf conftest.one conftest.two conftest.dir
2151 if test "${ac_cv_path_install+set}" = set; then
2152 INSTALL=$ac_cv_path_install
2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for INSTALL within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 INSTALL=$ac_install_sh
2161 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2162 $as_echo "$INSTALL" >&6; }
2164 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2165 # It thinks the first close brace ends the variable substitution.
2166 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2172 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2173 $as_echo_n "checking whether build environment is sane... " >&6; }
2176 echo timestamp > conftest.file
2177 # Do `set' in a subshell so we don't clobber the current shell's
2178 # arguments. Must try -L first in case configure is actually a
2179 # symlink; some systems play weird games with the mod time of symlinks
2180 # (eg FreeBSD returns the mod time of the symlink's containing
2183 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2184 if test "$*" = "X"; then
2186 set X `ls -t $srcdir/configure conftest.file`
2189 if test "$*" != "X $srcdir/configure conftest.file" \
2190 && test "$*" != "X conftest.file $srcdir/configure"; then
2192 # If neither matched, then we have a broken ls. This can happen
2193 # if, for instance, CONFIG_SHELL is bash and it inherits a
2194 # broken ls alias from the environment. This has actually
2195 # happened. Such a system could not be considered "sane".
2196 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2197 alias in your environment" >&5
2198 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2199 alias in your environment" >&2;}
2200 { (exit 1); exit 1; }; }
2203 test "$2" = conftest.file
2209 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2210 Check your system clock" >&5
2211 $as_echo "$as_me: error: newly created file is older than distributed files!
2212 Check your system clock" >&2;}
2213 { (exit 1); exit 1; }; }
2215 { $as_echo "$as_me:$LINENO: result: yes" >&5
2216 $as_echo "yes" >&6; }
2217 test "$program_prefix" != NONE &&
2218 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2219 # Use a double $ so make ignores it.
2220 test "$program_suffix" != NONE &&
2221 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2222 # Double any \ or $.
2223 # By default was `s,x,x', remove it if useless.
2224 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2225 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2227 # expand $ac_aux_dir to an absolute path
2228 am_aux_dir=`cd $ac_aux_dir && pwd`
2230 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2231 # Use eval to expand $SHELL
2232 if eval "$MISSING --run true"; then
2233 am_missing_run="$MISSING --run "
2236 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2237 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2240 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2241 # We used to keeping the `.' as first argument, in order to
2242 # allow $(mkdir_p) to be used without argument. As in
2243 # $(mkdir_p) $(somedir)
2244 # where $(somedir) is conditionally defined. However this is wrong
2246 # 1. if the package is installed by a user who cannot write `.'
2247 # make install will fail,
2248 # 2. the above comment should most certainly read
2249 # $(mkdir_p) $(DESTDIR)$(somedir)
2250 # so it does not work when $(somedir) is undefined and
2251 # $(DESTDIR) is not.
2252 # To support the latter case, we have to write
2253 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2254 # so the `.' trick is pointless.
2255 mkdir_p='mkdir -p --'
2257 # On NextStep and OpenStep, the `mkdir' command does not
2258 # recognize any option. It will interpret all options as
2259 # directories to create, and then abort because `.' already
2261 for d in ./-p ./--version;
2263 test -d $d && rmdir $d
2265 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2266 if test -f "$ac_aux_dir/mkinstalldirs"; then
2267 mkdir_p='$(mkinstalldirs)'
2269 mkdir_p='$(install_sh) -d'
2273 for ac_prog in gawk mawk nawk awk
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 $as_echo_n "checking for $ac_word... " >&6; }
2279 if test "${ac_cv_prog_AWK+set}" = set; then
2280 $as_echo_n "(cached) " >&6
2282 if test -n "$AWK"; then
2283 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_AWK="$ac_prog"
2293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 if test -n "$AWK"; then
2304 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2305 $as_echo "$AWK" >&6; }
2307 { $as_echo "$as_me:$LINENO: result: no" >&5
2308 $as_echo "no" >&6; }
2312 test -n "$AWK" && break
2315 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2316 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2318 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2319 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2320 $as_echo_n "(cached) " >&6
2322 cat >conftest.make <<\_ACEOF
2325 @echo '@@@%%%=$(MAKE)=@@@%%%'
2327 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2328 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2330 eval ac_cv_prog_make_${ac_make}_set=yes;;
2332 eval ac_cv_prog_make_${ac_make}_set=no;;
2336 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2337 { $as_echo "$as_me:$LINENO: result: yes" >&5
2338 $as_echo "yes" >&6; }
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2343 SET_MAKE="MAKE=${MAKE-make}"
2346 rm -rf .tst 2>/dev/null
2347 mkdir .tst 2>/dev/null
2348 if test -d .tst; then
2353 rmdir .tst 2>/dev/null
2355 # test to see if srcdir already configured
2356 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2357 test -f $srcdir/config.status; then
2358 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2359 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2360 { (exit 1); exit 1; }; }
2363 # test whether we have cygpath
2364 if test -z "$CYGPATH_W"; then
2365 if (cygpath --version) >/dev/null 2>/dev/null; then
2366 CYGPATH_W='cygpath -w'
2373 # Define the identity of the package.
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE "$PACKAGE"
2383 cat >>confdefs.h <<_ACEOF
2384 #define VERSION "$VERSION"
2387 # Some tools Automake needs.
2389 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2392 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2395 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2398 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2401 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2403 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2405 # Installed binaries are usually stripped using `strip' when the user
2406 # run `make install-strip'. However `strip' might not be the right
2407 # tool to use in cross-compilation environments, therefore Automake
2408 # will honor the `STRIP' environment variable to overrule this program.
2409 if test "$cross_compiling" != no; then
2410 if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}strip; ac_word=$2
2413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if test "${ac_cv_prog_STRIP+set}" = set; then
2416 $as_echo_n "(cached) " >&6
2418 if test -n "$STRIP"; then
2419 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 STRIP=$ac_cv_prog_STRIP
2439 if test -n "$STRIP"; then
2440 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2441 $as_echo "$STRIP" >&6; }
2443 { $as_echo "$as_me:$LINENO: result: no" >&5
2444 $as_echo "no" >&6; }
2449 if test -z "$ac_cv_prog_STRIP"; then
2451 # Extract the first word of "strip", so it can be a program name with args.
2452 set dummy strip; ac_word=$2
2453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2456 $as_echo_n "(cached) " >&6
2458 if test -n "$ac_ct_STRIP"; then
2459 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_ac_ct_STRIP="strip"
2469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2479 if test -n "$ac_ct_STRIP"; then
2480 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2481 $as_echo "$ac_ct_STRIP" >&6; }
2483 { $as_echo "$as_me:$LINENO: result: no" >&5
2484 $as_echo "no" >&6; }
2487 if test "x$ac_ct_STRIP" = x; then
2490 case $cross_compiling:$ac_tool_warned in
2492 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493 whose name does not start with the host triplet. If you think this
2494 configuration is useful to you, please write to autoconf@gnu.org." >&5
2495 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet. If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498 ac_tool_warned=yes ;;
2503 STRIP="$ac_cv_prog_STRIP"
2507 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2509 # We need awk for the "check" target. The system "awk" is bad on
2511 # Always define AMTAR for backward compatibility.
2513 AMTAR=${AMTAR-"${am_missing_run}tar"}
2515 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2522 DEPDIR="${am__leading_dot}deps"
2524 ac_config_commands="$ac_config_commands depfiles"
2527 am_make=${MAKE-make}
2528 cat > confinc << 'END'
2533 # If we don't find an include directive, just comment out the code.
2534 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2535 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2539 # First try GNU make style include.
2540 echo "include confinc" > confmf
2541 # We grep out `Entering directory' and `Leaving directory'
2542 # messages which can occur if `w' ends up in MAKEFLAGS.
2543 # In particular we don't look at `^make:' because GNU make might
2544 # be invoked under some other name (usually "gmake"), in which
2545 # case it prints its new name instead of `make'.
2546 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2551 # Now try BSD make style include.
2552 if test "$am__include" = "#"; then
2553 echo '.include "confinc"' > confmf
2554 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2555 am__include=.include
2562 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2563 $as_echo "$_am_result" >&6; }
2564 rm -f confinc confmf
2566 # Check whether --enable-dependency-tracking was given.
2567 if test "${enable_dependency_tracking+set}" = set; then
2568 enableval=$enable_dependency_tracking;
2571 if test "x$enable_dependency_tracking" != xno; then
2572 am_depcomp="$ac_aux_dir/depcomp"
2577 if test "x$enable_dependency_tracking" != xno; then
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 if test -n "$ac_tool_prefix"; then
2593 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2594 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598 $as_echo_n "(cached) " >&6
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 if test -n "$CC"; then
2622 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2623 $as_echo "$CC" >&6; }
2625 { $as_echo "$as_me:$LINENO: result: no" >&5
2626 $as_echo "no" >&6; }
2631 if test -z "$ac_cv_prog_CC"; then
2633 # Extract the first word of "gcc", so it can be a program name with args.
2634 set dummy gcc; ac_word=$2
2635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 $as_echo_n "(cached) " >&6
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC="gcc"
2651 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 $as_echo "$ac_ct_CC" >&6; }
2665 { $as_echo "$as_me:$LINENO: result: no" >&5
2666 $as_echo "no" >&6; }
2669 if test "x$ac_ct_CC" = x; then
2672 case $cross_compiling:$ac_tool_warned in
2674 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2675 whose name does not start with the host triplet. If you think this
2676 configuration is useful to you, please write to autoconf@gnu.org." >&5
2677 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet. If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2680 ac_tool_warned=yes ;;
2688 if test -z "$CC"; then
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}cc; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_CC="${ac_tool_prefix}cc"
2708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2722 { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2729 if test -z "$CC"; then
2730 # Extract the first word of "cc", so it can be a program name with args.
2731 set dummy cc; ac_word=$2
2732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_CC+set}" = set; then
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2749 ac_prog_rejected=yes
2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 if test $ac_prog_rejected = yes; then
2761 # We found a bogon in the path, so make sure we never use it.
2762 set dummy $ac_cv_prog_CC
2764 if test $# != 0; then
2765 # We chose a different compiler from the bogus one.
2766 # However, it has the same basename, so the bogon will be chosen
2767 # first if we set CC to just the basename; use the full file name.
2769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2775 if test -n "$CC"; then
2776 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2779 { $as_echo "$as_me:$LINENO: result: no" >&5
2780 $as_echo "no" >&6; }
2785 if test -z "$CC"; then
2786 if test -n "$ac_tool_prefix"; then
2787 for ac_prog in cl.exe
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if test "${ac_cv_prog_CC+set}" = set; then
2794 $as_echo_n "(cached) " >&6
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2821 { $as_echo "$as_me:$LINENO: result: no" >&5
2822 $as_echo "no" >&6; }
2826 test -n "$CC" && break
2829 if test -z "$CC"; then
2831 for ac_prog in cl.exe
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2838 $as_echo_n "(cached) " >&6
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_ac_ct_CC="$ac_prog"
2851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2865 { $as_echo "$as_me:$LINENO: result: no" >&5
2866 $as_echo "no" >&6; }
2870 test -n "$ac_ct_CC" && break
2873 if test "x$ac_ct_CC" = x; then
2876 case $cross_compiling:$ac_tool_warned in
2878 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet. If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&5
2881 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet. If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2884 ac_tool_warned=yes ;;
2893 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2894 See \`config.log' for more details." >&5
2895 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2896 See \`config.log' for more details." >&2;}
2897 { (exit 1); exit 1; }; }
2899 # Provide some information about the compiler.
2900 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2903 { (ac_try="$ac_compiler --version >&5"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909 $as_echo "$ac_try_echo") >&5
2910 (eval "$ac_compiler --version >&5") 2>&5
2912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914 { (ac_try="$ac_compiler -v >&5"
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2920 $as_echo "$ac_try_echo") >&5
2921 (eval "$ac_compiler -v >&5") 2>&5
2923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925 { (ac_try="$ac_compiler -V >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931 $as_echo "$ac_try_echo") >&5
2932 (eval "$ac_compiler -V >&5") 2>&5
2934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2937 cat >conftest.$ac_ext <<_ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2957 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2958 $as_echo_n "checking for C compiler default output file name... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2965 for ac_file in $ac_files
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974 if { (ac_try="$ac_link_default"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2980 $as_echo "$ac_try_echo") >&5
2981 (eval "$ac_link_default") 2>&5
2983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; then
2985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2990 for ac_file in $ac_files ''
2992 test -f "$ac_file" || continue
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2997 # We found the default executable, but exeext='' is most
3001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 # We set ac_cv_exeext here because the later test for it is not
3006 # safe: cross compilers may not add the suffix if given an `-o'
3007 # argument, so we may need to know it at that point already.
3008 # Even if this section looks crufty: it has the advantage of
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3021 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3022 $as_echo "$ac_file" >&6; }
3023 if test -z "$ac_file"; then
3024 $as_echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3028 See \`config.log' for more details." >&5
3029 $as_echo "$as_me: error: C compiler cannot create executables
3030 See \`config.log' for more details." >&2;}
3031 { (exit 77); exit 77; }; }
3034 ac_exeext=$ac_cv_exeext
3036 # Check that the compiler produces executables we can run. If not, either
3037 # the compiler is broken, or we cross compile.
3038 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3039 $as_echo_n "checking whether the C compiler works... " >&6; }
3040 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3041 # If not cross compiling, check that we can run a simple program.
3042 if test "$cross_compiling" != yes; then
3043 if { ac_try='./$ac_file'
3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049 $as_echo "$ac_try_echo") >&5
3050 (eval "$ac_try") 2>&5
3052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3056 if test "$cross_compiling" = maybe; then
3059 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3060 If you meant to cross compile, use \`--host'.
3061 See \`config.log' for more details." >&5
3062 $as_echo "$as_me: error: cannot run C compiled programs.
3063 If you meant to cross compile, use \`--host'.
3064 See \`config.log' for more details." >&2;}
3065 { (exit 1); exit 1; }; }
3069 { $as_echo "$as_me:$LINENO: result: yes" >&5
3070 $as_echo "yes" >&6; }
3072 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3073 ac_clean_files=$ac_clean_files_save
3074 # Check that the compiler produces executables we can run. If not, either
3075 # the compiler is broken, or we cross compile.
3076 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3077 $as_echo_n "checking whether we are cross compiling... " >&6; }
3078 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3079 $as_echo "$cross_compiling" >&6; }
3081 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3082 $as_echo_n "checking for suffix of executables... " >&6; }
3083 if { (ac_try="$ac_link"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089 $as_echo "$ac_try_echo") >&5
3090 (eval "$ac_link") 2>&5
3092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; then
3094 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3095 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3096 # work properly (i.e., refer to `conftest.exe'), while it won't with
3098 for ac_file in conftest.exe conftest conftest.*; do
3099 test -f "$ac_file" || continue
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details." >&5
3110 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }
3115 rm -f conftest$ac_cv_exeext
3116 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3117 $as_echo "$ac_cv_exeext" >&6; }
3119 rm -f conftest.$ac_ext
3120 EXEEXT=$ac_cv_exeext
3122 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3123 $as_echo_n "checking for suffix of object files... " >&6; }
3124 if test "${ac_cv_objext+set}" = set; then
3125 $as_echo_n "(cached) " >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3142 rm -f conftest.o conftest.obj
3143 if { (ac_try="$ac_compile"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149 $as_echo "$ac_try_echo") >&5
3150 (eval "$ac_compile") 2>&5
3152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; then
3154 for ac_file in conftest.o conftest.obj conftest.*; do
3155 test -f "$ac_file" || continue;
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3158 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3163 $as_echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3167 See \`config.log' for more details." >&5
3168 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3173 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3175 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3176 $as_echo "$ac_cv_objext" >&6; }
3177 OBJEXT=$ac_cv_objext
3179 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3180 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3181 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3202 rm -f conftest.$ac_objext
3203 if { (ac_try="$ac_compile"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209 $as_echo "$ac_try_echo") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3212 grep -v '^ *+' conftest.er1 >conftest.err
3214 cat conftest.err >&5
3215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3222 $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3232 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3233 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3234 if test $ac_compiler_gnu = yes; then
3239 ac_test_CFLAGS=${CFLAGS+set}
3240 ac_save_CFLAGS=$CFLAGS
3241 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3242 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3243 if test "${ac_cv_prog_cc_g+set}" = set; then
3244 $as_echo_n "(cached) " >&6
3246 ac_save_c_werror_flag=$ac_c_werror_flag
3247 ac_c_werror_flag=yes
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272 $as_echo "$ac_try_echo") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 ac_c_werror_flag=$ac_save_c_werror_flag
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3344 rm -f conftest.$ac_objext
3345 if { (ac_try="$ac_compile"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351 $as_echo "$ac_try_echo") >&5
3352 (eval "$ac_compile") 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } && {
3359 test -z "$ac_c_werror_flag" ||
3360 test ! -s conftest.err
3361 } && test -s conftest.$ac_objext; then
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 ac_c_werror_flag=$ac_save_c_werror_flag
3379 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3380 $as_echo "$ac_cv_prog_cc_g" >&6; }
3381 if test "$ac_test_CFLAGS" = set; then
3382 CFLAGS=$ac_save_CFLAGS
3383 elif test $ac_cv_prog_cc_g = yes; then
3384 if test "$GCC" = yes; then
3390 if test "$GCC" = yes; then
3396 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3397 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3398 if test "${ac_cv_prog_cc_c89+set}" = set; then
3399 $as_echo_n "(cached) " >&6
3401 ac_cv_prog_cc_c89=no
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3411 #include <sys/types.h>
3412 #include <sys/stat.h>
3413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3414 struct buf { int x; };
3415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3416 static char *e (p, i)
3422 static char *f (char * (*g) (char **, int), char **p, ...)
3427 s = g (p, va_arg (v,int));
3432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3433 function prototypes and stuff, but not '\xHH' hex character constants.
3434 These don't provoke an error unfortunately, instead are silently treated
3435 as 'x'. The following induces an error, until -std is added to get
3436 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3437 array size at least. It's necessary to write '\x00'==0 to get something
3438 that's true only with -std. */
3439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3441 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3442 inside strings and character constants. */
3444 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3446 int test (int i, double x);
3447 struct s1 {int (*f) (int a);};
3448 struct s2 {int (*f) (double a);};
3449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3455 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3461 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3463 CC="$ac_save_CC $ac_arg"
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472 (eval "$ac_compile") 2>conftest.er1
3474 grep -v '^ *+' conftest.er1 >conftest.err
3476 cat conftest.err >&5
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } && {
3479 test -z "$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 } && test -s conftest.$ac_objext; then
3482 ac_cv_prog_cc_c89=$ac_arg
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3490 rm -f core conftest.err conftest.$ac_objext
3491 test "x$ac_cv_prog_cc_c89" != "xno" && break
3493 rm -f conftest.$ac_ext
3498 case "x$ac_cv_prog_cc_c89" in
3500 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3501 $as_echo "none needed" >&6; } ;;
3503 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3504 $as_echo "unsupported" >&6; } ;;
3506 CC="$CC $ac_cv_prog_cc_c89"
3507 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3508 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518 depcc="$CC" am_compiler_list=
3520 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3521 $as_echo_n "checking dependency style of $depcc... " >&6; }
3522 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3523 $as_echo_n "(cached) " >&6
3525 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3526 # We make a subdir and do the tests there. Otherwise we can end up
3527 # making bogus files that we don't know about and never remove. For
3528 # instance it was reported that on HP-UX the gcc test will end up
3529 # making a dummy file named `D' -- because `-MD' means `put the output
3532 # Copy depcomp to subdir because otherwise we won't find it if we're
3533 # using a relative directory.
3534 cp "$am_depcomp" conftest.dir
3536 # We will build objects and dependencies in a subdirectory because
3537 # it helps to detect inapplicable dependency modes. For instance
3538 # both Tru64's cc and ICC support -MD to output dependencies as a
3539 # side effect of compilation, but ICC will put the dependencies in
3540 # the current directory while Tru64 will put them in the object
3544 am_cv_CC_dependencies_compiler_type=none
3545 if test "$am_compiler_list" = ""; then
3546 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3548 for depmode in $am_compiler_list; do
3549 # Setup a source with many dependencies, because some compilers
3550 # like to wrap large dependency lists on column 80 (with \), and
3551 # we should not choose a depcomp mode which is confused by this.
3553 # We need to recreate these files for each test, as the compiler may
3554 # overwrite some of them when testing with obscure command lines.
3555 # This happens at least with the AIX C compiler.
3557 for i in 1 2 3 4 5 6; do
3558 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3559 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3560 # Solaris 8's {/usr,}/bin/sh.
3561 touch sub/conftst$i.h
3563 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3567 # after this tag, mechanisms are not by side-effect, so they'll
3568 # only be used when explicitly requested
3569 if test "x$enable_dependency_tracking" = xyes; then
3577 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3578 # mode. It turns out that the SunPro C++ compiler does not properly
3579 # handle `-M -o', and we need to detect this.
3580 if depmode=$depmode \
3581 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3582 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3583 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3584 >/dev/null 2>conftest.err &&
3585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3586 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3588 # icc doesn't choke on unknown options, it will just issue warnings
3589 # or remarks (even with -Werror). So we grep stderr for any message
3590 # that says an option was ignored or not supported.
3591 # When given -MP, icc 7.0 and 7.1 complain thusly:
3592 # icc: Command line warning: ignoring option '-M'; no argument required
3593 # The diagnosis changed in icc 8.0:
3594 # icc: Command line remark: option '-MP' not supported
3595 if (grep 'ignoring option' conftest.err ||
3596 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3597 am_cv_CC_dependencies_compiler_type=$depmode
3606 am_cv_CC_dependencies_compiler_type=none
3610 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3611 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3612 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3617 test "x$enable_dependency_tracking" != xno \
3618 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3620 am__fastdepCC_FALSE='#'
3622 am__fastdepCC_TRUE='#'
3623 am__fastdepCC_FALSE=
3628 # Check whether --enable-largefile was given.
3629 if test "${enable_largefile+set}" = set; then
3630 enableval=$enable_largefile;
3633 if test "$enable_largefile" != no; then
3635 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3636 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3637 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3638 $as_echo_n "(cached) " >&6
3640 ac_cv_sys_largefile_CC=no
3641 if test "$GCC" != yes; then
3644 # IRIX 6.2 and later do not support large files by default,
3645 # so use the C compiler's -n32 option if that helps.
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 #include <sys/types.h>
3653 /* Check that off_t can represent 2**63 - 1 correctly.
3654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3655 since some C++ compilers masquerading as C compilers
3656 incorrectly reject 9223372036854775807. */
3657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3659 && LARGE_OFF_T % 2147483647 == 1)
3669 rm -f conftest.$ac_objext
3670 if { (ac_try="$ac_compile"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3676 $as_echo "$ac_try_echo") >&5
3677 (eval "$ac_compile") 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } && {
3684 test -z "$ac_c_werror_flag" ||
3685 test ! -s conftest.err
3686 } && test -s conftest.$ac_objext; then
3689 $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3695 rm -f core conftest.err conftest.$ac_objext
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } && {
3712 test -z "$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3714 } && test -s conftest.$ac_objext; then
3715 ac_cv_sys_largefile_CC=' -n32'; break
3717 $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3723 rm -f core conftest.err conftest.$ac_objext
3727 rm -f conftest.$ac_ext
3730 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3731 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3732 if test "$ac_cv_sys_largefile_CC" != no; then
3733 CC=$CC$ac_cv_sys_largefile_CC
3736 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3737 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3738 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3739 $as_echo_n "(cached) " >&6
3742 cat >conftest.$ac_ext <<_ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <sys/types.h>
3749 /* Check that off_t can represent 2**63 - 1 correctly.
3750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3751 since some C++ compilers masquerading as C compilers
3752 incorrectly reject 9223372036854775807. */
3753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3755 && LARGE_OFF_T % 2147483647 == 1)
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3783 ac_cv_sys_file_offset_bits=no; break
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 cat >conftest.$ac_ext <<_ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3798 #define _FILE_OFFSET_BITS 64
3799 #include <sys/types.h>
3800 /* Check that off_t can represent 2**63 - 1 correctly.
3801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3802 since some C++ compilers masquerading as C compilers
3803 incorrectly reject 9223372036854775807. */
3804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3806 && LARGE_OFF_T % 2147483647 == 1)
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3834 ac_cv_sys_file_offset_bits=64; break
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 ac_cv_sys_file_offset_bits=unknown
3847 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3848 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3849 case $ac_cv_sys_file_offset_bits in #(
3852 cat >>confdefs.h <<_ACEOF
3853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3858 if test $ac_cv_sys_file_offset_bits = unknown; then
3859 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3860 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3861 if test "${ac_cv_sys_large_files+set}" = set; then
3862 $as_echo_n "(cached) " >&6
3865 cat >conftest.$ac_ext <<_ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #include <sys/types.h>
3872 /* Check that off_t can represent 2**63 - 1 correctly.
3873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3874 since some C++ compilers masquerading as C compilers
3875 incorrectly reject 9223372036854775807. */
3876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3878 && LARGE_OFF_T % 2147483647 == 1)
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3906 ac_cv_sys_large_files=no; break
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #define _LARGE_FILES 1
3922 #include <sys/types.h>
3923 /* Check that off_t can represent 2**63 - 1 correctly.
3924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3925 since some C++ compilers masquerading as C compilers
3926 incorrectly reject 9223372036854775807. */
3927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3929 && LARGE_OFF_T % 2147483647 == 1)
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.$ac_objext; then
3957 ac_cv_sys_large_files=1; break
3959 $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_cv_sys_large_files=unknown
3970 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3971 $as_echo "$ac_cv_sys_large_files" >&6; }
3972 case $ac_cv_sys_large_files in #(
3975 cat >>confdefs.h <<_ACEOF
3976 #define _LARGE_FILES $ac_cv_sys_large_files
3985 # Check for required programs.
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if test "${ac_cv_prog_CC+set}" = set; then
3997 $as_echo_n "(cached) " >&6
3999 if test -n "$CC"; then
4000 ac_cv_prog_CC="$CC" # Let the user override the test.
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 if test -n "$CC"; then
4021 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4022 $as_echo "$CC" >&6; }
4024 { $as_echo "$as_me:$LINENO: result: no" >&5
4025 $as_echo "no" >&6; }
4030 if test -z "$ac_cv_prog_CC"; then
4032 # Extract the first word of "gcc", so it can be a program name with args.
4033 set dummy gcc; ac_word=$2
4034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4037 $as_echo_n "(cached) " >&6
4039 if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_prog_ac_ct_CC="gcc"
4050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060 if test -n "$ac_ct_CC"; then
4061 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4062 $as_echo "$ac_ct_CC" >&6; }
4064 { $as_echo "$as_me:$LINENO: result: no" >&5
4065 $as_echo "no" >&6; }
4068 if test "x$ac_ct_CC" = x; then
4071 case $cross_compiling:$ac_tool_warned in
4073 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4074 whose name does not start with the host triplet. If you think this
4075 configuration is useful to you, please write to autoconf@gnu.org." >&5
4076 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4077 whose name does not start with the host triplet. If you think this
4078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4079 ac_tool_warned=yes ;;
4087 if test -z "$CC"; then
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}cc; ac_word=$2
4091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if test "${ac_cv_prog_CC+set}" = set; then
4094 $as_echo_n "(cached) " >&6
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_CC="${ac_tool_prefix}cc"
4107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 if test -n "$CC"; then
4118 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4121 { $as_echo "$as_me:$LINENO: result: no" >&5
4122 $as_echo "no" >&6; }
4128 if test -z "$CC"; then
4129 # Extract the first word of "cc", so it can be a program name with args.
4130 set dummy cc; ac_word=$2
4131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then
4134 $as_echo_n "(cached) " >&6
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148 ac_prog_rejected=yes
4152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 if test $ac_prog_rejected = yes; then
4160 # We found a bogon in the path, so make sure we never use it.
4161 set dummy $ac_cv_prog_CC
4163 if test $# != 0; then
4164 # We chose a different compiler from the bogus one.
4165 # However, it has the same basename, so the bogon will be chosen
4166 # first if we set CC to just the basename; use the full file name.
4168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4174 if test -n "$CC"; then
4175 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4178 { $as_echo "$as_me:$LINENO: result: no" >&5
4179 $as_echo "no" >&6; }
4184 if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
4186 for ac_prog in cl.exe
4188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_CC+set}" = set; then
4193 $as_echo_n "(cached) " >&6
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 if test -n "$CC"; then
4217 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4218 $as_echo "$CC" >&6; }
4220 { $as_echo "$as_me:$LINENO: result: no" >&5
4221 $as_echo "no" >&6; }
4225 test -n "$CC" && break
4228 if test -z "$CC"; then
4230 for ac_prog in cl.exe
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4237 $as_echo_n "(cached) " >&6
4239 if test -n "$ac_ct_CC"; then
4240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_ac_ct_CC="$ac_prog"
4250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260 if test -n "$ac_ct_CC"; then
4261 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4262 $as_echo "$ac_ct_CC" >&6; }
4264 { $as_echo "$as_me:$LINENO: result: no" >&5
4265 $as_echo "no" >&6; }
4269 test -n "$ac_ct_CC" && break
4272 if test "x$ac_ct_CC" = x; then
4275 case $cross_compiling:$ac_tool_warned in
4277 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4278 whose name does not start with the host triplet. If you think this
4279 configuration is useful to you, please write to autoconf@gnu.org." >&5
4280 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4281 whose name does not start with the host triplet. If you think this
4282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4283 ac_tool_warned=yes ;;
4292 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4293 See \`config.log' for more details." >&5
4294 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4295 See \`config.log' for more details." >&2;}
4296 { (exit 1); exit 1; }; }
4298 # Provide some information about the compiler.
4299 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4302 { (ac_try="$ac_compiler --version >&5"
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4308 $as_echo "$ac_try_echo") >&5
4309 (eval "$ac_compiler --version >&5") 2>&5
4311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }
4313 { (ac_try="$ac_compiler -v >&5"
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4319 $as_echo "$ac_try_echo") >&5
4320 (eval "$ac_compiler -v >&5") 2>&5
4322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }
4324 { (ac_try="$ac_compiler -V >&5"
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4330 $as_echo "$ac_try_echo") >&5
4331 (eval "$ac_compiler -V >&5") 2>&5
4333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }
4336 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4338 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4339 $as_echo_n "(cached) " >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4359 rm -f conftest.$ac_objext
4360 if { (ac_try="$ac_compile"
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4366 $as_echo "$ac_try_echo") >&5
4367 (eval "$ac_compile") 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && {
4374 test -z "$ac_c_werror_flag" ||
4375 test ! -s conftest.err
4376 } && test -s conftest.$ac_objext; then
4379 $as_echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4389 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4390 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4391 if test $ac_compiler_gnu = yes; then
4396 ac_test_CFLAGS=${CFLAGS+set}
4397 ac_save_CFLAGS=$CFLAGS
4398 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4399 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4400 if test "${ac_cv_prog_cc_g+set}" = set; then
4401 $as_echo_n "(cached) " >&6
4403 ac_save_c_werror_flag=$ac_c_werror_flag
4404 ac_c_werror_flag=yes
4407 cat >conftest.$ac_ext <<_ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4422 rm -f conftest.$ac_objext
4423 if { (ac_try="$ac_compile"
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4429 $as_echo "$ac_try_echo") >&5
4430 (eval "$ac_compile") 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } && {
4437 test -z "$ac_c_werror_flag" ||
4438 test ! -s conftest.err
4439 } && test -s conftest.$ac_objext; then
4442 $as_echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4446 cat >conftest.$ac_ext <<_ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468 $as_echo "$ac_try_echo") >&5
4469 (eval "$ac_compile") 2>conftest.er1
4471 grep -v '^ *+' conftest.er1 >conftest.err
4473 cat conftest.err >&5
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && {
4476 test -z "$ac_c_werror_flag" ||
4477 test ! -s conftest.err
4478 } && test -s conftest.$ac_objext; then
4481 $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_c_werror_flag=$ac_save_c_werror_flag
4486 cat >conftest.$ac_ext <<_ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4501 rm -f conftest.$ac_objext
4502 if { (ac_try="$ac_compile"
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4508 $as_echo "$ac_try_echo") >&5
4509 (eval "$ac_compile") 2>conftest.er1
4511 grep -v '^ *+' conftest.er1 >conftest.err
4513 cat conftest.err >&5
4514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } && {
4516 test -z "$ac_c_werror_flag" ||
4517 test ! -s conftest.err
4518 } && test -s conftest.$ac_objext; then
4521 $as_echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 ac_c_werror_flag=$ac_save_c_werror_flag
4536 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4537 $as_echo "$ac_cv_prog_cc_g" >&6; }
4538 if test "$ac_test_CFLAGS" = set; then
4539 CFLAGS=$ac_save_CFLAGS
4540 elif test $ac_cv_prog_cc_g = yes; then
4541 if test "$GCC" = yes; then
4547 if test "$GCC" = yes; then
4553 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4554 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4555 if test "${ac_cv_prog_cc_c89+set}" = set; then
4556 $as_echo_n "(cached) " >&6
4558 ac_cv_prog_cc_c89=no
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4568 #include <sys/types.h>
4569 #include <sys/stat.h>
4570 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4571 struct buf { int x; };
4572 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4573 static char *e (p, i)
4579 static char *f (char * (*g) (char **, int), char **p, ...)
4584 s = g (p, va_arg (v,int));
4589 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4590 function prototypes and stuff, but not '\xHH' hex character constants.
4591 These don't provoke an error unfortunately, instead are silently treated
4592 as 'x'. The following induces an error, until -std is added to get
4593 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4594 array size at least. It's necessary to write '\x00'==0 to get something
4595 that's true only with -std. */
4596 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4598 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4599 inside strings and character constants. */
4601 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4603 int test (int i, double x);
4604 struct s1 {int (*f) (int a);};
4605 struct s2 {int (*f) (double a);};
4606 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4612 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4618 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4620 CC="$ac_save_CC $ac_arg"
4621 rm -f conftest.$ac_objext
4622 if { (ac_try="$ac_compile"
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4628 $as_echo "$ac_try_echo") >&5
4629 (eval "$ac_compile") 2>conftest.er1
4631 grep -v '^ *+' conftest.er1 >conftest.err
4633 cat conftest.err >&5
4634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } && {
4636 test -z "$ac_c_werror_flag" ||
4637 test ! -s conftest.err
4638 } && test -s conftest.$ac_objext; then
4639 ac_cv_prog_cc_c89=$ac_arg
4641 $as_echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4647 rm -f core conftest.err conftest.$ac_objext
4648 test "x$ac_cv_prog_cc_c89" != "xno" && break
4650 rm -f conftest.$ac_ext
4655 case "x$ac_cv_prog_cc_c89" in
4657 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4658 $as_echo "none needed" >&6; } ;;
4660 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4661 $as_echo "unsupported" >&6; } ;;
4663 CC="$CC $ac_cv_prog_cc_c89"
4664 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4665 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4670 ac_cpp='$CPP $CPPFLAGS'
4671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 depcc="$CC" am_compiler_list=
4677 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4678 $as_echo_n "checking dependency style of $depcc... " >&6; }
4679 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4680 $as_echo_n "(cached) " >&6
4682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4683 # We make a subdir and do the tests there. Otherwise we can end up
4684 # making bogus files that we don't know about and never remove. For
4685 # instance it was reported that on HP-UX the gcc test will end up
4686 # making a dummy file named `D' -- because `-MD' means `put the output
4689 # Copy depcomp to subdir because otherwise we won't find it if we're
4690 # using a relative directory.
4691 cp "$am_depcomp" conftest.dir
4693 # We will build objects and dependencies in a subdirectory because
4694 # it helps to detect inapplicable dependency modes. For instance
4695 # both Tru64's cc and ICC support -MD to output dependencies as a
4696 # side effect of compilation, but ICC will put the dependencies in
4697 # the current directory while Tru64 will put them in the object
4701 am_cv_CC_dependencies_compiler_type=none
4702 if test "$am_compiler_list" = ""; then
4703 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4705 for depmode in $am_compiler_list; do
4706 # Setup a source with many dependencies, because some compilers
4707 # like to wrap large dependency lists on column 80 (with \), and
4708 # we should not choose a depcomp mode which is confused by this.
4710 # We need to recreate these files for each test, as the compiler may
4711 # overwrite some of them when testing with obscure command lines.
4712 # This happens at least with the AIX C compiler.
4714 for i in 1 2 3 4 5 6; do
4715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4716 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4717 # Solaris 8's {/usr,}/bin/sh.
4718 touch sub/conftst$i.h
4720 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4724 # after this tag, mechanisms are not by side-effect, so they'll
4725 # only be used when explicitly requested
4726 if test "x$enable_dependency_tracking" = xyes; then
4734 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4735 # mode. It turns out that the SunPro C++ compiler does not properly
4736 # handle `-M -o', and we need to detect this.
4737 if depmode=$depmode \
4738 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4740 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4741 >/dev/null 2>conftest.err &&
4742 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4743 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4744 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4745 # icc doesn't choke on unknown options, it will just issue warnings
4746 # or remarks (even with -Werror). So we grep stderr for any message
4747 # that says an option was ignored or not supported.
4748 # When given -MP, icc 7.0 and 7.1 complain thusly:
4749 # icc: Command line warning: ignoring option '-M'; no argument required
4750 # The diagnosis changed in icc 8.0:
4751 # icc: Command line remark: option '-MP' not supported
4752 if (grep 'ignoring option' conftest.err ||
4753 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4754 am_cv_CC_dependencies_compiler_type=$depmode
4763 am_cv_CC_dependencies_compiler_type=none
4767 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4768 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4769 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4774 test "x$enable_dependency_tracking" != xno \
4775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4777 am__fastdepCC_FALSE='#'
4779 am__fastdepCC_TRUE='#'
4780 am__fastdepCC_FALSE=
4784 if test -n "$ac_tool_prefix"; then
4785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if test "${ac_cv_prog_RANLIB+set}" = set; then
4790 $as_echo_n "(cached) " >&6
4792 if test -n "$RANLIB"; then
4793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 RANLIB=$ac_cv_prog_RANLIB
4813 if test -n "$RANLIB"; then
4814 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4815 $as_echo "$RANLIB" >&6; }
4817 { $as_echo "$as_me:$LINENO: result: no" >&5
4818 $as_echo "no" >&6; }
4823 if test -z "$ac_cv_prog_RANLIB"; then
4824 ac_ct_RANLIB=$RANLIB
4825 # Extract the first word of "ranlib", so it can be a program name with args.
4826 set dummy ranlib; ac_word=$2
4827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4830 $as_echo_n "(cached) " >&6
4832 if test -n "$ac_ct_RANLIB"; then
4833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_ac_ct_RANLIB="ranlib"
4843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4853 if test -n "$ac_ct_RANLIB"; then
4854 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4855 $as_echo "$ac_ct_RANLIB" >&6; }
4857 { $as_echo "$as_me:$LINENO: result: no" >&5
4858 $as_echo "no" >&6; }
4861 if test "x$ac_ct_RANLIB" = x; then
4864 case $cross_compiling:$ac_tool_warned in
4866 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4867 whose name does not start with the host triplet. If you think this
4868 configuration is useful to you, please write to autoconf@gnu.org." >&5
4869 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4870 whose name does not start with the host triplet. If you think this
4871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4872 ac_tool_warned=yes ;;
4874 RANLIB=$ac_ct_RANLIB
4877 RANLIB="$ac_cv_prog_RANLIB"
4880 # Check whether --enable-shared was given.
4881 if test "${enable_shared+set}" = set; then
4882 enableval=$enable_shared; p=${PACKAGE-default}
4884 yes) enable_shared=yes ;;
4885 no) enable_shared=no ;;
4888 # Look at the argument we got. We use all the common list separators.
4889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4890 for pkg in $enableval; do
4892 if test "X$pkg" = "X$p"; then
4904 # Check whether --enable-static was given.
4905 if test "${enable_static+set}" = set; then
4906 enableval=$enable_static; p=${PACKAGE-default}
4908 yes) enable_static=yes ;;
4909 no) enable_static=no ;;
4912 # Look at the argument we got. We use all the common list separators.
4913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4914 for pkg in $enableval; do
4916 if test "X$pkg" = "X$p"; then
4928 # Check whether --enable-fast-install was given.
4929 if test "${enable_fast_install+set}" = set; then
4930 enableval=$enable_fast_install; p=${PACKAGE-default}
4932 yes) enable_fast_install=yes ;;
4933 no) enable_fast_install=no ;;
4935 enable_fast_install=no
4936 # Look at the argument we got. We use all the common list separators.
4937 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4938 for pkg in $enableval; do
4940 if test "X$pkg" = "X$p"; then
4941 enable_fast_install=yes
4948 enable_fast_install=yes
4952 # Make sure we can run config.sub.
4953 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4954 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4955 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4956 { (exit 1); exit 1; }; }
4958 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4959 $as_echo_n "checking build system type... " >&6; }
4960 if test "${ac_cv_build+set}" = set; then
4961 $as_echo_n "(cached) " >&6
4963 ac_build_alias=$build_alias
4964 test "x$ac_build_alias" = x &&
4965 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4966 test "x$ac_build_alias" = x &&
4967 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4968 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4969 { (exit 1); exit 1; }; }
4970 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4971 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4972 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4973 { (exit 1); exit 1; }; }
4976 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4977 $as_echo "$ac_cv_build" >&6; }
4978 case $ac_cv_build in
4980 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4981 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4982 { (exit 1); exit 1; }; };;
4985 ac_save_IFS=$IFS; IFS='-'
4991 # Remember, the first character of IFS is used to create $*,
4992 # except with old shells:
4995 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4998 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4999 $as_echo_n "checking host system type... " >&6; }
5000 if test "${ac_cv_host+set}" = set; then
5001 $as_echo_n "(cached) " >&6
5003 if test "x$host_alias" = x; then
5004 ac_cv_host=$ac_cv_build
5006 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5007 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5008 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5009 { (exit 1); exit 1; }; }
5013 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5014 $as_echo "$ac_cv_host" >&6; }
5017 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5018 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5019 { (exit 1); exit 1; }; };;
5022 ac_save_IFS=$IFS; IFS='-'
5028 # Remember, the first character of IFS is used to create $*,
5029 # except with old shells:
5032 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5035 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5036 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5037 if test "${lt_cv_path_SED+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5040 # Loop through the user's path and test for sed and gsed.
5041 # Then use that list of sed's as ones to test for truncation.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for lt_ac_prog in sed gsed; do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5050 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5057 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5058 # along with /bin/sed that truncates output.
5059 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5060 test ! -f $lt_ac_sed && continue
5061 cat /dev/null > conftest.in
5063 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5064 # Check for GNU sed and select it if it is found.
5065 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5066 lt_cv_path_SED=$lt_ac_sed
5070 cat conftest.in conftest.in >conftest.tmp
5071 mv conftest.tmp conftest.in
5072 cp conftest.in conftest.nl
5074 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5075 cmp -s conftest.out conftest.nl || break
5076 # 10000 chars as input seems more than enough
5077 test $lt_ac_count -gt 10 && break
5078 lt_ac_count=`expr $lt_ac_count + 1`
5079 if test $lt_ac_count -gt $lt_ac_max; then
5080 lt_ac_max=$lt_ac_count
5081 lt_cv_path_SED=$lt_ac_sed
5089 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5090 $as_echo "$SED" >&6; }
5092 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5093 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5094 if test "${ac_cv_path_GREP+set}" = set; then
5095 $as_echo_n "(cached) " >&6
5097 if test -z "$GREP"; then
5098 ac_path_GREP_found=false
5099 # Loop through the user's path and test for each of PROGNAME-LIST
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 test -z "$as_dir" && as_dir=.
5105 for ac_prog in grep ggrep; do
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5108 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5109 # Check for GNU ac_path_GREP and select it if it is found.
5110 # Check for GNU $ac_path_GREP
5111 case `"$ac_path_GREP" --version 2>&1` in
5113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5116 $as_echo_n 0123456789 >"conftest.in"
5119 cat "conftest.in" "conftest.in" >"conftest.tmp"
5120 mv "conftest.tmp" "conftest.in"
5121 cp "conftest.in" "conftest.nl"
5122 $as_echo 'GREP' >> "conftest.nl"
5123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5125 ac_count=`expr $ac_count + 1`
5126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5127 # Best one so far, save it but keep looking for a better one
5128 ac_cv_path_GREP="$ac_path_GREP"
5129 ac_path_GREP_max=$ac_count
5131 # 10*(2^10) chars as input seems more than enough
5132 test $ac_count -gt 10 && break
5134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 $ac_path_GREP_found && break 3
5142 if test -z "$ac_cv_path_GREP"; then
5143 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5144 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5145 { (exit 1); exit 1; }; }
5148 ac_cv_path_GREP=$GREP
5152 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5153 $as_echo "$ac_cv_path_GREP" >&6; }
5154 GREP="$ac_cv_path_GREP"
5157 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5158 $as_echo_n "checking for egrep... " >&6; }
5159 if test "${ac_cv_path_EGREP+set}" = set; then
5160 $as_echo_n "(cached) " >&6
5162 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5163 then ac_cv_path_EGREP="$GREP -E"
5165 if test -z "$EGREP"; then
5166 ac_path_EGREP_found=false
5167 # Loop through the user's path and test for each of PROGNAME-LIST
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 test -z "$as_dir" && as_dir=.
5173 for ac_prog in egrep; do
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5176 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5177 # Check for GNU ac_path_EGREP and select it if it is found.
5178 # Check for GNU $ac_path_EGREP
5179 case `"$ac_path_EGREP" --version 2>&1` in
5181 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5184 $as_echo_n 0123456789 >"conftest.in"
5187 cat "conftest.in" "conftest.in" >"conftest.tmp"
5188 mv "conftest.tmp" "conftest.in"
5189 cp "conftest.in" "conftest.nl"
5190 $as_echo 'EGREP' >> "conftest.nl"
5191 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193 ac_count=`expr $ac_count + 1`
5194 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5195 # Best one so far, save it but keep looking for a better one
5196 ac_cv_path_EGREP="$ac_path_EGREP"
5197 ac_path_EGREP_max=$ac_count
5199 # 10*(2^10) chars as input seems more than enough
5200 test $ac_count -gt 10 && break
5202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5205 $ac_path_EGREP_found && break 3
5210 if test -z "$ac_cv_path_EGREP"; then
5211 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5212 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5213 { (exit 1); exit 1; }; }
5216 ac_cv_path_EGREP=$EGREP
5221 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5222 $as_echo "$ac_cv_path_EGREP" >&6; }
5223 EGREP="$ac_cv_path_EGREP"
5227 # Check whether --with-gnu-ld was given.
5228 if test "${with_gnu_ld+set}" = set; then
5229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5235 if test "$GCC" = yes; then
5236 # Check if gcc -print-prog-name=ld gives a path.
5237 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5238 $as_echo_n "checking for ld used by $CC... " >&6; }
5241 # gcc leaves a trailing carriage return which upsets mingw
5242 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5244 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5247 # Accept absolute paths.
5249 re_direlt='/[^/][^/]*/\.\./'
5250 # Canonicalize the pathname of ld
5251 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5252 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5253 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5255 test -z "$LD" && LD="$ac_prog"
5258 # If it fails, then pretend we aren't using GCC.
5262 # If it is relative, then search for the first ld in PATH.
5266 elif test "$with_gnu_ld" = yes; then
5267 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5268 $as_echo_n "checking for GNU ld... " >&6; }
5270 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5271 $as_echo_n "checking for non-GNU ld... " >&6; }
5273 if test "${lt_cv_path_LD+set}" = set; then
5274 $as_echo_n "(cached) " >&6
5276 if test -z "$LD"; then
5277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5278 for ac_dir in $PATH; do
5280 test -z "$ac_dir" && ac_dir=.
5281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5282 lt_cv_path_LD="$ac_dir/$ac_prog"
5283 # Check to see if the program is GNU ld. I'd rather use --version,
5284 # but apparently some variants of GNU ld only accept -v.
5285 # Break only if it was the GNU/non-GNU ld that we prefer.
5286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5287 *GNU* | *'with BFD'*)
5288 test "$with_gnu_ld" != no && break
5291 test "$with_gnu_ld" != yes && break
5298 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5303 if test -n "$LD"; then
5304 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5305 $as_echo "$LD" >&6; }
5307 { $as_echo "$as_me:$LINENO: result: no" >&5
5308 $as_echo "no" >&6; }
5310 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5311 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5312 { (exit 1); exit 1; }; }
5313 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5315 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5318 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5319 case `$LD -v 2>&1 </dev/null` in
5320 *GNU* | *'with BFD'*)
5321 lt_cv_prog_gnu_ld=yes
5324 lt_cv_prog_gnu_ld=no
5328 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5329 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5330 with_gnu_ld=$lt_cv_prog_gnu_ld
5333 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5334 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5335 if test "${lt_cv_ld_reload_flag+set}" = set; then
5336 $as_echo_n "(cached) " >&6
5338 lt_cv_ld_reload_flag='-r'
5340 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5341 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5342 reload_flag=$lt_cv_ld_reload_flag
5343 case $reload_flag in
5345 *) reload_flag=" $reload_flag" ;;
5347 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5350 if test "$GCC" = yes; then
5351 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5353 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5358 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5359 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5360 if test "${lt_cv_path_NM+set}" = set; then
5361 $as_echo_n "(cached) " >&6
5363 if test -n "$NM"; then
5364 # Let the user override the test.
5367 lt_nm_to_check="${ac_tool_prefix}nm"
5368 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5369 lt_nm_to_check="$lt_nm_to_check nm"
5371 for lt_tmp_nm in $lt_nm_to_check; do
5372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5373 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5375 test -z "$ac_dir" && ac_dir=.
5376 tmp_nm="$ac_dir/$lt_tmp_nm"
5377 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5378 # Check to see if the nm accepts a BSD-compat flag.
5379 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5380 # nm: unknown option "B" ignored
5381 # Tru64's nm complains that /dev/null is an invalid object file
5382 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5383 */dev/null* | *'Invalid file or object type'*)
5384 lt_cv_path_NM="$tmp_nm -B"
5388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5390 lt_cv_path_NM="$tmp_nm -p"
5394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5395 continue # so that we can try to find one that supports BSD flags
5404 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5407 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5408 $as_echo "$lt_cv_path_NM" >&6; }
5411 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5412 $as_echo_n "checking whether ln -s works... " >&6; }
5414 if test "$LN_S" = "ln -s"; then
5415 { $as_echo "$as_me:$LINENO: result: yes" >&5
5416 $as_echo "yes" >&6; }
5418 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5419 $as_echo "no, using $LN_S" >&6; }
5422 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5423 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
5424 if test "${lt_cv_deplibs_check_method+set}" = set; then
5425 $as_echo_n "(cached) " >&6
5427 lt_cv_file_magic_cmd='$MAGIC_CMD'
5428 lt_cv_file_magic_test_file=
5429 lt_cv_deplibs_check_method='unknown'
5430 # Need to set the preceding variable on all platforms that support
5431 # interlibrary dependencies.
5432 # 'none' -- dependencies not supported.
5433 # `unknown' -- same as none, but documents that we really don't know.
5434 # 'pass_all' -- all dependencies passed with no checks.
5435 # 'test_compile' -- check by making test program.
5436 # 'file_magic [[regex]]' -- check by looking for files in library path
5437 # which responds to the $file_magic_cmd with a given extended regex.
5438 # If you have `file' or equivalent on your system and you're not sure
5439 # whether `pass_all' will *always* work, you probably want this one.
5443 lt_cv_deplibs_check_method=pass_all
5447 lt_cv_deplibs_check_method=pass_all
5451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5452 lt_cv_file_magic_cmd='/usr/bin/file -L'
5453 lt_cv_file_magic_test_file=/shlib/libc.so
5457 # func_win32_libid is a shell function defined in ltmain.sh
5458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5459 lt_cv_file_magic_cmd='func_win32_libid'
5463 # Base MSYS/MinGW do not provide the 'file' command needed by
5464 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5465 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5466 lt_cv_file_magic_cmd='$OBJDUMP -f'
5469 darwin* | rhapsody*)
5470 lt_cv_deplibs_check_method=pass_all
5473 freebsd* | kfreebsd*-gnu | dragonfly*)
5474 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5477 # Not sure whether the presence of OpenBSD here was a mistake.
5478 # Let's accept both of them until this is cleared up.
5479 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5480 lt_cv_file_magic_cmd=/usr/bin/file
5481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5485 lt_cv_deplibs_check_method=pass_all
5490 lt_cv_deplibs_check_method=pass_all
5493 hpux10.20* | hpux11*)
5494 lt_cv_file_magic_cmd=/usr/bin/file
5497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5498 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5501 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]'
5502 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5506 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5512 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5516 irix5* | irix6* | nonstopux*)
5518 *-32|*"-32 ") libmagic=32-bit;;
5519 *-n32|*"-n32 ") libmagic=N32;;
5520 *-64|*"-64 ") libmagic=64-bit;;
5521 *) libmagic=never-match;;
5523 lt_cv_deplibs_check_method=pass_all
5526 # This must be Linux ELF.
5528 lt_cv_deplibs_check_method=pass_all
5532 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5541 lt_cv_file_magic_cmd=/usr/bin/file
5542 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5546 lt_cv_deplibs_check_method=unknown
5550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5557 osf3* | osf4* | osf5*)
5558 lt_cv_deplibs_check_method=pass_all
5562 lt_cv_deplibs_check_method=pass_all
5566 case $host_vendor in
5568 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]'
5569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5572 lt_cv_deplibs_check_method=pass_all
5575 lt_cv_file_magic_cmd='/bin/file'
5576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5579 lt_cv_file_magic_cmd='/bin/file'
5580 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5581 lt_cv_file_magic_test_file=/lib/libc.so
5584 lt_cv_deplibs_check_method=pass_all
5587 lt_cv_deplibs_check_method=pass_all
5592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5593 lt_cv_deplibs_check_method=pass_all
5598 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5599 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5600 file_magic_cmd=$lt_cv_file_magic_cmd
5601 deplibs_check_method=$lt_cv_deplibs_check_method
5602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5607 # If no C compiler was specified, use CC.
5610 # If no C compiler flags were specified, use CFLAGS.
5611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5613 # Allow CC to be a program name with arguments.
5616 # Check whether --enable-libtool-lock was given.
5617 if test "${enable_libtool_lock+set}" = set; then
5618 enableval=$enable_libtool_lock;
5621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5623 # Some flags need to be propagated to the compiler or linker for good
5627 # Find out which ABI we are using.
5628 echo 'int i;' > conftest.$ac_ext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>&5
5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; then
5634 case `/usr/bin/file conftest.$ac_objext` in
5646 # Find out which ABI we are using.
5647 echo '#line 5647 "configure"' > conftest.$ac_ext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649 (eval $ac_compile) 2>&5
5651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; then
5653 if test "$lt_cv_prog_gnu_ld" = yes; then
5654 case `/usr/bin/file conftest.$ac_objext` in
5656 LD="${LD-ld} -melf32bsmip"
5659 LD="${LD-ld} -melf32bmipn32"
5662 LD="${LD-ld} -melf64bmip"
5666 case `/usr/bin/file conftest.$ac_objext` in
5682 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5683 # Find out which ABI we are using.
5684 echo 'int i;' > conftest.$ac_ext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>&5
5688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; then
5690 case `/usr/bin/file conftest.o` in
5694 LD="${LD-ld} -m elf_i386"
5696 ppc64-*linux*|powerpc64-*linux*)
5697 LD="${LD-ld} -m elf32ppclinux"
5700 LD="${LD-ld} -m elf_s390"
5703 LD="${LD-ld} -m elf32_sparc"
5710 LD="${LD-ld} -m elf_x86_64"
5712 ppc*-*linux*|powerpc*-*linux*)
5713 LD="${LD-ld} -m elf64ppc"
5716 LD="${LD-ld} -m elf64_s390"
5719 LD="${LD-ld} -m elf64_sparc"
5729 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5730 SAVE_CFLAGS="$CFLAGS"
5731 CFLAGS="$CFLAGS -belf"
5732 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5733 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5734 if test "${lt_cv_cc_needs_belf+set}" = set; then
5735 $as_echo_n "(cached) " >&6
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5758 rm -f conftest.$ac_objext conftest$ac_exeext
5759 if { (ac_try="$ac_link"
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5765 $as_echo "$ac_try_echo") >&5
5766 (eval "$ac_link") 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && {
5773 test -z "$ac_c_werror_flag" ||
5774 test ! -s conftest.err
5775 } && test -s conftest$ac_exeext && {
5776 test "$cross_compiling" = yes ||
5777 $as_test_x conftest$ac_exeext
5779 lt_cv_cc_needs_belf=yes
5781 $as_echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 lt_cv_cc_needs_belf=no
5787 rm -rf conftest.dSYM
5788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5789 conftest$ac_exeext conftest.$ac_ext
5791 ac_cpp='$CPP $CPPFLAGS'
5792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5798 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5799 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5800 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5801 CFLAGS="$SAVE_CFLAGS"
5805 # Find out which ABI we are using.
5806 echo 'int i;' > conftest.$ac_ext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>&5
5810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; then
5812 case `/usr/bin/file conftest.o` in
5814 case $lt_cv_prog_gnu_ld in
5815 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5816 *) LD="${LD-ld} -64" ;;
5827 need_locks="$enable_libtool_lock"
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5835 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5836 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5837 # On Suns, sometimes $CPP names a directory.
5838 if test -n "$CPP" && test -d "$CPP"; then
5841 if test -z "$CPP"; then
5842 if test "${ac_cv_prog_CPP+set}" = set; then
5843 $as_echo_n "(cached) " >&6
5845 # Double quotes because CPP needs to be expanded
5846 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5849 for ac_c_preproc_warn_flag in '' yes
5851 # Use a header file that comes with gcc, so configuring glibc
5852 # with a fresh cross-compiler works.
5853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5854 # <limits.h> exists even on freestanding compilers.
5855 # On the NeXT, cc -E runs the code through the compiler's parser,
5856 # not just through cpp. "Syntax error" is here to catch this case.
5857 cat >conftest.$ac_ext <<_ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5864 # include <limits.h>
5866 # include <assert.h>
5870 if { (ac_try="$ac_cpp conftest.$ac_ext"
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5876 $as_echo "$ac_try_echo") >&5
5877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5879 grep -v '^ *+' conftest.er1 >conftest.err
5881 cat conftest.err >&5
5882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } >/dev/null && {
5884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5889 $as_echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 # Broken: fails on valid input.
5896 rm -f conftest.err conftest.$ac_ext
5898 # OK, works on sane cases. Now check whether nonexistent headers
5899 # can be detected and how.
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #include <ac_nonexistent.h>
5908 if { (ac_try="$ac_cpp conftest.$ac_ext"
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5914 $as_echo "$ac_try_echo") >&5
5915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null && {
5922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5925 # Broken: success on invalid input.
5928 $as_echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 # Passes both tests.
5936 rm -f conftest.err conftest.$ac_ext
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then
5953 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5954 $as_echo "$CPP" >&6; }
5956 for ac_c_preproc_warn_flag in '' yes
5958 # Use a header file that comes with gcc, so configuring glibc
5959 # with a fresh cross-compiler works.
5960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5961 # <limits.h> exists even on freestanding compilers.
5962 # On the NeXT, cc -E runs the code through the compiler's parser,
5963 # not just through cpp. "Syntax error" is here to catch this case.
5964 cat >conftest.$ac_ext <<_ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5971 # include <limits.h>
5973 # include <assert.h>
5977 if { (ac_try="$ac_cpp conftest.$ac_ext"
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983 $as_echo "$ac_try_echo") >&5
5984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev/null && {
5991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5996 $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6021 $as_echo "$ac_try_echo") >&5
6022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev/null && {
6029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6030 test ! -s conftest.err
6032 # Broken: success on invalid input.
6035 $as_echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 # Passes both tests.
6043 rm -f conftest.err conftest.$ac_ext
6046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6047 rm -f conftest.err conftest.$ac_ext
6048 if $ac_preproc_ok; then
6051 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6052 See \`config.log' for more details." >&5
6053 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6054 See \`config.log' for more details." >&2;}
6055 { (exit 1); exit 1; }; }
6059 ac_cpp='$CPP $CPPFLAGS'
6060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6065 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6066 $as_echo_n "checking for ANSI C header files... " >&6; }
6067 if test "${ac_cv_header_stdc+set}" = set; then
6068 $as_echo_n "(cached) " >&6
6070 cat >conftest.$ac_ext <<_ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096 $as_echo "$ac_try_echo") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6099 grep -v '^ *+' conftest.er1 >conftest.err
6101 cat conftest.err >&5
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
6107 ac_cv_header_stdc=yes
6109 $as_echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_cv_header_stdc=no
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 if test $ac_cv_header_stdc = yes; then
6118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6119 cat >conftest.$ac_ext <<_ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 $EGREP "memchr" >/dev/null 2>&1; then
6132 ac_cv_header_stdc=no
6138 if test $ac_cv_header_stdc = yes; then
6139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6150 $EGREP "free" >/dev/null 2>&1; then
6153 ac_cv_header_stdc=no
6159 if test $ac_cv_header_stdc = yes; then
6160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6161 if test "$cross_compiling" = yes; then
6164 cat >conftest.$ac_ext <<_ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6172 #if ((' ' & 0x0FF) == 0x020)
6173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6176 # define ISLOWER(c) \
6177 (('a' <= (c) && (c) <= 'i') \
6178 || ('j' <= (c) && (c) <= 'r') \
6179 || ('s' <= (c) && (c) <= 'z'))
6180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6188 for (i = 0; i < 256; i++)
6189 if (XOR (islower (i), ISLOWER (i))
6190 || toupper (i) != TOUPPER (i))
6195 rm -f conftest$ac_exeext
6196 if { (ac_try="$ac_link"
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6202 $as_echo "$ac_try_echo") >&5
6203 (eval "$ac_link") 2>&5
6205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6207 { (case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6212 $as_echo "$ac_try_echo") >&5
6213 (eval "$ac_try") 2>&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6219 $as_echo "$as_me: program exited with status $ac_status" >&5
6220 $as_echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6224 ac_cv_header_stdc=no
6226 rm -rf conftest.dSYM
6227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6233 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6234 $as_echo "$ac_cv_header_stdc" >&6; }
6235 if test $ac_cv_header_stdc = yes; then
6237 cat >>confdefs.h <<\_ACEOF
6238 #define STDC_HEADERS 1
6243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6253 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6254 inttypes.h stdint.h unistd.h
6256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6258 $as_echo_n "checking for $ac_header... " >&6; }
6259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6260 $as_echo_n "(cached) " >&6
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 $ac_includes_default
6270 #include <$ac_header>
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280 (eval "$ac_compile") 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest.$ac_objext; then
6290 eval "$as_ac_Header=yes"
6292 $as_echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 eval "$as_ac_Header=no"
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 ac_res=`eval 'as_val=${'$as_ac_Header'}
6301 $as_echo "$as_val"'`
6302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6303 $as_echo "$ac_res" >&6; }
6304 if test `eval 'as_val=${'$as_ac_Header'}
6305 $as_echo "$as_val"'` = yes; then
6306 cat >>confdefs.h <<_ACEOF
6307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6316 for ac_header in dlfcn.h
6318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6321 $as_echo_n "checking for $ac_header... " >&6; }
6322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6323 $as_echo_n "(cached) " >&6
6325 ac_res=`eval 'as_val=${'$as_ac_Header'}
6326 $as_echo "$as_val"'`
6327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6328 $as_echo "$ac_res" >&6; }
6330 # Is the header compilable?
6331 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6332 $as_echo_n "checking $ac_header usability... " >&6; }
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 $ac_includes_default
6340 #include <$ac_header>
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6349 $as_echo "$ac_try_echo") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1 >conftest.err
6354 cat conftest.err >&5
6355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && {
6357 test -z "$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 } && test -s conftest.$ac_objext; then
6360 ac_header_compiler=yes
6362 $as_echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_header_compiler=no
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6370 $as_echo "$ac_header_compiler" >&6; }
6372 # Is the header present?
6373 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6374 $as_echo_n "checking $ac_header presence... " >&6; }
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 #include <$ac_header>
6383 if { (ac_try="$ac_cpp conftest.$ac_ext"
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6389 $as_echo "$ac_try_echo") >&5
6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev/null && {
6397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6400 ac_header_preproc=yes
6402 $as_echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_header_preproc=no
6408 rm -f conftest.err conftest.$ac_ext
6409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6410 $as_echo "$ac_header_preproc" >&6; }
6412 # So? What about this header?
6413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6416 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6419 ac_header_preproc=yes
6422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6423 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6425 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6427 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6429 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6431 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6433 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6435 ## ------------------------------------ ##
6436 ## Report this to http://www.sqlite.org ##
6437 ## ------------------------------------ ##
6439 ) | sed "s/^/$as_me: WARNING: /" >&2
6442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6443 $as_echo_n "checking for $ac_header... " >&6; }
6444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6445 $as_echo_n "(cached) " >&6
6447 eval "$as_ac_Header=\$ac_header_preproc"
6449 ac_res=`eval 'as_val=${'$as_ac_Header'}
6450 $as_echo "$as_val"'`
6451 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6452 $as_echo "$ac_res" >&6; }
6455 if test `eval 'as_val=${'$as_ac_Header'}
6456 $as_echo "$as_val"'` = yes; then
6457 cat >>confdefs.h <<_ACEOF
6458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6466 ac_cpp='$CXXCPP $CPPFLAGS'
6467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6470 if test -z "$CXX"; then
6471 if test -n "$CCC"; then
6474 if test -n "$ac_tool_prefix"; then
6475 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_prog_CXX+set}" = set; then
6482 $as_echo_n "(cached) " >&6
6484 if test -n "$CXX"; then
6485 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 if test -n "$CXX"; then
6506 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
6507 $as_echo "$CXX" >&6; }
6509 { $as_echo "$as_me:$LINENO: result: no" >&5
6510 $as_echo "no" >&6; }
6514 test -n "$CXX" && break
6517 if test -z "$CXX"; then
6519 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6521 # Extract the first word of "$ac_prog", so it can be a program name with args.
6522 set dummy $ac_prog; ac_word=$2
6523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6526 $as_echo_n "(cached) " >&6
6528 if test -n "$ac_ct_CXX"; then
6529 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_ac_ct_CXX="$ac_prog"
6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6549 if test -n "$ac_ct_CXX"; then
6550 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6551 $as_echo "$ac_ct_CXX" >&6; }
6553 { $as_echo "$as_me:$LINENO: result: no" >&5
6554 $as_echo "no" >&6; }
6558 test -n "$ac_ct_CXX" && break
6561 if test "x$ac_ct_CXX" = x; then
6564 case $cross_compiling:$ac_tool_warned in
6566 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6567 whose name does not start with the host triplet. If you think this
6568 configuration is useful to you, please write to autoconf@gnu.org." >&5
6569 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6570 whose name does not start with the host triplet. If you think this
6571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6572 ac_tool_warned=yes ;;
6580 # Provide some information about the compiler.
6581 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6584 { (ac_try="$ac_compiler --version >&5"
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6590 $as_echo "$ac_try_echo") >&5
6591 (eval "$ac_compiler --version >&5") 2>&5
6593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }
6595 { (ac_try="$ac_compiler -v >&5"
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602 (eval "$ac_compiler -v >&5") 2>&5
6604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }
6606 { (ac_try="$ac_compiler -V >&5"
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6612 $as_echo "$ac_try_echo") >&5
6613 (eval "$ac_compiler -V >&5") 2>&5
6615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }
6618 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6620 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6621 $as_echo_n "(cached) " >&6
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6641 rm -f conftest.$ac_objext
6642 if { (ac_try="$ac_compile"
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6648 $as_echo "$ac_try_echo") >&5
6649 (eval "$ac_compile") 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && {
6656 test -z "$ac_cxx_werror_flag" ||
6657 test ! -s conftest.err
6658 } && test -s conftest.$ac_objext; then
6661 $as_echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6671 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6672 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6673 if test $ac_compiler_gnu = yes; then
6678 ac_test_CXXFLAGS=${CXXFLAGS+set}
6679 ac_save_CXXFLAGS=$CXXFLAGS
6680 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6681 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6682 if test "${ac_cv_prog_cxx_g+set}" = set; then
6683 $as_echo_n "(cached) " >&6
6685 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6686 ac_cxx_werror_flag=yes
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711 $as_echo "$ac_try_echo") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6714 grep -v '^ *+' conftest.er1 >conftest.err
6716 cat conftest.err >&5
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_cxx_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.$ac_objext; then
6722 ac_cv_prog_cxx_g=yes
6724 $as_echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6750 $as_echo "$ac_try_echo") >&5
6751 (eval "$ac_compile") 2>conftest.er1
6753 grep -v '^ *+' conftest.er1 >conftest.err
6755 cat conftest.err >&5
6756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } && {
6758 test -z "$ac_cxx_werror_flag" ||
6759 test ! -s conftest.err
6760 } && test -s conftest.$ac_objext; then
6763 $as_echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6783 rm -f conftest.$ac_objext
6784 if { (ac_try="$ac_compile"
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790 $as_echo "$ac_try_echo") >&5
6791 (eval "$ac_compile") 2>conftest.er1
6793 grep -v '^ *+' conftest.er1 >conftest.err
6795 cat conftest.err >&5
6796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } && {
6798 test -z "$ac_cxx_werror_flag" ||
6799 test ! -s conftest.err
6800 } && test -s conftest.$ac_objext; then
6801 ac_cv_prog_cxx_g=yes
6803 $as_echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6818 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6819 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6820 if test "$ac_test_CXXFLAGS" = set; then
6821 CXXFLAGS=$ac_save_CXXFLAGS
6822 elif test $ac_cv_prog_cxx_g = yes; then
6823 if test "$GXX" = yes; then
6829 if test "$GXX" = yes; then
6836 ac_cpp='$CXXCPP $CPPFLAGS'
6837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841 depcc="$CXX" am_compiler_list=
6843 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6844 $as_echo_n "checking dependency style of $depcc... " >&6; }
6845 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6846 $as_echo_n "(cached) " >&6
6848 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6849 # We make a subdir and do the tests there. Otherwise we can end up
6850 # making bogus files that we don't know about and never remove. For
6851 # instance it was reported that on HP-UX the gcc test will end up
6852 # making a dummy file named `D' -- because `-MD' means `put the output
6855 # Copy depcomp to subdir because otherwise we won't find it if we're
6856 # using a relative directory.
6857 cp "$am_depcomp" conftest.dir
6859 # We will build objects and dependencies in a subdirectory because
6860 # it helps to detect inapplicable dependency modes. For instance
6861 # both Tru64's cc and ICC support -MD to output dependencies as a
6862 # side effect of compilation, but ICC will put the dependencies in
6863 # the current directory while Tru64 will put them in the object
6867 am_cv_CXX_dependencies_compiler_type=none
6868 if test "$am_compiler_list" = ""; then
6869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6871 for depmode in $am_compiler_list; do
6872 # Setup a source with many dependencies, because some compilers
6873 # like to wrap large dependency lists on column 80 (with \), and
6874 # we should not choose a depcomp mode which is confused by this.
6876 # We need to recreate these files for each test, as the compiler may
6877 # overwrite some of them when testing with obscure command lines.
6878 # This happens at least with the AIX C compiler.
6880 for i in 1 2 3 4 5 6; do
6881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6882 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6883 # Solaris 8's {/usr,}/bin/sh.
6884 touch sub/conftst$i.h
6886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6890 # after this tag, mechanisms are not by side-effect, so they'll
6891 # only be used when explicitly requested
6892 if test "x$enable_dependency_tracking" = xyes; then
6900 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6901 # mode. It turns out that the SunPro C++ compiler does not properly
6902 # handle `-M -o', and we need to detect this.
6903 if depmode=$depmode \
6904 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6905 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6906 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6907 >/dev/null 2>conftest.err &&
6908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6909 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6911 # icc doesn't choke on unknown options, it will just issue warnings
6912 # or remarks (even with -Werror). So we grep stderr for any message
6913 # that says an option was ignored or not supported.
6914 # When given -MP, icc 7.0 and 7.1 complain thusly:
6915 # icc: Command line warning: ignoring option '-M'; no argument required
6916 # The diagnosis changed in icc 8.0:
6917 # icc: Command line remark: option '-MP' not supported
6918 if (grep 'ignoring option' conftest.err ||
6919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6920 am_cv_CXX_dependencies_compiler_type=$depmode
6929 am_cv_CXX_dependencies_compiler_type=none
6933 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6934 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6935 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6940 test "x$enable_dependency_tracking" != xno \
6941 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6942 am__fastdepCXX_TRUE=
6943 am__fastdepCXX_FALSE='#'
6945 am__fastdepCXX_TRUE='#'
6946 am__fastdepCXX_FALSE=
6952 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6953 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6954 (test "X$CXX" != "Xg++"))) ; then
6956 ac_cpp='$CXXCPP $CPPFLAGS'
6957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6961 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6962 if test -z "$CXXCPP"; then
6963 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6964 $as_echo_n "(cached) " >&6
6966 # Double quotes because CXXCPP needs to be expanded
6967 for CXXCPP in "$CXX -E" "/lib/cpp"
6970 for ac_cxx_preproc_warn_flag in '' yes
6972 # Use a header file that comes with gcc, so configuring glibc
6973 # with a fresh cross-compiler works.
6974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6975 # <limits.h> exists even on freestanding compilers.
6976 # On the NeXT, cc -E runs the code through the compiler's parser,
6977 # not just through cpp. "Syntax error" is here to catch this case.
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6985 # include <limits.h>
6987 # include <assert.h>
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } >/dev/null && {
7005 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7006 test ! -s conftest.err
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 # Broken: fails on valid input.
7017 rm -f conftest.err conftest.$ac_ext
7019 # OK, works on sane cases. Now check whether nonexistent headers
7020 # can be detected and how.
7021 cat >conftest.$ac_ext <<_ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <ac_nonexistent.h>
7029 if { (ac_try="$ac_cpp conftest.$ac_ext"
7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032 *) ac_try_echo=$ac_try;;
7034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7035 $as_echo "$ac_try_echo") >&5
7036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7038 grep -v '^ *+' conftest.er1 >conftest.err
7040 cat conftest.err >&5
7041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } >/dev/null && {
7043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7044 test ! -s conftest.err
7046 # Broken: success on invalid input.
7049 $as_echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 # Passes both tests.
7057 rm -f conftest.err conftest.$ac_ext
7060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7061 rm -f conftest.err conftest.$ac_ext
7062 if $ac_preproc_ok; then
7067 ac_cv_prog_CXXCPP=$CXXCPP
7070 CXXCPP=$ac_cv_prog_CXXCPP
7072 ac_cv_prog_CXXCPP=$CXXCPP
7074 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7075 $as_echo "$CXXCPP" >&6; }
7077 for ac_cxx_preproc_warn_flag in '' yes
7079 # Use a header file that comes with gcc, so configuring glibc
7080 # with a fresh cross-compiler works.
7081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082 # <limits.h> exists even on freestanding compilers.
7083 # On the NeXT, cc -E runs the code through the compiler's parser,
7084 # not just through cpp. "Syntax error" is here to catch this case.
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7092 # include <limits.h>
7094 # include <assert.h>
7098 if { (ac_try="$ac_cpp conftest.$ac_ext"
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7104 $as_echo "$ac_try_echo") >&5
7105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7107 grep -v '^ *+' conftest.er1 >conftest.err
7109 cat conftest.err >&5
7110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } >/dev/null && {
7112 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7113 test ! -s conftest.err
7117 $as_echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 # Broken: fails on valid input.
7124 rm -f conftest.err conftest.$ac_ext
7126 # OK, works on sane cases. Now check whether nonexistent headers
7127 # can be detected and how.
7128 cat >conftest.$ac_ext <<_ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 #include <ac_nonexistent.h>
7136 if { (ac_try="$ac_cpp conftest.$ac_ext"
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7142 $as_echo "$ac_try_echo") >&5
7143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7145 grep -v '^ *+' conftest.er1 >conftest.err
7147 cat conftest.err >&5
7148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } >/dev/null && {
7150 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7151 test ! -s conftest.err
7153 # Broken: success on invalid input.
7156 $as_echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 # Passes both tests.
7164 rm -f conftest.err conftest.$ac_ext
7167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7168 rm -f conftest.err conftest.$ac_ext
7169 if $ac_preproc_ok; then
7172 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7173 See \`config.log' for more details." >&5
7174 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7175 See \`config.log' for more details." >&2;}
7176 { (exit 1); exit 1; }; }
7180 ac_cpp='$CXXCPP $CPPFLAGS'
7181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7192 if test -n "$ac_tool_prefix"; then
7193 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_prog_F77+set}" = set; then
7200 $as_echo_n "(cached) " >&6
7202 if test -n "$F77"; then
7203 ac_cv_prog_F77="$F77" # Let the user override the test.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 if test -n "$F77"; then
7224 { $as_echo "$as_me:$LINENO: result: $F77" >&5
7225 $as_echo "$F77" >&6; }
7227 { $as_echo "$as_me:$LINENO: result: no" >&5
7228 $as_echo "no" >&6; }
7232 test -n "$F77" && break
7235 if test -z "$F77"; then
7237 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7239 # Extract the first word of "$ac_prog", so it can be a program name with args.
7240 set dummy $ac_prog; ac_word=$2
7241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7244 $as_echo_n "(cached) " >&6
7246 if test -n "$ac_ct_F77"; then
7247 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_prog_ac_ct_F77="$ac_prog"
7257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7267 if test -n "$ac_ct_F77"; then
7268 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7269 $as_echo "$ac_ct_F77" >&6; }
7271 { $as_echo "$as_me:$LINENO: result: no" >&5
7272 $as_echo "no" >&6; }
7276 test -n "$ac_ct_F77" && break
7279 if test "x$ac_ct_F77" = x; then
7282 case $cross_compiling:$ac_tool_warned in
7284 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7285 whose name does not start with the host triplet. If you think this
7286 configuration is useful to you, please write to autoconf@gnu.org." >&5
7287 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7288 whose name does not start with the host triplet. If you think this
7289 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7290 ac_tool_warned=yes ;;
7297 # Provide some information about the compiler.
7298 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7301 { (ac_try="$ac_compiler --version >&5"
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7307 $as_echo "$ac_try_echo") >&5
7308 (eval "$ac_compiler --version >&5") 2>&5
7310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }
7312 { (ac_try="$ac_compiler -v >&5"
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7318 $as_echo "$ac_try_echo") >&5
7319 (eval "$ac_compiler -v >&5") 2>&5
7321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }
7323 { (ac_try="$ac_compiler -V >&5"
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7329 $as_echo "$ac_try_echo") >&5
7330 (eval "$ac_compiler -V >&5") 2>&5
7332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }
7336 # If we don't use `.F' as extension, the preprocessor is not run on the
7337 # input file. (Note that this only needs to work for GNU compilers.)
7340 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7341 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7342 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7343 $as_echo_n "(cached) " >&6
7345 cat >conftest.$ac_ext <<_ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_f77_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7373 $as_echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7383 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7384 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7386 ac_test_FFLAGS=${FFLAGS+set}
7387 ac_save_FFLAGS=$FFLAGS
7389 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7390 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7391 if test "${ac_cv_prog_f77_g+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7395 cat >conftest.$ac_ext <<_ACEOF
7400 rm -f conftest.$ac_objext
7401 if { (ac_try="$ac_compile"
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7407 $as_echo "$ac_try_echo") >&5
7408 (eval "$ac_compile") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } && {
7415 test -z "$ac_f77_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest.$ac_objext; then
7418 ac_cv_prog_f77_g=yes
7420 $as_echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7430 $as_echo "$ac_cv_prog_f77_g" >&6; }
7431 if test "$ac_test_FFLAGS" = set; then
7432 FFLAGS=$ac_save_FFLAGS
7433 elif test $ac_cv_prog_f77_g = yes; then
7434 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7440 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7447 if test $ac_compiler_gnu = yes; then
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7462 # find the maximum length of command line arguments
7463 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7464 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7465 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7466 $as_echo_n "(cached) " >&6
7473 # On DJGPP, this test can blow up pretty badly due to problems in libc
7474 # (any single argument exceeding 2000 bytes causes a buffer overrun
7475 # during glob expansion). Even if it were fixed, the result of this
7476 # check would be larger than it should be.
7477 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7481 # Under GNU Hurd, this test is not required because there is
7482 # no limit to the length of command line arguments.
7483 # Libtool will interpret -1 as no limit whatsoever
7484 lt_cv_sys_max_cmd_len=-1;
7488 # On Win9x/ME, this test blows up -- it succeeds, but takes
7489 # about 5 minutes as the teststring grows exponentially.
7490 # Worse, since 9x/ME are not pre-emptively multitasking,
7491 # you end up with a "frozen" computer, even though with patience
7492 # the test eventually succeeds (with a max line length of 256k).
7493 # Instead, let's just punt: use the minimum linelength reported by
7494 # all of the supported platforms: 8192 (on NT/2K/XP).
7495 lt_cv_sys_max_cmd_len=8192;
7499 # On AmigaOS with pdksh, this test takes hours, literally.
7500 # So we just punt and use a minimum line length of 8192.
7501 lt_cv_sys_max_cmd_len=8192;
7504 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7505 # This has been around since 386BSD, at least. Likely further.
7506 if test -x /sbin/sysctl; then
7507 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7508 elif test -x /usr/sbin/sysctl; then
7509 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7511 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7513 # And add a safety zone
7514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7519 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7520 lt_cv_sys_max_cmd_len=196608
7524 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7525 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7526 # nice to cause kernel panics so lets avoid the loop below.
7527 # First set a reasonable default.
7528 lt_cv_sys_max_cmd_len=16384
7530 if test -x /sbin/sysconfig; then
7531 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7532 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7537 lt_cv_sys_max_cmd_len=102400
7539 sysv5* | sco5v6* | sysv4.2uw2*)
7540 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7541 if test -n "$kargmax"; then
7542 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7544 lt_cv_sys_max_cmd_len=32768
7548 # If test is not a shell built-in, we'll probably end up computing a
7549 # maximum length that is only half of the actual maximum length, but
7551 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7552 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7553 = "XX$teststring") >/dev/null 2>&1 &&
7554 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7555 lt_cv_sys_max_cmd_len=$new_result &&
7556 test $i != 17 # 1/2 MB should be enough
7559 teststring=$teststring$teststring
7562 # Add a significant safety factor because C++ compilers can tack on massive
7563 # amounts of additional arguments before passing them to the linker.
7564 # It appears as though 1/2 is a usable value.
7565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7571 if test -n $lt_cv_sys_max_cmd_len ; then
7572 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7573 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7575 { $as_echo "$as_me:$LINENO: result: none" >&5
7576 $as_echo "none" >&6; }
7582 # Check for command to grab the raw symbol name followed by C symbol from nm.
7583 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7584 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7585 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7586 $as_echo_n "(cached) " >&6
7589 # These are sane defaults that work on at least a few old systems.
7590 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7592 # Character class describing NM global symbol codes.
7593 symcode='[BCDEGRST]'
7595 # Regexp to match symbols that can be accessed directly from C.
7596 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7598 # Transform an extracted symbol line into a proper C declaration
7599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7601 # Transform an extracted symbol line into symbol name and symbol address
7602 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'"
7604 # Define system-specific variables.
7609 cygwin* | mingw* | pw32*)
7610 symcode='[ABCDGISTW]'
7612 hpux*) # Its linker distinguishes data from code symbols
7613 if test "$host_cpu" = ia64; then
7614 symcode='[ABCDEGRST]'
7616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7617 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'"
7620 if test "$host_cpu" = ia64; then
7621 symcode='[ABCDGIRSTW]'
7622 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7623 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'"
7627 symcode='[BCDEGRST]'
7630 symcode='[BCDEGQRST]'
7641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7649 # Handle CRLF in mingw tool chain
7653 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7657 # If we're using GNU nm, then use its standard symbol codes.
7658 case `$NM -V 2>&1` in
7659 *GNU* | *'with BFD'*)
7660 symcode='[ABCDGIRSTW]' ;;
7663 # Try without a prefix undercore, then with it.
7664 for ac_symprfx in "" "_"; do
7666 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7667 symxfrm="\\1 $ac_symprfx\\2 \\2"
7669 # Write the raw and C identifiers.
7670 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7672 # Check to see that the pipe works correctly.
7676 cat > conftest.$ac_ext <<EOF
7681 void nm_test_func(){}
7685 int main(){nm_test_var='a';nm_test_func();return(0);}
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689 (eval $ac_compile) 2>&5
7691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; then
7693 # Now try to grab the symbols.
7695 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7696 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && test -s "$nlist"; then
7700 # Try sorting and uniquifying the output.
7701 if sort "$nlist" | uniq > "$nlist"T; then
7702 mv -f "$nlist"T "$nlist"
7707 # Make sure that we snagged all the symbols we need.
7708 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7709 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7710 cat <<EOF > conftest.$ac_ext
7716 # Now generate the symbol file.
7717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7719 cat <<EOF >> conftest.$ac_ext
7720 #if defined (__STDC__) && __STDC__
7721 # define lt_ptr_t void *
7723 # define lt_ptr_t char *
7727 /* The mapping between symbol names and symbols. */
7732 lt_preloaded_symbols[] =
7735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7736 cat <<\EOF >> conftest.$ac_ext
7744 # Now try linking the two files.
7745 mv conftest.$ac_objext conftstm.$ac_objext
7746 lt_save_LIBS="$LIBS"
7747 lt_save_CFLAGS="$CFLAGS"
7748 LIBS="conftstm.$ac_objext"
7749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>&5
7753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7757 LIBS="$lt_save_LIBS"
7758 CFLAGS="$lt_save_CFLAGS"
7760 echo "cannot find nm_test_func in $nlist" >&5
7763 echo "cannot find nm_test_var in $nlist" >&5
7766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7769 echo "$progname: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7772 rm -f conftest* conftst*
7774 # Do not use the global_symbol_pipe unless it works.
7775 if test "$pipe_works" = yes; then
7778 lt_cv_sys_global_symbol_pipe=
7784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7785 lt_cv_sys_global_symbol_to_cdecl=
7787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7788 { $as_echo "$as_me:$LINENO: result: failed" >&5
7789 $as_echo "failed" >&6; }
7791 { $as_echo "$as_me:$LINENO: result: ok" >&5
7792 $as_echo "ok" >&6; }
7795 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7796 $as_echo_n "checking for objdir... " >&6; }
7797 if test "${lt_cv_objdir+set}" = set; then
7798 $as_echo_n "(cached) " >&6
7800 rm -f .libs 2>/dev/null
7801 mkdir .libs 2>/dev/null
7802 if test -d .libs; then
7805 # MS-DOS does not allow filenames that begin with a dot.
7808 rmdir .libs 2>/dev/null
7810 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7811 $as_echo "$lt_cv_objdir" >&6; }
7812 objdir=$lt_cv_objdir
7820 # AIX sometimes has problems with the GCC collect2 program. For some
7821 # reason, if we set the COLLECT_NAMES environment variable, the problems
7822 # vanish in a puff of smoke.
7823 if test "X${COLLECT_NAMES+set}" != Xset; then
7825 export COLLECT_NAMES
7830 # Sed substitution that helps us do robust quoting. It backslashifies
7831 # metacharacters that are still active within double-quoted strings.
7832 Xsed='sed -e 1s/^X//'
7833 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7835 # Same as above, but do not quote variable references.
7836 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7838 # Sed substitution to delay expansion of an escaped shell variable in a
7839 # double_quote_subst'ed string.
7840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7842 # Sed substitution to avoid accidental globbing in evaled expressions
7843 no_glob_subst='s/\*/\\\*/g'
7849 default_ofile=libtool
7850 can_build_shared=yes
7852 # All known linkers require a `.a' archive for static linking (except MSVC,
7853 # which needs '.lib').
7855 ltmain="$ac_aux_dir/ltmain.sh"
7856 ofile="$default_ofile"
7857 with_gnu_ld="$lt_cv_prog_gnu_ld"
7859 if test -n "$ac_tool_prefix"; then
7860 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7861 set dummy ${ac_tool_prefix}ar; ac_word=$2
7862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if test "${ac_cv_prog_AR+set}" = set; then
7865 $as_echo_n "(cached) " >&6
7867 if test -n "$AR"; then
7868 ac_cv_prog_AR="$AR" # Let the user override the test.
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_prog_AR="${ac_tool_prefix}ar"
7878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 if test -n "$AR"; then
7889 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7890 $as_echo "$AR" >&6; }
7892 { $as_echo "$as_me:$LINENO: result: no" >&5
7893 $as_echo "no" >&6; }
7898 if test -z "$ac_cv_prog_AR"; then
7900 # Extract the first word of "ar", so it can be a program name with args.
7901 set dummy ar; ac_word=$2
7902 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7905 $as_echo_n "(cached) " >&6
7907 if test -n "$ac_ct_AR"; then
7908 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_ac_ct_AR="ar"
7918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7928 if test -n "$ac_ct_AR"; then
7929 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7930 $as_echo "$ac_ct_AR" >&6; }
7932 { $as_echo "$as_me:$LINENO: result: no" >&5
7933 $as_echo "no" >&6; }
7936 if test "x$ac_ct_AR" = x; then
7939 case $cross_compiling:$ac_tool_warned in
7941 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7942 whose name does not start with the host triplet. If you think this
7943 configuration is useful to you, please write to autoconf@gnu.org." >&5
7944 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7945 whose name does not start with the host triplet. If you think this
7946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7947 ac_tool_warned=yes ;;
7955 if test -n "$ac_tool_prefix"; then
7956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if test "${ac_cv_prog_RANLIB+set}" = set; then
7961 $as_echo_n "(cached) " >&6
7963 if test -n "$RANLIB"; then
7964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 RANLIB=$ac_cv_prog_RANLIB
7984 if test -n "$RANLIB"; then
7985 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7986 $as_echo "$RANLIB" >&6; }
7988 { $as_echo "$as_me:$LINENO: result: no" >&5
7989 $as_echo "no" >&6; }
7994 if test -z "$ac_cv_prog_RANLIB"; then
7995 ac_ct_RANLIB=$RANLIB
7996 # Extract the first word of "ranlib", so it can be a program name with args.
7997 set dummy ranlib; ac_word=$2
7998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8001 $as_echo_n "(cached) " >&6
8003 if test -n "$ac_ct_RANLIB"; then
8004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_prog_ac_ct_RANLIB="ranlib"
8014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8024 if test -n "$ac_ct_RANLIB"; then
8025 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8026 $as_echo "$ac_ct_RANLIB" >&6; }
8028 { $as_echo "$as_me:$LINENO: result: no" >&5
8029 $as_echo "no" >&6; }
8032 if test "x$ac_ct_RANLIB" = x; then
8035 case $cross_compiling:$ac_tool_warned in
8037 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8038 whose name does not start with the host triplet. If you think this
8039 configuration is useful to you, please write to autoconf@gnu.org." >&5
8040 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8041 whose name does not start with the host triplet. If you think this
8042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8043 ac_tool_warned=yes ;;
8045 RANLIB=$ac_ct_RANLIB
8048 RANLIB="$ac_cv_prog_RANLIB"
8051 if test -n "$ac_tool_prefix"; then
8052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8053 set dummy ${ac_tool_prefix}strip; ac_word=$2
8054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if test "${ac_cv_prog_STRIP+set}" = set; then
8057 $as_echo_n "(cached) " >&6
8059 if test -n "$STRIP"; then
8060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 STRIP=$ac_cv_prog_STRIP
8080 if test -n "$STRIP"; then
8081 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8082 $as_echo "$STRIP" >&6; }
8084 { $as_echo "$as_me:$LINENO: result: no" >&5
8085 $as_echo "no" >&6; }
8090 if test -z "$ac_cv_prog_STRIP"; then
8092 # Extract the first word of "strip", so it can be a program name with args.
8093 set dummy strip; ac_word=$2
8094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8097 $as_echo_n "(cached) " >&6
8099 if test -n "$ac_ct_STRIP"; then
8100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8109 ac_cv_prog_ac_ct_STRIP="strip"
8110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8120 if test -n "$ac_ct_STRIP"; then
8121 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8122 $as_echo "$ac_ct_STRIP" >&6; }
8124 { $as_echo "$as_me:$LINENO: result: no" >&5
8125 $as_echo "no" >&6; }
8128 if test "x$ac_ct_STRIP" = x; then
8131 case $cross_compiling:$ac_tool_warned in
8133 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8134 whose name does not start with the host triplet. If you think this
8135 configuration is useful to you, please write to autoconf@gnu.org." >&5
8136 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8137 whose name does not start with the host triplet. If you think this
8138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8139 ac_tool_warned=yes ;;
8144 STRIP="$ac_cv_prog_STRIP"
8149 old_CFLAGS="$CFLAGS"
8151 # Set sane defaults for various variables
8152 test -z "$AR" && AR=ar
8153 test -z "$AR_FLAGS" && AR_FLAGS=cru
8154 test -z "$AS" && AS=as
8155 test -z "$CC" && CC=cc
8156 test -z "$LTCC" && LTCC=$CC
8157 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8158 test -z "$DLLTOOL" && DLLTOOL=dlltool
8159 test -z "$LD" && LD=ld
8160 test -z "$LN_S" && LN_S="ln -s"
8161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8162 test -z "$NM" && NM=nm
8163 test -z "$SED" && SED=sed
8164 test -z "$OBJDUMP" && OBJDUMP=objdump
8165 test -z "$RANLIB" && RANLIB=:
8166 test -z "$STRIP" && STRIP=:
8167 test -z "$ac_objext" && ac_objext=o
8169 # Determine commands to create old-style static archives.
8170 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8171 old_postinstall_cmds='chmod 644 $oldlib'
8172 old_postuninstall_cmds=
8174 if test -n "$RANLIB"; then
8177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8186 for cc_temp in $compiler""; do
8188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8197 # Only perform the check for file, if the check method requires it
8198 case $deplibs_check_method in
8200 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8201 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8202 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8203 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8204 $as_echo_n "(cached) " >&6
8208 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8211 lt_save_MAGIC_CMD="$MAGIC_CMD"
8212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8213 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8214 for ac_dir in $ac_dummy; do
8216 test -z "$ac_dir" && ac_dir=.
8217 if test -f $ac_dir/${ac_tool_prefix}file; then
8218 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8219 if test -n "$file_magic_test_file"; then
8220 case $deplibs_check_method in
8222 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8225 $EGREP "$file_magic_regex" > /dev/null; then
8230 *** Warning: the command libtool uses to detect shared libraries,
8231 *** $file_magic_cmd, produces output that libtool cannot recognize.
8232 *** The result is that libtool may fail to recognize shared libraries
8233 *** as such. This will affect the creation of libtool libraries that
8234 *** depend on shared libraries, but programs linked with such libtool
8235 *** libraries will work regardless of this problem. Nevertheless, you
8236 *** may want to report the problem to your system manager and/or to
8237 *** bug-libtool@gnu.org
8247 MAGIC_CMD="$lt_save_MAGIC_CMD"
8252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8253 if test -n "$MAGIC_CMD"; then
8254 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8255 $as_echo "$MAGIC_CMD" >&6; }
8257 { $as_echo "$as_me:$LINENO: result: no" >&5
8258 $as_echo "no" >&6; }
8261 if test -z "$lt_cv_path_MAGIC_CMD"; then
8262 if test -n "$ac_tool_prefix"; then
8263 { $as_echo "$as_me:$LINENO: checking for file" >&5
8264 $as_echo_n "checking for file... " >&6; }
8265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8266 $as_echo_n "(cached) " >&6
8270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273 lt_save_MAGIC_CMD="$MAGIC_CMD"
8274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8275 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8276 for ac_dir in $ac_dummy; do
8278 test -z "$ac_dir" && ac_dir=.
8279 if test -f $ac_dir/file; then
8280 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8281 if test -n "$file_magic_test_file"; then
8282 case $deplibs_check_method in
8284 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8287 $EGREP "$file_magic_regex" > /dev/null; then
8292 *** Warning: the command libtool uses to detect shared libraries,
8293 *** $file_magic_cmd, produces output that libtool cannot recognize.
8294 *** The result is that libtool may fail to recognize shared libraries
8295 *** as such. This will affect the creation of libtool libraries that
8296 *** depend on shared libraries, but programs linked with such libtool
8297 *** libraries will work regardless of this problem. Nevertheless, you
8298 *** may want to report the problem to your system manager and/or to
8299 *** bug-libtool@gnu.org
8309 MAGIC_CMD="$lt_save_MAGIC_CMD"
8314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8315 if test -n "$MAGIC_CMD"; then
8316 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8317 $as_echo "$MAGIC_CMD" >&6; }
8319 { $as_echo "$as_me:$LINENO: result: no" >&5
8320 $as_echo "no" >&6; }
8335 # Check whether --enable-libtool-lock was given.
8336 if test "${enable_libtool_lock+set}" = set; then
8337 enableval=$enable_libtool_lock;
8340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8343 # Check whether --with-pic was given.
8344 if test "${with_pic+set}" = set; then
8345 withval=$with_pic; pic_mode="$withval"
8350 test -z "$pic_mode" && pic_mode=default
8352 # Use C for the default configuration in the libtool script
8356 ac_cpp='$CPP $CPPFLAGS'
8357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362 # Source file extension for C test sources.
8365 # Object file extension for compiled C test sources.
8369 # Code to be used in simple compile tests
8370 lt_simple_compile_test_code="int some_variable = 0;\n"
8372 # Code to be used in simple link tests
8373 lt_simple_link_test_code='int main(){return(0);}\n'
8376 # If no C compiler was specified, use CC.
8379 # If no C compiler flags were specified, use CFLAGS.
8380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8382 # Allow CC to be a program name with arguments.
8386 # save warnings/boilerplate of simple test code
8387 ac_outfile=conftest.$ac_objext
8388 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390 _lt_compiler_boilerplate=`cat conftest.err`
8393 ac_outfile=conftest.$ac_objext
8394 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396 _lt_linker_boilerplate=`cat conftest.err`
8401 lt_prog_compiler_no_builtin_flag=
8403 if test "$GCC" = yes; then
8404 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8407 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8408 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8410 $as_echo_n "(cached) " >&6
8412 lt_cv_prog_compiler_rtti_exceptions=no
8413 ac_outfile=conftest.$ac_objext
8414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8415 lt_compiler_flag="-fno-rtti -fno-exceptions"
8416 # Insert the option either (1) after the last *FLAGS variable, or
8417 # (2) before a word containing "conftest.", or (3) at the end.
8418 # Note that $ac_compile itself does not contain backslashes and begins
8419 # with a dollar sign (not a hyphen), so the echo should work correctly.
8420 # The option is referenced via a variable to avoid confusing sed.
8421 lt_compile=`echo "$ac_compile" | $SED \
8422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8424 -e 's:$: $lt_compiler_flag:'`
8425 (eval echo "\"\$as_me:8425: $lt_compile\"" >&5)
8426 (eval "$lt_compile" 2>conftest.err)
8428 cat conftest.err >&5
8429 echo "$as_me:8429: \$? = $ac_status" >&5
8430 if (exit $ac_status) && test -s "$ac_outfile"; then
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings other than the usual output.
8433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8436 lt_cv_prog_compiler_rtti_exceptions=yes
8442 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8443 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8446 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8453 lt_prog_compiler_wl=
8454 lt_prog_compiler_pic=
8455 lt_prog_compiler_static=
8457 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8458 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8460 if test "$GCC" = yes; then
8461 lt_prog_compiler_wl='-Wl,'
8462 lt_prog_compiler_static='-static'
8466 # All AIX code is PIC.
8467 if test "$host_cpu" = ia64; then
8468 # AIX 5 now supports IA64 processor
8469 lt_prog_compiler_static='-Bstatic'
8474 # FIXME: we need at least 68020 code to build shared libraries, but
8475 # adding the `-m68020' flag to GCC prevents building anything better,
8477 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8480 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8481 # PIC is the default for these OSes.
8484 mingw* | pw32* | os2*)
8485 # This hack is so that the source file can tell whether it is being
8486 # built for inclusion in a dll (and should export symbols for example).
8487 lt_prog_compiler_pic='-DDLL_EXPORT'
8490 darwin* | rhapsody*)
8491 # PIC is the default on this platform
8492 # Common symbols not allowed in MH_DYLIB files
8493 lt_prog_compiler_pic='-fno-common'
8497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8498 # Instead, we relocate shared libraries at runtime.
8502 # Just because we use GCC doesn't mean we suddenly get shared libraries
8503 # on systems that don't support them.
8504 lt_prog_compiler_can_build_shared=no
8509 if test -d /usr/nec; then
8510 lt_prog_compiler_pic=-Kconform_pic
8515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8522 lt_prog_compiler_pic='-fPIC'
8528 lt_prog_compiler_pic='-fPIC'
8532 # PORTME Check for flag to pass linker flags through the system compiler.
8535 lt_prog_compiler_wl='-Wl,'
8536 if test "$host_cpu" = ia64; then
8537 # AIX 5 now supports IA64 processor
8538 lt_prog_compiler_static='-Bstatic'
8540 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8544 # PIC is the default on this platform
8545 # Common symbols not allowed in MH_DYLIB files
8546 case $cc_basename in
8548 lt_prog_compiler_pic='-qnocommon'
8549 lt_prog_compiler_wl='-Wl,'
8554 mingw* | pw32* | os2*)
8555 # This hack is so that the source file can tell whether it is being
8556 # built for inclusion in a dll (and should export symbols for example).
8557 lt_prog_compiler_pic='-DDLL_EXPORT'
8560 hpux9* | hpux10* | hpux11*)
8561 lt_prog_compiler_wl='-Wl,'
8562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8569 lt_prog_compiler_pic='+Z'
8572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8573 lt_prog_compiler_static='${wl}-a ${wl}archive'
8576 irix5* | irix6* | nonstopux*)
8577 lt_prog_compiler_wl='-Wl,'
8578 # PIC (with -KPIC) is the default.
8579 lt_prog_compiler_static='-non_shared'
8583 lt_prog_compiler_pic='-KPIC'
8584 lt_prog_compiler_static='-Bstatic'
8588 case $cc_basename in
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-static'
8594 pgcc* | pgf77* | pgf90* | pgf95*)
8595 # Portland Group compilers (*not* the Pentium gcc compiler,
8596 # which looks to be a dead project)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-fpic'
8599 lt_prog_compiler_static='-Bstatic'
8602 lt_prog_compiler_wl='-Wl,'
8603 # All Alpha code is PIC.
8604 lt_prog_compiler_static='-non_shared'
8609 osf3* | osf4* | osf5*)
8610 lt_prog_compiler_wl='-Wl,'
8611 # All OSF/1 code is PIC.
8612 lt_prog_compiler_static='-non_shared'
8616 lt_prog_compiler_pic='-KPIC'
8617 lt_prog_compiler_static='-Bstatic'
8618 case $cc_basename in
8620 lt_prog_compiler_wl='-Qoption ld ';;
8622 lt_prog_compiler_wl='-Wl,';;
8627 lt_prog_compiler_wl='-Qoption ld '
8628 lt_prog_compiler_pic='-PIC'
8629 lt_prog_compiler_static='-Bstatic'
8632 sysv4 | sysv4.2uw2* | sysv4.3*)
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_pic='-KPIC'
8635 lt_prog_compiler_static='-Bstatic'
8639 if test -d /usr/nec ;then
8640 lt_prog_compiler_pic='-Kconform_pic'
8641 lt_prog_compiler_static='-Bstatic'
8645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-Bstatic'
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_can_build_shared=no
8657 lt_prog_compiler_pic='-pic'
8658 lt_prog_compiler_static='-Bstatic'
8662 lt_prog_compiler_can_build_shared=no
8667 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8668 $as_echo "$lt_prog_compiler_pic" >&6; }
8671 # Check to make sure the PIC flag actually works.
8673 if test -n "$lt_prog_compiler_pic"; then
8675 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8676 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8677 if test "${lt_prog_compiler_pic_works+set}" = set; then
8678 $as_echo_n "(cached) " >&6
8680 lt_prog_compiler_pic_works=no
8681 ac_outfile=conftest.$ac_objext
8682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8683 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8684 # Insert the option either (1) after the last *FLAGS variable, or
8685 # (2) before a word containing "conftest.", or (3) at the end.
8686 # Note that $ac_compile itself does not contain backslashes and begins
8687 # with a dollar sign (not a hyphen), so the echo should work correctly.
8688 # The option is referenced via a variable to avoid confusing sed.
8689 lt_compile=`echo "$ac_compile" | $SED \
8690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8692 -e 's:$: $lt_compiler_flag:'`
8693 (eval echo "\"\$as_me:8693: $lt_compile\"" >&5)
8694 (eval "$lt_compile" 2>conftest.err)
8696 cat conftest.err >&5
8697 echo "$as_me:8697: \$? = $ac_status" >&5
8698 if (exit $ac_status) && test -s "$ac_outfile"; then
8699 # The compiler can only warn and ignore the option if not recognized
8700 # So say no if there are warnings other than the usual output.
8701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8704 lt_prog_compiler_pic_works=yes
8710 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8711 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8713 if test x"$lt_prog_compiler_pic_works" = xyes; then
8714 case $lt_prog_compiler_pic in
8716 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8719 lt_prog_compiler_pic=
8720 lt_prog_compiler_can_build_shared=no
8725 # For platforms which do not support PIC, -DPIC is meaningless:
8727 lt_prog_compiler_pic=
8730 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8735 # Check to make sure the static flag actually works.
8737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8738 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8739 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8740 if test "${lt_prog_compiler_static_works+set}" = set; then
8741 $as_echo_n "(cached) " >&6
8743 lt_prog_compiler_static_works=no
8744 save_LDFLAGS="$LDFLAGS"
8745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8746 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8748 # The linker can only warn and ignore the option if not recognized
8749 # So say no if there are warnings
8750 if test -s conftest.err; then
8751 # Append any errors to the config.log.
8752 cat conftest.err 1>&5
8753 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8755 if diff conftest.exp conftest.er2 >/dev/null; then
8756 lt_prog_compiler_static_works=yes
8759 lt_prog_compiler_static_works=yes
8763 LDFLAGS="$save_LDFLAGS"
8766 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8767 $as_echo "$lt_prog_compiler_static_works" >&6; }
8769 if test x"$lt_prog_compiler_static_works" = xyes; then
8772 lt_prog_compiler_static=
8776 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8777 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8779 $as_echo_n "(cached) " >&6
8781 lt_cv_prog_compiler_c_o=no
8782 $rm -r conftest 2>/dev/null
8786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8788 lt_compiler_flag="-o out/conftest2.$ac_objext"
8789 # Insert the option either (1) after the last *FLAGS variable, or
8790 # (2) before a word containing "conftest.", or (3) at the end.
8791 # Note that $ac_compile itself does not contain backslashes and begins
8792 # with a dollar sign (not a hyphen), so the echo should work correctly.
8793 lt_compile=`echo "$ac_compile" | $SED \
8794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8796 -e 's:$: $lt_compiler_flag:'`
8797 (eval echo "\"\$as_me:8797: $lt_compile\"" >&5)
8798 (eval "$lt_compile" 2>out/conftest.err)
8800 cat out/conftest.err >&5
8801 echo "$as_me:8801: \$? = $ac_status" >&5
8802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8804 # The compiler can only warn and ignore the option if not recognized
8805 # So say no if there are warnings
8806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8809 lt_cv_prog_compiler_c_o=yes
8814 # SGI C++ compiler will create directory out/ii_files/ for
8815 # template instantiation
8816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8817 $rm out/* && rmdir out
8823 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8824 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8827 hard_links="nottested"
8828 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8829 # do not overwrite the value of need_locks provided by the user
8830 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8831 $as_echo_n "checking if we can lock with hard links... " >&6; }
8834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8836 ln conftest.a conftest.b 2>&5 || hard_links=no
8837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8838 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8839 $as_echo "$hard_links" >&6; }
8840 if test "$hard_links" = no; then
8841 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8842 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8849 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8850 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8853 allow_undefined_flag=
8854 enable_shared_with_static_runtimes=no
8856 archive_expsym_cmds=
8857 old_archive_From_new_cmds=
8858 old_archive_from_expsyms_cmds=
8859 export_dynamic_flag_spec=
8860 whole_archive_flag_spec=
8861 thread_safe_flag_spec=
8862 hardcode_libdir_flag_spec=
8863 hardcode_libdir_flag_spec_ld=
8864 hardcode_libdir_separator=
8867 hardcode_shlibpath_var=unsupported
8868 link_all_deplibs=unknown
8869 hardcode_automatic=no
8872 always_export_symbols=no
8873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8874 # include_expsyms should be a list of space-separated symbols to be *always*
8875 # included in the symbol list
8877 # exclude_expsyms can be an extended regexp of symbols to exclude
8878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8880 # as well as any symbol that contains `d'.
8881 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8883 # platforms (ab)use it in PIC code, but their linkers get confused if
8884 # the symbol is explicitly referenced. Since portable code cannot
8885 # rely on this symbol name, it's probably fine to never include it in
8886 # preloaded symbol tables.
8887 extract_expsyms_cmds=
8888 # Just being paranoid about ensuring that cc_basename is set.
8889 for cc_temp in $compiler""; do
8891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8900 cygwin* | mingw* | pw32*)
8901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8902 # When not using gcc, we currently assume that we are using
8903 # Microsoft Visual C++.
8904 if test "$GCC" != yes; then
8909 # we just hope/assume this is gcc and not c89 (= MSVC++)
8918 if test "$with_gnu_ld" = yes; then
8919 # If archive_cmds runs LD, not CC, wlarc should be empty
8922 # Set some defaults for GNU ld with shared library support. These
8923 # are reset later if shared libraries are not supported. Putting them
8924 # here allows them to be overridden if necessary.
8925 runpath_var=LD_RUN_PATH
8926 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8927 export_dynamic_flag_spec='${wl}--export-dynamic'
8928 # ancient GNU ld didn't support --whole-archive et. al.
8929 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8930 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8932 whole_archive_flag_spec=
8934 supports_anon_versioning=no
8935 case `$LD -v 2>/dev/null` in
8936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8939 *\ 2.11.*) ;; # other 2.11 versions
8940 *) supports_anon_versioning=yes ;;
8943 # See if GNU ld supports shared libraries.
8945 aix3* | aix4* | aix5*)
8946 # On AIX/PPC, the GNU linker is very broken
8947 if test "$host_cpu" != ia64; then
8951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8952 *** to be unable to reliably create shared libraries on AIX.
8953 *** Therefore, libtool is disabling shared libraries support. If you
8954 *** really care for shared libraries, you may want to modify your PATH
8955 *** so that a non-GNU linker is found, and then restart.
8962 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)'
8963 hardcode_libdir_flag_spec='-L$libdir'
8964 hardcode_minus_L=yes
8966 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8967 # that the semantics of dynamic libraries on AmigaOS, at least up
8968 # to version 4, is to share data among multiple programs linked
8969 # with the same dynamic library. Since this doesn't match the
8970 # behavior of shared libraries on other platforms, we can't use
8976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8977 allow_undefined_flag=unsupported
8978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8979 # support --undefined. This deserves some investigation. FIXME
8980 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 cygwin* | mingw* | pw32*)
8987 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8988 # as there is no search path for DLLs.
8989 hardcode_libdir_flag_spec='-L$libdir'
8990 allow_undefined_flag=unsupported
8991 always_export_symbols=no
8992 enable_shared_with_static_runtimes=yes
8993 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8995 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8997 # If the export-symbols file already is a .def file (1st line
8998 # is EXPORTS), use it as is; otherwise, prepend...
8999 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9000 cp $export_symbols $output_objdir/$soname.def;
9002 echo EXPORTS > $output_objdir/$soname.def;
9003 cat $export_symbols >> $output_objdir/$soname.def;
9005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9013 hardcode_shlibpath_var=no
9014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9015 export_dynamic_flag_spec='${wl}-E'
9016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9017 # Instead, shared libraries are loaded at an image base (0x10000000 by
9018 # default) and relocated if they conflict, which is a slow very memory
9019 # consuming and fragmenting process. To avoid this, we pick a random,
9020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9023 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'
9027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9029 case $cc_basename,$host_cpu in
9030 pgcc*) # Portland Group C compiler
9031 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'
9032 tmp_addflag=' $pic_flag'
9034 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9035 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'
9036 tmp_addflag=' $pic_flag -Mnomain' ;;
9037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9038 tmp_addflag=' -i_dynamic' ;;
9039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9040 tmp_addflag=' -i_dynamic -nofor_main' ;;
9041 ifc* | ifort*) # Intel Fortran compiler
9042 tmp_addflag=' -nofor_main' ;;
9044 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9046 if test $supports_anon_versioning = yes; then
9047 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9049 $echo "local: *; };" >> $output_objdir/$libname.ver~
9050 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9059 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9068 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9073 *** create shared libraries on Solaris systems. Therefore, libtool
9074 *** is disabling shared libraries support. We urge you to upgrade GNU
9075 *** binutils to release 2.9.1 or newer. Another option is to modify
9076 *** your PATH or compiler configuration so that the native linker is
9077 *** used, and then restart.
9080 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9089 case `$LD -v 2>&1` in
9090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9095 *** reliably create shared libraries on SCO systems. Therefore, libtool
9096 *** is disabling shared libraries support. We urge you to upgrade GNU
9097 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9098 *** your PATH or compiler configuration so that the native linker is
9099 *** used, and then restart.
9104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9105 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9116 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9119 hardcode_shlibpath_var=no
9123 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9132 if test "$ld_shlibs" = no; then
9134 hardcode_libdir_flag_spec=
9135 export_dynamic_flag_spec=
9136 whole_archive_flag_spec=
9139 # PORTME fill in a description of your system's linker (not GNU ld)
9142 allow_undefined_flag=unsupported
9143 always_export_symbols=yes
9144 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'
9145 # Note: this linker hardcodes the directories in LIBPATH if there
9146 # are no directories specified by -L.
9147 hardcode_minus_L=yes
9148 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9149 # Neither direct hardcoding nor static linking is supported with a
9151 hardcode_direct=unsupported
9156 if test "$host_cpu" = ia64; then
9157 # On IA64, the linker does run time linking by default, so we don't
9158 # have to do anything special.
9159 aix_use_runtimelinking=no
9160 exp_sym_flag='-Bexport'
9163 # If we're using GNU nm, then we don't want the "-C" option.
9164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9165 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9166 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'
9168 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'
9170 aix_use_runtimelinking=no
9172 # Test if we are trying to use run time linking or normal
9173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9174 # need to do runtime linking.
9175 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9176 for ld_flag in $LDFLAGS; do
9177 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9178 aix_use_runtimelinking=yes
9185 exp_sym_flag='-bexport'
9186 no_entry_flag='-bnoentry'
9189 # When large executables or shared objects are built, AIX ld can
9190 # have problems creating the table of contents. If linking a library
9191 # or program results in "error TOC overflow" add -mminimal-toc to
9192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9197 hardcode_libdir_separator=':'
9198 link_all_deplibs=yes
9200 if test "$GCC" = yes; then
9201 case $host_os in aix4.[012]|aix4.[012].*)
9202 # We only want to do this on AIX 4.2 and lower, the check
9203 # below for broken collect2 doesn't work under 4.3+
9204 collect2name=`${CC} -print-prog-name=collect2`
9205 if test -f "$collect2name" && \
9206 strings "$collect2name" | grep resolve_lib_name >/dev/null
9208 # We have reworked collect2
9211 # We have old collect2
9212 hardcode_direct=unsupported
9213 # It fails to find uninstalled libraries when the uninstalled
9214 # path is not listed in the libpath. Setting hardcode_minus_L
9215 # to unsupported forces relinking
9216 hardcode_minus_L=yes
9217 hardcode_libdir_flag_spec='-L$libdir'
9218 hardcode_libdir_separator=
9222 shared_flag='-shared'
9223 if test "$aix_use_runtimelinking" = yes; then
9224 shared_flag="$shared_flag "'${wl}-G'
9228 if test "$host_cpu" = ia64; then
9229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9230 # chokes on -Wl,-G. The following line is correct:
9233 if test "$aix_use_runtimelinking" = yes; then
9234 shared_flag='${wl}-G'
9236 shared_flag='${wl}-bM:SRE'
9241 # It seems that -bexpall does not export symbols beginning with
9242 # underscore (_), so it is better to generate a list of symbols to export.
9243 always_export_symbols=yes
9244 if test "$aix_use_runtimelinking" = yes; then
9245 # Warning - without using the other runtime loading flags (-brtl),
9246 # -berok will link without error, but may produce a broken library.
9247 allow_undefined_flag='-berok'
9248 # Determine the default libpath from the value encoded in an empty executable.
9249 cat >conftest.$ac_ext <<_ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9264 rm -f conftest.$ac_objext conftest$ac_exeext
9265 if { (ac_try="$ac_link"
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9271 $as_echo "$ac_try_echo") >&5
9272 (eval "$ac_link") 2>conftest.er1
9274 grep -v '^ *+' conftest.er1 >conftest.err
9276 cat conftest.err >&5
9277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } && {
9279 test -z "$ac_c_werror_flag" ||
9280 test ! -s conftest.err
9281 } && test -s conftest$ac_exeext && {
9282 test "$cross_compiling" = yes ||
9283 $as_test_x conftest$ac_exeext
9286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9288 # Check for a 64-bit object if we didn't find anything.
9289 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9292 $as_echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9298 rm -rf conftest.dSYM
9299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9300 conftest$ac_exeext conftest.$ac_ext
9301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9303 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9304 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"
9306 if test "$host_cpu" = ia64; then
9307 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9308 allow_undefined_flag="-z nodefs"
9309 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"
9311 # Determine the default libpath from the value encoded in an empty executable.
9312 cat >conftest.$ac_ext <<_ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9327 rm -f conftest.$ac_objext conftest$ac_exeext
9328 if { (ac_try="$ac_link"
9330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9331 *) ac_try_echo=$ac_try;;
9333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9334 $as_echo "$ac_try_echo") >&5
9335 (eval "$ac_link") 2>conftest.er1
9337 grep -v '^ *+' conftest.er1 >conftest.err
9339 cat conftest.err >&5
9340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && {
9342 test -z "$ac_c_werror_flag" ||
9343 test ! -s conftest.err
9344 } && test -s conftest$ac_exeext && {
9345 test "$cross_compiling" = yes ||
9346 $as_test_x conftest$ac_exeext
9349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9351 # Check for a 64-bit object if we didn't find anything.
9352 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9355 $as_echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9361 rm -rf conftest.dSYM
9362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363 conftest$ac_exeext conftest.$ac_ext
9364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9366 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9367 # Warning - without using the other run time loading flags,
9368 # -berok will link without error, but may produce a broken library.
9369 no_undefined_flag=' ${wl}-bernotok'
9370 allow_undefined_flag=' ${wl}-berok'
9371 # Exported symbols can be pulled into shared objects from archives
9372 whole_archive_flag_spec='$convenience'
9373 archive_cmds_need_lc=yes
9374 # This is similar to how AIX traditionally builds its shared libraries.
9375 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'
9381 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)'
9382 hardcode_libdir_flag_spec='-L$libdir'
9383 hardcode_minus_L=yes
9384 # see comment about different semantics on the GNU ld section
9389 export_dynamic_flag_spec=-rdynamic
9392 cygwin* | mingw* | pw32*)
9393 # When not using gcc, we currently assume that we are using
9394 # Microsoft Visual C++.
9395 # hardcode_libdir_flag_spec is actually meaningless, as there is
9396 # no search path for DLLs.
9397 hardcode_libdir_flag_spec=' '
9398 allow_undefined_flag=unsupported
9399 # Tell ltmain to make .lib files, not .a files.
9401 # Tell ltmain to make .dll files, not .so files.
9403 # FIXME: Setting linknames here is a bad hack.
9404 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9405 # The linker will automatically build a .lib file if we build a DLL.
9406 old_archive_From_new_cmds='true'
9407 # FIXME: Should let the user specify the lib program.
9408 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9409 fix_srcfile_path='`cygpath -w "$srcfile"`'
9410 enable_shared_with_static_runtimes=yes
9413 darwin* | rhapsody*)
9415 rhapsody* | darwin1.[012])
9416 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9419 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9420 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9422 case ${MACOSX_DEPLOYMENT_TARGET} in
9424 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9427 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9433 archive_cmds_need_lc=no
9435 hardcode_automatic=yes
9436 hardcode_shlibpath_var=unsupported
9437 whole_archive_flag_spec=''
9438 link_all_deplibs=yes
9439 if test "$GCC" = yes ; then
9440 output_verbose_link_cmd='echo'
9441 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9442 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9443 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9444 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}'
9445 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}'
9447 case $cc_basename in
9449 output_verbose_link_cmd='echo'
9450 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9451 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9453 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9454 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}'
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_shlibpath_var=no
9473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9474 # support. Future versions do this automatically, but an explicit c++rt0.o
9475 # does not break anything, and helps significantly (at the cost of a little
9478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9479 hardcode_libdir_flag_spec='-R$libdir'
9481 hardcode_shlibpath_var=no
9484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9488 hardcode_minus_L=yes
9489 hardcode_shlibpath_var=no
9492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9493 freebsd* | kfreebsd*-gnu | dragonfly*)
9494 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9495 hardcode_libdir_flag_spec='-R$libdir'
9497 hardcode_shlibpath_var=no
9501 if test "$GCC" = yes; then
9502 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'
9504 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'
9506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9507 hardcode_libdir_separator=:
9510 # hardcode_minus_L: Not really in the search PATH,
9511 # but as the default location of the library.
9512 hardcode_minus_L=yes
9513 export_dynamic_flag_spec='${wl}-E'
9517 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9518 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9522 if test "$with_gnu_ld" = no; then
9523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9524 hardcode_libdir_separator=:
9527 export_dynamic_flag_spec='${wl}-E'
9529 # hardcode_minus_L: Not really in the search PATH,
9530 # but as the default location of the library.
9531 hardcode_minus_L=yes
9536 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9539 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9542 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9551 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9557 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9561 if test "$with_gnu_ld" = no; then
9562 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9563 hardcode_libdir_separator=:
9567 hardcode_libdir_flag_spec_ld='+b $libdir'
9569 hardcode_shlibpath_var=no
9573 export_dynamic_flag_spec='${wl}-E'
9575 # hardcode_minus_L: Not really in the search PATH,
9576 # but as the default location of the library.
9577 hardcode_minus_L=yes
9583 irix5* | irix6* | nonstopux*)
9584 if test "$GCC" = yes; then
9585 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'
9587 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'
9588 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9591 hardcode_libdir_separator=:
9592 link_all_deplibs=yes
9596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9599 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9601 hardcode_libdir_flag_spec='-R$libdir'
9603 hardcode_shlibpath_var=no
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9610 hardcode_libdir_separator=:
9611 hardcode_shlibpath_var=no
9616 hardcode_shlibpath_var=no
9617 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9620 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9621 export_dynamic_flag_spec='${wl}-E'
9624 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9626 hardcode_libdir_flag_spec='-R$libdir'
9629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9637 hardcode_libdir_flag_spec='-L$libdir'
9638 hardcode_minus_L=yes
9639 allow_undefined_flag=unsupported
9640 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'
9641 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9645 if test "$GCC" = yes; then
9646 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9647 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'
9649 allow_undefined_flag=' -expect_unresolved \*'
9650 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'
9652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653 hardcode_libdir_separator=:
9656 osf4* | osf5*) # as osf3* with the addition of -msym flag
9657 if test "$GCC" = yes; then
9658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9659 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'
9660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9662 allow_undefined_flag=' -expect_unresolved \*'
9663 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'
9664 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9665 $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'
9667 # Both c and cxx compiler support -rpath directly
9668 hardcode_libdir_flag_spec='-rpath $libdir'
9670 hardcode_libdir_separator=:
9674 no_undefined_flag=' -z text'
9675 if test "$GCC" = yes; then
9677 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9678 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9679 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9682 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9684 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9686 hardcode_libdir_flag_spec='-R$libdir'
9687 hardcode_shlibpath_var=no
9689 solaris2.[0-5] | solaris2.[0-5].*) ;;
9691 # The compiler driver will combine linker options so we
9692 # cannot just pass the convience library names through
9693 # without $wl, iff we do not link with $LD.
9694 # Luckily, gcc supports the same syntax we need for Sun Studio.
9695 # Supported since Solaris 2.6 (maybe 2.5.1?)
9698 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9700 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9703 link_all_deplibs=yes
9707 if test "x$host_vendor" = xsequent; then
9708 # Use $CC to link under sequent, because it throws in some extra .o
9709 # files that make .init and .fini sections work.
9710 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-L$libdir'
9716 hardcode_minus_L=yes
9717 hardcode_shlibpath_var=no
9721 case $host_vendor in
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_direct=yes # is this really true???
9727 ## LD is ld it makes a PLAMLIB
9728 ## CC just makes a GrossModule.
9729 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9730 reload_cmds='$CC -r -o $output$reload_objs'
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9738 runpath_var='LD_RUN_PATH'
9739 hardcode_shlibpath_var=no
9743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 hardcode_shlibpath_var=no
9745 export_dynamic_flag_spec='-Bexport'
9749 if test -d /usr/nec; then
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_shlibpath_var=no
9752 runpath_var=LD_RUN_PATH
9753 hardcode_runpath_var=yes
9758 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9759 no_undefined_flag='${wl}-z,text'
9760 archive_cmds_need_lc=no
9761 hardcode_shlibpath_var=no
9762 runpath_var='LD_RUN_PATH'
9764 if test "$GCC" = yes; then
9765 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 sysv5* | sco3.2v5* | sco5v6*)
9774 # Note: We can NOT use -z defs as we might desire, because we do not
9775 # link with -lc, and that would cause any symbols used from libc to
9776 # always be unresolved, which means just about no library would
9777 # ever link correctly. If we're not using GNU ld we use -z text
9778 # though, which does catch some bad symbols but isn't as heavy-handed
9780 no_undefined_flag='${wl}-z,text'
9781 allow_undefined_flag='${wl}-z,nodefs'
9782 archive_cmds_need_lc=no
9783 hardcode_shlibpath_var=no
9784 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9785 hardcode_libdir_separator=':'
9786 link_all_deplibs=yes
9787 export_dynamic_flag_spec='${wl}-Bexport'
9788 runpath_var='LD_RUN_PATH'
9790 if test "$GCC" = yes; then
9791 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9795 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801 hardcode_libdir_flag_spec='-L$libdir'
9802 hardcode_shlibpath_var=no
9811 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9812 $as_echo "$ld_shlibs" >&6; }
9813 test "$ld_shlibs" = no && can_build_shared=no
9816 # Do we need to explicitly link libc?
9818 case "x$archive_cmds_need_lc" in
9820 # Assume -lc should be added
9821 archive_cmds_need_lc=yes
9823 if test "$enable_shared" = yes && test "$GCC" = yes; then
9824 case $archive_cmds in
9826 # FIXME: we may have to deal with multi-command sequences.
9829 # Test whether the compiler implicitly links with -lc since on some
9830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831 # to ld, don't add -lc before -lgcc.
9832 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9833 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9835 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838 (eval $ac_compile) 2>&5
9840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } 2>conftest.err; then
9844 libobjs=conftest.$ac_objext
9846 wl=$lt_prog_compiler_wl
9847 pic_flag=$lt_prog_compiler_pic
9853 lt_save_allow_undefined_flag=$allow_undefined_flag
9854 allow_undefined_flag=
9855 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9856 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }
9861 archive_cmds_need_lc=no
9863 archive_cmds_need_lc=yes
9865 allow_undefined_flag=$lt_save_allow_undefined_flag
9867 cat conftest.err 1>&5
9870 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9871 $as_echo "$archive_cmds_need_lc" >&6; }
9878 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9879 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9881 libname_spec='lib$name'
9889 shlibpath_overrides_runpath=unknown
9891 dynamic_linker="$host_os ld.so"
9892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9893 if test "$GCC" = yes; then
9894 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9895 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9896 # if the path contains ";" then we assume it to be the separator
9897 # otherwise default to the standard path separator (i.e. ":") - it is
9898 # assumed that no part of a normal pathname contains ";" but that should
9899 # okay in the real world where ";" in dirpaths is itself problematic.
9900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9907 need_lib_prefix=unknown
9908 hardcode_into_libs=no
9910 # when you set need_version to no, make sure it does not cause -set_version
9911 # flags to be left without arguments
9912 need_version=unknown
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9918 shlibpath_var=LIBPATH
9920 # AIX 3 has no versioning support, so we append a major version to the name.
9921 soname_spec='${libname}${release}${shared_ext}$major'
9928 hardcode_into_libs=yes
9929 if test "$host_cpu" = ia64; then
9930 # AIX 5 supports IA64
9931 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9932 shlibpath_var=LD_LIBRARY_PATH
9934 # With GCC up to 2.95.x, collect2 would create an import file
9935 # for dependence libraries. The import file would start with
9936 # the line `#! .'. This would cause the generated library to
9937 # depend on `.', always an invalid library. This was fixed in
9938 # development snapshots of GCC prior to 3.0.
9940 aix4 | aix4.[01] | aix4.[01].*)
9941 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9943 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9950 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9951 # soname into executable. Probably we can add versioning support to
9952 # collect2, so additional links can be useful in future.
9953 if test "$aix_use_runtimelinking" = yes; then
9954 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9955 # instead of lib<name>.a to let people know that these are not
9956 # typical AIX shared libraries.
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 # We preserve .a as extension for shared libraries through AIX4.2
9960 # and later when we are not doing run time linking.
9961 library_names_spec='${libname}${release}.a $libname.a'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9964 shlibpath_var=LIBPATH
9969 library_names_spec='$libname.ixlibrary $libname.a'
9970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9971 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'
9975 library_names_spec='${libname}${shared_ext}'
9976 dynamic_linker="$host_os ld.so"
9977 shlibpath_var=LIBRARY_PATH
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9986 shlibpath_var=LD_LIBRARY_PATH
9987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9989 # the default ld.so.conf also contains /usr/contrib/lib and
9990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9991 # libtool to hard-code these into programs
9994 cygwin* | mingw* | pw32*)
9995 version_type=windows
10000 case $GCC,$host_os in
10001 yes,cygwin* | yes,mingw* | yes,pw32*)
10002 library_names_spec='$libname.dll.a'
10003 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10004 postinstall_cmds='base_file=`basename \${file}`~
10005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10006 dldir=$destdir/`dirname \$dlpath`~
10007 test -d \$dldir || mkdir -p \$dldir~
10008 $install_prog $dir/$dlname \$dldir/$dlname~
10009 chmod a+x \$dldir/$dlname'
10010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10011 dlpath=$dir/\$dldll~
10013 shlibpath_overrides_runpath=yes
10017 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10018 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10022 # MinGW DLLs use traditional 'lib' prefix
10023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10025 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10026 # It is most probably a Windows format PATH printed by
10027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10028 # path with ; separators, and with drive letters. We can handle the
10029 # drive letters (cygwin fileutils understands them), so leave them,
10030 # especially as we might pass files found there to a mingw objdump,
10031 # which wouldn't understand a cygwinified path. Ahh.
10032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10038 # pw32 DLLs use 'pw' prefix rather than 'lib'
10039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10048 dynamic_linker='Win32 ld.exe'
10049 # FIXME: first we should search . and the directory the executable is in
10053 darwin* | rhapsody*)
10054 dynamic_linker="$host_os dyld"
10055 version_type=darwin
10058 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10059 soname_spec='${libname}${release}${major}$shared_ext'
10060 shlibpath_overrides_runpath=yes
10061 shlibpath_var=DYLD_LIBRARY_PATH
10062 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10063 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10064 if test "$GCC" = yes; then
10065 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10067 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 shlibpath_var=LD_LIBRARY_PATH
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 shlibpath_var=LD_LIBRARY_PATH
10092 shlibpath_overrides_runpath=no
10093 hardcode_into_libs=yes
10094 dynamic_linker='GNU ld.so'
10097 freebsd* | dragonfly*)
10098 # DragonFly does not have aout. When/if they implement a new
10099 # versioning mechanism, adjust this.
10100 if test -x /usr/bin/objformat; then
10101 objformat=`/usr/bin/objformat`
10104 freebsd[123]*) objformat=aout ;;
10105 *) objformat=elf ;;
10108 version_type=freebsd-$objformat
10109 case $version_type in
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10120 shlibpath_var=LD_LIBRARY_PATH
10123 shlibpath_overrides_runpath=yes
10125 freebsd3.[01]* | freebsdelf3.[01]*)
10126 shlibpath_overrides_runpath=yes
10127 hardcode_into_libs=yes
10129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10131 shlibpath_overrides_runpath=no
10132 hardcode_into_libs=yes
10134 freebsd*) # from 4.6 on
10135 shlibpath_overrides_runpath=yes
10136 hardcode_into_libs=yes
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 hardcode_into_libs=yes
10151 hpux9* | hpux10* | hpux11*)
10152 # Give a soname corresponding to the major version so that dld.sl refuses to
10153 # link against other versions.
10160 hardcode_into_libs=yes
10161 dynamic_linker="$host_os dld.so"
10162 shlibpath_var=LD_LIBRARY_PATH
10163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 if test "X$HPUX_IA64_MODE" = X32; then
10167 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10169 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10175 hardcode_into_libs=yes
10176 dynamic_linker="$host_os dld.sl"
10177 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10186 dynamic_linker="$host_os dld.sl"
10187 shlibpath_var=SHLIB_PATH
10188 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10193 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10194 postinstall_cmds='chmod 555 $lib'
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 shlibpath_overrides_runpath=no
10206 hardcode_into_libs=yes
10209 irix5* | irix6* | nonstopux*)
10211 nonstopux*) version_type=nonstopux ;;
10213 if test "$lt_cv_prog_gnu_ld" = yes; then
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10224 irix5* | nonstopux*)
10225 libsuff= shlibsuff=
10228 case $LD in # libtool.m4 will add one of these switches to LD
10229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10230 libsuff= shlibsuff= libmagic=32-bit;;
10231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10232 libsuff=32 shlibsuff=N32 libmagic=N32;;
10233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10235 *) libsuff= shlibsuff= libmagic=never-match;;
10239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10240 shlibpath_overrides_runpath=no
10241 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10242 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10243 hardcode_into_libs=yes
10246 # No shared lib support for Linux oldld, aout, or coff.
10247 linux*oldld* | linux*aout* | linux*coff*)
10251 # This must be Linux ELF.
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=no
10261 # This implies no fast_install, which is unacceptable.
10262 # Some rework will be needed to allow for fast_install
10263 # before this can be enabled.
10264 hardcode_into_libs=yes
10266 # Append ld.so.conf contents to the search path
10267 if test -f /etc/ld.so.conf; then
10268 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10272 # We used to test for /lib/ld.so.1 and disable shared libraries on
10273 # powerpc, because MkLinux only supported shared libraries with the
10274 # GNU dynamic linker. Since this was broken with cross compilers,
10275 # most powerpc-linux boxes support dynamic linking these days and
10276 # people can always --disable-shared, the test was removed, and we
10277 # assume the GNU/Linux dynamic linker is in use.
10278 dynamic_linker='GNU/Linux ld.so'
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=no
10289 hardcode_into_libs=yes
10290 dynamic_linker='GNU ld.so'
10297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10300 dynamic_linker='NetBSD (a.out) ld.so'
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 dynamic_linker='NetBSD ld.elf_so'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10308 hardcode_into_libs=yes
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 shlibpath_overrides_runpath=yes
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10330 sys_lib_dlsearch_path_spec="/usr/lib"
10332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10334 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10335 *) need_version=no ;;
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10342 openbsd2.[89] | openbsd2.[89].*)
10343 shlibpath_overrides_runpath=no
10346 shlibpath_overrides_runpath=yes
10350 shlibpath_overrides_runpath=yes
10355 libname_spec='$name'
10358 library_names_spec='$libname${shared_ext} $libname.a'
10359 dynamic_linker='OS/2 ld.exe'
10360 shlibpath_var=LIBPATH
10363 osf3* | osf4* | osf5*)
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 hardcode_into_libs=yes
10383 # ldd complains unless libraries are executable
10384 postinstall_cmds='chmod +x $lib'
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=yes
10393 if test "$with_gnu_ld" = yes; then
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 case $host_vendor in
10406 shlibpath_overrides_runpath=no
10408 export_dynamic_flag_spec='${wl}-Blargedynsym'
10409 runpath_var=LD_RUN_PATH
10417 shlibpath_overrides_runpath=no
10418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10424 if test -d /usr/nec ;then
10426 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10427 soname_spec='$libname${shared_ext}.$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433 version_type=freebsd-elf
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 hardcode_into_libs=yes
10440 if test "$with_gnu_ld" = yes; then
10441 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10442 shlibpath_overrides_runpath=no
10444 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10445 shlibpath_overrides_runpath=yes
10448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10452 sys_lib_dlsearch_path_spec='/usr/lib'
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10466 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10467 $as_echo "$dynamic_linker" >&6; }
10468 test "$dynamic_linker" = no && can_build_shared=no
10470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10471 if test "$GCC" = yes; then
10472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10475 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10476 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10478 if test -n "$hardcode_libdir_flag_spec" || \
10479 test -n "$runpath_var" || \
10480 test "X$hardcode_automatic" = "Xyes" ; then
10482 # We can hardcode non-existant directories.
10483 if test "$hardcode_direct" != no &&
10484 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10485 # have to relink, otherwise we might link with an installed library
10486 # when we should be linking with a yet-to-be-installed one
10487 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10488 test "$hardcode_minus_L" != no; then
10489 # Linking always hardcodes the temporary library directory.
10490 hardcode_action=relink
10492 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10493 hardcode_action=immediate
10496 # We cannot hardcode anything, or else we can only hardcode existing
10498 hardcode_action=unsupported
10500 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10501 $as_echo "$hardcode_action" >&6; }
10503 if test "$hardcode_action" = relink; then
10504 # Fast installation is not supported
10505 enable_fast_install=no
10506 elif test "$shlibpath_overrides_runpath" = yes ||
10507 test "$enable_shared" = no; then
10508 # Fast installation is not necessary
10509 enable_fast_install=needless
10514 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10515 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10516 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10517 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10518 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10519 { $as_echo "$as_me:$LINENO: result: yes" >&5
10520 $as_echo "yes" >&6; }
10522 # FIXME - insert some real tests, host_os isn't really good enough
10525 if test -n "$STRIP" ; then
10526 striplib="$STRIP -x"
10527 { $as_echo "$as_me:$LINENO: result: yes" >&5
10528 $as_echo "yes" >&6; }
10530 { $as_echo "$as_me:$LINENO: result: no" >&5
10531 $as_echo "no" >&6; }
10535 { $as_echo "$as_me:$LINENO: result: no" >&5
10536 $as_echo "no" >&6; }
10541 if test "x$enable_dlopen" != xyes; then
10542 enable_dlopen=unknown
10543 enable_dlopen_self=unknown
10544 enable_dlopen_self_static=unknown
10551 lt_cv_dlopen="load_add_on"
10553 lt_cv_dlopen_self=yes
10557 lt_cv_dlopen="LoadLibrary"
10562 lt_cv_dlopen="dlopen"
10567 # if libdl is installed we need to link against it
10568 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10571 $as_echo_n "(cached) " >&6
10573 ac_check_lib_save_LIBS=$LIBS
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10604 $as_echo "$ac_try_echo") >&5
10605 (eval "$ac_link") 2>conftest.er1
10607 grep -v '^ *+' conftest.er1 >conftest.err
10609 cat conftest.err >&5
10610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest$ac_exeext && {
10615 test "$cross_compiling" = yes ||
10616 $as_test_x conftest$ac_exeext
10618 ac_cv_lib_dl_dlopen=yes
10620 $as_echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 ac_cv_lib_dl_dlopen=no
10626 rm -rf conftest.dSYM
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10632 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10633 if test $ac_cv_lib_dl_dlopen = yes; then
10634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10637 lt_cv_dlopen="dyld"
10639 lt_cv_dlopen_self=yes
10646 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10647 $as_echo_n "checking for shl_load... " >&6; }
10648 if test "${ac_cv_func_shl_load+set}" = set; then
10649 $as_echo_n "(cached) " >&6
10651 cat >conftest.$ac_ext <<_ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10659 #define shl_load innocuous_shl_load
10661 /* System header to define __stub macros and hopefully few prototypes,
10662 which can conflict with char shl_load (); below.
10663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10664 <limits.h> exists even on freestanding compilers. */
10667 # include <limits.h>
10669 # include <assert.h>
10674 /* Override any GCC internal prototype to avoid an error.
10675 Use char because int might match the return type of a GCC
10676 builtin and then its argument prototype would still apply. */
10681 /* The GNU C library defines this for functions which it implements
10682 to always fail with ENOSYS. Some functions are actually named
10683 something starting with __ and the normal name is an alias. */
10684 #if defined __stub_shl_load || defined __stub___shl_load
10691 return shl_load ();
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (ac_try="$ac_link"
10698 case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703 $as_echo "$ac_try_echo") >&5
10704 (eval "$ac_link") 2>conftest.er1
10706 grep -v '^ *+' conftest.er1 >conftest.err
10708 cat conftest.err >&5
10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest$ac_exeext && {
10714 test "$cross_compiling" = yes ||
10715 $as_test_x conftest$ac_exeext
10717 ac_cv_func_shl_load=yes
10719 $as_echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 ac_cv_func_shl_load=no
10725 rm -rf conftest.dSYM
10726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10727 conftest$ac_exeext conftest.$ac_ext
10729 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10730 $as_echo "$ac_cv_func_shl_load" >&6; }
10731 if test $ac_cv_func_shl_load = yes; then
10732 lt_cv_dlopen="shl_load"
10734 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10735 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10736 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10737 $as_echo_n "(cached) " >&6
10739 ac_check_lib_save_LIBS=$LIBS
10741 cat >conftest.$ac_ext <<_ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10758 return shl_load ();
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10770 $as_echo "$ac_try_echo") >&5
10771 (eval "$ac_link") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && {
10778 test -z "$ac_c_werror_flag" ||
10779 test ! -s conftest.err
10780 } && test -s conftest$ac_exeext && {
10781 test "$cross_compiling" = yes ||
10782 $as_test_x conftest$ac_exeext
10784 ac_cv_lib_dld_shl_load=yes
10786 $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_lib_dld_shl_load=no
10792 rm -rf conftest.dSYM
10793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10794 conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10798 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10799 if test $ac_cv_lib_dld_shl_load = yes; then
10800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10802 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10803 $as_echo_n "checking for dlopen... " >&6; }
10804 if test "${ac_cv_func_dlopen+set}" = set; then
10805 $as_echo_n "(cached) " >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10815 #define dlopen innocuous_dlopen
10817 /* System header to define __stub macros and hopefully few prototypes,
10818 which can conflict with char dlopen (); below.
10819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10820 <limits.h> exists even on freestanding compilers. */
10823 # include <limits.h>
10825 # include <assert.h>
10830 /* Override any GCC internal prototype to avoid an error.
10831 Use char because int might match the return type of a GCC
10832 builtin and then its argument prototype would still apply. */
10837 /* The GNU C library defines this for functions which it implements
10838 to always fail with ENOSYS. Some functions are actually named
10839 something starting with __ and the normal name is an alias. */
10840 #if defined __stub_dlopen || defined __stub___dlopen
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10859 $as_echo "$ac_try_echo") >&5
10860 (eval "$ac_link") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } && {
10867 test -z "$ac_c_werror_flag" ||
10868 test ! -s conftest.err
10869 } && test -s conftest$ac_exeext && {
10870 test "$cross_compiling" = yes ||
10871 $as_test_x conftest$ac_exeext
10873 ac_cv_func_dlopen=yes
10875 $as_echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10878 ac_cv_func_dlopen=no
10881 rm -rf conftest.dSYM
10882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10883 conftest$ac_exeext conftest.$ac_ext
10885 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10886 $as_echo "$ac_cv_func_dlopen" >&6; }
10887 if test $ac_cv_func_dlopen = yes; then
10888 lt_cv_dlopen="dlopen"
10890 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10891 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10892 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10893 $as_echo_n "(cached) " >&6
10895 ac_check_lib_save_LIBS=$LIBS
10897 cat >conftest.$ac_ext <<_ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10904 /* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (ac_try="$ac_link"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10926 $as_echo "$ac_try_echo") >&5
10927 (eval "$ac_link") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest$ac_exeext && {
10937 test "$cross_compiling" = yes ||
10938 $as_test_x conftest$ac_exeext
10940 ac_cv_lib_dl_dlopen=yes
10942 $as_echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 ac_cv_lib_dl_dlopen=no
10948 rm -rf conftest.dSYM
10949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10950 conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10953 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10954 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10955 if test $ac_cv_lib_dl_dlopen = yes; then
10956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10958 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10959 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10960 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10961 $as_echo_n "(cached) " >&6
10963 ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-lsvld $LIBS"
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10994 $as_echo "$ac_try_echo") >&5
10995 (eval "$ac_link") 2>conftest.er1
10997 grep -v '^ *+' conftest.er1 >conftest.err
10999 cat conftest.err >&5
11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest$ac_exeext && {
11005 test "$cross_compiling" = yes ||
11006 $as_test_x conftest$ac_exeext
11008 ac_cv_lib_svld_dlopen=yes
11010 $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_cv_lib_svld_dlopen=no
11016 rm -rf conftest.dSYM
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11022 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11023 if test $ac_cv_lib_svld_dlopen = yes; then
11024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11026 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11027 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11029 $as_echo_n "(cached) " >&6
11031 ac_check_lib_save_LIBS=$LIBS
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11050 return dld_link ();
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11062 $as_echo "$ac_try_echo") >&5
11063 (eval "$ac_link") 2>conftest.er1
11065 grep -v '^ *+' conftest.er1 >conftest.err
11067 cat conftest.err >&5
11068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && {
11070 test -z "$ac_c_werror_flag" ||
11071 test ! -s conftest.err
11072 } && test -s conftest$ac_exeext && {
11073 test "$cross_compiling" = yes ||
11074 $as_test_x conftest$ac_exeext
11076 ac_cv_lib_dld_dld_link=yes
11078 $as_echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11081 ac_cv_lib_dld_dld_link=no
11084 rm -rf conftest.dSYM
11085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11090 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11091 if test $ac_cv_lib_dld_dld_link = yes; then
11092 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11113 if test "x$lt_cv_dlopen" != xno; then
11119 case $lt_cv_dlopen in
11121 save_CPPFLAGS="$CPPFLAGS"
11122 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11124 save_LDFLAGS="$LDFLAGS"
11125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11128 LIBS="$lt_cv_dlopen_libs $LIBS"
11130 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11131 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11132 if test "${lt_cv_dlopen_self+set}" = set; then
11133 $as_echo_n "(cached) " >&6
11135 if test "$cross_compiling" = yes; then :
11136 lt_cv_dlopen_self=cross
11138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11139 lt_status=$lt_dlunknown
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11141 "configure"
11142 #include "confdefs.h"
11151 # define LT_DLGLOBAL RTLD_GLOBAL
11154 # define LT_DLGLOBAL DL_GLOBAL
11156 # define LT_DLGLOBAL 0
11160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11161 find out it does not work in some platform. */
11162 #ifndef LT_DLLAZY_OR_NOW
11164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11167 # define LT_DLLAZY_OR_NOW DL_LAZY
11170 # define LT_DLLAZY_OR_NOW RTLD_NOW
11173 # define LT_DLLAZY_OR_NOW DL_NOW
11175 # define LT_DLLAZY_OR_NOW 0
11183 extern "C" void exit (int);
11186 void fnord() { int i=42;}
11189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190 int status = $lt_dlunknown;
11194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11196 /* dlclose (self); */
11204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205 (eval $ac_link) 2>&5
11207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11209 (./conftest; exit; ) >&5 2>/dev/null
11211 case x$lt_status in
11212 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11213 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11214 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11217 # compilation failed
11218 lt_cv_dlopen_self=no
11225 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11226 $as_echo "$lt_cv_dlopen_self" >&6; }
11228 if test "x$lt_cv_dlopen_self" = xyes; then
11229 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11230 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11231 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11232 if test "${lt_cv_dlopen_self_static+set}" = set; then
11233 $as_echo_n "(cached) " >&6
11235 if test "$cross_compiling" = yes; then :
11236 lt_cv_dlopen_self_static=cross
11238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11239 lt_status=$lt_dlunknown
11240 cat > conftest.$ac_ext <<EOF
11241 #line 11241 "configure"
11242 #include "confdefs.h"
11251 # define LT_DLGLOBAL RTLD_GLOBAL
11254 # define LT_DLGLOBAL DL_GLOBAL
11256 # define LT_DLGLOBAL 0
11260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11261 find out it does not work in some platform. */
11262 #ifndef LT_DLLAZY_OR_NOW
11264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11267 # define LT_DLLAZY_OR_NOW DL_LAZY
11270 # define LT_DLLAZY_OR_NOW RTLD_NOW
11273 # define LT_DLLAZY_OR_NOW DL_NOW
11275 # define LT_DLLAZY_OR_NOW 0
11283 extern "C" void exit (int);
11286 void fnord() { int i=42;}
11289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11290 int status = $lt_dlunknown;
11294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11296 /* dlclose (self); */
11304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305 (eval $ac_link) 2>&5
11307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11309 (./conftest; exit; ) >&5 2>/dev/null
11311 case x$lt_status in
11312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11314 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11317 # compilation failed
11318 lt_cv_dlopen_self_static=no
11325 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11326 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11329 CPPFLAGS="$save_CPPFLAGS"
11330 LDFLAGS="$save_LDFLAGS"
11335 case $lt_cv_dlopen_self in
11336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11337 *) enable_dlopen_self=unknown ;;
11340 case $lt_cv_dlopen_self_static in
11341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11342 *) enable_dlopen_self_static=unknown ;;
11347 # Report which library types will actually be built
11348 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11349 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11350 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11351 $as_echo "$can_build_shared" >&6; }
11353 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11354 $as_echo_n "checking whether to build shared libraries... " >&6; }
11355 test "$can_build_shared" = "no" && enable_shared=no
11357 # On AIX, shared libraries and static libraries use the same namespace, and
11358 # are all built from PIC.
11361 test "$enable_shared" = yes && enable_static=no
11362 if test -n "$RANLIB"; then
11363 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11364 postinstall_cmds='$RANLIB $lib'
11369 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11370 test "$enable_shared" = yes && enable_static=no
11374 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11375 $as_echo "$enable_shared" >&6; }
11377 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11378 $as_echo_n "checking whether to build static libraries... " >&6; }
11379 # Make sure either enable_shared or enable_static is yes.
11380 test "$enable_shared" = yes || enable_static=yes
11381 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11382 $as_echo "$enable_static" >&6; }
11384 # The else clause should only fire when bootstrapping the
11385 # libtool distribution, otherwise you forgot to ship ltmain.sh
11386 # with your package, and you will get complaints that there are
11387 # no rules to generate ltmain.sh.
11388 if test -f "$ltmain"; then
11389 # See if we are running on zsh, and set the options which allow our commands through
11390 # without removal of \ escapes.
11391 if test -n "${ZSH_VERSION+set}" ; then
11392 setopt NO_GLOB_SUBST
11394 # Now quote all the things that may contain metacharacters while being
11395 # careful not to overquote the AC_SUBSTed values. We take copies of the
11396 # variables and quote the copies for generation of the libtool script.
11397 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11399 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11400 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11401 deplibs_check_method reload_flag reload_cmds need_locks \
11402 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11403 lt_cv_sys_global_symbol_to_c_name_address \
11404 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11405 old_postinstall_cmds old_postuninstall_cmds \
11409 lt_prog_compiler_wl \
11410 lt_prog_compiler_pic \
11411 lt_prog_compiler_static \
11412 lt_prog_compiler_no_builtin_flag \
11413 export_dynamic_flag_spec \
11414 thread_safe_flag_spec \
11415 whole_archive_flag_spec \
11416 enable_shared_with_static_runtimes \
11418 old_archive_from_new_cmds \
11423 compiler_lib_search_path \
11425 archive_expsym_cmds \
11427 postuninstall_cmds \
11428 old_archive_from_expsyms_cmds \
11429 allow_undefined_flag \
11430 no_undefined_flag \
11431 export_symbols_cmds \
11432 hardcode_libdir_flag_spec \
11433 hardcode_libdir_flag_spec_ld \
11434 hardcode_libdir_separator \
11435 hardcode_automatic \
11437 module_expsym_cmds \
11438 lt_cv_prog_compiler_c_o \
11440 include_expsyms; do
11443 old_archive_cmds | \
11444 old_archive_from_new_cmds | \
11446 archive_expsym_cmds | \
11448 module_expsym_cmds | \
11449 old_archive_from_expsyms_cmds | \
11450 export_symbols_cmds | \
11451 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11452 postinstall_cmds | postuninstall_cmds | \
11453 old_postinstall_cmds | old_postuninstall_cmds | \
11454 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11455 # Double-quote double-evaled strings.
11456 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11459 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11465 *'\$0 --fallback-echo"')
11466 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11470 cfgfile="${ofile}T"
11471 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11473 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
11474 $as_echo "$as_me: creating $ofile" >&6;}
11476 cat <<__EOF__ >> "$cfgfile"
11479 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11480 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11481 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11483 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11484 # Free Software Foundation, Inc.
11486 # This file is part of GNU Libtool:
11487 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11489 # This program is free software; you can redistribute it and/or modify
11490 # it under the terms of the GNU General Public License as published by
11491 # the Free Software Foundation; either version 2 of the License, or
11492 # (at your option) any later version.
11494 # This program is distributed in the hope that it will be useful, but
11495 # WITHOUT ANY WARRANTY; without even the implied warranty of
11496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11497 # General Public License for more details.
11499 # You should have received a copy of the GNU General Public License
11500 # along with this program; if not, write to the Free Software
11501 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11503 # As a special exception to the GNU General Public License, if you
11504 # distribute this file as part of a program that contains a
11505 # configuration script generated by Autoconf, you may include it under
11506 # the same distribution terms that you use for the rest of that program.
11508 # A sed program that does not truncate output.
11511 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11512 Xsed="$SED -e 1s/^X//"
11514 # The HP-UX ksh and POSIX shell print the target directory to stdout
11515 # if CDPATH is set.
11516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11518 # The names of the tagged configurations supported by this script.
11521 # ### BEGIN LIBTOOL CONFIG
11523 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11525 # Shell to use when invoking shell scripts.
11528 # Whether or not to build shared libraries.
11529 build_libtool_libs=$enable_shared
11531 # Whether or not to build static libraries.
11532 build_old_libs=$enable_static
11534 # Whether or not to add -lc for building shared libraries.
11535 build_libtool_need_lc=$archive_cmds_need_lc
11537 # Whether or not to disallow shared libs when runtime libs are static
11538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11540 # Whether or not to optimize for fast installation.
11541 fast_install=$enable_fast_install
11544 host_alias=$host_alias
11548 # The build system.
11549 build_alias=$build_alias
11553 # An echo program that does not interpret backslashes.
11558 AR_FLAGS=$lt_AR_FLAGS
11563 # LTCC compiler flags.
11564 LTCFLAGS=$lt_LTCFLAGS
11566 # A language-specific compiler.
11569 # Is the compiler the GNU C compiler?
11575 # The linker used to build libraries.
11578 # Whether we need hard or soft links.
11581 # A BSD-compatible nm program.
11584 # A symbol stripping program
11587 # Used to examine libraries when file_magic_cmd begins "file"
11588 MAGIC_CMD=$MAGIC_CMD
11590 # Used on cygwin: DLL creation program.
11593 # Used on cygwin: object dumper.
11596 # Used on cygwin: assembler.
11599 # The name of the directory that contains temporary libtool files.
11602 # How to create reloadable object files.
11603 reload_flag=$lt_reload_flag
11604 reload_cmds=$lt_reload_cmds
11606 # How to pass a linker flag through the compiler.
11607 wl=$lt_lt_prog_compiler_wl
11609 # Object file suffix (normally "o").
11610 objext="$ac_objext"
11612 # Old archive suffix (normally "a").
11615 # Shared library suffix (normally ".so").
11616 shrext_cmds='$shrext_cmds'
11618 # Executable file suffix (normally "").
11621 # Additional compiler flags for building library objects.
11622 pic_flag=$lt_lt_prog_compiler_pic
11625 # What is the maximum length of a command?
11626 max_cmd_len=$lt_cv_sys_max_cmd_len
11628 # Does compiler simultaneously support -c and -o options?
11629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11631 # Must we lock files when doing compilation?
11632 need_locks=$lt_need_locks
11634 # Do we need the lib prefix for modules?
11635 need_lib_prefix=$need_lib_prefix
11637 # Do we need a version for libraries?
11638 need_version=$need_version
11640 # Whether dlopen is supported.
11641 dlopen_support=$enable_dlopen
11643 # Whether dlopen of programs is supported.
11644 dlopen_self=$enable_dlopen_self
11646 # Whether dlopen of statically linked programs is supported.
11647 dlopen_self_static=$enable_dlopen_self_static
11649 # Compiler flag to prevent dynamic linking.
11650 link_static_flag=$lt_lt_prog_compiler_static
11652 # Compiler flag to turn off builtin functions.
11653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11655 # Compiler flag to allow reflexive dlopens.
11656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11658 # Compiler flag to generate shared objects directly from archives.
11659 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11661 # Compiler flag to generate thread-safe objects.
11662 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11664 # Library versioning type.
11665 version_type=$version_type
11667 # Format of library name prefix.
11668 libname_spec=$lt_libname_spec
11670 # List of archive names. First name is the real one, the rest are links.
11671 # The last name is the one that the linker finds with -lNAME.
11672 library_names_spec=$lt_library_names_spec
11674 # The coded name of the library, if different from the real name.
11675 soname_spec=$lt_soname_spec
11677 # Commands used to build and install an old-style archive.
11679 old_archive_cmds=$lt_old_archive_cmds
11680 old_postinstall_cmds=$lt_old_postinstall_cmds
11681 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11683 # Create an old-style archive from a shared archive.
11684 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11686 # Create a temporary old-style archive to link instead of a shared archive.
11687 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11689 # Commands used to build and install a shared archive.
11690 archive_cmds=$lt_archive_cmds
11691 archive_expsym_cmds=$lt_archive_expsym_cmds
11692 postinstall_cmds=$lt_postinstall_cmds
11693 postuninstall_cmds=$lt_postuninstall_cmds
11695 # Commands used to build a loadable module (assumed same as above if empty)
11696 module_cmds=$lt_module_cmds
11697 module_expsym_cmds=$lt_module_expsym_cmds
11699 # Commands to strip libraries.
11700 old_striplib=$lt_old_striplib
11701 striplib=$lt_striplib
11703 # Dependencies to place before the objects being linked to create a
11705 predep_objects=$lt_predep_objects
11707 # Dependencies to place after the objects being linked to create a
11709 postdep_objects=$lt_postdep_objects
11711 # Dependencies to place before the objects being linked to create a
11713 predeps=$lt_predeps
11715 # Dependencies to place after the objects being linked to create a
11717 postdeps=$lt_postdeps
11719 # The library search path used internally by the compiler when linking
11720 # a shared library.
11721 compiler_lib_search_path=$lt_compiler_lib_search_path
11723 # Method to check whether dependent libraries are shared objects.
11724 deplibs_check_method=$lt_deplibs_check_method
11726 # Command to use when deplibs_check_method == file_magic.
11727 file_magic_cmd=$lt_file_magic_cmd
11729 # Flag that allows shared libraries with undefined symbols to be built.
11730 allow_undefined_flag=$lt_allow_undefined_flag
11732 # Flag that forces no undefined symbols.
11733 no_undefined_flag=$lt_no_undefined_flag
11735 # Commands used to finish a libtool library installation in a directory.
11736 finish_cmds=$lt_finish_cmds
11738 # Same as above, but a single script fragment to be evaled but not shown.
11739 finish_eval=$lt_finish_eval
11741 # Take the output of nm and produce a listing of raw symbols and C names.
11742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11744 # Transform the output of nm in a proper C declaration
11745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11747 # Transform the output of nm in a C name address pair
11748 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11750 # This is the shared library runtime path variable.
11751 runpath_var=$runpath_var
11753 # This is the shared library path variable.
11754 shlibpath_var=$shlibpath_var
11756 # Is shlibpath searched before the hard-coded library search path?
11757 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11759 # How to hardcode a shared library path into an executable.
11760 hardcode_action=$hardcode_action
11762 # Whether we should hardcode library paths into libraries.
11763 hardcode_into_libs=$hardcode_into_libs
11765 # Flag to hardcode \$libdir into a binary during linking.
11766 # This must work even if \$libdir does not exist.
11767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11769 # If ld is used when linking, flag to hardcode \$libdir into
11770 # a binary during linking. This must work even if \$libdir does
11772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11774 # Whether we need a single -rpath flag with a separated argument.
11775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11777 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11778 # resulting binary.
11779 hardcode_direct=$hardcode_direct
11781 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11782 # resulting binary.
11783 hardcode_minus_L=$hardcode_minus_L
11785 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11786 # the resulting binary.
11787 hardcode_shlibpath_var=$hardcode_shlibpath_var
11789 # Set to yes if building a shared library automatically hardcodes DIR into the library
11790 # and all subsequent libraries and executables linked against it.
11791 hardcode_automatic=$hardcode_automatic
11793 # Variables whose values should be saved in libtool wrapper scripts and
11794 # restored at relink time.
11795 variables_saved_for_relink="$variables_saved_for_relink"
11797 # Whether libtool must link a program against all its dependency libraries.
11798 link_all_deplibs=$link_all_deplibs
11800 # Compile-time system search path for libraries
11801 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11803 # Run-time system search path for libraries
11804 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11806 # Fix the shell variable \$srcfile for the compiler.
11807 fix_srcfile_path="$fix_srcfile_path"
11809 # Set to yes if exported symbols are required.
11810 always_export_symbols=$always_export_symbols
11812 # The commands to list exported symbols.
11813 export_symbols_cmds=$lt_export_symbols_cmds
11815 # The commands to extract the exported symbol list from a shared archive.
11816 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11818 # Symbols that should not be listed in the preloaded symbols.
11819 exclude_expsyms=$lt_exclude_expsyms
11821 # Symbols that must always be exported.
11822 include_expsyms=$lt_include_expsyms
11824 # ### END LIBTOOL CONFIG
11831 cat <<\EOF >> "$cfgfile"
11833 # AIX sometimes has problems with the GCC collect2 program. For some
11834 # reason, if we set the COLLECT_NAMES environment variable, the problems
11835 # vanish in a puff of smoke.
11836 if test "X${COLLECT_NAMES+set}" != Xset; then
11838 export COLLECT_NAMES
11844 # We use sed instead of cat because bash on DJGPP gets confused if
11845 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11846 # text mode, it properly converts lines to CR/LF. This bash problem
11847 # is reportedly fixed, but why not run on old versions too?
11848 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11850 mv -f "$cfgfile" "$ofile" || \
11851 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11855 # If there is no Makefile yet, we rely on a make rule to execute
11856 # `config.status --recheck' to rerun these tests and create the
11857 # libtool script then.
11858 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11859 if test -f "$ltmain_in"; then
11860 test -f Makefile && make "$ltmain"
11866 ac_cpp='$CPP $CPPFLAGS'
11867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11874 # Check whether --with-tags was given.
11875 if test "${with_tags+set}" = set; then
11876 withval=$with_tags; tagnames="$withval"
11880 if test -f "$ltmain" && test -n "$tagnames"; then
11881 if test ! -f "${ofile}"; then
11882 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11883 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11886 if test -z "$LTCC"; then
11887 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11888 if test -z "$LTCC"; then
11889 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11890 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11892 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11893 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11896 if test -z "$LTCFLAGS"; then
11897 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11900 # Extract list of available tagged configurations in $ofile.
11901 # Note that this assumes the entire list is on one line.
11902 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11904 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11905 for tagname in $tagnames; do
11907 # Check whether tagname contains only valid characters
11908 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11910 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11911 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11912 { (exit 1); exit 1; }; }
11916 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11918 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11919 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11920 { (exit 1); exit 1; }; }
11923 # Update the list of available tags.
11924 if test -n "$tagname"; then
11925 echo appending configuration tag \"$tagname\" to $ofile
11929 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11930 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11931 (test "X$CXX" != "Xg++"))) ; then
11933 ac_cpp='$CXXCPP $CPPFLAGS'
11934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11941 archive_cmds_need_lc_CXX=no
11942 allow_undefined_flag_CXX=
11943 always_export_symbols_CXX=no
11944 archive_expsym_cmds_CXX=
11945 export_dynamic_flag_spec_CXX=
11946 hardcode_direct_CXX=no
11947 hardcode_libdir_flag_spec_CXX=
11948 hardcode_libdir_flag_spec_ld_CXX=
11949 hardcode_libdir_separator_CXX=
11950 hardcode_minus_L_CXX=no
11951 hardcode_shlibpath_var_CXX=unsupported
11952 hardcode_automatic_CXX=no
11954 module_expsym_cmds_CXX=
11955 link_all_deplibs_CXX=unknown
11956 old_archive_cmds_CXX=$old_archive_cmds
11957 no_undefined_flag_CXX=
11958 whole_archive_flag_spec_CXX=
11959 enable_shared_with_static_runtimes_CXX=no
11961 # Dependencies to place before and after the object being linked:
11962 predep_objects_CXX=
11963 postdep_objects_CXX=
11966 compiler_lib_search_path_CXX=
11968 # Source file extension for C++ test sources.
11971 # Object file extension for compiled C++ test sources.
11975 # Code to be used in simple compile tests
11976 lt_simple_compile_test_code="int some_variable = 0;\n"
11978 # Code to be used in simple link tests
11979 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11983 # If no C compiler was specified, use CC.
11986 # If no C compiler flags were specified, use CFLAGS.
11987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11989 # Allow CC to be a program name with arguments.
11993 # save warnings/boilerplate of simple test code
11994 ac_outfile=conftest.$ac_objext
11995 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11997 _lt_compiler_boilerplate=`cat conftest.err`
12000 ac_outfile=conftest.$ac_objext
12001 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12003 _lt_linker_boilerplate=`cat conftest.err`
12007 # Allow CC to be a program name with arguments.
12012 lt_save_with_gnu_ld=$with_gnu_ld
12013 lt_save_path_LD=$lt_cv_path_LD
12014 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12015 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12017 $as_unset lt_cv_prog_gnu_ld
12019 if test -n "${lt_cv_path_LDCXX+set}"; then
12020 lt_cv_path_LD=$lt_cv_path_LDCXX
12022 $as_unset lt_cv_path_LD
12024 test -z "${LDCXX+set}" || LD=$LDCXX
12028 for cc_temp in $compiler""; do
12030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12039 # We don't want -fno-exception wen compiling C++ code, so set the
12040 # no_builtin_flag separately
12041 if test "$GXX" = yes; then
12042 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12044 lt_prog_compiler_no_builtin_flag_CXX=
12047 if test "$GXX" = yes; then
12048 # Set up default GNU C++ configuration
12051 # Check whether --with-gnu-ld was given.
12052 if test "${with_gnu_ld+set}" = set; then
12053 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12059 if test "$GCC" = yes; then
12060 # Check if gcc -print-prog-name=ld gives a path.
12061 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12062 $as_echo_n "checking for ld used by $CC... " >&6; }
12065 # gcc leaves a trailing carriage return which upsets mingw
12066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12071 # Accept absolute paths.
12073 re_direlt='/[^/][^/]*/\.\./'
12074 # Canonicalize the pathname of ld
12075 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12076 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12077 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12079 test -z "$LD" && LD="$ac_prog"
12082 # If it fails, then pretend we aren't using GCC.
12086 # If it is relative, then search for the first ld in PATH.
12087 with_gnu_ld=unknown
12090 elif test "$with_gnu_ld" = yes; then
12091 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12092 $as_echo_n "checking for GNU ld... " >&6; }
12094 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12095 $as_echo_n "checking for non-GNU ld... " >&6; }
12097 if test "${lt_cv_path_LD+set}" = set; then
12098 $as_echo_n "(cached) " >&6
12100 if test -z "$LD"; then
12101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12102 for ac_dir in $PATH; do
12104 test -z "$ac_dir" && ac_dir=.
12105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12106 lt_cv_path_LD="$ac_dir/$ac_prog"
12107 # Check to see if the program is GNU ld. I'd rather use --version,
12108 # but apparently some variants of GNU ld only accept -v.
12109 # Break only if it was the GNU/non-GNU ld that we prefer.
12110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12111 *GNU* | *'with BFD'*)
12112 test "$with_gnu_ld" != no && break
12115 test "$with_gnu_ld" != yes && break
12122 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12126 LD="$lt_cv_path_LD"
12127 if test -n "$LD"; then
12128 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12129 $as_echo "$LD" >&6; }
12131 { $as_echo "$as_me:$LINENO: result: no" >&5
12132 $as_echo "no" >&6; }
12134 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12135 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12136 { (exit 1); exit 1; }; }
12137 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12138 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12139 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12140 $as_echo_n "(cached) " >&6
12142 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12143 case `$LD -v 2>&1 </dev/null` in
12144 *GNU* | *'with BFD'*)
12145 lt_cv_prog_gnu_ld=yes
12148 lt_cv_prog_gnu_ld=no
12152 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12153 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12154 with_gnu_ld=$lt_cv_prog_gnu_ld
12158 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12159 # archiving commands below assume that GNU ld is being used.
12160 if test "$with_gnu_ld" = yes; then
12161 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12162 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'
12164 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12165 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12167 # If archive_cmds runs LD, not CC, wlarc should be empty
12168 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12169 # investigate it a little bit more. (MM)
12172 # ancient GNU ld didn't support --whole-archive et. al.
12173 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12174 grep 'no-whole-archive' > /dev/null; then
12175 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12177 whole_archive_flag_spec_CXX=
12183 # A generic and very simple default shared library creation
12184 # command for GNU C++ for the case where it uses the native
12185 # linker, instead of GNU ld. If possible, this setting should
12186 # overridden to take advantage of the native linker features on
12187 # the platform it is being used on.
12188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12191 # Commands to make compiler produce verbose output that lists
12192 # what "hidden" libraries, object files and flags are used when
12193 # linking a shared library.
12194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12202 # PORTME: fill in a description of your system's C++ link characteristics
12203 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12204 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12208 # FIXME: insert proper C++ library support
12212 if test "$host_cpu" = ia64; then
12213 # On IA64, the linker does run time linking by default, so we don't
12214 # have to do anything special.
12215 aix_use_runtimelinking=no
12216 exp_sym_flag='-Bexport'
12219 aix_use_runtimelinking=no
12221 # Test if we are trying to use run time linking or normal
12222 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12223 # need to do runtime linking.
12224 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12225 for ld_flag in $LDFLAGS; do
12228 aix_use_runtimelinking=yes
12236 exp_sym_flag='-bexport'
12237 no_entry_flag='-bnoentry'
12240 # When large executables or shared objects are built, AIX ld can
12241 # have problems creating the table of contents. If linking a library
12242 # or program results in "error TOC overflow" add -mminimal-toc to
12243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12246 archive_cmds_CXX=''
12247 hardcode_direct_CXX=yes
12248 hardcode_libdir_separator_CXX=':'
12249 link_all_deplibs_CXX=yes
12251 if test "$GXX" = yes; then
12252 case $host_os in aix4.[012]|aix4.[012].*)
12253 # We only want to do this on AIX 4.2 and lower, the check
12254 # below for broken collect2 doesn't work under 4.3+
12255 collect2name=`${CC} -print-prog-name=collect2`
12256 if test -f "$collect2name" && \
12257 strings "$collect2name" | grep resolve_lib_name >/dev/null
12259 # We have reworked collect2
12260 hardcode_direct_CXX=yes
12262 # We have old collect2
12263 hardcode_direct_CXX=unsupported
12264 # It fails to find uninstalled libraries when the uninstalled
12265 # path is not listed in the libpath. Setting hardcode_minus_L
12266 # to unsupported forces relinking
12267 hardcode_minus_L_CXX=yes
12268 hardcode_libdir_flag_spec_CXX='-L$libdir'
12269 hardcode_libdir_separator_CXX=
12273 shared_flag='-shared'
12274 if test "$aix_use_runtimelinking" = yes; then
12275 shared_flag="$shared_flag "'${wl}-G'
12279 if test "$host_cpu" = ia64; then
12280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12281 # chokes on -Wl,-G. The following line is correct:
12284 if test "$aix_use_runtimelinking" = yes; then
12285 shared_flag='${wl}-G'
12287 shared_flag='${wl}-bM:SRE'
12292 # It seems that -bexpall does not export symbols beginning with
12293 # underscore (_), so it is better to generate a list of symbols to export.
12294 always_export_symbols_CXX=yes
12295 if test "$aix_use_runtimelinking" = yes; then
12296 # Warning - without using the other runtime loading flags (-brtl),
12297 # -berok will link without error, but may produce a broken library.
12298 allow_undefined_flag_CXX='-berok'
12299 # Determine the default libpath from the value encoded in an empty executable.
12300 cat >conftest.$ac_ext <<_ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12322 $as_echo "$ac_try_echo") >&5
12323 (eval "$ac_link") 2>conftest.er1
12325 grep -v '^ *+' conftest.er1 >conftest.err
12327 cat conftest.err >&5
12328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } && {
12330 test -z "$ac_cxx_werror_flag" ||
12331 test ! -s conftest.err
12332 } && test -s conftest$ac_exeext && {
12333 test "$cross_compiling" = yes ||
12334 $as_test_x conftest$ac_exeext
12337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12339 # Check for a 64-bit object if we didn't find anything.
12340 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12343 $as_echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12349 rm -rf conftest.dSYM
12350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12351 conftest$ac_exeext conftest.$ac_ext
12352 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12354 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12356 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"
12358 if test "$host_cpu" = ia64; then
12359 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12360 allow_undefined_flag_CXX="-z nodefs"
12361 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"
12363 # Determine the default libpath from the value encoded in an empty executable.
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (ac_try="$ac_link"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12386 $as_echo "$ac_try_echo") >&5
12387 (eval "$ac_link") 2>conftest.er1
12389 grep -v '^ *+' conftest.er1 >conftest.err
12391 cat conftest.err >&5
12392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } && {
12394 test -z "$ac_cxx_werror_flag" ||
12395 test ! -s conftest.err
12396 } && test -s conftest$ac_exeext && {
12397 test "$cross_compiling" = yes ||
12398 $as_test_x conftest$ac_exeext
12401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12403 # Check for a 64-bit object if we didn't find anything.
12404 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12407 $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12413 rm -rf conftest.dSYM
12414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12415 conftest$ac_exeext conftest.$ac_ext
12416 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12418 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12419 # Warning - without using the other run time loading flags,
12420 # -berok will link without error, but may produce a broken library.
12421 no_undefined_flag_CXX=' ${wl}-bernotok'
12422 allow_undefined_flag_CXX=' ${wl}-berok'
12423 # Exported symbols can be pulled into shared objects from archives
12424 whole_archive_flag_spec_CXX='$convenience'
12425 archive_cmds_need_lc_CXX=yes
12426 # This is similar to how AIX traditionally builds its shared libraries.
12427 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'
12433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12434 allow_undefined_flag_CXX=unsupported
12435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12436 # support --undefined. This deserves some investigation. FIXME
12437 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12444 case $cc_basename in
12446 # FIXME: insert proper C++ library support
12452 cygwin* | mingw* | pw32*)
12453 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12454 # as there is no search path for DLLs.
12455 hardcode_libdir_flag_spec_CXX='-L$libdir'
12456 allow_undefined_flag_CXX=unsupported
12457 always_export_symbols_CXX=no
12458 enable_shared_with_static_runtimes_CXX=yes
12460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12461 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'
12462 # If the export-symbols file already is a .def file (1st line
12463 # is EXPORTS), use it as is; otherwise, prepend...
12464 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12465 cp $export_symbols $output_objdir/$soname.def;
12467 echo EXPORTS > $output_objdir/$soname.def;
12468 cat $export_symbols >> $output_objdir/$soname.def;
12470 $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'
12475 darwin* | rhapsody*)
12477 rhapsody* | darwin1.[012])
12478 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12481 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12482 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12484 case ${MACOSX_DEPLOYMENT_TARGET} in
12486 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12489 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12495 archive_cmds_need_lc_CXX=no
12496 hardcode_direct_CXX=no
12497 hardcode_automatic_CXX=yes
12498 hardcode_shlibpath_var_CXX=unsupported
12499 whole_archive_flag_spec_CXX=''
12500 link_all_deplibs_CXX=yes
12502 if test "$GXX" = yes ; then
12503 lt_int_apple_cc_single_mod=no
12504 output_verbose_link_cmd='echo'
12505 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12506 lt_int_apple_cc_single_mod=yes
12508 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12509 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12511 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'
12513 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12514 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12515 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12516 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}'
12518 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}'
12520 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}'
12522 case $cc_basename in
12524 output_verbose_link_cmd='echo'
12525 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12526 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12527 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12528 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12529 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}'
12539 case $cc_basename in
12541 # FIXME: insert proper C++ library support
12545 # Green Hills C++ Compiler
12546 # FIXME: insert proper C++ library support
12550 # FIXME: insert proper C++ library support
12556 # C++ shared libraries reported to be fairly broken before switch to ELF
12560 archive_cmds_need_lc_CXX=no
12562 freebsd* | kfreebsd*-gnu | dragonfly*)
12563 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12570 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12571 hardcode_libdir_separator_CXX=:
12572 export_dynamic_flag_spec_CXX='${wl}-E'
12573 hardcode_direct_CXX=yes
12574 hardcode_minus_L_CXX=yes # Not in the search PATH,
12575 # but as the default
12576 # location of the library.
12578 case $cc_basename in
12580 # FIXME: insert proper C++ library support
12584 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'
12585 # Commands to make compiler produce verbose output that lists
12586 # what "hidden" libraries, object files and flags are used when
12587 # linking a shared library.
12589 # There doesn't appear to be a way to prevent this compiler from
12590 # explicitly linking system object files so we need to strip them
12591 # from the output so that they don't get included in the library
12593 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'
12596 if test "$GXX" = yes; then
12597 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'
12599 # FIXME: insert proper C++ library support
12606 if test $with_gnu_ld = no; then
12607 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12608 hardcode_libdir_separator_CXX=:
12612 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12615 export_dynamic_flag_spec_CXX='${wl}-E'
12621 hardcode_direct_CXX=no
12622 hardcode_shlibpath_var_CXX=no
12625 hardcode_direct_CXX=yes
12626 hardcode_minus_L_CXX=yes # Not in the search PATH,
12627 # but as the default
12628 # location of the library.
12632 case $cc_basename in
12634 # FIXME: insert proper C++ library support
12640 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12649 # Commands to make compiler produce verbose output that lists
12650 # what "hidden" libraries, object files and flags are used when
12651 # linking a shared library.
12653 # There doesn't appear to be a way to prevent this compiler from
12654 # explicitly linking system object files so we need to strip them
12655 # from the output so that they don't get included in the library
12657 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'
12660 if test "$GXX" = yes; then
12661 if test $with_gnu_ld = no; then
12664 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12670 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'
12675 # FIXME: insert proper C++ library support
12682 hardcode_direct_CXX=no
12683 hardcode_shlibpath_var_CXX=no
12684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12685 export_dynamic_flag_spec_CXX='${wl}-E'
12686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12687 # Instead, shared libraries are loaded at an image base (0x10000000 by
12688 # default) and relocated if they conflict, which is a slow very memory
12689 # consuming and fragmenting process. To avoid this, we pick a random,
12690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12692 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'
12693 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'
12696 case $cc_basename in
12699 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'
12701 # Archives containing C++ object files must be created using
12702 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12703 # necessary to make sure instantiated templates are included
12705 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12708 if test "$GXX" = yes; then
12709 if test "$with_gnu_ld" = no; then
12710 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'
12712 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'
12715 link_all_deplibs_CXX=yes
12718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12719 hardcode_libdir_separator_CXX=:
12722 case $cc_basename in
12724 # Kuck and Associates, Inc. (KAI) C++ Compiler
12726 # KCC will only create a shared library if the output file
12727 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12728 # to its proper name (with version) after linking.
12729 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'
12730 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'
12731 # Commands to make compiler produce verbose output that lists
12732 # what "hidden" libraries, object files and flags are used when
12733 # linking a shared library.
12735 # There doesn't appear to be a way to prevent this compiler from
12736 # explicitly linking system object files so we need to strip them
12737 # from the output so that they don't get included in the library
12739 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'
12741 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12744 # Archives containing C++ object files must be created using
12745 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12746 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12751 # version 8.0 and above of icpc choke on multiply defined symbols
12752 # if we add $predep_objects and $postdep_objects, however 7.1 and
12753 # earlier do not add the objects themselves.
12754 case `$CC -V 2>&1` in
12756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12757 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'
12759 *) # Version 8.0 or newer
12762 ia64*) tmp_idyn=' -i_dynamic';;
12764 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12765 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'
12768 archive_cmds_need_lc_CXX=no
12769 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12770 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12771 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12774 # Portland Group C++ compiler
12775 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12776 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'
12778 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12779 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12780 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'
12784 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12785 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'
12787 runpath_var=LD_RUN_PATH
12788 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12789 hardcode_libdir_separator_CXX=:
12791 # Commands to make compiler produce verbose output that lists
12792 # what "hidden" libraries, object files and flags are used when
12793 # linking a shared library.
12795 # There doesn't appear to be a way to prevent this compiler from
12796 # explicitly linking system object files so we need to strip them
12797 # from the output so that they don't get included in the library
12799 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'
12804 # FIXME: insert proper C++ library support
12808 # FIXME: insert proper C++ library support
12812 case $cc_basename in
12814 # FIXME: insert proper C++ library support
12818 # FIXME: insert proper C++ library support
12824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12825 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12827 hardcode_libdir_flag_spec_CXX='-R$libdir'
12828 hardcode_direct_CXX=yes
12829 hardcode_shlibpath_var_CXX=no
12831 # Workaround some broken pre-1.5 toolchains
12832 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12835 # C++ shared libraries are fairly broken
12839 hardcode_direct_CXX=yes
12840 hardcode_shlibpath_var_CXX=no
12841 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12844 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12845 export_dynamic_flag_spec_CXX='${wl}-E'
12846 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12848 output_verbose_link_cmd='echo'
12851 case $cc_basename in
12853 # Kuck and Associates, Inc. (KAI) C++ Compiler
12855 # KCC will only create a shared library if the output file
12856 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12857 # to its proper name (with version) after linking.
12858 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'
12860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12861 hardcode_libdir_separator_CXX=:
12863 # Archives containing C++ object files must be created using
12864 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12865 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12869 # Rational C++ 2.4.1
12870 # FIXME: insert proper C++ library support
12874 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12875 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'
12877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12878 hardcode_libdir_separator_CXX=:
12880 # Commands to make compiler produce verbose output that lists
12881 # what "hidden" libraries, object files and flags are used when
12882 # linking a shared library.
12884 # There doesn't appear to be a way to prevent this compiler from
12885 # explicitly linking system object files so we need to strip them
12886 # from the output so that they don't get included in the library
12888 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'
12891 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12892 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12893 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'
12895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12896 hardcode_libdir_separator_CXX=:
12898 # Commands to make compiler produce verbose output that lists
12899 # what "hidden" libraries, object files and flags are used when
12900 # linking a shared library.
12901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12904 # FIXME: insert proper C++ library support
12911 case $cc_basename in
12913 # Kuck and Associates, Inc. (KAI) C++ Compiler
12915 # KCC will only create a shared library if the output file
12916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12917 # to its proper name (with version) after linking.
12918 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'
12920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12921 hardcode_libdir_separator_CXX=:
12923 # Archives containing C++ object files must be created using
12924 # the KAI C++ compiler.
12925 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12928 # Rational C++ 2.4.1
12929 # FIXME: insert proper C++ library support
12933 allow_undefined_flag_CXX=' -expect_unresolved \*'
12934 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'
12935 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12936 echo "-hidden">> $lib.exp~
12937 $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~
12940 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12941 hardcode_libdir_separator_CXX=:
12943 # Commands to make compiler produce verbose output that lists
12944 # what "hidden" libraries, object files and flags are used when
12945 # linking a shared library.
12947 # There doesn't appear to be a way to prevent this compiler from
12948 # explicitly linking system object files so we need to strip them
12949 # from the output so that they don't get included in the library
12951 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'
12954 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12956 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'
12958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12959 hardcode_libdir_separator_CXX=:
12961 # Commands to make compiler produce verbose output that lists
12962 # what "hidden" libraries, object files and flags are used when
12963 # linking a shared library.
12964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12967 # FIXME: insert proper C++ library support
12974 # FIXME: insert proper C++ library support
12978 case $cc_basename in
12981 # FIXME: insert proper C++ library support
12986 # FIXME: insert proper C++ library support
12990 # FIXME: insert proper C++ library support
12996 case $cc_basename in
12998 # Sun C++ 4.2, 5.x and Centerline C++
12999 archive_cmds_need_lc_CXX=yes
13000 no_undefined_flag_CXX=' -zdefs'
13001 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13002 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003 $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'
13005 hardcode_libdir_flag_spec_CXX='-R$libdir'
13006 hardcode_shlibpath_var_CXX=no
13008 solaris2.[0-5] | solaris2.[0-5].*) ;;
13010 # The C++ compiler is used as linker so we must use $wl
13011 # flag to pass the commands to the underlying system
13012 # linker. We must also pass each convience library through
13013 # to the system linker between allextract/defaultextract.
13014 # The C++ compiler will combine linker options so we
13015 # cannot just pass the convience library names through
13017 # Supported since Solaris 2.6 (maybe 2.5.1?)
13018 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13021 link_all_deplibs_CXX=yes
13023 output_verbose_link_cmd='echo'
13025 # Archives containing C++ object files must be created using
13026 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13027 # necessary to make sure instantiated templates are included
13029 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13032 # Green Hills C++ Compiler
13033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13035 # The C++ compiler must be used to create the archive.
13036 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13039 # GNU C++ compiler with Solaris linker
13040 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13041 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13042 if $CC --version | grep -v '^2\.7' > /dev/null; then
13043 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13044 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13045 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13047 # Commands to make compiler produce verbose output that lists
13048 # what "hidden" libraries, object files and flags are used when
13049 # linking a shared library.
13050 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13052 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13054 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13055 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13056 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13058 # Commands to make compiler produce verbose output that lists
13059 # what "hidden" libraries, object files and flags are used when
13060 # linking a shared library.
13061 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13064 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13070 no_undefined_flag_CXX='${wl}-z,text'
13071 archive_cmds_need_lc_CXX=no
13072 hardcode_shlibpath_var_CXX=no
13073 runpath_var='LD_RUN_PATH'
13075 case $cc_basename in
13077 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13081 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13082 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13086 sysv5* | sco3.2v5* | sco5v6*)
13087 # Note: We can NOT use -z defs as we might desire, because we do not
13088 # link with -lc, and that would cause any symbols used from libc to
13089 # always be unresolved, which means just about no library would
13090 # ever link correctly. If we're not using GNU ld we use -z text
13091 # though, which does catch some bad symbols but isn't as heavy-handed
13093 # For security reasons, it is highly recommended that you always
13094 # use absolute paths for naming shared libraries, and exclude the
13095 # DT_RUNPATH tag from executables and libraries. But doing so
13096 # requires that you compile everything twice, which is a pain.
13097 # So that behaviour is only enabled if SCOABSPATH is set to a
13098 # non-empty value in the environment. Most likely only useful for
13099 # creating official distributions of packages.
13100 # This is a hack until libtool officially supports absolute path
13101 # names for shared libraries.
13102 no_undefined_flag_CXX='${wl}-z,text'
13103 allow_undefined_flag_CXX='${wl}-z,nodefs'
13104 archive_cmds_need_lc_CXX=no
13105 hardcode_shlibpath_var_CXX=no
13106 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13107 hardcode_libdir_separator_CXX=':'
13108 link_all_deplibs_CXX=yes
13109 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13110 runpath_var='LD_RUN_PATH'
13112 case $cc_basename in
13114 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13115 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13118 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13119 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13124 case $cc_basename in
13126 # NonStop-UX NCC 3.20
13127 # FIXME: insert proper C++ library support
13131 # FIXME: insert proper C++ library support
13137 # FIXME: insert proper C++ library support
13141 # FIXME: insert proper C++ library support
13145 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13146 $as_echo "$ld_shlibs_CXX" >&6; }
13147 test "$ld_shlibs_CXX" = no && can_build_shared=no
13153 cat > conftest.$ac_ext <<EOF
13157 Foo (void) { a = 0; }
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164 (eval $ac_compile) 2>&5
13166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; then
13168 # Parse the compiler output and extract the necessary
13169 # objects, libraries and library flags.
13171 # Sentinel used to keep track of whether or not we are before
13172 # the conftest object file.
13173 pre_test_object_deps_done=no
13175 # The `*' in the case matches for architectures that use `case' in
13176 # $output_verbose_cmd can trigger glob expansion during the loop
13177 # eval without this substitution.
13178 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13180 for p in `eval $output_verbose_link_cmd`; do
13184 # Some compilers place space between "-{L,R}" and the path.
13185 # Remove the space.
13186 if test $p = "-L" \
13187 || test $p = "-R"; then
13194 if test "$pre_test_object_deps_done" = no; then
13197 # Internal compiler library paths should come after those
13198 # provided the user. The postdeps already come after the
13199 # user supplied libs so there is no need to process them.
13200 if test -z "$compiler_lib_search_path_CXX"; then
13201 compiler_lib_search_path_CXX="${prev}${p}"
13203 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13206 # The "-l" case would never come before the object being
13207 # linked, so don't bother handling this case.
13210 if test -z "$postdeps_CXX"; then
13211 postdeps_CXX="${prev}${p}"
13213 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13219 # This assumes that the test object file only shows up
13220 # once in the compiler output.
13221 if test "$p" = "conftest.$objext"; then
13222 pre_test_object_deps_done=yes
13226 if test "$pre_test_object_deps_done" = no; then
13227 if test -z "$predep_objects_CXX"; then
13228 predep_objects_CXX="$p"
13230 predep_objects_CXX="$predep_objects_CXX $p"
13233 if test -z "$postdep_objects_CXX"; then
13234 postdep_objects_CXX="$p"
13236 postdep_objects_CXX="$postdep_objects_CXX $p"
13241 *) ;; # Ignore the rest.
13249 echo "libtool.m4: error: problem compiling CXX test program"
13252 $rm -f confest.$objext
13254 # PORTME: override above test on systems where it is broken
13257 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13258 # hack all around it, let's just trust "g++" to DTRT.
13259 predep_objects_CXX=
13260 postdep_objects_CXX=
13265 case $cc_basename in
13267 # Adding this requires a known-good setup of shared libraries for
13268 # Sun compiler versions before 5.6, else PIC objects from an old
13269 # archive will be linked into the output, leading to subtle bugs.
13270 postdeps_CXX='-lCstd -lCrun'
13277 case " $postdeps_CXX " in
13278 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13281 lt_prog_compiler_wl_CXX=
13282 lt_prog_compiler_pic_CXX=
13283 lt_prog_compiler_static_CXX=
13285 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13286 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13288 # C++ specific cases for pic, static, wl, etc.
13289 if test "$GXX" = yes; then
13290 lt_prog_compiler_wl_CXX='-Wl,'
13291 lt_prog_compiler_static_CXX='-static'
13295 # All AIX code is PIC.
13296 if test "$host_cpu" = ia64; then
13297 # AIX 5 now supports IA64 processor
13298 lt_prog_compiler_static_CXX='-Bstatic'
13302 # FIXME: we need at least 68020 code to build shared libraries, but
13303 # adding the `-m68020' flag to GCC prevents building anything better,
13305 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13307 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13308 # PIC is the default for these OSes.
13310 mingw* | os2* | pw32*)
13311 # This hack is so that the source file can tell whether it is being
13312 # built for inclusion in a dll (and should export symbols for example).
13313 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13315 darwin* | rhapsody*)
13316 # PIC is the default on this platform
13317 # Common symbols not allowed in MH_DYLIB files
13318 lt_prog_compiler_pic_CXX='-fno-common'
13321 # DJGPP does not support shared libraries at all
13322 lt_prog_compiler_pic_CXX=
13325 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13326 # Instead, we relocate shared libraries at runtime.
13329 if test -d /usr/nec; then
13330 lt_prog_compiler_pic_CXX=-Kconform_pic
13334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13335 # not for PA HP-UX.
13340 lt_prog_compiler_pic_CXX='-fPIC'
13345 lt_prog_compiler_pic_CXX='-fPIC'
13351 # All AIX code is PIC.
13352 if test "$host_cpu" = ia64; then
13353 # AIX 5 now supports IA64 processor
13354 lt_prog_compiler_static_CXX='-Bstatic'
13356 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13360 case $cc_basename in
13362 # Green Hills C++ Compiler
13363 # _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"
13368 # PIC is the default on this platform
13369 # Common symbols not allowed in MH_DYLIB files
13370 case $cc_basename in
13372 lt_prog_compiler_pic_CXX='-qnocommon'
13373 lt_prog_compiler_wl_CXX='-Wl,'
13378 case $cc_basename in
13380 lt_prog_compiler_pic_CXX='-KPIC'
13383 # Green Hills C++ Compiler
13384 lt_prog_compiler_pic_CXX='-pic'
13390 freebsd* | kfreebsd*-gnu | dragonfly*)
13391 # FreeBSD uses GNU C++
13393 hpux9* | hpux10* | hpux11*)
13394 case $cc_basename in
13396 lt_prog_compiler_wl_CXX='-Wl,'
13397 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13398 if test "$host_cpu" != ia64; then
13399 lt_prog_compiler_pic_CXX='+Z'
13403 lt_prog_compiler_wl_CXX='-Wl,'
13404 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13410 lt_prog_compiler_pic_CXX='+Z'
13419 # This is c89, which is MS Visual C++ (no shared libs)
13420 # Anyone wants to do a port?
13422 irix5* | irix6* | nonstopux*)
13423 case $cc_basename in
13425 lt_prog_compiler_wl_CXX='-Wl,'
13426 lt_prog_compiler_static_CXX='-non_shared'
13427 # CC pic flag -KPIC is the default.
13434 case $cc_basename in
13437 lt_prog_compiler_wl_CXX='--backend -Wl,'
13438 lt_prog_compiler_pic_CXX='-fPIC'
13442 lt_prog_compiler_wl_CXX='-Wl,'
13443 lt_prog_compiler_pic_CXX='-KPIC'
13444 lt_prog_compiler_static_CXX='-static'
13447 # Portland Group C++ compiler.
13448 lt_prog_compiler_wl_CXX='-Wl,'
13449 lt_prog_compiler_pic_CXX='-fpic'
13450 lt_prog_compiler_static_CXX='-Bstatic'
13454 # Make sure the PIC flag is empty. It appears that all Alpha
13455 # Linux and Compaq Tru64 Unix objects are PIC.
13456 lt_prog_compiler_pic_CXX=
13457 lt_prog_compiler_static_CXX='-non_shared'
13468 case $cc_basename in
13470 lt_prog_compiler_pic_CXX='-W c,exportall'
13478 osf3* | osf4* | osf5*)
13479 case $cc_basename in
13481 lt_prog_compiler_wl_CXX='--backend -Wl,'
13484 # Rational C++ 2.4.1
13485 lt_prog_compiler_pic_CXX='-pic'
13488 # Digital/Compaq C++
13489 lt_prog_compiler_wl_CXX='-Wl,'
13490 # Make sure the PIC flag is empty. It appears that all Alpha
13491 # Linux and Compaq Tru64 Unix objects are PIC.
13492 lt_prog_compiler_pic_CXX=
13493 lt_prog_compiler_static_CXX='-non_shared'
13502 case $cc_basename in
13504 # Sun C++ 4.2, 5.x and Centerline C++
13505 lt_prog_compiler_pic_CXX='-KPIC'
13506 lt_prog_compiler_static_CXX='-Bstatic'
13507 lt_prog_compiler_wl_CXX='-Qoption ld '
13510 # Green Hills C++ Compiler
13511 lt_prog_compiler_pic_CXX='-PIC'
13518 case $cc_basename in
13521 lt_prog_compiler_pic_CXX='-pic'
13522 lt_prog_compiler_static_CXX='-Bstatic'
13526 lt_prog_compiler_pic_CXX='-pic'
13533 case $cc_basename in
13535 # NonStop-UX NCC 3.20
13536 lt_prog_compiler_pic_CXX='-KPIC'
13542 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13543 case $cc_basename in
13545 lt_prog_compiler_wl_CXX='-Wl,'
13546 lt_prog_compiler_pic_CXX='-KPIC'
13547 lt_prog_compiler_static_CXX='-Bstatic'
13554 lt_prog_compiler_can_build_shared_CXX=no
13559 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13560 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13563 # Check to make sure the PIC flag actually works.
13565 if test -n "$lt_prog_compiler_pic_CXX"; then
13567 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13569 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13570 $as_echo_n "(cached) " >&6
13572 lt_prog_compiler_pic_works_CXX=no
13573 ac_outfile=conftest.$ac_objext
13574 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13575 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13576 # Insert the option either (1) after the last *FLAGS variable, or
13577 # (2) before a word containing "conftest.", or (3) at the end.
13578 # Note that $ac_compile itself does not contain backslashes and begins
13579 # with a dollar sign (not a hyphen), so the echo should work correctly.
13580 # The option is referenced via a variable to avoid confusing sed.
13581 lt_compile=`echo "$ac_compile" | $SED \
13582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13584 -e 's:$: $lt_compiler_flag:'`
13585 (eval echo "\"\$as_me:13585: $lt_compile\"" >&5)
13586 (eval "$lt_compile" 2>conftest.err)
13588 cat conftest.err >&5
13589 echo "$as_me:13589: \$? = $ac_status" >&5
13590 if (exit $ac_status) && test -s "$ac_outfile"; then
13591 # The compiler can only warn and ignore the option if not recognized
13592 # So say no if there are warnings other than the usual output.
13593 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13596 lt_prog_compiler_pic_works_CXX=yes
13602 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13603 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
13605 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13606 case $lt_prog_compiler_pic_CXX in
13608 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13611 lt_prog_compiler_pic_CXX=
13612 lt_prog_compiler_can_build_shared_CXX=no
13617 # For platforms which do not support PIC, -DPIC is meaningless:
13619 lt_prog_compiler_pic_CXX=
13622 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13627 # Check to make sure the static flag actually works.
13629 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13630 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13631 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13632 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13633 $as_echo_n "(cached) " >&6
13635 lt_prog_compiler_static_works_CXX=no
13636 save_LDFLAGS="$LDFLAGS"
13637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13638 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13640 # The linker can only warn and ignore the option if not recognized
13641 # So say no if there are warnings
13642 if test -s conftest.err; then
13643 # Append any errors to the config.log.
13644 cat conftest.err 1>&5
13645 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13647 if diff conftest.exp conftest.er2 >/dev/null; then
13648 lt_prog_compiler_static_works_CXX=yes
13651 lt_prog_compiler_static_works_CXX=yes
13655 LDFLAGS="$save_LDFLAGS"
13658 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13659 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
13661 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13664 lt_prog_compiler_static_CXX=
13668 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13669 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13670 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13671 $as_echo_n "(cached) " >&6
13673 lt_cv_prog_compiler_c_o_CXX=no
13674 $rm -r conftest 2>/dev/null
13678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13680 lt_compiler_flag="-o out/conftest2.$ac_objext"
13681 # Insert the option either (1) after the last *FLAGS variable, or
13682 # (2) before a word containing "conftest.", or (3) at the end.
13683 # Note that $ac_compile itself does not contain backslashes and begins
13684 # with a dollar sign (not a hyphen), so the echo should work correctly.
13685 lt_compile=`echo "$ac_compile" | $SED \
13686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13688 -e 's:$: $lt_compiler_flag:'`
13689 (eval echo "\"\$as_me:13689: $lt_compile\"" >&5)
13690 (eval "$lt_compile" 2>out/conftest.err)
13692 cat out/conftest.err >&5
13693 echo "$as_me:13693: \$? = $ac_status" >&5
13694 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13696 # The compiler can only warn and ignore the option if not recognized
13697 # So say no if there are warnings
13698 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13699 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13700 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13701 lt_cv_prog_compiler_c_o_CXX=yes
13706 # SGI C++ compiler will create directory out/ii_files/ for
13707 # template instantiation
13708 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13709 $rm out/* && rmdir out
13715 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13716 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13719 hard_links="nottested"
13720 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13721 # do not overwrite the value of need_locks provided by the user
13722 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13723 $as_echo_n "checking if we can lock with hard links... " >&6; }
13726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13728 ln conftest.a conftest.b 2>&5 || hard_links=no
13729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13730 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13731 $as_echo "$hard_links" >&6; }
13732 if test "$hard_links" = no; then
13733 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13734 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13741 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13744 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13747 # If we're using GNU nm, then we don't want the "-C" option.
13748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13749 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13750 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'
13752 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'
13756 export_symbols_cmds_CXX="$ltdll_cmds"
13759 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'
13762 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13766 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13767 $as_echo "$ld_shlibs_CXX" >&6; }
13768 test "$ld_shlibs_CXX" = no && can_build_shared=no
13771 # Do we need to explicitly link libc?
13773 case "x$archive_cmds_need_lc_CXX" in
13775 # Assume -lc should be added
13776 archive_cmds_need_lc_CXX=yes
13778 if test "$enable_shared" = yes && test "$GCC" = yes; then
13779 case $archive_cmds_CXX in
13781 # FIXME: we may have to deal with multi-command sequences.
13784 # Test whether the compiler implicitly links with -lc since on some
13785 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13786 # to ld, don't add -lc before -lgcc.
13787 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13793 (eval $ac_compile) 2>&5
13795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } 2>conftest.err; then
13799 libobjs=conftest.$ac_objext
13801 wl=$lt_prog_compiler_wl_CXX
13802 pic_flag=$lt_prog_compiler_pic_CXX
13808 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13809 allow_undefined_flag_CXX=
13810 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13811 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }
13816 archive_cmds_need_lc_CXX=no
13818 archive_cmds_need_lc_CXX=yes
13820 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13822 cat conftest.err 1>&5
13825 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13826 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13833 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13835 library_names_spec=
13836 libname_spec='lib$name'
13840 postuninstall_cmds=
13844 shlibpath_overrides_runpath=unknown
13846 dynamic_linker="$host_os ld.so"
13847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13848 if test "$GCC" = yes; then
13849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13850 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13851 # if the path contains ";" then we assume it to be the separator
13852 # otherwise default to the standard path separator (i.e. ":") - it is
13853 # assumed that no part of a normal pathname contains ";" but that should
13854 # okay in the real world where ";" in dirpaths is itself problematic.
13855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13862 need_lib_prefix=unknown
13863 hardcode_into_libs=no
13865 # when you set need_version to no, make sure it does not cause -set_version
13866 # flags to be left without arguments
13867 need_version=unknown
13872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13873 shlibpath_var=LIBPATH
13875 # AIX 3 has no versioning support, so we append a major version to the name.
13876 soname_spec='${libname}${release}${shared_ext}$major'
13883 hardcode_into_libs=yes
13884 if test "$host_cpu" = ia64; then
13885 # AIX 5 supports IA64
13886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13887 shlibpath_var=LD_LIBRARY_PATH
13889 # With GCC up to 2.95.x, collect2 would create an import file
13890 # for dependence libraries. The import file would start with
13891 # the line `#! .'. This would cause the generated library to
13892 # depend on `.', always an invalid library. This was fixed in
13893 # development snapshots of GCC prior to 3.0.
13895 aix4 | aix4.[01] | aix4.[01].*)
13896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13898 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13901 can_build_shared=no
13905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13906 # soname into executable. Probably we can add versioning support to
13907 # collect2, so additional links can be useful in future.
13908 if test "$aix_use_runtimelinking" = yes; then
13909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13910 # instead of lib<name>.a to let people know that these are not
13911 # typical AIX shared libraries.
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13914 # We preserve .a as extension for shared libraries through AIX4.2
13915 # and later when we are not doing run time linking.
13916 library_names_spec='${libname}${release}.a $libname.a'
13917 soname_spec='${libname}${release}${shared_ext}$major'
13919 shlibpath_var=LIBPATH
13924 library_names_spec='$libname.ixlibrary $libname.a'
13925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13926 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'
13930 library_names_spec='${libname}${shared_ext}'
13931 dynamic_linker="$host_os ld.so"
13932 shlibpath_var=LIBRARY_PATH
13938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13939 soname_spec='${libname}${release}${shared_ext}$major'
13940 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13941 shlibpath_var=LD_LIBRARY_PATH
13942 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13943 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13944 # the default ld.so.conf also contains /usr/contrib/lib and
13945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13946 # libtool to hard-code these into programs
13949 cygwin* | mingw* | pw32*)
13950 version_type=windows
13955 case $GCC,$host_os in
13956 yes,cygwin* | yes,mingw* | yes,pw32*)
13957 library_names_spec='$libname.dll.a'
13958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13959 postinstall_cmds='base_file=`basename \${file}`~
13960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13961 dldir=$destdir/`dirname \$dlpath`~
13962 test -d \$dldir || mkdir -p \$dldir~
13963 $install_prog $dir/$dlname \$dldir/$dlname~
13964 chmod a+x \$dldir/$dlname'
13965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13966 dlpath=$dir/\$dldll~
13968 shlibpath_overrides_runpath=yes
13972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13973 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13974 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13977 # MinGW DLLs use traditional 'lib' prefix
13978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13981 # It is most probably a Windows format PATH printed by
13982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13983 # path with ; separators, and with drive letters. We can handle the
13984 # drive letters (cygwin fileutils understands them), so leave them,
13985 # especially as we might pass files found there to a mingw objdump,
13986 # which wouldn't understand a cygwinified path. Ahh.
13987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13993 # pw32 DLLs use 'pw' prefix rather than 'lib'
13994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14003 dynamic_linker='Win32 ld.exe'
14004 # FIXME: first we should search . and the directory the executable is in
14008 darwin* | rhapsody*)
14009 dynamic_linker="$host_os dyld"
14010 version_type=darwin
14013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14014 soname_spec='${libname}${release}${major}$shared_ext'
14015 shlibpath_overrides_runpath=yes
14016 shlibpath_var=DYLD_LIBRARY_PATH
14017 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14019 if test "$GCC" = yes; then
14020 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14022 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14032 soname_spec='${libname}${release}${shared_ext}$major'
14033 shlibpath_var=LD_LIBRARY_PATH
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14045 soname_spec='${libname}${release}${shared_ext}$major'
14046 shlibpath_var=LD_LIBRARY_PATH
14047 shlibpath_overrides_runpath=no
14048 hardcode_into_libs=yes
14049 dynamic_linker='GNU ld.so'
14052 freebsd* | dragonfly*)
14053 # DragonFly does not have aout. When/if they implement a new
14054 # versioning mechanism, adjust this.
14055 if test -x /usr/bin/objformat; then
14056 objformat=`/usr/bin/objformat`
14059 freebsd[123]*) objformat=aout ;;
14060 *) objformat=elf ;;
14063 version_type=freebsd-$objformat
14064 case $version_type in
14066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14075 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=yes
14080 freebsd3.[01]* | freebsdelf3.[01]*)
14081 shlibpath_overrides_runpath=yes
14082 hardcode_into_libs=yes
14084 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14085 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14086 shlibpath_overrides_runpath=no
14087 hardcode_into_libs=yes
14089 freebsd*) # from 4.6 on
14090 shlibpath_overrides_runpath=yes
14091 hardcode_into_libs=yes
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 shlibpath_var=LD_LIBRARY_PATH
14103 hardcode_into_libs=yes
14106 hpux9* | hpux10* | hpux11*)
14107 # Give a soname corresponding to the major version so that dld.sl refuses to
14108 # link against other versions.
14115 hardcode_into_libs=yes
14116 dynamic_linker="$host_os dld.so"
14117 shlibpath_var=LD_LIBRARY_PATH
14118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120 soname_spec='${libname}${release}${shared_ext}$major'
14121 if test "X$HPUX_IA64_MODE" = X32; then
14122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14130 hardcode_into_libs=yes
14131 dynamic_linker="$host_os dld.sl"
14132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135 soname_spec='${libname}${release}${shared_ext}$major'
14136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14141 dynamic_linker="$host_os dld.sl"
14142 shlibpath_var=SHLIB_PATH
14143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145 soname_spec='${libname}${release}${shared_ext}$major'
14148 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14149 postinstall_cmds='chmod 555 $lib'
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14157 soname_spec='${libname}${release}${shared_ext}$major'
14158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14159 shlibpath_var=LD_LIBRARY_PATH
14160 shlibpath_overrides_runpath=no
14161 hardcode_into_libs=yes
14164 irix5* | irix6* | nonstopux*)
14166 nonstopux*) version_type=nonstopux ;;
14168 if test "$lt_cv_prog_gnu_ld" = yes; then
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14179 irix5* | nonstopux*)
14180 libsuff= shlibsuff=
14183 case $LD in # libtool.m4 will add one of these switches to LD
14184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14185 libsuff= shlibsuff= libmagic=32-bit;;
14186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14187 libsuff=32 shlibsuff=N32 libmagic=N32;;
14188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14190 *) libsuff= shlibsuff= libmagic=never-match;;
14194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14195 shlibpath_overrides_runpath=no
14196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14198 hardcode_into_libs=yes
14201 # No shared lib support for Linux oldld, aout, or coff.
14202 linux*oldld* | linux*aout* | linux*coff*)
14206 # This must be Linux ELF.
14211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14212 soname_spec='${libname}${release}${shared_ext}$major'
14213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14214 shlibpath_var=LD_LIBRARY_PATH
14215 shlibpath_overrides_runpath=no
14216 # This implies no fast_install, which is unacceptable.
14217 # Some rework will be needed to allow for fast_install
14218 # before this can be enabled.
14219 hardcode_into_libs=yes
14221 # Append ld.so.conf contents to the search path
14222 if test -f /etc/ld.so.conf; then
14223 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14224 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14227 # We used to test for /lib/ld.so.1 and disable shared libraries on
14228 # powerpc, because MkLinux only supported shared libraries with the
14229 # GNU dynamic linker. Since this was broken with cross compilers,
14230 # most powerpc-linux boxes support dynamic linking these days and
14231 # people can always --disable-shared, the test was removed, and we
14232 # assume the GNU/Linux dynamic linker is in use.
14233 dynamic_linker='GNU/Linux ld.so'
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14241 soname_spec='${libname}${release}${shared_ext}$major'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 shlibpath_overrides_runpath=no
14244 hardcode_into_libs=yes
14245 dynamic_linker='GNU ld.so'
14252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14255 dynamic_linker='NetBSD (a.out) ld.so'
14257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14258 soname_spec='${libname}${release}${shared_ext}$major'
14259 dynamic_linker='NetBSD ld.elf_so'
14261 shlibpath_var=LD_LIBRARY_PATH
14262 shlibpath_overrides_runpath=yes
14263 hardcode_into_libs=yes
14268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269 shlibpath_var=LD_LIBRARY_PATH
14270 shlibpath_overrides_runpath=yes
14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14278 soname_spec='${libname}${release}${shared_ext}$major'
14279 shlibpath_var=LD_LIBRARY_PATH
14280 shlibpath_overrides_runpath=yes
14285 sys_lib_dlsearch_path_spec="/usr/lib"
14287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14289 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14290 *) need_version=no ;;
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14294 shlibpath_var=LD_LIBRARY_PATH
14295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14297 openbsd2.[89] | openbsd2.[89].*)
14298 shlibpath_overrides_runpath=no
14301 shlibpath_overrides_runpath=yes
14305 shlibpath_overrides_runpath=yes
14310 libname_spec='$name'
14313 library_names_spec='$libname${shared_ext} $libname.a'
14314 dynamic_linker='OS/2 ld.exe'
14315 shlibpath_var=LIBPATH
14318 osf3* | osf4* | osf5*)
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324 shlibpath_var=LD_LIBRARY_PATH
14325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334 soname_spec='${libname}${release}${shared_ext}$major'
14335 shlibpath_var=LD_LIBRARY_PATH
14336 shlibpath_overrides_runpath=yes
14337 hardcode_into_libs=yes
14338 # ldd complains unless libraries are executable
14339 postinstall_cmds='chmod +x $lib'
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14346 shlibpath_var=LD_LIBRARY_PATH
14347 shlibpath_overrides_runpath=yes
14348 if test "$with_gnu_ld" = yes; then
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 shlibpath_var=LD_LIBRARY_PATH
14359 case $host_vendor in
14361 shlibpath_overrides_runpath=no
14363 export_dynamic_flag_spec='${wl}-Blargedynsym'
14364 runpath_var=LD_RUN_PATH
14372 shlibpath_overrides_runpath=no
14373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14379 if test -d /usr/nec ;then
14381 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14382 soname_spec='$libname${shared_ext}.$major'
14383 shlibpath_var=LD_LIBRARY_PATH
14387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14388 version_type=freebsd-elf
14391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14392 soname_spec='${libname}${release}${shared_ext}$major'
14393 shlibpath_var=LD_LIBRARY_PATH
14394 hardcode_into_libs=yes
14395 if test "$with_gnu_ld" = yes; then
14396 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14397 shlibpath_overrides_runpath=no
14399 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14400 shlibpath_overrides_runpath=yes
14403 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14407 sys_lib_dlsearch_path_spec='/usr/lib'
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 shlibpath_var=LD_LIBRARY_PATH
14421 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14422 $as_echo "$dynamic_linker" >&6; }
14423 test "$dynamic_linker" = no && can_build_shared=no
14425 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14426 if test "$GCC" = yes; then
14427 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14430 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14431 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14432 hardcode_action_CXX=
14433 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14434 test -n "$runpath_var_CXX" || \
14435 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14437 # We can hardcode non-existant directories.
14438 if test "$hardcode_direct_CXX" != no &&
14439 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14440 # have to relink, otherwise we might link with an installed library
14441 # when we should be linking with a yet-to-be-installed one
14442 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14443 test "$hardcode_minus_L_CXX" != no; then
14444 # Linking always hardcodes the temporary library directory.
14445 hardcode_action_CXX=relink
14447 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14448 hardcode_action_CXX=immediate
14451 # We cannot hardcode anything, or else we can only hardcode existing
14453 hardcode_action_CXX=unsupported
14455 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14456 $as_echo "$hardcode_action_CXX" >&6; }
14458 if test "$hardcode_action_CXX" = relink; then
14459 # Fast installation is not supported
14460 enable_fast_install=no
14461 elif test "$shlibpath_overrides_runpath" = yes ||
14462 test "$enable_shared" = no; then
14463 # Fast installation is not necessary
14464 enable_fast_install=needless
14468 # The else clause should only fire when bootstrapping the
14469 # libtool distribution, otherwise you forgot to ship ltmain.sh
14470 # with your package, and you will get complaints that there are
14471 # no rules to generate ltmain.sh.
14472 if test -f "$ltmain"; then
14473 # See if we are running on zsh, and set the options which allow our commands through
14474 # without removal of \ escapes.
14475 if test -n "${ZSH_VERSION+set}" ; then
14476 setopt NO_GLOB_SUBST
14478 # Now quote all the things that may contain metacharacters while being
14479 # careful not to overquote the AC_SUBSTed values. We take copies of the
14480 # variables and quote the copies for generation of the libtool script.
14481 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14483 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14484 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14485 deplibs_check_method reload_flag reload_cmds need_locks \
14486 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14487 lt_cv_sys_global_symbol_to_c_name_address \
14488 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14489 old_postinstall_cmds old_postuninstall_cmds \
14493 lt_prog_compiler_wl_CXX \
14494 lt_prog_compiler_pic_CXX \
14495 lt_prog_compiler_static_CXX \
14496 lt_prog_compiler_no_builtin_flag_CXX \
14497 export_dynamic_flag_spec_CXX \
14498 thread_safe_flag_spec_CXX \
14499 whole_archive_flag_spec_CXX \
14500 enable_shared_with_static_runtimes_CXX \
14501 old_archive_cmds_CXX \
14502 old_archive_from_new_cmds_CXX \
14503 predep_objects_CXX \
14504 postdep_objects_CXX \
14507 compiler_lib_search_path_CXX \
14509 archive_expsym_cmds_CXX \
14510 postinstall_cmds_CXX \
14511 postuninstall_cmds_CXX \
14512 old_archive_from_expsyms_cmds_CXX \
14513 allow_undefined_flag_CXX \
14514 no_undefined_flag_CXX \
14515 export_symbols_cmds_CXX \
14516 hardcode_libdir_flag_spec_CXX \
14517 hardcode_libdir_flag_spec_ld_CXX \
14518 hardcode_libdir_separator_CXX \
14519 hardcode_automatic_CXX \
14521 module_expsym_cmds_CXX \
14522 lt_cv_prog_compiler_c_o_CXX \
14523 exclude_expsyms_CXX \
14524 include_expsyms_CXX; do
14527 old_archive_cmds_CXX | \
14528 old_archive_from_new_cmds_CXX | \
14529 archive_cmds_CXX | \
14530 archive_expsym_cmds_CXX | \
14531 module_cmds_CXX | \
14532 module_expsym_cmds_CXX | \
14533 old_archive_from_expsyms_cmds_CXX | \
14534 export_symbols_cmds_CXX | \
14535 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14536 postinstall_cmds | postuninstall_cmds | \
14537 old_postinstall_cmds | old_postuninstall_cmds | \
14538 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14539 # Double-quote double-evaled strings.
14540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14543 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14549 *'\$0 --fallback-echo"')
14550 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14556 cat <<__EOF__ >> "$cfgfile"
14557 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14559 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14561 # Shell to use when invoking shell scripts.
14564 # Whether or not to build shared libraries.
14565 build_libtool_libs=$enable_shared
14567 # Whether or not to build static libraries.
14568 build_old_libs=$enable_static
14570 # Whether or not to add -lc for building shared libraries.
14571 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14573 # Whether or not to disallow shared libs when runtime libs are static
14574 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14576 # Whether or not to optimize for fast installation.
14577 fast_install=$enable_fast_install
14580 host_alias=$host_alias
14584 # The build system.
14585 build_alias=$build_alias
14589 # An echo program that does not interpret backslashes.
14594 AR_FLAGS=$lt_AR_FLAGS
14599 # LTCC compiler flags.
14600 LTCFLAGS=$lt_LTCFLAGS
14602 # A language-specific compiler.
14603 CC=$lt_compiler_CXX
14605 # Is the compiler the GNU C compiler?
14611 # The linker used to build libraries.
14614 # Whether we need hard or soft links.
14617 # A BSD-compatible nm program.
14620 # A symbol stripping program
14623 # Used to examine libraries when file_magic_cmd begins "file"
14624 MAGIC_CMD=$MAGIC_CMD
14626 # Used on cygwin: DLL creation program.
14629 # Used on cygwin: object dumper.
14632 # Used on cygwin: assembler.
14635 # The name of the directory that contains temporary libtool files.
14638 # How to create reloadable object files.
14639 reload_flag=$lt_reload_flag
14640 reload_cmds=$lt_reload_cmds
14642 # How to pass a linker flag through the compiler.
14643 wl=$lt_lt_prog_compiler_wl_CXX
14645 # Object file suffix (normally "o").
14646 objext="$ac_objext"
14648 # Old archive suffix (normally "a").
14651 # Shared library suffix (normally ".so").
14652 shrext_cmds='$shrext_cmds'
14654 # Executable file suffix (normally "").
14657 # Additional compiler flags for building library objects.
14658 pic_flag=$lt_lt_prog_compiler_pic_CXX
14661 # What is the maximum length of a command?
14662 max_cmd_len=$lt_cv_sys_max_cmd_len
14664 # Does compiler simultaneously support -c and -o options?
14665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14667 # Must we lock files when doing compilation?
14668 need_locks=$lt_need_locks
14670 # Do we need the lib prefix for modules?
14671 need_lib_prefix=$need_lib_prefix
14673 # Do we need a version for libraries?
14674 need_version=$need_version
14676 # Whether dlopen is supported.
14677 dlopen_support=$enable_dlopen
14679 # Whether dlopen of programs is supported.
14680 dlopen_self=$enable_dlopen_self
14682 # Whether dlopen of statically linked programs is supported.
14683 dlopen_self_static=$enable_dlopen_self_static
14685 # Compiler flag to prevent dynamic linking.
14686 link_static_flag=$lt_lt_prog_compiler_static_CXX
14688 # Compiler flag to turn off builtin functions.
14689 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14691 # Compiler flag to allow reflexive dlopens.
14692 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14694 # Compiler flag to generate shared objects directly from archives.
14695 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14697 # Compiler flag to generate thread-safe objects.
14698 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14700 # Library versioning type.
14701 version_type=$version_type
14703 # Format of library name prefix.
14704 libname_spec=$lt_libname_spec
14706 # List of archive names. First name is the real one, the rest are links.
14707 # The last name is the one that the linker finds with -lNAME.
14708 library_names_spec=$lt_library_names_spec
14710 # The coded name of the library, if different from the real name.
14711 soname_spec=$lt_soname_spec
14713 # Commands used to build and install an old-style archive.
14715 old_archive_cmds=$lt_old_archive_cmds_CXX
14716 old_postinstall_cmds=$lt_old_postinstall_cmds
14717 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14719 # Create an old-style archive from a shared archive.
14720 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14722 # Create a temporary old-style archive to link instead of a shared archive.
14723 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14725 # Commands used to build and install a shared archive.
14726 archive_cmds=$lt_archive_cmds_CXX
14727 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14728 postinstall_cmds=$lt_postinstall_cmds
14729 postuninstall_cmds=$lt_postuninstall_cmds
14731 # Commands used to build a loadable module (assumed same as above if empty)
14732 module_cmds=$lt_module_cmds_CXX
14733 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14735 # Commands to strip libraries.
14736 old_striplib=$lt_old_striplib
14737 striplib=$lt_striplib
14739 # Dependencies to place before the objects being linked to create a
14741 predep_objects=$lt_predep_objects_CXX
14743 # Dependencies to place after the objects being linked to create a
14745 postdep_objects=$lt_postdep_objects_CXX
14747 # Dependencies to place before the objects being linked to create a
14749 predeps=$lt_predeps_CXX
14751 # Dependencies to place after the objects being linked to create a
14753 postdeps=$lt_postdeps_CXX
14755 # The library search path used internally by the compiler when linking
14756 # a shared library.
14757 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14759 # Method to check whether dependent libraries are shared objects.
14760 deplibs_check_method=$lt_deplibs_check_method
14762 # Command to use when deplibs_check_method == file_magic.
14763 file_magic_cmd=$lt_file_magic_cmd
14765 # Flag that allows shared libraries with undefined symbols to be built.
14766 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14768 # Flag that forces no undefined symbols.
14769 no_undefined_flag=$lt_no_undefined_flag_CXX
14771 # Commands used to finish a libtool library installation in a directory.
14772 finish_cmds=$lt_finish_cmds
14774 # Same as above, but a single script fragment to be evaled but not shown.
14775 finish_eval=$lt_finish_eval
14777 # Take the output of nm and produce a listing of raw symbols and C names.
14778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14780 # Transform the output of nm in a proper C declaration
14781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14783 # Transform the output of nm in a C name address pair
14784 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14786 # This is the shared library runtime path variable.
14787 runpath_var=$runpath_var
14789 # This is the shared library path variable.
14790 shlibpath_var=$shlibpath_var
14792 # Is shlibpath searched before the hard-coded library search path?
14793 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14795 # How to hardcode a shared library path into an executable.
14796 hardcode_action=$hardcode_action_CXX
14798 # Whether we should hardcode library paths into libraries.
14799 hardcode_into_libs=$hardcode_into_libs
14801 # Flag to hardcode \$libdir into a binary during linking.
14802 # This must work even if \$libdir does not exist.
14803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14805 # If ld is used when linking, flag to hardcode \$libdir into
14806 # a binary during linking. This must work even if \$libdir does
14808 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14810 # Whether we need a single -rpath flag with a separated argument.
14811 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14813 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14814 # resulting binary.
14815 hardcode_direct=$hardcode_direct_CXX
14817 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14818 # resulting binary.
14819 hardcode_minus_L=$hardcode_minus_L_CXX
14821 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14822 # the resulting binary.
14823 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14825 # Set to yes if building a shared library automatically hardcodes DIR into the library
14826 # and all subsequent libraries and executables linked against it.
14827 hardcode_automatic=$hardcode_automatic_CXX
14829 # Variables whose values should be saved in libtool wrapper scripts and
14830 # restored at relink time.
14831 variables_saved_for_relink="$variables_saved_for_relink"
14833 # Whether libtool must link a program against all its dependency libraries.
14834 link_all_deplibs=$link_all_deplibs_CXX
14836 # Compile-time system search path for libraries
14837 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14839 # Run-time system search path for libraries
14840 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14842 # Fix the shell variable \$srcfile for the compiler.
14843 fix_srcfile_path="$fix_srcfile_path_CXX"
14845 # Set to yes if exported symbols are required.
14846 always_export_symbols=$always_export_symbols_CXX
14848 # The commands to list exported symbols.
14849 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14851 # The commands to extract the exported symbol list from a shared archive.
14852 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14854 # Symbols that should not be listed in the preloaded symbols.
14855 exclude_expsyms=$lt_exclude_expsyms_CXX
14857 # Symbols that must always be exported.
14858 include_expsyms=$lt_include_expsyms_CXX
14860 # ### END LIBTOOL TAG CONFIG: $tagname
14866 # If there is no Makefile yet, we rely on a make rule to execute
14867 # `config.status --recheck' to rerun these tests and create the
14868 # libtool script then.
14869 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14870 if test -f "$ltmain_in"; then
14871 test -f Makefile && make "$ltmain"
14877 ac_cpp='$CPP $CPPFLAGS'
14878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14886 with_gnu_ldcxx=$with_gnu_ld
14887 with_gnu_ld=$lt_save_with_gnu_ld
14888 lt_cv_path_LDCXX=$lt_cv_path_LD
14889 lt_cv_path_LD=$lt_save_path_LD
14890 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14891 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14899 if test -n "$F77" && test "X$F77" != "Xno"; then
14902 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14903 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14904 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14907 archive_cmds_need_lc_F77=no
14908 allow_undefined_flag_F77=
14909 always_export_symbols_F77=no
14910 archive_expsym_cmds_F77=
14911 export_dynamic_flag_spec_F77=
14912 hardcode_direct_F77=no
14913 hardcode_libdir_flag_spec_F77=
14914 hardcode_libdir_flag_spec_ld_F77=
14915 hardcode_libdir_separator_F77=
14916 hardcode_minus_L_F77=no
14917 hardcode_automatic_F77=no
14919 module_expsym_cmds_F77=
14920 link_all_deplibs_F77=unknown
14921 old_archive_cmds_F77=$old_archive_cmds
14922 no_undefined_flag_F77=
14923 whole_archive_flag_spec_F77=
14924 enable_shared_with_static_runtimes_F77=no
14926 # Source file extension for f77 test sources.
14929 # Object file extension for compiled f77 test sources.
14933 # Code to be used in simple compile tests
14934 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14936 # Code to be used in simple link tests
14937 lt_simple_link_test_code=" program t\n end\n"
14939 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14941 # If no C compiler was specified, use CC.
14944 # If no C compiler flags were specified, use CFLAGS.
14945 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14947 # Allow CC to be a program name with arguments.
14951 # save warnings/boilerplate of simple test code
14952 ac_outfile=conftest.$ac_objext
14953 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14955 _lt_compiler_boilerplate=`cat conftest.err`
14958 ac_outfile=conftest.$ac_objext
14959 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14961 _lt_linker_boilerplate=`cat conftest.err`
14965 # Allow CC to be a program name with arguments.
14970 for cc_temp in $compiler""; do
14972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14978 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14981 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14982 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14983 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14984 $as_echo "$can_build_shared" >&6; }
14986 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14987 $as_echo_n "checking whether to build shared libraries... " >&6; }
14988 test "$can_build_shared" = "no" && enable_shared=no
14990 # On AIX, shared libraries and static libraries use the same namespace, and
14991 # are all built from PIC.
14994 test "$enable_shared" = yes && enable_static=no
14995 if test -n "$RANLIB"; then
14996 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14997 postinstall_cmds='$RANLIB $lib'
15001 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15002 test "$enable_shared" = yes && enable_static=no
15006 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15007 $as_echo "$enable_shared" >&6; }
15009 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15010 $as_echo_n "checking whether to build static libraries... " >&6; }
15011 # Make sure either enable_shared or enable_static is yes.
15012 test "$enable_shared" = yes || enable_static=yes
15013 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15014 $as_echo "$enable_static" >&6; }
15019 lt_prog_compiler_wl_F77=
15020 lt_prog_compiler_pic_F77=
15021 lt_prog_compiler_static_F77=
15023 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15024 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15026 if test "$GCC" = yes; then
15027 lt_prog_compiler_wl_F77='-Wl,'
15028 lt_prog_compiler_static_F77='-static'
15032 # All AIX code is PIC.
15033 if test "$host_cpu" = ia64; then
15034 # AIX 5 now supports IA64 processor
15035 lt_prog_compiler_static_F77='-Bstatic'
15040 # FIXME: we need at least 68020 code to build shared libraries, but
15041 # adding the `-m68020' flag to GCC prevents building anything better,
15043 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15046 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15047 # PIC is the default for these OSes.
15050 mingw* | pw32* | os2*)
15051 # This hack is so that the source file can tell whether it is being
15052 # built for inclusion in a dll (and should export symbols for example).
15053 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15056 darwin* | rhapsody*)
15057 # PIC is the default on this platform
15058 # Common symbols not allowed in MH_DYLIB files
15059 lt_prog_compiler_pic_F77='-fno-common'
15063 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15064 # Instead, we relocate shared libraries at runtime.
15068 # Just because we use GCC doesn't mean we suddenly get shared libraries
15069 # on systems that don't support them.
15070 lt_prog_compiler_can_build_shared_F77=no
15075 if test -d /usr/nec; then
15076 lt_prog_compiler_pic_F77=-Kconform_pic
15081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15082 # not for PA HP-UX.
15088 lt_prog_compiler_pic_F77='-fPIC'
15094 lt_prog_compiler_pic_F77='-fPIC'
15098 # PORTME Check for flag to pass linker flags through the system compiler.
15101 lt_prog_compiler_wl_F77='-Wl,'
15102 if test "$host_cpu" = ia64; then
15103 # AIX 5 now supports IA64 processor
15104 lt_prog_compiler_static_F77='-Bstatic'
15106 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15110 # PIC is the default on this platform
15111 # Common symbols not allowed in MH_DYLIB files
15112 case $cc_basename in
15114 lt_prog_compiler_pic_F77='-qnocommon'
15115 lt_prog_compiler_wl_F77='-Wl,'
15120 mingw* | pw32* | os2*)
15121 # This hack is so that the source file can tell whether it is being
15122 # built for inclusion in a dll (and should export symbols for example).
15123 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15126 hpux9* | hpux10* | hpux11*)
15127 lt_prog_compiler_wl_F77='-Wl,'
15128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15129 # not for PA HP-UX.
15135 lt_prog_compiler_pic_F77='+Z'
15138 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15139 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15142 irix5* | irix6* | nonstopux*)
15143 lt_prog_compiler_wl_F77='-Wl,'
15144 # PIC (with -KPIC) is the default.
15145 lt_prog_compiler_static_F77='-non_shared'
15149 lt_prog_compiler_pic_F77='-KPIC'
15150 lt_prog_compiler_static_F77='-Bstatic'
15154 case $cc_basename in
15156 lt_prog_compiler_wl_F77='-Wl,'
15157 lt_prog_compiler_pic_F77='-KPIC'
15158 lt_prog_compiler_static_F77='-static'
15160 pgcc* | pgf77* | pgf90* | pgf95*)
15161 # Portland Group compilers (*not* the Pentium gcc compiler,
15162 # which looks to be a dead project)
15163 lt_prog_compiler_wl_F77='-Wl,'
15164 lt_prog_compiler_pic_F77='-fpic'
15165 lt_prog_compiler_static_F77='-Bstatic'
15168 lt_prog_compiler_wl_F77='-Wl,'
15169 # All Alpha code is PIC.
15170 lt_prog_compiler_static_F77='-non_shared'
15175 osf3* | osf4* | osf5*)
15176 lt_prog_compiler_wl_F77='-Wl,'
15177 # All OSF/1 code is PIC.
15178 lt_prog_compiler_static_F77='-non_shared'
15182 lt_prog_compiler_pic_F77='-KPIC'
15183 lt_prog_compiler_static_F77='-Bstatic'
15184 case $cc_basename in
15185 f77* | f90* | f95*)
15186 lt_prog_compiler_wl_F77='-Qoption ld ';;
15188 lt_prog_compiler_wl_F77='-Wl,';;
15193 lt_prog_compiler_wl_F77='-Qoption ld '
15194 lt_prog_compiler_pic_F77='-PIC'
15195 lt_prog_compiler_static_F77='-Bstatic'
15198 sysv4 | sysv4.2uw2* | sysv4.3*)
15199 lt_prog_compiler_wl_F77='-Wl,'
15200 lt_prog_compiler_pic_F77='-KPIC'
15201 lt_prog_compiler_static_F77='-Bstatic'
15205 if test -d /usr/nec ;then
15206 lt_prog_compiler_pic_F77='-Kconform_pic'
15207 lt_prog_compiler_static_F77='-Bstatic'
15211 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15212 lt_prog_compiler_wl_F77='-Wl,'
15213 lt_prog_compiler_pic_F77='-KPIC'
15214 lt_prog_compiler_static_F77='-Bstatic'
15218 lt_prog_compiler_wl_F77='-Wl,'
15219 lt_prog_compiler_can_build_shared_F77=no
15223 lt_prog_compiler_pic_F77='-pic'
15224 lt_prog_compiler_static_F77='-Bstatic'
15228 lt_prog_compiler_can_build_shared_F77=no
15233 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15234 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
15237 # Check to make sure the PIC flag actually works.
15239 if test -n "$lt_prog_compiler_pic_F77"; then
15241 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15242 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15243 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15244 $as_echo_n "(cached) " >&6
15246 lt_prog_compiler_pic_works_F77=no
15247 ac_outfile=conftest.$ac_objext
15248 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15249 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15250 # Insert the option either (1) after the last *FLAGS variable, or
15251 # (2) before a word containing "conftest.", or (3) at the end.
15252 # Note that $ac_compile itself does not contain backslashes and begins
15253 # with a dollar sign (not a hyphen), so the echo should work correctly.
15254 # The option is referenced via a variable to avoid confusing sed.
15255 lt_compile=`echo "$ac_compile" | $SED \
15256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15258 -e 's:$: $lt_compiler_flag:'`
15259 (eval echo "\"\$as_me:15259: $lt_compile\"" >&5)
15260 (eval "$lt_compile" 2>conftest.err)
15262 cat conftest.err >&5
15263 echo "$as_me:15263: \$? = $ac_status" >&5
15264 if (exit $ac_status) && test -s "$ac_outfile"; then
15265 # The compiler can only warn and ignore the option if not recognized
15266 # So say no if there are warnings other than the usual output.
15267 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15269 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15270 lt_prog_compiler_pic_works_F77=yes
15276 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15277 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
15279 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15280 case $lt_prog_compiler_pic_F77 in
15282 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15285 lt_prog_compiler_pic_F77=
15286 lt_prog_compiler_can_build_shared_F77=no
15291 # For platforms which do not support PIC, -DPIC is meaningless:
15293 lt_prog_compiler_pic_F77=
15296 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15301 # Check to make sure the static flag actually works.
15303 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15304 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15305 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15306 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15307 $as_echo_n "(cached) " >&6
15309 lt_prog_compiler_static_works_F77=no
15310 save_LDFLAGS="$LDFLAGS"
15311 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15312 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15313 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15314 # The linker can only warn and ignore the option if not recognized
15315 # So say no if there are warnings
15316 if test -s conftest.err; then
15317 # Append any errors to the config.log.
15318 cat conftest.err 1>&5
15319 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15321 if diff conftest.exp conftest.er2 >/dev/null; then
15322 lt_prog_compiler_static_works_F77=yes
15325 lt_prog_compiler_static_works_F77=yes
15329 LDFLAGS="$save_LDFLAGS"
15332 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15333 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
15335 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15338 lt_prog_compiler_static_F77=
15342 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15344 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15345 $as_echo_n "(cached) " >&6
15347 lt_cv_prog_compiler_c_o_F77=no
15348 $rm -r conftest 2>/dev/null
15352 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15354 lt_compiler_flag="-o out/conftest2.$ac_objext"
15355 # Insert the option either (1) after the last *FLAGS variable, or
15356 # (2) before a word containing "conftest.", or (3) at the end.
15357 # Note that $ac_compile itself does not contain backslashes and begins
15358 # with a dollar sign (not a hyphen), so the echo should work correctly.
15359 lt_compile=`echo "$ac_compile" | $SED \
15360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15362 -e 's:$: $lt_compiler_flag:'`
15363 (eval echo "\"\$as_me:15363: $lt_compile\"" >&5)
15364 (eval "$lt_compile" 2>out/conftest.err)
15366 cat out/conftest.err >&5
15367 echo "$as_me:15367: \$? = $ac_status" >&5
15368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370 # The compiler can only warn and ignore the option if not recognized
15371 # So say no if there are warnings
15372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15375 lt_cv_prog_compiler_c_o_F77=yes
15380 # SGI C++ compiler will create directory out/ii_files/ for
15381 # template instantiation
15382 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15383 $rm out/* && rmdir out
15389 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15390 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15393 hard_links="nottested"
15394 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15395 # do not overwrite the value of need_locks provided by the user
15396 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15397 $as_echo_n "checking if we can lock with hard links... " >&6; }
15400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15402 ln conftest.a conftest.b 2>&5 || hard_links=no
15403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15404 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15405 $as_echo "$hard_links" >&6; }
15406 if test "$hard_links" = no; then
15407 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15408 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15415 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15416 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15419 allow_undefined_flag_F77=
15420 enable_shared_with_static_runtimes_F77=no
15422 archive_expsym_cmds_F77=
15423 old_archive_From_new_cmds_F77=
15424 old_archive_from_expsyms_cmds_F77=
15425 export_dynamic_flag_spec_F77=
15426 whole_archive_flag_spec_F77=
15427 thread_safe_flag_spec_F77=
15428 hardcode_libdir_flag_spec_F77=
15429 hardcode_libdir_flag_spec_ld_F77=
15430 hardcode_libdir_separator_F77=
15431 hardcode_direct_F77=no
15432 hardcode_minus_L_F77=no
15433 hardcode_shlibpath_var_F77=unsupported
15434 link_all_deplibs_F77=unknown
15435 hardcode_automatic_F77=no
15437 module_expsym_cmds_F77=
15438 always_export_symbols_F77=no
15439 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15440 # include_expsyms should be a list of space-separated symbols to be *always*
15441 # included in the symbol list
15442 include_expsyms_F77=
15443 # exclude_expsyms can be an extended regexp of symbols to exclude
15444 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15445 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15446 # as well as any symbol that contains `d'.
15447 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15448 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15449 # platforms (ab)use it in PIC code, but their linkers get confused if
15450 # the symbol is explicitly referenced. Since portable code cannot
15451 # rely on this symbol name, it's probably fine to never include it in
15452 # preloaded symbol tables.
15453 extract_expsyms_cmds=
15454 # Just being paranoid about ensuring that cc_basename is set.
15455 for cc_temp in $compiler""; do
15457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15463 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15466 cygwin* | mingw* | pw32*)
15467 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15468 # When not using gcc, we currently assume that we are using
15469 # Microsoft Visual C++.
15470 if test "$GCC" != yes; then
15475 # we just hope/assume this is gcc and not c89 (= MSVC++)
15484 if test "$with_gnu_ld" = yes; then
15485 # If archive_cmds runs LD, not CC, wlarc should be empty
15488 # Set some defaults for GNU ld with shared library support. These
15489 # are reset later if shared libraries are not supported. Putting them
15490 # here allows them to be overridden if necessary.
15491 runpath_var=LD_RUN_PATH
15492 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15493 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15494 # ancient GNU ld didn't support --whole-archive et. al.
15495 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15496 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15498 whole_archive_flag_spec_F77=
15500 supports_anon_versioning=no
15501 case `$LD -v 2>/dev/null` in
15502 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15503 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15504 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15505 *\ 2.11.*) ;; # other 2.11 versions
15506 *) supports_anon_versioning=yes ;;
15509 # See if GNU ld supports shared libraries.
15511 aix3* | aix4* | aix5*)
15512 # On AIX/PPC, the GNU linker is very broken
15513 if test "$host_cpu" != ia64; then
15517 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15518 *** to be unable to reliably create shared libraries on AIX.
15519 *** Therefore, libtool is disabling shared libraries support. If you
15520 *** really care for shared libraries, you may want to modify your PATH
15521 *** so that a non-GNU linker is found, and then restart.
15528 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)'
15529 hardcode_libdir_flag_spec_F77='-L$libdir'
15530 hardcode_minus_L_F77=yes
15532 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15533 # that the semantics of dynamic libraries on AmigaOS, at least up
15534 # to version 4, is to share data among multiple programs linked
15535 # with the same dynamic library. Since this doesn't match the
15536 # behavior of shared libraries on other platforms, we can't use
15542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15543 allow_undefined_flag_F77=unsupported
15544 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15545 # support --undefined. This deserves some investigation. FIXME
15546 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15552 cygwin* | mingw* | pw32*)
15553 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15554 # as there is no search path for DLLs.
15555 hardcode_libdir_flag_spec_F77='-L$libdir'
15556 allow_undefined_flag_F77=unsupported
15557 always_export_symbols_F77=no
15558 enable_shared_with_static_runtimes_F77=yes
15559 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15561 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15562 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15563 # If the export-symbols file already is a .def file (1st line
15564 # is EXPORTS), use it as is; otherwise, prepend...
15565 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15566 cp $export_symbols $output_objdir/$soname.def;
15568 echo EXPORTS > $output_objdir/$soname.def;
15569 cat $export_symbols >> $output_objdir/$soname.def;
15571 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15578 hardcode_direct_F77=no
15579 hardcode_shlibpath_var_F77=no
15580 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15581 export_dynamic_flag_spec_F77='${wl}-E'
15582 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15583 # Instead, shared libraries are loaded at an image base (0x10000000 by
15584 # default) and relocated if they conflict, which is a slow very memory
15585 # consuming and fragmenting process. To avoid this, we pick a random,
15586 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15587 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15588 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'
15589 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'
15593 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15595 case $cc_basename,$host_cpu in
15596 pgcc*) # Portland Group C compiler
15597 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'
15598 tmp_addflag=' $pic_flag'
15600 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15601 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'
15602 tmp_addflag=' $pic_flag -Mnomain' ;;
15603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15604 tmp_addflag=' -i_dynamic' ;;
15605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15606 tmp_addflag=' -i_dynamic -nofor_main' ;;
15607 ifc* | ifort*) # Intel Fortran compiler
15608 tmp_addflag=' -nofor_main' ;;
15610 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15612 if test $supports_anon_versioning = yes; then
15613 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15614 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15615 $echo "local: *; };" >> $output_objdir/$libname.ver~
15616 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15625 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15628 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15634 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15639 *** create shared libraries on Solaris systems. Therefore, libtool
15640 *** is disabling shared libraries support. We urge you to upgrade GNU
15641 *** binutils to release 2.9.1 or newer. Another option is to modify
15642 *** your PATH or compiler configuration so that the native linker is
15643 *** used, and then restart.
15646 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15655 case `$LD -v 2>&1` in
15656 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15660 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15661 *** reliably create shared libraries on SCO systems. Therefore, libtool
15662 *** is disabling shared libraries support. We urge you to upgrade GNU
15663 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15664 *** your PATH or compiler configuration so that the native linker is
15665 *** used, and then restart.
15670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15671 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15672 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15673 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15682 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15684 hardcode_direct_F77=yes
15685 hardcode_shlibpath_var_F77=no
15689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15690 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15698 if test "$ld_shlibs_F77" = no; then
15700 hardcode_libdir_flag_spec_F77=
15701 export_dynamic_flag_spec_F77=
15702 whole_archive_flag_spec_F77=
15705 # PORTME fill in a description of your system's linker (not GNU ld)
15708 allow_undefined_flag_F77=unsupported
15709 always_export_symbols_F77=yes
15710 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'
15711 # Note: this linker hardcodes the directories in LIBPATH if there
15712 # are no directories specified by -L.
15713 hardcode_minus_L_F77=yes
15714 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15715 # Neither direct hardcoding nor static linking is supported with a
15717 hardcode_direct_F77=unsupported
15722 if test "$host_cpu" = ia64; then
15723 # On IA64, the linker does run time linking by default, so we don't
15724 # have to do anything special.
15725 aix_use_runtimelinking=no
15726 exp_sym_flag='-Bexport'
15729 # If we're using GNU nm, then we don't want the "-C" option.
15730 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15731 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15732 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'
15734 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'
15736 aix_use_runtimelinking=no
15738 # Test if we are trying to use run time linking or normal
15739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15740 # need to do runtime linking.
15741 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15742 for ld_flag in $LDFLAGS; do
15743 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15744 aix_use_runtimelinking=yes
15751 exp_sym_flag='-bexport'
15752 no_entry_flag='-bnoentry'
15755 # When large executables or shared objects are built, AIX ld can
15756 # have problems creating the table of contents. If linking a library
15757 # or program results in "error TOC overflow" add -mminimal-toc to
15758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15761 archive_cmds_F77=''
15762 hardcode_direct_F77=yes
15763 hardcode_libdir_separator_F77=':'
15764 link_all_deplibs_F77=yes
15766 if test "$GCC" = yes; then
15767 case $host_os in aix4.[012]|aix4.[012].*)
15768 # We only want to do this on AIX 4.2 and lower, the check
15769 # below for broken collect2 doesn't work under 4.3+
15770 collect2name=`${CC} -print-prog-name=collect2`
15771 if test -f "$collect2name" && \
15772 strings "$collect2name" | grep resolve_lib_name >/dev/null
15774 # We have reworked collect2
15775 hardcode_direct_F77=yes
15777 # We have old collect2
15778 hardcode_direct_F77=unsupported
15779 # It fails to find uninstalled libraries when the uninstalled
15780 # path is not listed in the libpath. Setting hardcode_minus_L
15781 # to unsupported forces relinking
15782 hardcode_minus_L_F77=yes
15783 hardcode_libdir_flag_spec_F77='-L$libdir'
15784 hardcode_libdir_separator_F77=
15788 shared_flag='-shared'
15789 if test "$aix_use_runtimelinking" = yes; then
15790 shared_flag="$shared_flag "'${wl}-G'
15794 if test "$host_cpu" = ia64; then
15795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15796 # chokes on -Wl,-G. The following line is correct:
15799 if test "$aix_use_runtimelinking" = yes; then
15800 shared_flag='${wl}-G'
15802 shared_flag='${wl}-bM:SRE'
15807 # It seems that -bexpall does not export symbols beginning with
15808 # underscore (_), so it is better to generate a list of symbols to export.
15809 always_export_symbols_F77=yes
15810 if test "$aix_use_runtimelinking" = yes; then
15811 # Warning - without using the other runtime loading flags (-brtl),
15812 # -berok will link without error, but may produce a broken library.
15813 allow_undefined_flag_F77='-berok'
15814 # Determine the default libpath from the value encoded in an empty executable.
15815 cat >conftest.$ac_ext <<_ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15827 $as_echo "$ac_try_echo") >&5
15828 (eval "$ac_link") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } && {
15835 test -z "$ac_f77_werror_flag" ||
15836 test ! -s conftest.err
15837 } && test -s conftest$ac_exeext && {
15838 test "$cross_compiling" = yes ||
15839 $as_test_x conftest$ac_exeext
15842 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15844 # Check for a 64-bit object if we didn't find anything.
15845 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15848 $as_echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15854 rm -rf conftest.dSYM
15855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15856 conftest$ac_exeext conftest.$ac_ext
15857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15859 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15860 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"
15862 if test "$host_cpu" = ia64; then
15863 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15864 allow_undefined_flag_F77="-z nodefs"
15865 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"
15867 # Determine the default libpath from the value encoded in an empty executable.
15868 cat >conftest.$ac_ext <<_ACEOF
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (ac_try="$ac_link"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15880 $as_echo "$ac_try_echo") >&5
15881 (eval "$ac_link") 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } && {
15888 test -z "$ac_f77_werror_flag" ||
15889 test ! -s conftest.err
15890 } && test -s conftest$ac_exeext && {
15891 test "$cross_compiling" = yes ||
15892 $as_test_x conftest$ac_exeext
15895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15897 # Check for a 64-bit object if we didn't find anything.
15898 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15901 $as_echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15907 rm -rf conftest.dSYM
15908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15909 conftest$ac_exeext conftest.$ac_ext
15910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15912 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15913 # Warning - without using the other run time loading flags,
15914 # -berok will link without error, but may produce a broken library.
15915 no_undefined_flag_F77=' ${wl}-bernotok'
15916 allow_undefined_flag_F77=' ${wl}-berok'
15917 # Exported symbols can be pulled into shared objects from archives
15918 whole_archive_flag_spec_F77='$convenience'
15919 archive_cmds_need_lc_F77=yes
15920 # This is similar to how AIX traditionally builds its shared libraries.
15921 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'
15927 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)'
15928 hardcode_libdir_flag_spec_F77='-L$libdir'
15929 hardcode_minus_L_F77=yes
15930 # see comment about different semantics on the GNU ld section
15935 export_dynamic_flag_spec_F77=-rdynamic
15938 cygwin* | mingw* | pw32*)
15939 # When not using gcc, we currently assume that we are using
15940 # Microsoft Visual C++.
15941 # hardcode_libdir_flag_spec is actually meaningless, as there is
15942 # no search path for DLLs.
15943 hardcode_libdir_flag_spec_F77=' '
15944 allow_undefined_flag_F77=unsupported
15945 # Tell ltmain to make .lib files, not .a files.
15947 # Tell ltmain to make .dll files, not .so files.
15949 # FIXME: Setting linknames here is a bad hack.
15950 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15951 # The linker will automatically build a .lib file if we build a DLL.
15952 old_archive_From_new_cmds_F77='true'
15953 # FIXME: Should let the user specify the lib program.
15954 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15955 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15956 enable_shared_with_static_runtimes_F77=yes
15959 darwin* | rhapsody*)
15961 rhapsody* | darwin1.[012])
15962 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15966 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15968 case ${MACOSX_DEPLOYMENT_TARGET} in
15970 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15973 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15979 archive_cmds_need_lc_F77=no
15980 hardcode_direct_F77=no
15981 hardcode_automatic_F77=yes
15982 hardcode_shlibpath_var_F77=unsupported
15983 whole_archive_flag_spec_F77=''
15984 link_all_deplibs_F77=yes
15985 if test "$GCC" = yes ; then
15986 output_verbose_link_cmd='echo'
15987 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15988 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15989 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15990 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}'
15991 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}'
15993 case $cc_basename in
15995 output_verbose_link_cmd='echo'
15996 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15997 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15999 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16000 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}'
16010 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16011 hardcode_libdir_flag_spec_F77='-L$libdir'
16012 hardcode_shlibpath_var_F77=no
16019 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16020 # support. Future versions do this automatically, but an explicit c++rt0.o
16021 # does not break anything, and helps significantly (at the cost of a little
16024 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16025 hardcode_libdir_flag_spec_F77='-R$libdir'
16026 hardcode_direct_F77=yes
16027 hardcode_shlibpath_var_F77=no
16030 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16032 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16033 hardcode_direct_F77=yes
16034 hardcode_minus_L_F77=yes
16035 hardcode_shlibpath_var_F77=no
16038 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16039 freebsd* | kfreebsd*-gnu | dragonfly*)
16040 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16041 hardcode_libdir_flag_spec_F77='-R$libdir'
16042 hardcode_direct_F77=yes
16043 hardcode_shlibpath_var_F77=no
16047 if test "$GCC" = yes; then
16048 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'
16050 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'
16052 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16053 hardcode_libdir_separator_F77=:
16054 hardcode_direct_F77=yes
16056 # hardcode_minus_L: Not really in the search PATH,
16057 # but as the default location of the library.
16058 hardcode_minus_L_F77=yes
16059 export_dynamic_flag_spec_F77='${wl}-E'
16063 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16064 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16066 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16068 if test "$with_gnu_ld" = no; then
16069 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16070 hardcode_libdir_separator_F77=:
16072 hardcode_direct_F77=yes
16073 export_dynamic_flag_spec_F77='${wl}-E'
16075 # hardcode_minus_L: Not really in the search PATH,
16076 # but as the default location of the library.
16077 hardcode_minus_L_F77=yes
16082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16085 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16088 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16091 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16097 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16100 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16103 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16107 if test "$with_gnu_ld" = no; then
16108 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16109 hardcode_libdir_separator_F77=:
16113 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16114 hardcode_direct_F77=no
16115 hardcode_shlibpath_var_F77=no
16118 hardcode_direct_F77=yes
16119 export_dynamic_flag_spec_F77='${wl}-E'
16121 # hardcode_minus_L: Not really in the search PATH,
16122 # but as the default location of the library.
16123 hardcode_minus_L_F77=yes
16129 irix5* | irix6* | nonstopux*)
16130 if test "$GCC" = yes; then
16131 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'
16133 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'
16134 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16136 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16137 hardcode_libdir_separator_F77=:
16138 link_all_deplibs_F77=yes
16142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16143 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16145 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16147 hardcode_libdir_flag_spec_F77='-R$libdir'
16148 hardcode_direct_F77=yes
16149 hardcode_shlibpath_var_F77=no
16153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16154 hardcode_direct_F77=yes
16155 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16156 hardcode_libdir_separator_F77=:
16157 hardcode_shlibpath_var_F77=no
16161 hardcode_direct_F77=yes
16162 hardcode_shlibpath_var_F77=no
16163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16164 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16165 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16166 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16167 export_dynamic_flag_spec_F77='${wl}-E'
16170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16171 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_libdir_flag_spec_F77='-R$libdir'
16175 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16176 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16183 hardcode_libdir_flag_spec_F77='-L$libdir'
16184 hardcode_minus_L_F77=yes
16185 allow_undefined_flag_F77=unsupported
16186 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'
16187 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16191 if test "$GCC" = yes; then
16192 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16193 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'
16195 allow_undefined_flag_F77=' -expect_unresolved \*'
16196 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'
16198 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16199 hardcode_libdir_separator_F77=:
16202 osf4* | osf5*) # as osf3* with the addition of -msym flag
16203 if test "$GCC" = yes; then
16204 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16205 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'
16206 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16208 allow_undefined_flag_F77=' -expect_unresolved \*'
16209 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'
16210 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~
16211 $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'
16213 # Both c and cxx compiler support -rpath directly
16214 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16216 hardcode_libdir_separator_F77=:
16220 no_undefined_flag_F77=' -z text'
16221 if test "$GCC" = yes; then
16223 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16225 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16228 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16232 hardcode_libdir_flag_spec_F77='-R$libdir'
16233 hardcode_shlibpath_var_F77=no
16235 solaris2.[0-5] | solaris2.[0-5].*) ;;
16237 # The compiler driver will combine linker options so we
16238 # cannot just pass the convience library names through
16239 # without $wl, iff we do not link with $LD.
16240 # Luckily, gcc supports the same syntax we need for Sun Studio.
16241 # Supported since Solaris 2.6 (maybe 2.5.1?)
16244 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16246 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16249 link_all_deplibs_F77=yes
16253 if test "x$host_vendor" = xsequent; then
16254 # Use $CC to link under sequent, because it throws in some extra .o
16255 # files that make .init and .fini sections work.
16256 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16258 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16260 hardcode_libdir_flag_spec_F77='-L$libdir'
16261 hardcode_direct_F77=yes
16262 hardcode_minus_L_F77=yes
16263 hardcode_shlibpath_var_F77=no
16267 case $host_vendor in
16269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16270 hardcode_direct_F77=yes # is this really true???
16273 ## LD is ld it makes a PLAMLIB
16274 ## CC just makes a GrossModule.
16275 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16276 reload_cmds_F77='$CC -r -o $output$reload_objs'
16277 hardcode_direct_F77=no
16280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16281 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16284 runpath_var='LD_RUN_PATH'
16285 hardcode_shlibpath_var_F77=no
16289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16290 hardcode_shlibpath_var_F77=no
16291 export_dynamic_flag_spec_F77='-Bexport'
16295 if test -d /usr/nec; then
16296 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16297 hardcode_shlibpath_var_F77=no
16298 runpath_var=LD_RUN_PATH
16299 hardcode_runpath_var=yes
16304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16305 no_undefined_flag_F77='${wl}-z,text'
16306 archive_cmds_need_lc_F77=no
16307 hardcode_shlibpath_var_F77=no
16308 runpath_var='LD_RUN_PATH'
16310 if test "$GCC" = yes; then
16311 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16312 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16315 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16319 sysv5* | sco3.2v5* | sco5v6*)
16320 # Note: We can NOT use -z defs as we might desire, because we do not
16321 # link with -lc, and that would cause any symbols used from libc to
16322 # always be unresolved, which means just about no library would
16323 # ever link correctly. If we're not using GNU ld we use -z text
16324 # though, which does catch some bad symbols but isn't as heavy-handed
16326 no_undefined_flag_F77='${wl}-z,text'
16327 allow_undefined_flag_F77='${wl}-z,nodefs'
16328 archive_cmds_need_lc_F77=no
16329 hardcode_shlibpath_var_F77=no
16330 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16331 hardcode_libdir_separator_F77=':'
16332 link_all_deplibs_F77=yes
16333 export_dynamic_flag_spec_F77='${wl}-Bexport'
16334 runpath_var='LD_RUN_PATH'
16336 if test "$GCC" = yes; then
16337 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16338 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16340 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16341 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16347 hardcode_libdir_flag_spec_F77='-L$libdir'
16348 hardcode_shlibpath_var_F77=no
16357 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16358 $as_echo "$ld_shlibs_F77" >&6; }
16359 test "$ld_shlibs_F77" = no && can_build_shared=no
16362 # Do we need to explicitly link libc?
16364 case "x$archive_cmds_need_lc_F77" in
16366 # Assume -lc should be added
16367 archive_cmds_need_lc_F77=yes
16369 if test "$enable_shared" = yes && test "$GCC" = yes; then
16370 case $archive_cmds_F77 in
16372 # FIXME: we may have to deal with multi-command sequences.
16375 # Test whether the compiler implicitly links with -lc since on some
16376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16377 # to ld, don't add -lc before -lgcc.
16378 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16379 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16384 (eval $ac_compile) 2>&5
16386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } 2>conftest.err; then
16390 libobjs=conftest.$ac_objext
16392 wl=$lt_prog_compiler_wl_F77
16393 pic_flag=$lt_prog_compiler_pic_F77
16399 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16400 allow_undefined_flag_F77=
16401 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16402 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }
16407 archive_cmds_need_lc_F77=no
16409 archive_cmds_need_lc_F77=yes
16411 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16413 cat conftest.err 1>&5
16416 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16417 $as_echo "$archive_cmds_need_lc_F77" >&6; }
16424 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16425 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16426 library_names_spec=
16427 libname_spec='lib$name'
16431 postuninstall_cmds=
16435 shlibpath_overrides_runpath=unknown
16437 dynamic_linker="$host_os ld.so"
16438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16439 if test "$GCC" = yes; then
16440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16441 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16442 # if the path contains ";" then we assume it to be the separator
16443 # otherwise default to the standard path separator (i.e. ":") - it is
16444 # assumed that no part of a normal pathname contains ";" but that should
16445 # okay in the real world where ";" in dirpaths is itself problematic.
16446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16453 need_lib_prefix=unknown
16454 hardcode_into_libs=no
16456 # when you set need_version to no, make sure it does not cause -set_version
16457 # flags to be left without arguments
16458 need_version=unknown
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16464 shlibpath_var=LIBPATH
16466 # AIX 3 has no versioning support, so we append a major version to the name.
16467 soname_spec='${libname}${release}${shared_ext}$major'
16474 hardcode_into_libs=yes
16475 if test "$host_cpu" = ia64; then
16476 # AIX 5 supports IA64
16477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16478 shlibpath_var=LD_LIBRARY_PATH
16480 # With GCC up to 2.95.x, collect2 would create an import file
16481 # for dependence libraries. The import file would start with
16482 # the line `#! .'. This would cause the generated library to
16483 # depend on `.', always an invalid library. This was fixed in
16484 # development snapshots of GCC prior to 3.0.
16486 aix4 | aix4.[01] | aix4.[01].*)
16487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16492 can_build_shared=no
16496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16497 # soname into executable. Probably we can add versioning support to
16498 # collect2, so additional links can be useful in future.
16499 if test "$aix_use_runtimelinking" = yes; then
16500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16501 # instead of lib<name>.a to let people know that these are not
16502 # typical AIX shared libraries.
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505 # We preserve .a as extension for shared libraries through AIX4.2
16506 # and later when we are not doing run time linking.
16507 library_names_spec='${libname}${release}.a $libname.a'
16508 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LIBPATH
16515 library_names_spec='$libname.ixlibrary $libname.a'
16516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16517 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'
16521 library_names_spec='${libname}${shared_ext}'
16522 dynamic_linker="$host_os ld.so"
16523 shlibpath_var=LIBRARY_PATH
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16535 # the default ld.so.conf also contains /usr/contrib/lib and
16536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16537 # libtool to hard-code these into programs
16540 cygwin* | mingw* | pw32*)
16541 version_type=windows
16546 case $GCC,$host_os in
16547 yes,cygwin* | yes,mingw* | yes,pw32*)
16548 library_names_spec='$libname.dll.a'
16549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16550 postinstall_cmds='base_file=`basename \${file}`~
16551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16552 dldir=$destdir/`dirname \$dlpath`~
16553 test -d \$dldir || mkdir -p \$dldir~
16554 $install_prog $dir/$dlname \$dldir/$dlname~
16555 chmod a+x \$dldir/$dlname'
16556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16557 dlpath=$dir/\$dldll~
16559 shlibpath_overrides_runpath=yes
16563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16568 # MinGW DLLs use traditional 'lib' prefix
16569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16571 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16572 # It is most probably a Windows format PATH printed by
16573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16574 # path with ; separators, and with drive letters. We can handle the
16575 # drive letters (cygwin fileutils understands them), so leave them,
16576 # especially as we might pass files found there to a mingw objdump,
16577 # which wouldn't understand a cygwinified path. Ahh.
16578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16584 # pw32 DLLs use 'pw' prefix rather than 'lib'
16585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16594 dynamic_linker='Win32 ld.exe'
16595 # FIXME: first we should search . and the directory the executable is in
16599 darwin* | rhapsody*)
16600 dynamic_linker="$host_os dyld"
16601 version_type=darwin
16604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16605 soname_spec='${libname}${release}${major}$shared_ext'
16606 shlibpath_overrides_runpath=yes
16607 shlibpath_var=DYLD_LIBRARY_PATH
16608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16610 if test "$GCC" = yes; then
16611 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 shlibpath_var=LD_LIBRARY_PATH
16635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16636 soname_spec='${libname}${release}${shared_ext}$major'
16637 shlibpath_var=LD_LIBRARY_PATH
16638 shlibpath_overrides_runpath=no
16639 hardcode_into_libs=yes
16640 dynamic_linker='GNU ld.so'
16643 freebsd* | dragonfly*)
16644 # DragonFly does not have aout. When/if they implement a new
16645 # versioning mechanism, adjust this.
16646 if test -x /usr/bin/objformat; then
16647 objformat=`/usr/bin/objformat`
16650 freebsd[123]*) objformat=aout ;;
16651 *) objformat=elf ;;
16654 version_type=freebsd-$objformat
16655 case $version_type in
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16666 shlibpath_var=LD_LIBRARY_PATH
16669 shlibpath_overrides_runpath=yes
16671 freebsd3.[01]* | freebsdelf3.[01]*)
16672 shlibpath_overrides_runpath=yes
16673 hardcode_into_libs=yes
16675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16677 shlibpath_overrides_runpath=no
16678 hardcode_into_libs=yes
16680 freebsd*) # from 4.6 on
16681 shlibpath_overrides_runpath=yes
16682 hardcode_into_libs=yes
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 hardcode_into_libs=yes
16697 hpux9* | hpux10* | hpux11*)
16698 # Give a soname corresponding to the major version so that dld.sl refuses to
16699 # link against other versions.
16706 hardcode_into_libs=yes
16707 dynamic_linker="$host_os dld.so"
16708 shlibpath_var=LD_LIBRARY_PATH
16709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711 soname_spec='${libname}${release}${shared_ext}$major'
16712 if test "X$HPUX_IA64_MODE" = X32; then
16713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16721 hardcode_into_libs=yes
16722 dynamic_linker="$host_os dld.sl"
16723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16726 soname_spec='${libname}${release}${shared_ext}$major'
16727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16732 dynamic_linker="$host_os dld.sl"
16733 shlibpath_var=SHLIB_PATH
16734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736 soname_spec='${libname}${release}${shared_ext}$major'
16739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16740 postinstall_cmds='chmod 555 $lib'
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16748 soname_spec='${libname}${release}${shared_ext}$major'
16749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath=no
16752 hardcode_into_libs=yes
16755 irix5* | irix6* | nonstopux*)
16757 nonstopux*) version_type=nonstopux ;;
16759 if test "$lt_cv_prog_gnu_ld" = yes; then
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16770 irix5* | nonstopux*)
16771 libsuff= shlibsuff=
16774 case $LD in # libtool.m4 will add one of these switches to LD
16775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16776 libsuff= shlibsuff= libmagic=32-bit;;
16777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16778 libsuff=32 shlibsuff=N32 libmagic=N32;;
16779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16781 *) libsuff= shlibsuff= libmagic=never-match;;
16785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16786 shlibpath_overrides_runpath=no
16787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16789 hardcode_into_libs=yes
16792 # No shared lib support for Linux oldld, aout, or coff.
16793 linux*oldld* | linux*aout* | linux*coff*)
16797 # This must be Linux ELF.
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=no
16807 # This implies no fast_install, which is unacceptable.
16808 # Some rework will be needed to allow for fast_install
16809 # before this can be enabled.
16810 hardcode_into_libs=yes
16812 # Append ld.so.conf contents to the search path
16813 if test -f /etc/ld.so.conf; then
16814 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16815 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16818 # We used to test for /lib/ld.so.1 and disable shared libraries on
16819 # powerpc, because MkLinux only supported shared libraries with the
16820 # GNU dynamic linker. Since this was broken with cross compilers,
16821 # most powerpc-linux boxes support dynamic linking these days and
16822 # people can always --disable-shared, the test was removed, and we
16823 # assume the GNU/Linux dynamic linker is in use.
16824 dynamic_linker='GNU/Linux ld.so'
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 shlibpath_overrides_runpath=no
16835 hardcode_into_libs=yes
16836 dynamic_linker='GNU ld.so'
16843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16846 dynamic_linker='NetBSD (a.out) ld.so'
16848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16849 soname_spec='${libname}${release}${shared_ext}$major'
16850 dynamic_linker='NetBSD ld.elf_so'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 shlibpath_overrides_runpath=yes
16854 hardcode_into_libs=yes
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 shlibpath_overrides_runpath=yes
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 soname_spec='${libname}${release}${shared_ext}$major'
16870 shlibpath_var=LD_LIBRARY_PATH
16871 shlibpath_overrides_runpath=yes
16876 sys_lib_dlsearch_path_spec="/usr/lib"
16878 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16880 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16881 *) need_version=no ;;
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16885 shlibpath_var=LD_LIBRARY_PATH
16886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16888 openbsd2.[89] | openbsd2.[89].*)
16889 shlibpath_overrides_runpath=no
16892 shlibpath_overrides_runpath=yes
16896 shlibpath_overrides_runpath=yes
16901 libname_spec='$name'
16904 library_names_spec='$libname${shared_ext} $libname.a'
16905 dynamic_linker='OS/2 ld.exe'
16906 shlibpath_var=LIBPATH
16909 osf3* | osf4* | osf5*)
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16915 shlibpath_var=LD_LIBRARY_PATH
16916 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16917 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925 soname_spec='${libname}${release}${shared_ext}$major'
16926 shlibpath_var=LD_LIBRARY_PATH
16927 shlibpath_overrides_runpath=yes
16928 hardcode_into_libs=yes
16929 # ldd complains unless libraries are executable
16930 postinstall_cmds='chmod +x $lib'
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16937 shlibpath_var=LD_LIBRARY_PATH
16938 shlibpath_overrides_runpath=yes
16939 if test "$with_gnu_ld" = yes; then
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948 soname_spec='${libname}${release}${shared_ext}$major'
16949 shlibpath_var=LD_LIBRARY_PATH
16950 case $host_vendor in
16952 shlibpath_overrides_runpath=no
16954 export_dynamic_flag_spec='${wl}-Blargedynsym'
16955 runpath_var=LD_RUN_PATH
16963 shlibpath_overrides_runpath=no
16964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16970 if test -d /usr/nec ;then
16972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16973 soname_spec='$libname${shared_ext}.$major'
16974 shlibpath_var=LD_LIBRARY_PATH
16978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16979 version_type=freebsd-elf
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 shlibpath_var=LD_LIBRARY_PATH
16985 hardcode_into_libs=yes
16986 if test "$with_gnu_ld" = yes; then
16987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16988 shlibpath_overrides_runpath=no
16990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16991 shlibpath_overrides_runpath=yes
16994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16998 sys_lib_dlsearch_path_spec='/usr/lib'
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 shlibpath_var=LD_LIBRARY_PATH
17012 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17013 $as_echo "$dynamic_linker" >&6; }
17014 test "$dynamic_linker" = no && can_build_shared=no
17016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17017 if test "$GCC" = yes; then
17018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17021 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17022 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17023 hardcode_action_F77=
17024 if test -n "$hardcode_libdir_flag_spec_F77" || \
17025 test -n "$runpath_var_F77" || \
17026 test "X$hardcode_automatic_F77" = "Xyes" ; then
17028 # We can hardcode non-existant directories.
17029 if test "$hardcode_direct_F77" != no &&
17030 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17031 # have to relink, otherwise we might link with an installed library
17032 # when we should be linking with a yet-to-be-installed one
17033 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17034 test "$hardcode_minus_L_F77" != no; then
17035 # Linking always hardcodes the temporary library directory.
17036 hardcode_action_F77=relink
17038 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17039 hardcode_action_F77=immediate
17042 # We cannot hardcode anything, or else we can only hardcode existing
17044 hardcode_action_F77=unsupported
17046 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17047 $as_echo "$hardcode_action_F77" >&6; }
17049 if test "$hardcode_action_F77" = relink; then
17050 # Fast installation is not supported
17051 enable_fast_install=no
17052 elif test "$shlibpath_overrides_runpath" = yes ||
17053 test "$enable_shared" = no; then
17054 # Fast installation is not necessary
17055 enable_fast_install=needless
17059 # The else clause should only fire when bootstrapping the
17060 # libtool distribution, otherwise you forgot to ship ltmain.sh
17061 # with your package, and you will get complaints that there are
17062 # no rules to generate ltmain.sh.
17063 if test -f "$ltmain"; then
17064 # See if we are running on zsh, and set the options which allow our commands through
17065 # without removal of \ escapes.
17066 if test -n "${ZSH_VERSION+set}" ; then
17067 setopt NO_GLOB_SUBST
17069 # Now quote all the things that may contain metacharacters while being
17070 # careful not to overquote the AC_SUBSTed values. We take copies of the
17071 # variables and quote the copies for generation of the libtool script.
17072 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17074 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17075 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17076 deplibs_check_method reload_flag reload_cmds need_locks \
17077 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17078 lt_cv_sys_global_symbol_to_c_name_address \
17079 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17080 old_postinstall_cmds old_postuninstall_cmds \
17084 lt_prog_compiler_wl_F77 \
17085 lt_prog_compiler_pic_F77 \
17086 lt_prog_compiler_static_F77 \
17087 lt_prog_compiler_no_builtin_flag_F77 \
17088 export_dynamic_flag_spec_F77 \
17089 thread_safe_flag_spec_F77 \
17090 whole_archive_flag_spec_F77 \
17091 enable_shared_with_static_runtimes_F77 \
17092 old_archive_cmds_F77 \
17093 old_archive_from_new_cmds_F77 \
17094 predep_objects_F77 \
17095 postdep_objects_F77 \
17098 compiler_lib_search_path_F77 \
17100 archive_expsym_cmds_F77 \
17101 postinstall_cmds_F77 \
17102 postuninstall_cmds_F77 \
17103 old_archive_from_expsyms_cmds_F77 \
17104 allow_undefined_flag_F77 \
17105 no_undefined_flag_F77 \
17106 export_symbols_cmds_F77 \
17107 hardcode_libdir_flag_spec_F77 \
17108 hardcode_libdir_flag_spec_ld_F77 \
17109 hardcode_libdir_separator_F77 \
17110 hardcode_automatic_F77 \
17112 module_expsym_cmds_F77 \
17113 lt_cv_prog_compiler_c_o_F77 \
17114 exclude_expsyms_F77 \
17115 include_expsyms_F77; do
17118 old_archive_cmds_F77 | \
17119 old_archive_from_new_cmds_F77 | \
17120 archive_cmds_F77 | \
17121 archive_expsym_cmds_F77 | \
17122 module_cmds_F77 | \
17123 module_expsym_cmds_F77 | \
17124 old_archive_from_expsyms_cmds_F77 | \
17125 export_symbols_cmds_F77 | \
17126 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17127 postinstall_cmds | postuninstall_cmds | \
17128 old_postinstall_cmds | old_postuninstall_cmds | \
17129 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17130 # Double-quote double-evaled strings.
17131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17140 *'\$0 --fallback-echo"')
17141 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17147 cat <<__EOF__ >> "$cfgfile"
17148 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17152 # Shell to use when invoking shell scripts.
17155 # Whether or not to build shared libraries.
17156 build_libtool_libs=$enable_shared
17158 # Whether or not to build static libraries.
17159 build_old_libs=$enable_static
17161 # Whether or not to add -lc for building shared libraries.
17162 build_libtool_need_lc=$archive_cmds_need_lc_F77
17164 # Whether or not to disallow shared libs when runtime libs are static
17165 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17167 # Whether or not to optimize for fast installation.
17168 fast_install=$enable_fast_install
17171 host_alias=$host_alias
17175 # The build system.
17176 build_alias=$build_alias
17180 # An echo program that does not interpret backslashes.
17185 AR_FLAGS=$lt_AR_FLAGS
17190 # LTCC compiler flags.
17191 LTCFLAGS=$lt_LTCFLAGS
17193 # A language-specific compiler.
17194 CC=$lt_compiler_F77
17196 # Is the compiler the GNU C compiler?
17202 # The linker used to build libraries.
17205 # Whether we need hard or soft links.
17208 # A BSD-compatible nm program.
17211 # A symbol stripping program
17214 # Used to examine libraries when file_magic_cmd begins "file"
17215 MAGIC_CMD=$MAGIC_CMD
17217 # Used on cygwin: DLL creation program.
17220 # Used on cygwin: object dumper.
17223 # Used on cygwin: assembler.
17226 # The name of the directory that contains temporary libtool files.
17229 # How to create reloadable object files.
17230 reload_flag=$lt_reload_flag
17231 reload_cmds=$lt_reload_cmds
17233 # How to pass a linker flag through the compiler.
17234 wl=$lt_lt_prog_compiler_wl_F77
17236 # Object file suffix (normally "o").
17237 objext="$ac_objext"
17239 # Old archive suffix (normally "a").
17242 # Shared library suffix (normally ".so").
17243 shrext_cmds='$shrext_cmds'
17245 # Executable file suffix (normally "").
17248 # Additional compiler flags for building library objects.
17249 pic_flag=$lt_lt_prog_compiler_pic_F77
17252 # What is the maximum length of a command?
17253 max_cmd_len=$lt_cv_sys_max_cmd_len
17255 # Does compiler simultaneously support -c and -o options?
17256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17258 # Must we lock files when doing compilation?
17259 need_locks=$lt_need_locks
17261 # Do we need the lib prefix for modules?
17262 need_lib_prefix=$need_lib_prefix
17264 # Do we need a version for libraries?
17265 need_version=$need_version
17267 # Whether dlopen is supported.
17268 dlopen_support=$enable_dlopen
17270 # Whether dlopen of programs is supported.
17271 dlopen_self=$enable_dlopen_self
17273 # Whether dlopen of statically linked programs is supported.
17274 dlopen_self_static=$enable_dlopen_self_static
17276 # Compiler flag to prevent dynamic linking.
17277 link_static_flag=$lt_lt_prog_compiler_static_F77
17279 # Compiler flag to turn off builtin functions.
17280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17282 # Compiler flag to allow reflexive dlopens.
17283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17285 # Compiler flag to generate shared objects directly from archives.
17286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17288 # Compiler flag to generate thread-safe objects.
17289 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17291 # Library versioning type.
17292 version_type=$version_type
17294 # Format of library name prefix.
17295 libname_spec=$lt_libname_spec
17297 # List of archive names. First name is the real one, the rest are links.
17298 # The last name is the one that the linker finds with -lNAME.
17299 library_names_spec=$lt_library_names_spec
17301 # The coded name of the library, if different from the real name.
17302 soname_spec=$lt_soname_spec
17304 # Commands used to build and install an old-style archive.
17306 old_archive_cmds=$lt_old_archive_cmds_F77
17307 old_postinstall_cmds=$lt_old_postinstall_cmds
17308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17310 # Create an old-style archive from a shared archive.
17311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17313 # Create a temporary old-style archive to link instead of a shared archive.
17314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17316 # Commands used to build and install a shared archive.
17317 archive_cmds=$lt_archive_cmds_F77
17318 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17319 postinstall_cmds=$lt_postinstall_cmds
17320 postuninstall_cmds=$lt_postuninstall_cmds
17322 # Commands used to build a loadable module (assumed same as above if empty)
17323 module_cmds=$lt_module_cmds_F77
17324 module_expsym_cmds=$lt_module_expsym_cmds_F77
17326 # Commands to strip libraries.
17327 old_striplib=$lt_old_striplib
17328 striplib=$lt_striplib
17330 # Dependencies to place before the objects being linked to create a
17332 predep_objects=$lt_predep_objects_F77
17334 # Dependencies to place after the objects being linked to create a
17336 postdep_objects=$lt_postdep_objects_F77
17338 # Dependencies to place before the objects being linked to create a
17340 predeps=$lt_predeps_F77
17342 # Dependencies to place after the objects being linked to create a
17344 postdeps=$lt_postdeps_F77
17346 # The library search path used internally by the compiler when linking
17347 # a shared library.
17348 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17350 # Method to check whether dependent libraries are shared objects.
17351 deplibs_check_method=$lt_deplibs_check_method
17353 # Command to use when deplibs_check_method == file_magic.
17354 file_magic_cmd=$lt_file_magic_cmd
17356 # Flag that allows shared libraries with undefined symbols to be built.
17357 allow_undefined_flag=$lt_allow_undefined_flag_F77
17359 # Flag that forces no undefined symbols.
17360 no_undefined_flag=$lt_no_undefined_flag_F77
17362 # Commands used to finish a libtool library installation in a directory.
17363 finish_cmds=$lt_finish_cmds
17365 # Same as above, but a single script fragment to be evaled but not shown.
17366 finish_eval=$lt_finish_eval
17368 # Take the output of nm and produce a listing of raw symbols and C names.
17369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17371 # Transform the output of nm in a proper C declaration
17372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17374 # Transform the output of nm in a C name address pair
17375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17377 # This is the shared library runtime path variable.
17378 runpath_var=$runpath_var
17380 # This is the shared library path variable.
17381 shlibpath_var=$shlibpath_var
17383 # Is shlibpath searched before the hard-coded library search path?
17384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17386 # How to hardcode a shared library path into an executable.
17387 hardcode_action=$hardcode_action_F77
17389 # Whether we should hardcode library paths into libraries.
17390 hardcode_into_libs=$hardcode_into_libs
17392 # Flag to hardcode \$libdir into a binary during linking.
17393 # This must work even if \$libdir does not exist.
17394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17396 # If ld is used when linking, flag to hardcode \$libdir into
17397 # a binary during linking. This must work even if \$libdir does
17399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17401 # Whether we need a single -rpath flag with a separated argument.
17402 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17405 # resulting binary.
17406 hardcode_direct=$hardcode_direct_F77
17408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17409 # resulting binary.
17410 hardcode_minus_L=$hardcode_minus_L_F77
17412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17413 # the resulting binary.
17414 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17416 # Set to yes if building a shared library automatically hardcodes DIR into the library
17417 # and all subsequent libraries and executables linked against it.
17418 hardcode_automatic=$hardcode_automatic_F77
17420 # Variables whose values should be saved in libtool wrapper scripts and
17421 # restored at relink time.
17422 variables_saved_for_relink="$variables_saved_for_relink"
17424 # Whether libtool must link a program against all its dependency libraries.
17425 link_all_deplibs=$link_all_deplibs_F77
17427 # Compile-time system search path for libraries
17428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17430 # Run-time system search path for libraries
17431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17433 # Fix the shell variable \$srcfile for the compiler.
17434 fix_srcfile_path="$fix_srcfile_path_F77"
17436 # Set to yes if exported symbols are required.
17437 always_export_symbols=$always_export_symbols_F77
17439 # The commands to list exported symbols.
17440 export_symbols_cmds=$lt_export_symbols_cmds_F77
17442 # The commands to extract the exported symbol list from a shared archive.
17443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17445 # Symbols that should not be listed in the preloaded symbols.
17446 exclude_expsyms=$lt_exclude_expsyms_F77
17448 # Symbols that must always be exported.
17449 include_expsyms=$lt_include_expsyms_F77
17451 # ### END LIBTOOL TAG CONFIG: $tagname
17457 # If there is no Makefile yet, we rely on a make rule to execute
17458 # `config.status --recheck' to rerun these tests and create the
17459 # libtool script then.
17460 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17461 if test -f "$ltmain_in"; then
17462 test -f Makefile && make "$ltmain"
17468 ac_cpp='$CPP $CPPFLAGS'
17469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17481 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17484 # Source file extension for Java test sources.
17487 # Object file extension for compiled Java test sources.
17491 # Code to be used in simple compile tests
17492 lt_simple_compile_test_code="class foo {}\n"
17494 # Code to be used in simple link tests
17495 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17497 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17499 # If no C compiler was specified, use CC.
17502 # If no C compiler flags were specified, use CFLAGS.
17503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17505 # Allow CC to be a program name with arguments.
17509 # save warnings/boilerplate of simple test code
17510 ac_outfile=conftest.$ac_objext
17511 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17512 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17513 _lt_compiler_boilerplate=`cat conftest.err`
17516 ac_outfile=conftest.$ac_objext
17517 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17518 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17519 _lt_linker_boilerplate=`cat conftest.err`
17523 # Allow CC to be a program name with arguments.
17528 for cc_temp in $compiler""; do
17530 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17531 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17536 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17539 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17540 archive_cmds_need_lc_GCJ=no
17542 old_archive_cmds_GCJ=$old_archive_cmds
17545 lt_prog_compiler_no_builtin_flag_GCJ=
17547 if test "$GCC" = yes; then
17548 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17551 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17552 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17553 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17554 $as_echo_n "(cached) " >&6
17556 lt_cv_prog_compiler_rtti_exceptions=no
17557 ac_outfile=conftest.$ac_objext
17558 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17559 lt_compiler_flag="-fno-rtti -fno-exceptions"
17560 # Insert the option either (1) after the last *FLAGS variable, or
17561 # (2) before a word containing "conftest.", or (3) at the end.
17562 # Note that $ac_compile itself does not contain backslashes and begins
17563 # with a dollar sign (not a hyphen), so the echo should work correctly.
17564 # The option is referenced via a variable to avoid confusing sed.
17565 lt_compile=`echo "$ac_compile" | $SED \
17566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17568 -e 's:$: $lt_compiler_flag:'`
17569 (eval echo "\"\$as_me:17569: $lt_compile\"" >&5)
17570 (eval "$lt_compile" 2>conftest.err)
17572 cat conftest.err >&5
17573 echo "$as_me:17573: \$? = $ac_status" >&5
17574 if (exit $ac_status) && test -s "$ac_outfile"; then
17575 # The compiler can only warn and ignore the option if not recognized
17576 # So say no if there are warnings other than the usual output.
17577 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17580 lt_cv_prog_compiler_rtti_exceptions=yes
17586 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17587 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17589 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17590 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17597 lt_prog_compiler_wl_GCJ=
17598 lt_prog_compiler_pic_GCJ=
17599 lt_prog_compiler_static_GCJ=
17601 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17602 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17604 if test "$GCC" = yes; then
17605 lt_prog_compiler_wl_GCJ='-Wl,'
17606 lt_prog_compiler_static_GCJ='-static'
17610 # All AIX code is PIC.
17611 if test "$host_cpu" = ia64; then
17612 # AIX 5 now supports IA64 processor
17613 lt_prog_compiler_static_GCJ='-Bstatic'
17618 # FIXME: we need at least 68020 code to build shared libraries, but
17619 # adding the `-m68020' flag to GCC prevents building anything better,
17621 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17624 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17625 # PIC is the default for these OSes.
17628 mingw* | pw32* | os2*)
17629 # This hack is so that the source file can tell whether it is being
17630 # built for inclusion in a dll (and should export symbols for example).
17631 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17634 darwin* | rhapsody*)
17635 # PIC is the default on this platform
17636 # Common symbols not allowed in MH_DYLIB files
17637 lt_prog_compiler_pic_GCJ='-fno-common'
17641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17642 # Instead, we relocate shared libraries at runtime.
17646 # Just because we use GCC doesn't mean we suddenly get shared libraries
17647 # on systems that don't support them.
17648 lt_prog_compiler_can_build_shared_GCJ=no
17653 if test -d /usr/nec; then
17654 lt_prog_compiler_pic_GCJ=-Kconform_pic
17659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17660 # not for PA HP-UX.
17666 lt_prog_compiler_pic_GCJ='-fPIC'
17672 lt_prog_compiler_pic_GCJ='-fPIC'
17676 # PORTME Check for flag to pass linker flags through the system compiler.
17679 lt_prog_compiler_wl_GCJ='-Wl,'
17680 if test "$host_cpu" = ia64; then
17681 # AIX 5 now supports IA64 processor
17682 lt_prog_compiler_static_GCJ='-Bstatic'
17684 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17688 # PIC is the default on this platform
17689 # Common symbols not allowed in MH_DYLIB files
17690 case $cc_basename in
17692 lt_prog_compiler_pic_GCJ='-qnocommon'
17693 lt_prog_compiler_wl_GCJ='-Wl,'
17698 mingw* | pw32* | os2*)
17699 # This hack is so that the source file can tell whether it is being
17700 # built for inclusion in a dll (and should export symbols for example).
17701 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17704 hpux9* | hpux10* | hpux11*)
17705 lt_prog_compiler_wl_GCJ='-Wl,'
17706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17707 # not for PA HP-UX.
17713 lt_prog_compiler_pic_GCJ='+Z'
17716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17717 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17720 irix5* | irix6* | nonstopux*)
17721 lt_prog_compiler_wl_GCJ='-Wl,'
17722 # PIC (with -KPIC) is the default.
17723 lt_prog_compiler_static_GCJ='-non_shared'
17727 lt_prog_compiler_pic_GCJ='-KPIC'
17728 lt_prog_compiler_static_GCJ='-Bstatic'
17732 case $cc_basename in
17734 lt_prog_compiler_wl_GCJ='-Wl,'
17735 lt_prog_compiler_pic_GCJ='-KPIC'
17736 lt_prog_compiler_static_GCJ='-static'
17738 pgcc* | pgf77* | pgf90* | pgf95*)
17739 # Portland Group compilers (*not* the Pentium gcc compiler,
17740 # which looks to be a dead project)
17741 lt_prog_compiler_wl_GCJ='-Wl,'
17742 lt_prog_compiler_pic_GCJ='-fpic'
17743 lt_prog_compiler_static_GCJ='-Bstatic'
17746 lt_prog_compiler_wl_GCJ='-Wl,'
17747 # All Alpha code is PIC.
17748 lt_prog_compiler_static_GCJ='-non_shared'
17753 osf3* | osf4* | osf5*)
17754 lt_prog_compiler_wl_GCJ='-Wl,'
17755 # All OSF/1 code is PIC.
17756 lt_prog_compiler_static_GCJ='-non_shared'
17760 lt_prog_compiler_pic_GCJ='-KPIC'
17761 lt_prog_compiler_static_GCJ='-Bstatic'
17762 case $cc_basename in
17763 f77* | f90* | f95*)
17764 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17766 lt_prog_compiler_wl_GCJ='-Wl,';;
17771 lt_prog_compiler_wl_GCJ='-Qoption ld '
17772 lt_prog_compiler_pic_GCJ='-PIC'
17773 lt_prog_compiler_static_GCJ='-Bstatic'
17776 sysv4 | sysv4.2uw2* | sysv4.3*)
17777 lt_prog_compiler_wl_GCJ='-Wl,'
17778 lt_prog_compiler_pic_GCJ='-KPIC'
17779 lt_prog_compiler_static_GCJ='-Bstatic'
17783 if test -d /usr/nec ;then
17784 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17785 lt_prog_compiler_static_GCJ='-Bstatic'
17789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17790 lt_prog_compiler_wl_GCJ='-Wl,'
17791 lt_prog_compiler_pic_GCJ='-KPIC'
17792 lt_prog_compiler_static_GCJ='-Bstatic'
17796 lt_prog_compiler_wl_GCJ='-Wl,'
17797 lt_prog_compiler_can_build_shared_GCJ=no
17801 lt_prog_compiler_pic_GCJ='-pic'
17802 lt_prog_compiler_static_GCJ='-Bstatic'
17806 lt_prog_compiler_can_build_shared_GCJ=no
17811 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17812 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17815 # Check to make sure the PIC flag actually works.
17817 if test -n "$lt_prog_compiler_pic_GCJ"; then
17819 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17820 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17821 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17822 $as_echo_n "(cached) " >&6
17824 lt_prog_compiler_pic_works_GCJ=no
17825 ac_outfile=conftest.$ac_objext
17826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17827 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17828 # Insert the option either (1) after the last *FLAGS variable, or
17829 # (2) before a word containing "conftest.", or (3) at the end.
17830 # Note that $ac_compile itself does not contain backslashes and begins
17831 # with a dollar sign (not a hyphen), so the echo should work correctly.
17832 # The option is referenced via a variable to avoid confusing sed.
17833 lt_compile=`echo "$ac_compile" | $SED \
17834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17836 -e 's:$: $lt_compiler_flag:'`
17837 (eval echo "\"\$as_me:17837: $lt_compile\"" >&5)
17838 (eval "$lt_compile" 2>conftest.err)
17840 cat conftest.err >&5
17841 echo "$as_me:17841: \$? = $ac_status" >&5
17842 if (exit $ac_status) && test -s "$ac_outfile"; then
17843 # The compiler can only warn and ignore the option if not recognized
17844 # So say no if there are warnings other than the usual output.
17845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17848 lt_prog_compiler_pic_works_GCJ=yes
17854 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17855 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
17857 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17858 case $lt_prog_compiler_pic_GCJ in
17860 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17863 lt_prog_compiler_pic_GCJ=
17864 lt_prog_compiler_can_build_shared_GCJ=no
17869 # For platforms which do not support PIC, -DPIC is meaningless:
17871 lt_prog_compiler_pic_GCJ=
17874 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17879 # Check to make sure the static flag actually works.
17881 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17882 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17883 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17884 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17885 $as_echo_n "(cached) " >&6
17887 lt_prog_compiler_static_works_GCJ=no
17888 save_LDFLAGS="$LDFLAGS"
17889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17890 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17892 # The linker can only warn and ignore the option if not recognized
17893 # So say no if there are warnings
17894 if test -s conftest.err; then
17895 # Append any errors to the config.log.
17896 cat conftest.err 1>&5
17897 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17899 if diff conftest.exp conftest.er2 >/dev/null; then
17900 lt_prog_compiler_static_works_GCJ=yes
17903 lt_prog_compiler_static_works_GCJ=yes
17907 LDFLAGS="$save_LDFLAGS"
17910 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17911 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
17913 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17916 lt_prog_compiler_static_GCJ=
17920 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17921 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17922 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17923 $as_echo_n "(cached) " >&6
17925 lt_cv_prog_compiler_c_o_GCJ=no
17926 $rm -r conftest 2>/dev/null
17930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17932 lt_compiler_flag="-o out/conftest2.$ac_objext"
17933 # Insert the option either (1) after the last *FLAGS variable, or
17934 # (2) before a word containing "conftest.", or (3) at the end.
17935 # Note that $ac_compile itself does not contain backslashes and begins
17936 # with a dollar sign (not a hyphen), so the echo should work correctly.
17937 lt_compile=`echo "$ac_compile" | $SED \
17938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17940 -e 's:$: $lt_compiler_flag:'`
17941 (eval echo "\"\$as_me:17941: $lt_compile\"" >&5)
17942 (eval "$lt_compile" 2>out/conftest.err)
17944 cat out/conftest.err >&5
17945 echo "$as_me:17945: \$? = $ac_status" >&5
17946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17948 # The compiler can only warn and ignore the option if not recognized
17949 # So say no if there are warnings
17950 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17953 lt_cv_prog_compiler_c_o_GCJ=yes
17958 # SGI C++ compiler will create directory out/ii_files/ for
17959 # template instantiation
17960 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17961 $rm out/* && rmdir out
17967 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17968 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17971 hard_links="nottested"
17972 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17973 # do not overwrite the value of need_locks provided by the user
17974 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17975 $as_echo_n "checking if we can lock with hard links... " >&6; }
17978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17980 ln conftest.a conftest.b 2>&5 || hard_links=no
17981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17982 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17983 $as_echo "$hard_links" >&6; }
17984 if test "$hard_links" = no; then
17985 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17986 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17993 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17994 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17997 allow_undefined_flag_GCJ=
17998 enable_shared_with_static_runtimes_GCJ=no
18000 archive_expsym_cmds_GCJ=
18001 old_archive_From_new_cmds_GCJ=
18002 old_archive_from_expsyms_cmds_GCJ=
18003 export_dynamic_flag_spec_GCJ=
18004 whole_archive_flag_spec_GCJ=
18005 thread_safe_flag_spec_GCJ=
18006 hardcode_libdir_flag_spec_GCJ=
18007 hardcode_libdir_flag_spec_ld_GCJ=
18008 hardcode_libdir_separator_GCJ=
18009 hardcode_direct_GCJ=no
18010 hardcode_minus_L_GCJ=no
18011 hardcode_shlibpath_var_GCJ=unsupported
18012 link_all_deplibs_GCJ=unknown
18013 hardcode_automatic_GCJ=no
18015 module_expsym_cmds_GCJ=
18016 always_export_symbols_GCJ=no
18017 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18018 # include_expsyms should be a list of space-separated symbols to be *always*
18019 # included in the symbol list
18020 include_expsyms_GCJ=
18021 # exclude_expsyms can be an extended regexp of symbols to exclude
18022 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18023 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18024 # as well as any symbol that contains `d'.
18025 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18026 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18027 # platforms (ab)use it in PIC code, but their linkers get confused if
18028 # the symbol is explicitly referenced. Since portable code cannot
18029 # rely on this symbol name, it's probably fine to never include it in
18030 # preloaded symbol tables.
18031 extract_expsyms_cmds=
18032 # Just being paranoid about ensuring that cc_basename is set.
18033 for cc_temp in $compiler""; do
18035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18041 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18044 cygwin* | mingw* | pw32*)
18045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18046 # When not using gcc, we currently assume that we are using
18047 # Microsoft Visual C++.
18048 if test "$GCC" != yes; then
18053 # we just hope/assume this is gcc and not c89 (= MSVC++)
18062 if test "$with_gnu_ld" = yes; then
18063 # If archive_cmds runs LD, not CC, wlarc should be empty
18066 # Set some defaults for GNU ld with shared library support. These
18067 # are reset later if shared libraries are not supported. Putting them
18068 # here allows them to be overridden if necessary.
18069 runpath_var=LD_RUN_PATH
18070 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18071 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18072 # ancient GNU ld didn't support --whole-archive et. al.
18073 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18074 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18076 whole_archive_flag_spec_GCJ=
18078 supports_anon_versioning=no
18079 case `$LD -v 2>/dev/null` in
18080 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18081 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18082 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18083 *\ 2.11.*) ;; # other 2.11 versions
18084 *) supports_anon_versioning=yes ;;
18087 # See if GNU ld supports shared libraries.
18089 aix3* | aix4* | aix5*)
18090 # On AIX/PPC, the GNU linker is very broken
18091 if test "$host_cpu" != ia64; then
18095 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18096 *** to be unable to reliably create shared libraries on AIX.
18097 *** Therefore, libtool is disabling shared libraries support. If you
18098 *** really care for shared libraries, you may want to modify your PATH
18099 *** so that a non-GNU linker is found, and then restart.
18106 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)'
18107 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18108 hardcode_minus_L_GCJ=yes
18110 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18111 # that the semantics of dynamic libraries on AmigaOS, at least up
18112 # to version 4, is to share data among multiple programs linked
18113 # with the same dynamic library. Since this doesn't match the
18114 # behavior of shared libraries on other platforms, we can't use
18120 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18121 allow_undefined_flag_GCJ=unsupported
18122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18123 # support --undefined. This deserves some investigation. FIXME
18124 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18130 cygwin* | mingw* | pw32*)
18131 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18132 # as there is no search path for DLLs.
18133 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18134 allow_undefined_flag_GCJ=unsupported
18135 always_export_symbols_GCJ=no
18136 enable_shared_with_static_runtimes_GCJ=yes
18137 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18139 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18140 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18141 # If the export-symbols file already is a .def file (1st line
18142 # is EXPORTS), use it as is; otherwise, prepend...
18143 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18144 cp $export_symbols $output_objdir/$soname.def;
18146 echo EXPORTS > $output_objdir/$soname.def;
18147 cat $export_symbols >> $output_objdir/$soname.def;
18149 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18156 hardcode_direct_GCJ=no
18157 hardcode_shlibpath_var_GCJ=no
18158 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18159 export_dynamic_flag_spec_GCJ='${wl}-E'
18160 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18161 # Instead, shared libraries are loaded at an image base (0x10000000 by
18162 # default) and relocated if they conflict, which is a slow very memory
18163 # consuming and fragmenting process. To avoid this, we pick a random,
18164 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18165 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18166 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'
18167 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'
18171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18173 case $cc_basename,$host_cpu in
18174 pgcc*) # Portland Group C compiler
18175 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'
18176 tmp_addflag=' $pic_flag'
18178 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18179 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'
18180 tmp_addflag=' $pic_flag -Mnomain' ;;
18181 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18182 tmp_addflag=' -i_dynamic' ;;
18183 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18184 tmp_addflag=' -i_dynamic -nofor_main' ;;
18185 ifc* | ifort*) # Intel Fortran compiler
18186 tmp_addflag=' -nofor_main' ;;
18188 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18190 if test $supports_anon_versioning = yes; then
18191 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18192 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18193 $echo "local: *; };" >> $output_objdir/$libname.ver~
18194 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18203 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18206 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18207 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18212 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18216 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18217 *** create shared libraries on Solaris systems. Therefore, libtool
18218 *** is disabling shared libraries support. We urge you to upgrade GNU
18219 *** binutils to release 2.9.1 or newer. Another option is to modify
18220 *** your PATH or compiler configuration so that the native linker is
18221 *** used, and then restart.
18224 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18225 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18226 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18233 case `$LD -v 2>&1` in
18234 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18238 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18239 *** reliably create shared libraries on SCO systems. Therefore, libtool
18240 *** is disabling shared libraries support. We urge you to upgrade GNU
18241 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18242 *** your PATH or compiler configuration so that the native linker is
18243 *** used, and then restart.
18248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18249 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18250 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18251 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18260 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18262 hardcode_direct_GCJ=yes
18263 hardcode_shlibpath_var_GCJ=no
18267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18268 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18269 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18276 if test "$ld_shlibs_GCJ" = no; then
18278 hardcode_libdir_flag_spec_GCJ=
18279 export_dynamic_flag_spec_GCJ=
18280 whole_archive_flag_spec_GCJ=
18283 # PORTME fill in a description of your system's linker (not GNU ld)
18286 allow_undefined_flag_GCJ=unsupported
18287 always_export_symbols_GCJ=yes
18288 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'
18289 # Note: this linker hardcodes the directories in LIBPATH if there
18290 # are no directories specified by -L.
18291 hardcode_minus_L_GCJ=yes
18292 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18293 # Neither direct hardcoding nor static linking is supported with a
18295 hardcode_direct_GCJ=unsupported
18300 if test "$host_cpu" = ia64; then
18301 # On IA64, the linker does run time linking by default, so we don't
18302 # have to do anything special.
18303 aix_use_runtimelinking=no
18304 exp_sym_flag='-Bexport'
18307 # If we're using GNU nm, then we don't want the "-C" option.
18308 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18309 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18310 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'
18312 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'
18314 aix_use_runtimelinking=no
18316 # Test if we are trying to use run time linking or normal
18317 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18318 # need to do runtime linking.
18319 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18320 for ld_flag in $LDFLAGS; do
18321 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18322 aix_use_runtimelinking=yes
18329 exp_sym_flag='-bexport'
18330 no_entry_flag='-bnoentry'
18333 # When large executables or shared objects are built, AIX ld can
18334 # have problems creating the table of contents. If linking a library
18335 # or program results in "error TOC overflow" add -mminimal-toc to
18336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18339 archive_cmds_GCJ=''
18340 hardcode_direct_GCJ=yes
18341 hardcode_libdir_separator_GCJ=':'
18342 link_all_deplibs_GCJ=yes
18344 if test "$GCC" = yes; then
18345 case $host_os in aix4.[012]|aix4.[012].*)
18346 # We only want to do this on AIX 4.2 and lower, the check
18347 # below for broken collect2 doesn't work under 4.3+
18348 collect2name=`${CC} -print-prog-name=collect2`
18349 if test -f "$collect2name" && \
18350 strings "$collect2name" | grep resolve_lib_name >/dev/null
18352 # We have reworked collect2
18353 hardcode_direct_GCJ=yes
18355 # We have old collect2
18356 hardcode_direct_GCJ=unsupported
18357 # It fails to find uninstalled libraries when the uninstalled
18358 # path is not listed in the libpath. Setting hardcode_minus_L
18359 # to unsupported forces relinking
18360 hardcode_minus_L_GCJ=yes
18361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18362 hardcode_libdir_separator_GCJ=
18366 shared_flag='-shared'
18367 if test "$aix_use_runtimelinking" = yes; then
18368 shared_flag="$shared_flag "'${wl}-G'
18372 if test "$host_cpu" = ia64; then
18373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18374 # chokes on -Wl,-G. The following line is correct:
18377 if test "$aix_use_runtimelinking" = yes; then
18378 shared_flag='${wl}-G'
18380 shared_flag='${wl}-bM:SRE'
18385 # It seems that -bexpall does not export symbols beginning with
18386 # underscore (_), so it is better to generate a list of symbols to export.
18387 always_export_symbols_GCJ=yes
18388 if test "$aix_use_runtimelinking" = yes; then
18389 # Warning - without using the other runtime loading flags (-brtl),
18390 # -berok will link without error, but may produce a broken library.
18391 allow_undefined_flag_GCJ='-berok'
18392 # Determine the default libpath from the value encoded in an empty executable.
18393 cat >conftest.$ac_ext <<_ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18415 $as_echo "$ac_try_echo") >&5
18416 (eval "$ac_link") 2>conftest.er1
18418 grep -v '^ *+' conftest.er1 >conftest.err
18420 cat conftest.err >&5
18421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } && {
18423 test -z "$ac_c_werror_flag" ||
18424 test ! -s conftest.err
18425 } && test -s conftest$ac_exeext && {
18426 test "$cross_compiling" = yes ||
18427 $as_test_x conftest$ac_exeext
18430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18432 # Check for a 64-bit object if we didn't find anything.
18433 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18436 $as_echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18442 rm -rf conftest.dSYM
18443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444 conftest$ac_exeext conftest.$ac_ext
18445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18447 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18448 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"
18450 if test "$host_cpu" = ia64; then
18451 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18452 allow_undefined_flag_GCJ="-z nodefs"
18453 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"
18455 # Determine the default libpath from the value encoded in an empty executable.
18456 cat >conftest.$ac_ext <<_ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18478 $as_echo "$ac_try_echo") >&5
18479 (eval "$ac_link") 2>conftest.er1
18481 grep -v '^ *+' conftest.er1 >conftest.err
18483 cat conftest.err >&5
18484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } && {
18486 test -z "$ac_c_werror_flag" ||
18487 test ! -s conftest.err
18488 } && test -s conftest$ac_exeext && {
18489 test "$cross_compiling" = yes ||
18490 $as_test_x conftest$ac_exeext
18493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18495 # Check for a 64-bit object if we didn't find anything.
18496 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18499 $as_echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18505 rm -rf conftest.dSYM
18506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18507 conftest$ac_exeext conftest.$ac_ext
18508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18510 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18511 # Warning - without using the other run time loading flags,
18512 # -berok will link without error, but may produce a broken library.
18513 no_undefined_flag_GCJ=' ${wl}-bernotok'
18514 allow_undefined_flag_GCJ=' ${wl}-berok'
18515 # Exported symbols can be pulled into shared objects from archives
18516 whole_archive_flag_spec_GCJ='$convenience'
18517 archive_cmds_need_lc_GCJ=yes
18518 # This is similar to how AIX traditionally builds its shared libraries.
18519 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'
18525 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)'
18526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18527 hardcode_minus_L_GCJ=yes
18528 # see comment about different semantics on the GNU ld section
18533 export_dynamic_flag_spec_GCJ=-rdynamic
18536 cygwin* | mingw* | pw32*)
18537 # When not using gcc, we currently assume that we are using
18538 # Microsoft Visual C++.
18539 # hardcode_libdir_flag_spec is actually meaningless, as there is
18540 # no search path for DLLs.
18541 hardcode_libdir_flag_spec_GCJ=' '
18542 allow_undefined_flag_GCJ=unsupported
18543 # Tell ltmain to make .lib files, not .a files.
18545 # Tell ltmain to make .dll files, not .so files.
18547 # FIXME: Setting linknames here is a bad hack.
18548 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18549 # The linker will automatically build a .lib file if we build a DLL.
18550 old_archive_From_new_cmds_GCJ='true'
18551 # FIXME: Should let the user specify the lib program.
18552 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18553 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18554 enable_shared_with_static_runtimes_GCJ=yes
18557 darwin* | rhapsody*)
18559 rhapsody* | darwin1.[012])
18560 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18563 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18564 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18566 case ${MACOSX_DEPLOYMENT_TARGET} in
18568 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18571 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18577 archive_cmds_need_lc_GCJ=no
18578 hardcode_direct_GCJ=no
18579 hardcode_automatic_GCJ=yes
18580 hardcode_shlibpath_var_GCJ=unsupported
18581 whole_archive_flag_spec_GCJ=''
18582 link_all_deplibs_GCJ=yes
18583 if test "$GCC" = yes ; then
18584 output_verbose_link_cmd='echo'
18585 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18586 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18587 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18588 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}'
18589 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}'
18591 case $cc_basename in
18593 output_verbose_link_cmd='echo'
18594 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18595 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18596 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18597 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18598 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}'
18608 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18610 hardcode_shlibpath_var_GCJ=no
18617 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18618 # support. Future versions do this automatically, but an explicit c++rt0.o
18619 # does not break anything, and helps significantly (at the cost of a little
18622 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18623 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18624 hardcode_direct_GCJ=yes
18625 hardcode_shlibpath_var_GCJ=no
18628 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18630 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18631 hardcode_direct_GCJ=yes
18632 hardcode_minus_L_GCJ=yes
18633 hardcode_shlibpath_var_GCJ=no
18636 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18637 freebsd* | kfreebsd*-gnu | dragonfly*)
18638 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18639 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18640 hardcode_direct_GCJ=yes
18641 hardcode_shlibpath_var_GCJ=no
18645 if test "$GCC" = yes; then
18646 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'
18648 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'
18650 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18651 hardcode_libdir_separator_GCJ=:
18652 hardcode_direct_GCJ=yes
18654 # hardcode_minus_L: Not really in the search PATH,
18655 # but as the default location of the library.
18656 hardcode_minus_L_GCJ=yes
18657 export_dynamic_flag_spec_GCJ='${wl}-E'
18661 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18662 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18664 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18666 if test "$with_gnu_ld" = no; then
18667 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18668 hardcode_libdir_separator_GCJ=:
18670 hardcode_direct_GCJ=yes
18671 export_dynamic_flag_spec_GCJ='${wl}-E'
18673 # hardcode_minus_L: Not really in the search PATH,
18674 # but as the default location of the library.
18675 hardcode_minus_L_GCJ=yes
18680 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18683 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18686 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18689 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18695 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18698 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18701 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18705 if test "$with_gnu_ld" = no; then
18706 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18707 hardcode_libdir_separator_GCJ=:
18711 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18712 hardcode_direct_GCJ=no
18713 hardcode_shlibpath_var_GCJ=no
18716 hardcode_direct_GCJ=yes
18717 export_dynamic_flag_spec_GCJ='${wl}-E'
18719 # hardcode_minus_L: Not really in the search PATH,
18720 # but as the default location of the library.
18721 hardcode_minus_L_GCJ=yes
18727 irix5* | irix6* | nonstopux*)
18728 if test "$GCC" = yes; then
18729 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'
18731 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'
18732 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18735 hardcode_libdir_separator_GCJ=:
18736 link_all_deplibs_GCJ=yes
18740 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18741 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18743 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18745 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18746 hardcode_direct_GCJ=yes
18747 hardcode_shlibpath_var_GCJ=no
18751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18752 hardcode_direct_GCJ=yes
18753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18754 hardcode_libdir_separator_GCJ=:
18755 hardcode_shlibpath_var_GCJ=no
18759 hardcode_direct_GCJ=yes
18760 hardcode_shlibpath_var_GCJ=no
18761 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18762 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18763 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18765 export_dynamic_flag_spec_GCJ='${wl}-E'
18768 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18769 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18770 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18773 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18774 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18782 hardcode_minus_L_GCJ=yes
18783 allow_undefined_flag_GCJ=unsupported
18784 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'
18785 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18789 if test "$GCC" = yes; then
18790 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18791 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'
18793 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18794 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'
18796 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18797 hardcode_libdir_separator_GCJ=:
18800 osf4* | osf5*) # as osf3* with the addition of -msym flag
18801 if test "$GCC" = yes; then
18802 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18803 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'
18804 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18806 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18807 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'
18808 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~
18809 $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'
18811 # Both c and cxx compiler support -rpath directly
18812 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18814 hardcode_libdir_separator_GCJ=:
18818 no_undefined_flag_GCJ=' -z text'
18819 if test "$GCC" = yes; then
18821 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18822 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18823 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18826 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18827 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18828 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18830 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18831 hardcode_shlibpath_var_GCJ=no
18833 solaris2.[0-5] | solaris2.[0-5].*) ;;
18835 # The compiler driver will combine linker options so we
18836 # cannot just pass the convience library names through
18837 # without $wl, iff we do not link with $LD.
18838 # Luckily, gcc supports the same syntax we need for Sun Studio.
18839 # Supported since Solaris 2.6 (maybe 2.5.1?)
18842 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18844 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18847 link_all_deplibs_GCJ=yes
18851 if test "x$host_vendor" = xsequent; then
18852 # Use $CC to link under sequent, because it throws in some extra .o
18853 # files that make .init and .fini sections work.
18854 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18856 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859 hardcode_direct_GCJ=yes
18860 hardcode_minus_L_GCJ=yes
18861 hardcode_shlibpath_var_GCJ=no
18865 case $host_vendor in
18867 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18868 hardcode_direct_GCJ=yes # is this really true???
18871 ## LD is ld it makes a PLAMLIB
18872 ## CC just makes a GrossModule.
18873 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18874 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18875 hardcode_direct_GCJ=no
18878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18879 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18882 runpath_var='LD_RUN_PATH'
18883 hardcode_shlibpath_var_GCJ=no
18887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18888 hardcode_shlibpath_var_GCJ=no
18889 export_dynamic_flag_spec_GCJ='-Bexport'
18893 if test -d /usr/nec; then
18894 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18895 hardcode_shlibpath_var_GCJ=no
18896 runpath_var=LD_RUN_PATH
18897 hardcode_runpath_var=yes
18902 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18903 no_undefined_flag_GCJ='${wl}-z,text'
18904 archive_cmds_need_lc_GCJ=no
18905 hardcode_shlibpath_var_GCJ=no
18906 runpath_var='LD_RUN_PATH'
18908 if test "$GCC" = yes; then
18909 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18910 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18912 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18913 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18917 sysv5* | sco3.2v5* | sco5v6*)
18918 # Note: We can NOT use -z defs as we might desire, because we do not
18919 # link with -lc, and that would cause any symbols used from libc to
18920 # always be unresolved, which means just about no library would
18921 # ever link correctly. If we're not using GNU ld we use -z text
18922 # though, which does catch some bad symbols but isn't as heavy-handed
18924 no_undefined_flag_GCJ='${wl}-z,text'
18925 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18926 archive_cmds_need_lc_GCJ=no
18927 hardcode_shlibpath_var_GCJ=no
18928 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18929 hardcode_libdir_separator_GCJ=':'
18930 link_all_deplibs_GCJ=yes
18931 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18932 runpath_var='LD_RUN_PATH'
18934 if test "$GCC" = yes; then
18935 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18936 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18938 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18939 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18944 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18945 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18946 hardcode_shlibpath_var_GCJ=no
18955 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18956 $as_echo "$ld_shlibs_GCJ" >&6; }
18957 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18960 # Do we need to explicitly link libc?
18962 case "x$archive_cmds_need_lc_GCJ" in
18964 # Assume -lc should be added
18965 archive_cmds_need_lc_GCJ=yes
18967 if test "$enable_shared" = yes && test "$GCC" = yes; then
18968 case $archive_cmds_GCJ in
18970 # FIXME: we may have to deal with multi-command sequences.
18973 # Test whether the compiler implicitly links with -lc since on some
18974 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18975 # to ld, don't add -lc before -lgcc.
18976 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18977 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982 (eval $ac_compile) 2>&5
18984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } 2>conftest.err; then
18988 libobjs=conftest.$ac_objext
18990 wl=$lt_prog_compiler_wl_GCJ
18991 pic_flag=$lt_prog_compiler_pic_GCJ
18997 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18998 allow_undefined_flag_GCJ=
18999 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19000 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }
19005 archive_cmds_need_lc_GCJ=no
19007 archive_cmds_need_lc_GCJ=yes
19009 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19011 cat conftest.err 1>&5
19014 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19015 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
19022 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19024 library_names_spec=
19025 libname_spec='lib$name'
19029 postuninstall_cmds=
19033 shlibpath_overrides_runpath=unknown
19035 dynamic_linker="$host_os ld.so"
19036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19037 if test "$GCC" = yes; then
19038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19039 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19040 # if the path contains ";" then we assume it to be the separator
19041 # otherwise default to the standard path separator (i.e. ":") - it is
19042 # assumed that no part of a normal pathname contains ";" but that should
19043 # okay in the real world where ";" in dirpaths is itself problematic.
19044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19051 need_lib_prefix=unknown
19052 hardcode_into_libs=no
19054 # when you set need_version to no, make sure it does not cause -set_version
19055 # flags to be left without arguments
19056 need_version=unknown
19061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19062 shlibpath_var=LIBPATH
19064 # AIX 3 has no versioning support, so we append a major version to the name.
19065 soname_spec='${libname}${release}${shared_ext}$major'
19072 hardcode_into_libs=yes
19073 if test "$host_cpu" = ia64; then
19074 # AIX 5 supports IA64
19075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19076 shlibpath_var=LD_LIBRARY_PATH
19078 # With GCC up to 2.95.x, collect2 would create an import file
19079 # for dependence libraries. The import file would start with
19080 # the line `#! .'. This would cause the generated library to
19081 # depend on `.', always an invalid library. This was fixed in
19082 # development snapshots of GCC prior to 3.0.
19084 aix4 | aix4.[01] | aix4.[01].*)
19085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19087 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19090 can_build_shared=no
19094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19095 # soname into executable. Probably we can add versioning support to
19096 # collect2, so additional links can be useful in future.
19097 if test "$aix_use_runtimelinking" = yes; then
19098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19099 # instead of lib<name>.a to let people know that these are not
19100 # typical AIX shared libraries.
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19103 # We preserve .a as extension for shared libraries through AIX4.2
19104 # and later when we are not doing run time linking.
19105 library_names_spec='${libname}${release}.a $libname.a'
19106 soname_spec='${libname}${release}${shared_ext}$major'
19108 shlibpath_var=LIBPATH
19113 library_names_spec='$libname.ixlibrary $libname.a'
19114 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19115 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'
19119 library_names_spec='${libname}${shared_ext}'
19120 dynamic_linker="$host_os ld.so"
19121 shlibpath_var=LIBRARY_PATH
19127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19128 soname_spec='${libname}${release}${shared_ext}$major'
19129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19130 shlibpath_var=LD_LIBRARY_PATH
19131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19133 # the default ld.so.conf also contains /usr/contrib/lib and
19134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19135 # libtool to hard-code these into programs
19138 cygwin* | mingw* | pw32*)
19139 version_type=windows
19144 case $GCC,$host_os in
19145 yes,cygwin* | yes,mingw* | yes,pw32*)
19146 library_names_spec='$libname.dll.a'
19147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19148 postinstall_cmds='base_file=`basename \${file}`~
19149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19150 dldir=$destdir/`dirname \$dlpath`~
19151 test -d \$dldir || mkdir -p \$dldir~
19152 $install_prog $dir/$dlname \$dldir/$dlname~
19153 chmod a+x \$dldir/$dlname'
19154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19155 dlpath=$dir/\$dldll~
19157 shlibpath_overrides_runpath=yes
19161 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19163 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19166 # MinGW DLLs use traditional 'lib' prefix
19167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19169 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19170 # It is most probably a Windows format PATH printed by
19171 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19172 # path with ; separators, and with drive letters. We can handle the
19173 # drive letters (cygwin fileutils understands them), so leave them,
19174 # especially as we might pass files found there to a mingw objdump,
19175 # which wouldn't understand a cygwinified path. Ahh.
19176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19182 # pw32 DLLs use 'pw' prefix rather than 'lib'
19183 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19192 dynamic_linker='Win32 ld.exe'
19193 # FIXME: first we should search . and the directory the executable is in
19197 darwin* | rhapsody*)
19198 dynamic_linker="$host_os dyld"
19199 version_type=darwin
19202 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19203 soname_spec='${libname}${release}${major}$shared_ext'
19204 shlibpath_overrides_runpath=yes
19205 shlibpath_var=DYLD_LIBRARY_PATH
19206 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19207 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19208 if test "$GCC" = yes; then
19209 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19211 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19213 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19221 soname_spec='${libname}${release}${shared_ext}$major'
19222 shlibpath_var=LD_LIBRARY_PATH
19233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19234 soname_spec='${libname}${release}${shared_ext}$major'
19235 shlibpath_var=LD_LIBRARY_PATH
19236 shlibpath_overrides_runpath=no
19237 hardcode_into_libs=yes
19238 dynamic_linker='GNU ld.so'
19241 freebsd* | dragonfly*)
19242 # DragonFly does not have aout. When/if they implement a new
19243 # versioning mechanism, adjust this.
19244 if test -x /usr/bin/objformat; then
19245 objformat=`/usr/bin/objformat`
19248 freebsd[123]*) objformat=aout ;;
19249 *) objformat=elf ;;
19252 version_type=freebsd-$objformat
19253 case $version_type in
19255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19264 shlibpath_var=LD_LIBRARY_PATH
19267 shlibpath_overrides_runpath=yes
19269 freebsd3.[01]* | freebsdelf3.[01]*)
19270 shlibpath_overrides_runpath=yes
19271 hardcode_into_libs=yes
19273 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19274 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19275 shlibpath_overrides_runpath=no
19276 hardcode_into_libs=yes
19278 freebsd*) # from 4.6 on
19279 shlibpath_overrides_runpath=yes
19280 hardcode_into_libs=yes
19289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19290 soname_spec='${libname}${release}${shared_ext}$major'
19291 shlibpath_var=LD_LIBRARY_PATH
19292 hardcode_into_libs=yes
19295 hpux9* | hpux10* | hpux11*)
19296 # Give a soname corresponding to the major version so that dld.sl refuses to
19297 # link against other versions.
19304 hardcode_into_libs=yes
19305 dynamic_linker="$host_os dld.so"
19306 shlibpath_var=LD_LIBRARY_PATH
19307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19309 soname_spec='${libname}${release}${shared_ext}$major'
19310 if test "X$HPUX_IA64_MODE" = X32; then
19311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19319 hardcode_into_libs=yes
19320 dynamic_linker="$host_os dld.sl"
19321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19324 soname_spec='${libname}${release}${shared_ext}$major'
19325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19330 dynamic_linker="$host_os dld.sl"
19331 shlibpath_var=SHLIB_PATH
19332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19334 soname_spec='${libname}${release}${shared_ext}$major'
19337 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19338 postinstall_cmds='chmod 555 $lib'
19345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19346 soname_spec='${libname}${release}${shared_ext}$major'
19347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19348 shlibpath_var=LD_LIBRARY_PATH
19349 shlibpath_overrides_runpath=no
19350 hardcode_into_libs=yes
19353 irix5* | irix6* | nonstopux*)
19355 nonstopux*) version_type=nonstopux ;;
19357 if test "$lt_cv_prog_gnu_ld" = yes; then
19365 soname_spec='${libname}${release}${shared_ext}$major'
19366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19368 irix5* | nonstopux*)
19369 libsuff= shlibsuff=
19372 case $LD in # libtool.m4 will add one of these switches to LD
19373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19374 libsuff= shlibsuff= libmagic=32-bit;;
19375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19376 libsuff=32 shlibsuff=N32 libmagic=N32;;
19377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19379 *) libsuff= shlibsuff= libmagic=never-match;;
19383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19384 shlibpath_overrides_runpath=no
19385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19387 hardcode_into_libs=yes
19390 # No shared lib support for Linux oldld, aout, or coff.
19391 linux*oldld* | linux*aout* | linux*coff*)
19395 # This must be Linux ELF.
19400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19401 soname_spec='${libname}${release}${shared_ext}$major'
19402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19403 shlibpath_var=LD_LIBRARY_PATH
19404 shlibpath_overrides_runpath=no
19405 # This implies no fast_install, which is unacceptable.
19406 # Some rework will be needed to allow for fast_install
19407 # before this can be enabled.
19408 hardcode_into_libs=yes
19410 # Append ld.so.conf contents to the search path
19411 if test -f /etc/ld.so.conf; then
19412 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19413 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19416 # We used to test for /lib/ld.so.1 and disable shared libraries on
19417 # powerpc, because MkLinux only supported shared libraries with the
19418 # GNU dynamic linker. Since this was broken with cross compilers,
19419 # most powerpc-linux boxes support dynamic linking these days and
19420 # people can always --disable-shared, the test was removed, and we
19421 # assume the GNU/Linux dynamic linker is in use.
19422 dynamic_linker='GNU/Linux ld.so'
19429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19430 soname_spec='${libname}${release}${shared_ext}$major'
19431 shlibpath_var=LD_LIBRARY_PATH
19432 shlibpath_overrides_runpath=no
19433 hardcode_into_libs=yes
19434 dynamic_linker='GNU ld.so'
19441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19444 dynamic_linker='NetBSD (a.out) ld.so'
19446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19447 soname_spec='${libname}${release}${shared_ext}$major'
19448 dynamic_linker='NetBSD ld.elf_so'
19450 shlibpath_var=LD_LIBRARY_PATH
19451 shlibpath_overrides_runpath=yes
19452 hardcode_into_libs=yes
19457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19458 shlibpath_var=LD_LIBRARY_PATH
19459 shlibpath_overrides_runpath=yes
19466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19467 soname_spec='${libname}${release}${shared_ext}$major'
19468 shlibpath_var=LD_LIBRARY_PATH
19469 shlibpath_overrides_runpath=yes
19474 sys_lib_dlsearch_path_spec="/usr/lib"
19476 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19478 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19479 *) need_version=no ;;
19481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19483 shlibpath_var=LD_LIBRARY_PATH
19484 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19486 openbsd2.[89] | openbsd2.[89].*)
19487 shlibpath_overrides_runpath=no
19490 shlibpath_overrides_runpath=yes
19494 shlibpath_overrides_runpath=yes
19499 libname_spec='$name'
19502 library_names_spec='$libname${shared_ext} $libname.a'
19503 dynamic_linker='OS/2 ld.exe'
19504 shlibpath_var=LIBPATH
19507 osf3* | osf4* | osf5*)
19511 soname_spec='${libname}${release}${shared_ext}$major'
19512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19513 shlibpath_var=LD_LIBRARY_PATH
19514 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19515 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 shlibpath_var=LD_LIBRARY_PATH
19525 shlibpath_overrides_runpath=yes
19526 hardcode_into_libs=yes
19527 # ldd complains unless libraries are executable
19528 postinstall_cmds='chmod +x $lib'
19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19534 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19535 shlibpath_var=LD_LIBRARY_PATH
19536 shlibpath_overrides_runpath=yes
19537 if test "$with_gnu_ld" = yes; then
19545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19546 soname_spec='${libname}${release}${shared_ext}$major'
19547 shlibpath_var=LD_LIBRARY_PATH
19548 case $host_vendor in
19550 shlibpath_overrides_runpath=no
19552 export_dynamic_flag_spec='${wl}-Blargedynsym'
19553 runpath_var=LD_RUN_PATH
19561 shlibpath_overrides_runpath=no
19562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19568 if test -d /usr/nec ;then
19570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19571 soname_spec='$libname${shared_ext}.$major'
19572 shlibpath_var=LD_LIBRARY_PATH
19576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19577 version_type=freebsd-elf
19580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19581 soname_spec='${libname}${release}${shared_ext}$major'
19582 shlibpath_var=LD_LIBRARY_PATH
19583 hardcode_into_libs=yes
19584 if test "$with_gnu_ld" = yes; then
19585 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19586 shlibpath_overrides_runpath=no
19588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19589 shlibpath_overrides_runpath=yes
19592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19596 sys_lib_dlsearch_path_spec='/usr/lib'
19601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19602 soname_spec='${libname}${release}${shared_ext}$major'
19603 shlibpath_var=LD_LIBRARY_PATH
19610 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19611 $as_echo "$dynamic_linker" >&6; }
19612 test "$dynamic_linker" = no && can_build_shared=no
19614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19615 if test "$GCC" = yes; then
19616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19619 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19620 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19621 hardcode_action_GCJ=
19622 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19623 test -n "$runpath_var_GCJ" || \
19624 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19626 # We can hardcode non-existant directories.
19627 if test "$hardcode_direct_GCJ" != no &&
19628 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19629 # have to relink, otherwise we might link with an installed library
19630 # when we should be linking with a yet-to-be-installed one
19631 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19632 test "$hardcode_minus_L_GCJ" != no; then
19633 # Linking always hardcodes the temporary library directory.
19634 hardcode_action_GCJ=relink
19636 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19637 hardcode_action_GCJ=immediate
19640 # We cannot hardcode anything, or else we can only hardcode existing
19642 hardcode_action_GCJ=unsupported
19644 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19645 $as_echo "$hardcode_action_GCJ" >&6; }
19647 if test "$hardcode_action_GCJ" = relink; then
19648 # Fast installation is not supported
19649 enable_fast_install=no
19650 elif test "$shlibpath_overrides_runpath" = yes ||
19651 test "$enable_shared" = no; then
19652 # Fast installation is not necessary
19653 enable_fast_install=needless
19657 # The else clause should only fire when bootstrapping the
19658 # libtool distribution, otherwise you forgot to ship ltmain.sh
19659 # with your package, and you will get complaints that there are
19660 # no rules to generate ltmain.sh.
19661 if test -f "$ltmain"; then
19662 # See if we are running on zsh, and set the options which allow our commands through
19663 # without removal of \ escapes.
19664 if test -n "${ZSH_VERSION+set}" ; then
19665 setopt NO_GLOB_SUBST
19667 # Now quote all the things that may contain metacharacters while being
19668 # careful not to overquote the AC_SUBSTed values. We take copies of the
19669 # variables and quote the copies for generation of the libtool script.
19670 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19672 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19673 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19674 deplibs_check_method reload_flag reload_cmds need_locks \
19675 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19676 lt_cv_sys_global_symbol_to_c_name_address \
19677 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19678 old_postinstall_cmds old_postuninstall_cmds \
19682 lt_prog_compiler_wl_GCJ \
19683 lt_prog_compiler_pic_GCJ \
19684 lt_prog_compiler_static_GCJ \
19685 lt_prog_compiler_no_builtin_flag_GCJ \
19686 export_dynamic_flag_spec_GCJ \
19687 thread_safe_flag_spec_GCJ \
19688 whole_archive_flag_spec_GCJ \
19689 enable_shared_with_static_runtimes_GCJ \
19690 old_archive_cmds_GCJ \
19691 old_archive_from_new_cmds_GCJ \
19692 predep_objects_GCJ \
19693 postdep_objects_GCJ \
19696 compiler_lib_search_path_GCJ \
19698 archive_expsym_cmds_GCJ \
19699 postinstall_cmds_GCJ \
19700 postuninstall_cmds_GCJ \
19701 old_archive_from_expsyms_cmds_GCJ \
19702 allow_undefined_flag_GCJ \
19703 no_undefined_flag_GCJ \
19704 export_symbols_cmds_GCJ \
19705 hardcode_libdir_flag_spec_GCJ \
19706 hardcode_libdir_flag_spec_ld_GCJ \
19707 hardcode_libdir_separator_GCJ \
19708 hardcode_automatic_GCJ \
19710 module_expsym_cmds_GCJ \
19711 lt_cv_prog_compiler_c_o_GCJ \
19712 exclude_expsyms_GCJ \
19713 include_expsyms_GCJ; do
19716 old_archive_cmds_GCJ | \
19717 old_archive_from_new_cmds_GCJ | \
19718 archive_cmds_GCJ | \
19719 archive_expsym_cmds_GCJ | \
19720 module_cmds_GCJ | \
19721 module_expsym_cmds_GCJ | \
19722 old_archive_from_expsyms_cmds_GCJ | \
19723 export_symbols_cmds_GCJ | \
19724 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19725 postinstall_cmds | postuninstall_cmds | \
19726 old_postinstall_cmds | old_postuninstall_cmds | \
19727 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19728 # Double-quote double-evaled strings.
19729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19738 *'\$0 --fallback-echo"')
19739 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19745 cat <<__EOF__ >> "$cfgfile"
19746 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19750 # Shell to use when invoking shell scripts.
19753 # Whether or not to build shared libraries.
19754 build_libtool_libs=$enable_shared
19756 # Whether or not to build static libraries.
19757 build_old_libs=$enable_static
19759 # Whether or not to add -lc for building shared libraries.
19760 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19762 # Whether or not to disallow shared libs when runtime libs are static
19763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19765 # Whether or not to optimize for fast installation.
19766 fast_install=$enable_fast_install
19769 host_alias=$host_alias
19773 # The build system.
19774 build_alias=$build_alias
19778 # An echo program that does not interpret backslashes.
19783 AR_FLAGS=$lt_AR_FLAGS
19788 # LTCC compiler flags.
19789 LTCFLAGS=$lt_LTCFLAGS
19791 # A language-specific compiler.
19792 CC=$lt_compiler_GCJ
19794 # Is the compiler the GNU C compiler?
19800 # The linker used to build libraries.
19803 # Whether we need hard or soft links.
19806 # A BSD-compatible nm program.
19809 # A symbol stripping program
19812 # Used to examine libraries when file_magic_cmd begins "file"
19813 MAGIC_CMD=$MAGIC_CMD
19815 # Used on cygwin: DLL creation program.
19818 # Used on cygwin: object dumper.
19821 # Used on cygwin: assembler.
19824 # The name of the directory that contains temporary libtool files.
19827 # How to create reloadable object files.
19828 reload_flag=$lt_reload_flag
19829 reload_cmds=$lt_reload_cmds
19831 # How to pass a linker flag through the compiler.
19832 wl=$lt_lt_prog_compiler_wl_GCJ
19834 # Object file suffix (normally "o").
19835 objext="$ac_objext"
19837 # Old archive suffix (normally "a").
19840 # Shared library suffix (normally ".so").
19841 shrext_cmds='$shrext_cmds'
19843 # Executable file suffix (normally "").
19846 # Additional compiler flags for building library objects.
19847 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19850 # What is the maximum length of a command?
19851 max_cmd_len=$lt_cv_sys_max_cmd_len
19853 # Does compiler simultaneously support -c and -o options?
19854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19856 # Must we lock files when doing compilation?
19857 need_locks=$lt_need_locks
19859 # Do we need the lib prefix for modules?
19860 need_lib_prefix=$need_lib_prefix
19862 # Do we need a version for libraries?
19863 need_version=$need_version
19865 # Whether dlopen is supported.
19866 dlopen_support=$enable_dlopen
19868 # Whether dlopen of programs is supported.
19869 dlopen_self=$enable_dlopen_self
19871 # Whether dlopen of statically linked programs is supported.
19872 dlopen_self_static=$enable_dlopen_self_static
19874 # Compiler flag to prevent dynamic linking.
19875 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19877 # Compiler flag to turn off builtin functions.
19878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19880 # Compiler flag to allow reflexive dlopens.
19881 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19883 # Compiler flag to generate shared objects directly from archives.
19884 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19886 # Compiler flag to generate thread-safe objects.
19887 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19889 # Library versioning type.
19890 version_type=$version_type
19892 # Format of library name prefix.
19893 libname_spec=$lt_libname_spec
19895 # List of archive names. First name is the real one, the rest are links.
19896 # The last name is the one that the linker finds with -lNAME.
19897 library_names_spec=$lt_library_names_spec
19899 # The coded name of the library, if different from the real name.
19900 soname_spec=$lt_soname_spec
19902 # Commands used to build and install an old-style archive.
19904 old_archive_cmds=$lt_old_archive_cmds_GCJ
19905 old_postinstall_cmds=$lt_old_postinstall_cmds
19906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19908 # Create an old-style archive from a shared archive.
19909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19911 # Create a temporary old-style archive to link instead of a shared archive.
19912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19914 # Commands used to build and install a shared archive.
19915 archive_cmds=$lt_archive_cmds_GCJ
19916 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19917 postinstall_cmds=$lt_postinstall_cmds
19918 postuninstall_cmds=$lt_postuninstall_cmds
19920 # Commands used to build a loadable module (assumed same as above if empty)
19921 module_cmds=$lt_module_cmds_GCJ
19922 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19924 # Commands to strip libraries.
19925 old_striplib=$lt_old_striplib
19926 striplib=$lt_striplib
19928 # Dependencies to place before the objects being linked to create a
19930 predep_objects=$lt_predep_objects_GCJ
19932 # Dependencies to place after the objects being linked to create a
19934 postdep_objects=$lt_postdep_objects_GCJ
19936 # Dependencies to place before the objects being linked to create a
19938 predeps=$lt_predeps_GCJ
19940 # Dependencies to place after the objects being linked to create a
19942 postdeps=$lt_postdeps_GCJ
19944 # The library search path used internally by the compiler when linking
19945 # a shared library.
19946 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19948 # Method to check whether dependent libraries are shared objects.
19949 deplibs_check_method=$lt_deplibs_check_method
19951 # Command to use when deplibs_check_method == file_magic.
19952 file_magic_cmd=$lt_file_magic_cmd
19954 # Flag that allows shared libraries with undefined symbols to be built.
19955 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19957 # Flag that forces no undefined symbols.
19958 no_undefined_flag=$lt_no_undefined_flag_GCJ
19960 # Commands used to finish a libtool library installation in a directory.
19961 finish_cmds=$lt_finish_cmds
19963 # Same as above, but a single script fragment to be evaled but not shown.
19964 finish_eval=$lt_finish_eval
19966 # Take the output of nm and produce a listing of raw symbols and C names.
19967 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19969 # Transform the output of nm in a proper C declaration
19970 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19972 # Transform the output of nm in a C name address pair
19973 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19975 # This is the shared library runtime path variable.
19976 runpath_var=$runpath_var
19978 # This is the shared library path variable.
19979 shlibpath_var=$shlibpath_var
19981 # Is shlibpath searched before the hard-coded library search path?
19982 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19984 # How to hardcode a shared library path into an executable.
19985 hardcode_action=$hardcode_action_GCJ
19987 # Whether we should hardcode library paths into libraries.
19988 hardcode_into_libs=$hardcode_into_libs
19990 # Flag to hardcode \$libdir into a binary during linking.
19991 # This must work even if \$libdir does not exist.
19992 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19994 # If ld is used when linking, flag to hardcode \$libdir into
19995 # a binary during linking. This must work even if \$libdir does
19997 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19999 # Whether we need a single -rpath flag with a separated argument.
20000 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20002 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20003 # resulting binary.
20004 hardcode_direct=$hardcode_direct_GCJ
20006 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20007 # resulting binary.
20008 hardcode_minus_L=$hardcode_minus_L_GCJ
20010 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20011 # the resulting binary.
20012 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20014 # Set to yes if building a shared library automatically hardcodes DIR into the library
20015 # and all subsequent libraries and executables linked against it.
20016 hardcode_automatic=$hardcode_automatic_GCJ
20018 # Variables whose values should be saved in libtool wrapper scripts and
20019 # restored at relink time.
20020 variables_saved_for_relink="$variables_saved_for_relink"
20022 # Whether libtool must link a program against all its dependency libraries.
20023 link_all_deplibs=$link_all_deplibs_GCJ
20025 # Compile-time system search path for libraries
20026 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20028 # Run-time system search path for libraries
20029 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20031 # Fix the shell variable \$srcfile for the compiler.
20032 fix_srcfile_path="$fix_srcfile_path_GCJ"
20034 # Set to yes if exported symbols are required.
20035 always_export_symbols=$always_export_symbols_GCJ
20037 # The commands to list exported symbols.
20038 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20040 # The commands to extract the exported symbol list from a shared archive.
20041 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20043 # Symbols that should not be listed in the preloaded symbols.
20044 exclude_expsyms=$lt_exclude_expsyms_GCJ
20046 # Symbols that must always be exported.
20047 include_expsyms=$lt_include_expsyms_GCJ
20049 # ### END LIBTOOL TAG CONFIG: $tagname
20055 # If there is no Makefile yet, we rely on a make rule to execute
20056 # `config.status --recheck' to rerun these tests and create the
20057 # libtool script then.
20058 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20059 if test -f "$ltmain_in"; then
20060 test -f Makefile && make "$ltmain"
20066 ac_cpp='$CPP $CPPFLAGS'
20067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20081 # Source file extension for RC test sources.
20084 # Object file extension for compiled RC test sources.
20088 # Code to be used in simple compile tests
20089 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20091 # Code to be used in simple link tests
20092 lt_simple_link_test_code="$lt_simple_compile_test_code"
20094 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20096 # If no C compiler was specified, use CC.
20099 # If no C compiler flags were specified, use CFLAGS.
20100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20102 # Allow CC to be a program name with arguments.
20106 # save warnings/boilerplate of simple test code
20107 ac_outfile=conftest.$ac_objext
20108 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20109 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20110 _lt_compiler_boilerplate=`cat conftest.err`
20113 ac_outfile=conftest.$ac_objext
20114 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20115 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20116 _lt_linker_boilerplate=`cat conftest.err`
20120 # Allow CC to be a program name with arguments.
20125 for cc_temp in $compiler""; do
20127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20133 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20135 lt_cv_prog_compiler_c_o_RC=yes
20137 # The else clause should only fire when bootstrapping the
20138 # libtool distribution, otherwise you forgot to ship ltmain.sh
20139 # with your package, and you will get complaints that there are
20140 # no rules to generate ltmain.sh.
20141 if test -f "$ltmain"; then
20142 # See if we are running on zsh, and set the options which allow our commands through
20143 # without removal of \ escapes.
20144 if test -n "${ZSH_VERSION+set}" ; then
20145 setopt NO_GLOB_SUBST
20147 # Now quote all the things that may contain metacharacters while being
20148 # careful not to overquote the AC_SUBSTed values. We take copies of the
20149 # variables and quote the copies for generation of the libtool script.
20150 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20152 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20153 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20154 deplibs_check_method reload_flag reload_cmds need_locks \
20155 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20156 lt_cv_sys_global_symbol_to_c_name_address \
20157 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20158 old_postinstall_cmds old_postuninstall_cmds \
20162 lt_prog_compiler_wl_RC \
20163 lt_prog_compiler_pic_RC \
20164 lt_prog_compiler_static_RC \
20165 lt_prog_compiler_no_builtin_flag_RC \
20166 export_dynamic_flag_spec_RC \
20167 thread_safe_flag_spec_RC \
20168 whole_archive_flag_spec_RC \
20169 enable_shared_with_static_runtimes_RC \
20170 old_archive_cmds_RC \
20171 old_archive_from_new_cmds_RC \
20172 predep_objects_RC \
20173 postdep_objects_RC \
20176 compiler_lib_search_path_RC \
20178 archive_expsym_cmds_RC \
20179 postinstall_cmds_RC \
20180 postuninstall_cmds_RC \
20181 old_archive_from_expsyms_cmds_RC \
20182 allow_undefined_flag_RC \
20183 no_undefined_flag_RC \
20184 export_symbols_cmds_RC \
20185 hardcode_libdir_flag_spec_RC \
20186 hardcode_libdir_flag_spec_ld_RC \
20187 hardcode_libdir_separator_RC \
20188 hardcode_automatic_RC \
20190 module_expsym_cmds_RC \
20191 lt_cv_prog_compiler_c_o_RC \
20192 exclude_expsyms_RC \
20193 include_expsyms_RC; do
20196 old_archive_cmds_RC | \
20197 old_archive_from_new_cmds_RC | \
20198 archive_cmds_RC | \
20199 archive_expsym_cmds_RC | \
20201 module_expsym_cmds_RC | \
20202 old_archive_from_expsyms_cmds_RC | \
20203 export_symbols_cmds_RC | \
20204 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20205 postinstall_cmds | postuninstall_cmds | \
20206 old_postinstall_cmds | old_postuninstall_cmds | \
20207 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20208 # Double-quote double-evaled strings.
20209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20212 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20218 *'\$0 --fallback-echo"')
20219 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20225 cat <<__EOF__ >> "$cfgfile"
20226 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20228 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20230 # Shell to use when invoking shell scripts.
20233 # Whether or not to build shared libraries.
20234 build_libtool_libs=$enable_shared
20236 # Whether or not to build static libraries.
20237 build_old_libs=$enable_static
20239 # Whether or not to add -lc for building shared libraries.
20240 build_libtool_need_lc=$archive_cmds_need_lc_RC
20242 # Whether or not to disallow shared libs when runtime libs are static
20243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20245 # Whether or not to optimize for fast installation.
20246 fast_install=$enable_fast_install
20249 host_alias=$host_alias
20253 # The build system.
20254 build_alias=$build_alias
20258 # An echo program that does not interpret backslashes.
20263 AR_FLAGS=$lt_AR_FLAGS
20268 # LTCC compiler flags.
20269 LTCFLAGS=$lt_LTCFLAGS
20271 # A language-specific compiler.
20274 # Is the compiler the GNU C compiler?
20280 # The linker used to build libraries.
20283 # Whether we need hard or soft links.
20286 # A BSD-compatible nm program.
20289 # A symbol stripping program
20292 # Used to examine libraries when file_magic_cmd begins "file"
20293 MAGIC_CMD=$MAGIC_CMD
20295 # Used on cygwin: DLL creation program.
20298 # Used on cygwin: object dumper.
20301 # Used on cygwin: assembler.
20304 # The name of the directory that contains temporary libtool files.
20307 # How to create reloadable object files.
20308 reload_flag=$lt_reload_flag
20309 reload_cmds=$lt_reload_cmds
20311 # How to pass a linker flag through the compiler.
20312 wl=$lt_lt_prog_compiler_wl_RC
20314 # Object file suffix (normally "o").
20315 objext="$ac_objext"
20317 # Old archive suffix (normally "a").
20320 # Shared library suffix (normally ".so").
20321 shrext_cmds='$shrext_cmds'
20323 # Executable file suffix (normally "").
20326 # Additional compiler flags for building library objects.
20327 pic_flag=$lt_lt_prog_compiler_pic_RC
20330 # What is the maximum length of a command?
20331 max_cmd_len=$lt_cv_sys_max_cmd_len
20333 # Does compiler simultaneously support -c and -o options?
20334 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20336 # Must we lock files when doing compilation?
20337 need_locks=$lt_need_locks
20339 # Do we need the lib prefix for modules?
20340 need_lib_prefix=$need_lib_prefix
20342 # Do we need a version for libraries?
20343 need_version=$need_version
20345 # Whether dlopen is supported.
20346 dlopen_support=$enable_dlopen
20348 # Whether dlopen of programs is supported.
20349 dlopen_self=$enable_dlopen_self
20351 # Whether dlopen of statically linked programs is supported.
20352 dlopen_self_static=$enable_dlopen_self_static
20354 # Compiler flag to prevent dynamic linking.
20355 link_static_flag=$lt_lt_prog_compiler_static_RC
20357 # Compiler flag to turn off builtin functions.
20358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20360 # Compiler flag to allow reflexive dlopens.
20361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20363 # Compiler flag to generate shared objects directly from archives.
20364 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20366 # Compiler flag to generate thread-safe objects.
20367 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20369 # Library versioning type.
20370 version_type=$version_type
20372 # Format of library name prefix.
20373 libname_spec=$lt_libname_spec
20375 # List of archive names. First name is the real one, the rest are links.
20376 # The last name is the one that the linker finds with -lNAME.
20377 library_names_spec=$lt_library_names_spec
20379 # The coded name of the library, if different from the real name.
20380 soname_spec=$lt_soname_spec
20382 # Commands used to build and install an old-style archive.
20384 old_archive_cmds=$lt_old_archive_cmds_RC
20385 old_postinstall_cmds=$lt_old_postinstall_cmds
20386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20388 # Create an old-style archive from a shared archive.
20389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20391 # Create a temporary old-style archive to link instead of a shared archive.
20392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20394 # Commands used to build and install a shared archive.
20395 archive_cmds=$lt_archive_cmds_RC
20396 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20397 postinstall_cmds=$lt_postinstall_cmds
20398 postuninstall_cmds=$lt_postuninstall_cmds
20400 # Commands used to build a loadable module (assumed same as above if empty)
20401 module_cmds=$lt_module_cmds_RC
20402 module_expsym_cmds=$lt_module_expsym_cmds_RC
20404 # Commands to strip libraries.
20405 old_striplib=$lt_old_striplib
20406 striplib=$lt_striplib
20408 # Dependencies to place before the objects being linked to create a
20410 predep_objects=$lt_predep_objects_RC
20412 # Dependencies to place after the objects being linked to create a
20414 postdep_objects=$lt_postdep_objects_RC
20416 # Dependencies to place before the objects being linked to create a
20418 predeps=$lt_predeps_RC
20420 # Dependencies to place after the objects being linked to create a
20422 postdeps=$lt_postdeps_RC
20424 # The library search path used internally by the compiler when linking
20425 # a shared library.
20426 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20428 # Method to check whether dependent libraries are shared objects.
20429 deplibs_check_method=$lt_deplibs_check_method
20431 # Command to use when deplibs_check_method == file_magic.
20432 file_magic_cmd=$lt_file_magic_cmd
20434 # Flag that allows shared libraries with undefined symbols to be built.
20435 allow_undefined_flag=$lt_allow_undefined_flag_RC
20437 # Flag that forces no undefined symbols.
20438 no_undefined_flag=$lt_no_undefined_flag_RC
20440 # Commands used to finish a libtool library installation in a directory.
20441 finish_cmds=$lt_finish_cmds
20443 # Same as above, but a single script fragment to be evaled but not shown.
20444 finish_eval=$lt_finish_eval
20446 # Take the output of nm and produce a listing of raw symbols and C names.
20447 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20449 # Transform the output of nm in a proper C declaration
20450 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20452 # Transform the output of nm in a C name address pair
20453 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20455 # This is the shared library runtime path variable.
20456 runpath_var=$runpath_var
20458 # This is the shared library path variable.
20459 shlibpath_var=$shlibpath_var
20461 # Is shlibpath searched before the hard-coded library search path?
20462 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20464 # How to hardcode a shared library path into an executable.
20465 hardcode_action=$hardcode_action_RC
20467 # Whether we should hardcode library paths into libraries.
20468 hardcode_into_libs=$hardcode_into_libs
20470 # Flag to hardcode \$libdir into a binary during linking.
20471 # This must work even if \$libdir does not exist.
20472 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20474 # If ld is used when linking, flag to hardcode \$libdir into
20475 # a binary during linking. This must work even if \$libdir does
20477 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20479 # Whether we need a single -rpath flag with a separated argument.
20480 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20482 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20483 # resulting binary.
20484 hardcode_direct=$hardcode_direct_RC
20486 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20487 # resulting binary.
20488 hardcode_minus_L=$hardcode_minus_L_RC
20490 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20491 # the resulting binary.
20492 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20494 # Set to yes if building a shared library automatically hardcodes DIR into the library
20495 # and all subsequent libraries and executables linked against it.
20496 hardcode_automatic=$hardcode_automatic_RC
20498 # Variables whose values should be saved in libtool wrapper scripts and
20499 # restored at relink time.
20500 variables_saved_for_relink="$variables_saved_for_relink"
20502 # Whether libtool must link a program against all its dependency libraries.
20503 link_all_deplibs=$link_all_deplibs_RC
20505 # Compile-time system search path for libraries
20506 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20508 # Run-time system search path for libraries
20509 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20511 # Fix the shell variable \$srcfile for the compiler.
20512 fix_srcfile_path="$fix_srcfile_path_RC"
20514 # Set to yes if exported symbols are required.
20515 always_export_symbols=$always_export_symbols_RC
20517 # The commands to list exported symbols.
20518 export_symbols_cmds=$lt_export_symbols_cmds_RC
20520 # The commands to extract the exported symbol list from a shared archive.
20521 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20523 # Symbols that should not be listed in the preloaded symbols.
20524 exclude_expsyms=$lt_exclude_expsyms_RC
20526 # Symbols that must always be exported.
20527 include_expsyms=$lt_include_expsyms_RC
20529 # ### END LIBTOOL TAG CONFIG: $tagname
20535 # If there is no Makefile yet, we rely on a make rule to execute
20536 # `config.status --recheck' to rerun these tests and create the
20537 # libtool script then.
20538 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20539 if test -f "$ltmain_in"; then
20540 test -f Makefile && make "$ltmain"
20546 ac_cpp='$CPP $CPPFLAGS'
20547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20556 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20557 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20558 { (exit 1); exit 1; }; }
20562 # Append the new tag name to the list of available tags.
20563 if test -n "$tagname" ; then
20564 available_tags="$available_tags $tagname"
20570 # Now substitute the updated list of available tags.
20571 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20572 mv "${ofile}T" "$ofile"
20576 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20577 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20578 { (exit 1); exit 1; }; }
20584 # This can be used to rebuild libtool when needed
20585 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20587 # Always use our own libtool.
20588 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20590 # Prevent multiple expansion
20611 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
20612 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
20613 if test -z "$MKDIR_P"; then
20614 if test "${ac_cv_path_mkdir+set}" = set; then
20615 $as_echo_n "(cached) " >&6
20617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20618 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
20621 test -z "$as_dir" && as_dir=.
20622 for ac_prog in mkdir gmkdir; do
20623 for ac_exec_ext in '' $ac_executable_extensions; do
20624 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
20625 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
20626 'mkdir (GNU coreutils) '* | \
20627 'mkdir (coreutils) '* | \
20628 'mkdir (fileutils) '4.1*)
20629 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
20639 if test "${ac_cv_path_mkdir+set}" = set; then
20640 MKDIR_P="$ac_cv_path_mkdir -p"
20642 # As a last resort, use the slow shell script. Don't cache a
20643 # value for MKDIR_P within a source directory, because that will
20644 # break other packages using the cache if that directory is
20645 # removed, or if the value is a relative name.
20646 test -d ./--version && rmdir ./--version
20647 MKDIR_P="$ac_install_sh -d"
20650 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
20651 $as_echo "$MKDIR_P" >&6; }
20654 # Check for library functions that SQLite can optionally use.
20660 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
20662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20664 $as_echo_n "checking for $ac_func... " >&6; }
20665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20666 $as_echo_n "(cached) " >&6
20668 cat >conftest.$ac_ext <<_ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20676 #define $ac_func innocuous_$ac_func
20678 /* System header to define __stub macros and hopefully few prototypes,
20679 which can conflict with char $ac_func (); below.
20680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20681 <limits.h> exists even on freestanding compilers. */
20684 # include <limits.h>
20686 # include <assert.h>
20691 /* Override any GCC internal prototype to avoid an error.
20692 Use char because int might match the return type of a GCC
20693 builtin and then its argument prototype would still apply. */
20698 /* The GNU C library defines this for functions which it implements
20699 to always fail with ENOSYS. Some functions are actually named
20700 something starting with __ and the normal name is an alias. */
20701 #if defined __stub_$ac_func || defined __stub___$ac_func
20708 return $ac_func ();
20713 rm -f conftest.$ac_objext conftest$ac_exeext
20714 if { (ac_try="$ac_link"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20720 $as_echo "$ac_try_echo") >&5
20721 (eval "$ac_link") 2>conftest.er1
20723 grep -v '^ *+' conftest.er1 >conftest.err
20725 cat conftest.err >&5
20726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } && {
20728 test -z "$ac_c_werror_flag" ||
20729 test ! -s conftest.err
20730 } && test -s conftest$ac_exeext && {
20731 test "$cross_compiling" = yes ||
20732 $as_test_x conftest$ac_exeext
20734 eval "$as_ac_var=yes"
20736 $as_echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20739 eval "$as_ac_var=no"
20742 rm -rf conftest.dSYM
20743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20744 conftest$ac_exeext conftest.$ac_ext
20746 ac_res=`eval 'as_val=${'$as_ac_var'}
20747 $as_echo "$as_val"'`
20748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20749 $as_echo "$ac_res" >&6; }
20750 if test `eval 'as_val=${'$as_ac_var'}
20751 $as_echo "$as_val"'` = yes; then
20752 cat >>confdefs.h <<_ACEOF
20753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20759 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
20760 $as_echo_n "checking whether strerror_r is declared... " >&6; }
20761 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
20762 $as_echo_n "(cached) " >&6
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20770 $ac_includes_default
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20789 $as_echo "$ac_try_echo") >&5
20790 (eval "$ac_compile") 2>conftest.er1
20792 grep -v '^ *+' conftest.er1 >conftest.err
20794 cat conftest.err >&5
20795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } && {
20797 test -z "$ac_c_werror_flag" ||
20798 test ! -s conftest.err
20799 } && test -s conftest.$ac_objext; then
20800 ac_cv_have_decl_strerror_r=yes
20802 $as_echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 ac_cv_have_decl_strerror_r=no
20808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
20811 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
20812 if test $ac_cv_have_decl_strerror_r = yes; then
20814 cat >>confdefs.h <<_ACEOF
20815 #define HAVE_DECL_STRERROR_R 1
20820 cat >>confdefs.h <<_ACEOF
20821 #define HAVE_DECL_STRERROR_R 0
20829 for ac_func in strerror_r
20831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20832 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20833 $as_echo_n "checking for $ac_func... " >&6; }
20834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20835 $as_echo_n "(cached) " >&6
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20845 #define $ac_func innocuous_$ac_func
20847 /* System header to define __stub macros and hopefully few prototypes,
20848 which can conflict with char $ac_func (); below.
20849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20850 <limits.h> exists even on freestanding compilers. */
20853 # include <limits.h>
20855 # include <assert.h>
20860 /* Override any GCC internal prototype to avoid an error.
20861 Use char because int might match the return type of a GCC
20862 builtin and then its argument prototype would still apply. */
20867 /* The GNU C library defines this for functions which it implements
20868 to always fail with ENOSYS. Some functions are actually named
20869 something starting with __ and the normal name is an alias. */
20870 #if defined __stub_$ac_func || defined __stub___$ac_func
20877 return $ac_func ();
20882 rm -f conftest.$ac_objext conftest$ac_exeext
20883 if { (ac_try="$ac_link"
20884 case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20889 $as_echo "$ac_try_echo") >&5
20890 (eval "$ac_link") 2>conftest.er1
20892 grep -v '^ *+' conftest.er1 >conftest.err
20894 cat conftest.err >&5
20895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } && {
20897 test -z "$ac_c_werror_flag" ||
20898 test ! -s conftest.err
20899 } && test -s conftest$ac_exeext && {
20900 test "$cross_compiling" = yes ||
20901 $as_test_x conftest$ac_exeext
20903 eval "$as_ac_var=yes"
20905 $as_echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 eval "$as_ac_var=no"
20911 rm -rf conftest.dSYM
20912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20913 conftest$ac_exeext conftest.$ac_ext
20915 ac_res=`eval 'as_val=${'$as_ac_var'}
20916 $as_echo "$as_val"'`
20917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20918 $as_echo "$ac_res" >&6; }
20919 if test `eval 'as_val=${'$as_ac_var'}
20920 $as_echo "$as_val"'` = yes; then
20921 cat >>confdefs.h <<_ACEOF
20922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20928 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
20929 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
20930 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
20931 $as_echo_n "(cached) " >&6
20934 ac_cv_func_strerror_r_char_p=no
20935 if test $ac_cv_have_decl_strerror_r = yes; then
20936 cat >conftest.$ac_ext <<_ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 $ac_includes_default
20948 char x = *strerror_r (0, buf, sizeof buf);
20949 char *p = strerror_r (0, buf, sizeof buf);
20956 rm -f conftest.$ac_objext
20957 if { (ac_try="$ac_compile"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20963 $as_echo "$ac_try_echo") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20974 ac_cv_func_strerror_r_char_p=yes
20976 $as_echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984 # strerror_r is not declared. Choose between
20985 # systems that have relatively inaccessible declarations for the
20986 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
20987 # former has a strerror_r that returns char*, while the latter
20988 # has a strerror_r that returns `int'.
20989 # This test should segfault on the DEC system.
20990 if test "$cross_compiling" = yes; then
20993 cat >conftest.$ac_ext <<_ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 $ac_includes_default
21000 extern char *strerror_r ();
21005 char x = *strerror_r (0, buf, sizeof buf);
21006 return ! isalpha (x);
21011 rm -f conftest$ac_exeext
21012 if { (ac_try="$ac_link"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21018 $as_echo "$ac_try_echo") >&5
21019 (eval "$ac_link") 2>&5
21021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21023 { (case "(($ac_try" in
21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025 *) ac_try_echo=$ac_try;;
21027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21028 $as_echo "$ac_try_echo") >&5
21029 (eval "$ac_try") 2>&5
21031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_func_strerror_r_char_p=yes
21035 $as_echo "$as_me: program exited with status $ac_status" >&5
21036 $as_echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21040 rm -rf conftest.dSYM
21041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21048 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
21049 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21050 if test $ac_cv_func_strerror_r_char_p = yes; then
21052 cat >>confdefs.h <<\_ACEOF
21053 #define STRERROR_R_CHAR_P 1
21059 ac_config_files="$ac_config_files Makefile sqlite3.pc"
21063 #-----------------------------------------------------------------------
21064 # --enable-readline
21066 # Check whether --enable-readline was given.
21067 if test "${enable_readline+set}" = set; then
21068 enableval=$enable_readline;
21070 enable_readline=yes
21073 if test x"$enable_readline" != xno ; then
21076 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
21077 $as_echo_n "checking for library containing tgetent... " >&6; }
21078 if test "${ac_cv_search_tgetent+set}" = set; then
21079 $as_echo_n "(cached) " >&6
21081 ac_func_search_save_LIBS=$LIBS
21082 cat >conftest.$ac_ext <<_ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21089 /* Override any GCC internal prototype to avoid an error.
21090 Use char because int might match the return type of a GCC
21091 builtin and then its argument prototype would still apply. */
21104 for ac_lib in '' curses ncurses ncursesw; do
21105 if test -z "$ac_lib"; then
21106 ac_res="none required"
21109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21111 rm -f conftest.$ac_objext conftest$ac_exeext
21112 if { (ac_try="$ac_link"
21113 case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21118 $as_echo "$ac_try_echo") >&5
21119 (eval "$ac_link") 2>conftest.er1
21121 grep -v '^ *+' conftest.er1 >conftest.err
21123 cat conftest.err >&5
21124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } && {
21126 test -z "$ac_c_werror_flag" ||
21127 test ! -s conftest.err
21128 } && test -s conftest$ac_exeext && {
21129 test "$cross_compiling" = yes ||
21130 $as_test_x conftest$ac_exeext
21132 ac_cv_search_tgetent=$ac_res
21134 $as_echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21140 rm -rf conftest.dSYM
21141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21143 if test "${ac_cv_search_tgetent+set}" = set; then
21147 if test "${ac_cv_search_tgetent+set}" = set; then
21150 ac_cv_search_tgetent=no
21152 rm conftest.$ac_ext
21153 LIBS=$ac_func_search_save_LIBS
21155 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
21156 $as_echo "$ac_cv_search_tgetent" >&6; }
21157 ac_res=$ac_cv_search_tgetent
21158 if test "$ac_res" != no; then
21159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21163 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
21164 $as_echo_n "checking for library containing readline... " >&6; }
21165 if test "${ac_cv_search_readline+set}" = set; then
21166 $as_echo_n "(cached) " >&6
21168 ac_func_search_save_LIBS=$LIBS
21169 cat >conftest.$ac_ext <<_ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21176 /* Override any GCC internal prototype to avoid an error.
21177 Use char because int might match the return type of a GCC
21178 builtin and then its argument prototype would still apply. */
21186 return readline ();
21191 for ac_lib in '' readline; do
21192 if test -z "$ac_lib"; then
21193 ac_res="none required"
21196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21198 rm -f conftest.$ac_objext conftest$ac_exeext
21199 if { (ac_try="$ac_link"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21205 $as_echo "$ac_try_echo") >&5
21206 (eval "$ac_link") 2>conftest.er1
21208 grep -v '^ *+' conftest.er1 >conftest.err
21210 cat conftest.err >&5
21211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest$ac_exeext && {
21216 test "$cross_compiling" = yes ||
21217 $as_test_x conftest$ac_exeext
21219 ac_cv_search_readline=$ac_res
21221 $as_echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21227 rm -rf conftest.dSYM
21228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21230 if test "${ac_cv_search_readline+set}" = set; then
21234 if test "${ac_cv_search_readline+set}" = set; then
21237 ac_cv_search_readline=no
21239 rm conftest.$ac_ext
21240 LIBS=$ac_func_search_save_LIBS
21242 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5
21243 $as_echo "$ac_cv_search_readline" >&6; }
21244 ac_res=$ac_cv_search_readline
21245 if test "$ac_res" != no; then
21246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21253 for ac_func in readline
21255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21256 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21257 $as_echo_n "checking for $ac_func... " >&6; }
21258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21259 $as_echo_n "(cached) " >&6
21261 cat >conftest.$ac_ext <<_ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21269 #define $ac_func innocuous_$ac_func
21271 /* System header to define __stub macros and hopefully few prototypes,
21272 which can conflict with char $ac_func (); below.
21273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21274 <limits.h> exists even on freestanding compilers. */
21277 # include <limits.h>
21279 # include <assert.h>
21284 /* Override any GCC internal prototype to avoid an error.
21285 Use char because int might match the return type of a GCC
21286 builtin and then its argument prototype would still apply. */
21291 /* The GNU C library defines this for functions which it implements
21292 to always fail with ENOSYS. Some functions are actually named
21293 something starting with __ and the normal name is an alias. */
21294 #if defined __stub_$ac_func || defined __stub___$ac_func
21301 return $ac_func ();
21306 rm -f conftest.$ac_objext conftest$ac_exeext
21307 if { (ac_try="$ac_link"
21308 case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21313 $as_echo "$ac_try_echo") >&5
21314 (eval "$ac_link") 2>conftest.er1
21316 grep -v '^ *+' conftest.er1 >conftest.err
21318 cat conftest.err >&5
21319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } && {
21321 test -z "$ac_c_werror_flag" ||
21322 test ! -s conftest.err
21323 } && test -s conftest$ac_exeext && {
21324 test "$cross_compiling" = yes ||
21325 $as_test_x conftest$ac_exeext
21327 eval "$as_ac_var=yes"
21329 $as_echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21332 eval "$as_ac_var=no"
21335 rm -rf conftest.dSYM
21336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21337 conftest$ac_exeext conftest.$ac_ext
21339 ac_res=`eval 'as_val=${'$as_ac_var'}
21340 $as_echo "$as_val"'`
21341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21342 $as_echo "$ac_res" >&6; }
21343 if test `eval 'as_val=${'$as_ac_var'}
21344 $as_echo "$as_val"'` = yes; then
21345 cat >>confdefs.h <<_ACEOF
21346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21352 READLINE_LIBS=$LIBS
21356 #-----------------------------------------------------------------------
21358 #-----------------------------------------------------------------------
21359 # --enable-threadsafe
21361 # Check whether --enable-threadsafe was given.
21362 if test "${enable_threadsafe+set}" = set; then
21363 enableval=$enable_threadsafe;
21365 enable_threadsafe=yes
21368 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
21369 if test x"$enable_threadsafe" != "xno"; then
21370 THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
21371 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
21372 $as_echo_n "checking for library containing pthread_create... " >&6; }
21373 if test "${ac_cv_search_pthread_create+set}" = set; then
21374 $as_echo_n "(cached) " >&6
21376 ac_func_search_save_LIBS=$LIBS
21377 cat >conftest.$ac_ext <<_ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h. */
21384 /* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21390 char pthread_create ();
21394 return pthread_create ();
21399 for ac_lib in '' pthread; do
21400 if test -z "$ac_lib"; then
21401 ac_res="none required"
21404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21413 $as_echo "$ac_try_echo") >&5
21414 (eval "$ac_link") 2>conftest.er1
21416 grep -v '^ *+' conftest.er1 >conftest.err
21418 cat conftest.err >&5
21419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest$ac_exeext && {
21424 test "$cross_compiling" = yes ||
21425 $as_test_x conftest$ac_exeext
21427 ac_cv_search_pthread_create=$ac_res
21429 $as_echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21435 rm -rf conftest.dSYM
21436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21438 if test "${ac_cv_search_pthread_create+set}" = set; then
21442 if test "${ac_cv_search_pthread_create+set}" = set; then
21445 ac_cv_search_pthread_create=no
21447 rm conftest.$ac_ext
21448 LIBS=$ac_func_search_save_LIBS
21450 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
21451 $as_echo "$ac_cv_search_pthread_create" >&6; }
21452 ac_res=$ac_cv_search_pthread_create
21453 if test "$ac_res" != no; then
21454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21460 #-----------------------------------------------------------------------
21462 #-----------------------------------------------------------------------
21463 # --enable-dynamic-extensions
21465 # Check whether --enable-dynamic-extensions was given.
21466 if test "${enable_dynamic_extensions+set}" = set; then
21467 enableval=$enable_dynamic_extensions;
21469 enable_dynamic_extensions=yes
21472 if test x"$enable_dynamic_extensions" != "xno"; then
21473 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21474 $as_echo_n "checking for library containing dlopen... " >&6; }
21475 if test "${ac_cv_search_dlopen+set}" = set; then
21476 $as_echo_n "(cached) " >&6
21478 ac_func_search_save_LIBS=$LIBS
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21486 /* Override any GCC internal prototype to avoid an error.
21487 Use char because int might match the return type of a GCC
21488 builtin and then its argument prototype would still apply. */
21501 for ac_lib in '' dl; do
21502 if test -z "$ac_lib"; then
21503 ac_res="none required"
21506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21508 rm -f conftest.$ac_objext conftest$ac_exeext
21509 if { (ac_try="$ac_link"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21515 $as_echo "$ac_try_echo") >&5
21516 (eval "$ac_link") 2>conftest.er1
21518 grep -v '^ *+' conftest.er1 >conftest.err
21520 cat conftest.err >&5
21521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } && {
21523 test -z "$ac_c_werror_flag" ||
21524 test ! -s conftest.err
21525 } && test -s conftest$ac_exeext && {
21526 test "$cross_compiling" = yes ||
21527 $as_test_x conftest$ac_exeext
21529 ac_cv_search_dlopen=$ac_res
21531 $as_echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21537 rm -rf conftest.dSYM
21538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21540 if test "${ac_cv_search_dlopen+set}" = set; then
21544 if test "${ac_cv_search_dlopen+set}" = set; then
21547 ac_cv_search_dlopen=no
21549 rm conftest.$ac_ext
21550 LIBS=$ac_func_search_save_LIBS
21552 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21553 $as_echo "$ac_cv_search_dlopen" >&6; }
21554 ac_res=$ac_cv_search_dlopen
21555 if test "$ac_res" != no; then
21556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21561 DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
21563 { $as_echo "$as_me:$LINENO: checking for whether to support dynamic extensions" >&5
21564 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
21565 { $as_echo "$as_me:$LINENO: result: $enable_dynamic_extensions" >&5
21566 $as_echo "$enable_dynamic_extensions" >&6; }
21568 #-----------------------------------------------------------------------
21571 for ac_func in posix_fallocate
21573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21574 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21575 $as_echo_n "checking for $ac_func... " >&6; }
21576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21577 $as_echo_n "(cached) " >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21587 #define $ac_func innocuous_$ac_func
21589 /* System header to define __stub macros and hopefully few prototypes,
21590 which can conflict with char $ac_func (); below.
21591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21592 <limits.h> exists even on freestanding compilers. */
21595 # include <limits.h>
21597 # include <assert.h>
21602 /* Override any GCC internal prototype to avoid an error.
21603 Use char because int might match the return type of a GCC
21604 builtin and then its argument prototype would still apply. */
21609 /* The GNU C library defines this for functions which it implements
21610 to always fail with ENOSYS. Some functions are actually named
21611 something starting with __ and the normal name is an alias. */
21612 #if defined __stub_$ac_func || defined __stub___$ac_func
21619 return $ac_func ();
21624 rm -f conftest.$ac_objext conftest$ac_exeext
21625 if { (ac_try="$ac_link"
21626 case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21631 $as_echo "$ac_try_echo") >&5
21632 (eval "$ac_link") 2>conftest.er1
21634 grep -v '^ *+' conftest.er1 >conftest.err
21636 cat conftest.err >&5
21637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } && {
21639 test -z "$ac_c_werror_flag" ||
21640 test ! -s conftest.err
21641 } && test -s conftest$ac_exeext && {
21642 test "$cross_compiling" = yes ||
21643 $as_test_x conftest$ac_exeext
21645 eval "$as_ac_var=yes"
21647 $as_echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21650 eval "$as_ac_var=no"
21653 rm -rf conftest.dSYM
21654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21655 conftest$ac_exeext conftest.$ac_ext
21657 ac_res=`eval 'as_val=${'$as_ac_var'}
21658 $as_echo "$as_val"'`
21659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21660 $as_echo "$ac_res" >&6; }
21661 if test `eval 'as_val=${'$as_ac_var'}
21662 $as_echo "$as_val"'` = yes; then
21663 cat >>confdefs.h <<_ACEOF
21664 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21671 #-----------------------------------------------------------------------
21672 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
21673 # configure. This option doesn't really add much...
21675 # --enable-tempstore
21677 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
21678 # [--enable-tempstore],
21679 # [in-memory temporary tables (never, no, yes, always) [default=no]])],
21680 # [], [enable_tempstore=no])
21681 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
21682 # case "$enable_tempstore" in
21683 # never ) TEMP_STORE=0 ;;
21684 # no ) TEMP_STORE=1 ;;
21685 # always ) TEMP_STORE=3 ;;
21686 # yes ) TEMP_STORE=3 ;;
21689 # enable_tempstore=yes
21692 # AC_MSG_RESULT($enable_tempstore)
21693 # AC_SUBST(TEMP_STORE)
21694 #-----------------------------------------------------------------------
21696 cat >confcache <<\_ACEOF
21697 # This file is a shell script that caches the results of configure
21698 # tests run on this system so they can be shared between configure
21699 # scripts and configure runs, see configure's option --config-cache.
21700 # It is not useful on other systems. If it contains results you don't
21701 # want to keep, you may remove or edit it.
21703 # config.status only pays attention to the cache file if you give it
21704 # the --recheck option to rerun configure.
21706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21708 # following values.
21712 # The following way of writing the cache mishandles newlines in values,
21713 # but we know of no workaround that is simple, portable, and efficient.
21714 # So, we kill variables containing newlines.
21715 # Ultrix sh set writes to stderr and can't be redirected directly,
21716 # and sets the high bit in the cache file unless we assign to the vars.
21718 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21719 eval ac_val=\$$ac_var
21723 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21724 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21727 _ | IFS | as_nl) ;; #(
21728 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21729 *) $as_unset $ac_var ;;
21735 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21736 *${as_nl}ac_space=\ *)
21737 # `set' does not quote correctly, so add quotes (double-quote
21738 # substitution turns \\\\ into \\, and sed turns \\ into \).
21741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21744 # `set' quotes correctly as required by POSIX, so do not add quotes.
21745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21756 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21758 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21759 if test -w "$cache_file"; then
21760 test "x$cache_file" != "x/dev/null" &&
21761 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21762 $as_echo "$as_me: updating cache $cache_file" >&6;}
21763 cat confcache >$cache_file
21765 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21772 # Let make expand exec_prefix.
21773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21775 # Transform confdefs.h into DEFS.
21776 # Protect against shell expansion while executing Makefile rules.
21777 # Protect against Makefile macro expansion.
21779 # If the first sed substitution is executed (which looks for macros that
21780 # take arguments), then branch to the quote section. Otherwise,
21781 # look for a macro that doesn't take arguments.
21791 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21793 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21797 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21810 DEFS=`sed -n "$ac_script" confdefs.h`
21815 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21816 # 1. Remove the extension, and $U if already installed.
21817 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21818 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21819 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21820 # will be set to the directory where LIBOBJS objects are built.
21821 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21822 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21824 LIBOBJS=$ac_libobjs
21826 LTLIBOBJS=$ac_ltlibobjs
21829 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21830 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21831 Usually this means the macro was only invoked conditionally." >&5
21832 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21833 Usually this means the macro was only invoked conditionally." >&2;}
21834 { (exit 1); exit 1; }; }
21836 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21837 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21838 Usually this means the macro was only invoked conditionally." >&5
21839 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21840 Usually this means the macro was only invoked conditionally." >&2;}
21841 { (exit 1); exit 1; }; }
21843 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21844 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21845 Usually this means the macro was only invoked conditionally." >&5
21846 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21847 Usually this means the macro was only invoked conditionally." >&2;}
21848 { (exit 1); exit 1; }; }
21850 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21851 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21852 Usually this means the macro was only invoked conditionally." >&5
21853 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21854 Usually this means the macro was only invoked conditionally." >&2;}
21855 { (exit 1); exit 1; }; }
21858 : ${CONFIG_STATUS=./config.status}
21860 ac_clean_files_save=$ac_clean_files
21861 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21862 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21863 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21864 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21866 # Generated by $as_me.
21867 # Run this file to recreate the current configuration.
21868 # Compiler output produced by configure, useful for debugging
21869 # configure, is in config.log if it exists.
21872 ac_cs_recheck=false
21874 SHELL=\${CONFIG_SHELL-$SHELL}
21877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21878 ## --------------------- ##
21879 ## M4sh Initialization. ##
21880 ## --------------------- ##
21882 # Be more Bourne compatible
21883 DUALCASE=1; export DUALCASE # for MKS sh
21884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21887 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21888 # is contrary to our usage. Disable this feature.
21889 alias -g '${1+"$@"}'='"$@"'
21890 setopt NO_GLOB_SUBST
21892 case `(set -o) 2>/dev/null` in
21893 *posix*) set -o posix ;;
21902 # Avoid depending upon Character Ranges.
21903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21906 as_cr_digits='0123456789'
21907 as_cr_alnum=$as_cr_Letters$as_cr_digits
21912 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21913 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21914 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21915 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21916 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21917 as_echo='printf %s\n'
21918 as_echo_n='printf %s'
21920 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21921 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21922 as_echo_n='/usr/ucb/echo -n'
21924 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21925 as_echo_n_body='eval
21929 expr "X$arg" : "X\\(.*\\)$as_nl";
21930 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21932 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21934 export as_echo_n_body
21935 as_echo_n='sh -c $as_echo_n_body as_echo'
21937 export as_echo_body
21938 as_echo='sh -c $as_echo_body as_echo'
21941 # The user is always right.
21942 if test "${PATH_SEPARATOR+set}" != set; then
21944 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21945 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21950 # Support unset when possible.
21951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21959 # We need space, tab and new line, in precisely that order. Quoting is
21960 # there to prevent editors from complaining about space-tab.
21961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21962 # splitting by setting IFS to empty value.)
21965 # Find who we are. Look in the path if we contain no directory separator.
21967 *[\\/]* ) as_myself=$0 ;;
21968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21969 for as_dir in $PATH
21972 test -z "$as_dir" && as_dir=.
21973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21979 # We did not find ourselves, most probably we were run as `sh COMMAND'
21980 # in which case we are not to be found in the path.
21981 if test "x$as_myself" = x; then
21984 if test ! -f "$as_myself"; then
21985 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21986 { (exit 1); exit 1; }
21989 # Work around bugs in pre-3.0 UWIN ksh.
21990 for as_var in ENV MAIL MAILPATH
21991 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22003 # Required to use basename.
22004 if expr a : '\(a\)' >/dev/null 2>&1 &&
22005 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22011 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22012 as_basename=basename
22018 # Name of the executable.
22019 as_me=`$as_basename -- "$0" ||
22020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22021 X"$0" : 'X\(//\)$' \| \
22022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22024 sed '/^.*\/\([^/][^/]*\)\/*$/{
22043 as_lineno_1=$LINENO
22044 as_lineno_2=$LINENO
22045 test "x$as_lineno_1" != "x$as_lineno_2" &&
22046 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22048 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22049 # uniformly replaced by the line number. The first 'sed' inserts a
22050 # line-number line after each line using $LINENO; the second 'sed'
22051 # does the real work. The second script uses 'N' to pair each
22052 # line-number line with the line containing $LINENO, and appends
22053 # trailing '-' during substitution so that $LINENO is not a special
22054 # case at line end.
22055 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22056 # scripts with optimization help from Paolo Bonzini. Blame Lee
22057 # E. McMahon (1931-1989) for sed's syntax. :-)
22069 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22072 ' >$as_me.lineno &&
22073 chmod +x "$as_me.lineno" ||
22074 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22075 { (exit 1); exit 1; }; }
22077 # Don't try to exec as it changes $[0], causing all sort of problems
22078 # (the dirname of $[0] is not the place where we might find the
22079 # original and so on. Autoconf is especially sensitive to this).
22080 . "./$as_me.lineno"
22081 # Exit status is that of the last command.
22086 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22092 ECHO_C= ECHO_N= ECHO_T=
22093 case `echo -n x` in
22095 case `echo 'x\c'` in
22096 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22102 if expr a : '\(a\)' >/dev/null 2>&1 &&
22103 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22109 rm -f conf$$ conf$$.exe conf$$.file
22110 if test -d conf$$.dir; then
22111 rm -f conf$$.dir/conf$$.file
22114 mkdir conf$$.dir 2>/dev/null
22116 if (echo >conf$$.file) 2>/dev/null; then
22117 if ln -s conf$$.file conf$$ 2>/dev/null; then
22119 # ... but there are two gotchas:
22120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22122 # In both cases, we have to default to `cp -p'.
22123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22125 elif ln conf$$.file conf$$ 2>/dev/null; then
22133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22134 rmdir conf$$.dir 2>/dev/null
22136 if mkdir -p . 2>/dev/null; then
22139 test -d ./-p && rmdir ./-p
22143 if test -x / >/dev/null 2>&1; then
22144 as_test_x='test -x'
22146 if ls -dL / >/dev/null 2>&1; then
22153 if test -d "$1"; then
22159 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22160 ???[sx]*):;;*)false;;esac;fi
22164 as_executable_p=$as_test_x
22166 # Sed expression to map a string onto a valid CPP name.
22167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22169 # Sed expression to map a string onto a valid variable name.
22170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22175 # Save the log message, to keep $[0] and so on meaningful, and to
22176 # report actual input values of CONFIG_FILES etc. instead of their
22177 # values after options handling.
22179 This file was extended by sqlite $as_me 3.7.6.2, which was
22180 generated by GNU Autoconf 2.62. Invocation command line was
22182 CONFIG_FILES = $CONFIG_FILES
22183 CONFIG_HEADERS = $CONFIG_HEADERS
22184 CONFIG_LINKS = $CONFIG_LINKS
22185 CONFIG_COMMANDS = $CONFIG_COMMANDS
22188 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22194 # Files that config.status was made for.
22195 config_files="$ac_config_files"
22196 config_commands="$ac_config_commands"
22200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22202 \`$as_me' instantiates files from templates according to the
22203 current configuration.
22205 Usage: $0 [OPTIONS] [FILE]...
22207 -h, --help print this help, then exit
22208 -V, --version print version number and configuration settings, then exit
22209 -q, --quiet do not print progress messages
22210 -d, --debug don't remove temporary files
22211 --recheck update $as_me by reconfiguring in the same conditions
22212 --file=FILE[:TEMPLATE]
22213 instantiate the configuration file FILE
22215 Configuration files:
22218 Configuration commands:
22221 Report bugs to <bug-autoconf@gnu.org>."
22224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22226 sqlite config.status 3.7.6.2
22227 configured by $0, generated by GNU Autoconf 2.62,
22228 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22230 Copyright (C) 2008 Free Software Foundation, Inc.
22231 This config.status script is free software; the Free Software Foundation
22232 gives unlimited permission to copy, distribute and modify it."
22239 test -n "\$AWK" || AWK=awk
22242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22243 # The default lists apply if the user does not specify any file.
22249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22250 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22261 # Handling of the options.
22262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22265 $as_echo "$ac_cs_version"; exit ;;
22266 --debug | --debu | --deb | --de | --d | -d )
22268 --file | --fil | --fi | --f )
22271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22273 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22274 ac_need_defaults=false;;
22275 --he | --h | --help | --hel | -h )
22276 $as_echo "$ac_cs_usage"; exit ;;
22277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22281 # This is an error.
22282 -*) { $as_echo "$as_me: error: unrecognized option: $1
22283 Try \`$0 --help' for more information." >&2
22284 { (exit 1); exit 1; }; } ;;
22286 *) ac_config_targets="$ac_config_targets $1"
22287 ac_need_defaults=false ;;
22293 ac_configure_extra_args=
22295 if $ac_cs_silent; then
22297 ac_configure_extra_args="$ac_configure_extra_args --silent"
22301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22302 if \$ac_cs_recheck; then
22303 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22305 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22306 CONFIG_SHELL='$SHELL'
22307 export CONFIG_SHELL
22312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22317 ## Running $as_me. ##
22323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22327 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22333 # Handling of arguments.
22334 for ac_config_target in $ac_config_targets
22336 case $ac_config_target in
22337 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22338 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22339 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
22341 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22342 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22343 { (exit 1); exit 1; }; };;
22348 # If the user did not use the arguments to specify the items to instantiate,
22349 # then the envvar interface is used. Set only those that are not.
22350 # We use the long form for the default assignment because of an extremely
22351 # bizarre bug on SunOS 4.1.3.
22352 if $ac_need_defaults; then
22353 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22357 # Have a temporary directory for convenience. Make it in the build tree
22358 # simply because there is no reason against having it here, and in addition,
22359 # creating and moving files from /tmp can sometimes cause problems.
22360 # Hook for its removal unless debugging.
22361 # Note that there is a small window in which the directory will not be cleaned:
22362 # after its creation but before its name has been assigned to `$tmp'.
22366 trap 'exit_status=$?
22367 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22369 trap '{ (exit 1); exit 1; }' 1 2 13 15
22371 # Create a (secure) tmp directory for tmp files.
22374 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22375 test -n "$tmp" && test -d "$tmp"
22378 tmp=./conf$$-$RANDOM
22379 (umask 077 && mkdir "$tmp")
22382 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22383 { (exit 1); exit 1; }
22386 # Set up the scripts for CONFIG_FILES section.
22387 # No need to generate them if there are no CONFIG_FILES.
22388 # This happens for instance with `./config.status config.h'.
22389 if test -n "$CONFIG_FILES"; then
22393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22397 ac_cs_awk_cr=$ac_cr
22400 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22405 echo "cat >conf$$subs.awk <<_ACEOF" &&
22406 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22408 } >conf$$subs.sh ||
22409 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22410 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22411 { (exit 1); exit 1; }; }
22412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22414 for ac_last_try in false false false false false :; do
22415 . ./conf$$subs.sh ||
22416 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22417 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22418 { (exit 1); exit 1; }; }
22420 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
22422 elif $ac_last_try; then
22423 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22424 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22425 { (exit 1); exit 1; }; }
22427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22430 rm -f conf$$subs.sh
22432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22433 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22437 s/^/S["/; s/!.*/"]=/
22447 s/\(.\{148\}\).*/\1/
22449 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22461 s/\(.\{148\}\).*/\1/
22463 s/["\\]/\\&/g; s/^/"/; s/$/"/
22467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22472 ' <conf$$subs.awk | sed '
22477 ' >>$CONFIG_STATUS || ac_write_fail=1
22478 rm -f conf$$subs.awk
22479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22481 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22482 for (key in S) S_is_set[key] = 1
22488 nfields = split(line, field, "@")
22490 len = length(field[1])
22491 for (i = 2; i < nfields; i++) {
22493 keylen = length(key)
22494 if (S_is_set[key]) {
22496 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22497 len += length(value) + length(field[++i])
22508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22509 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22510 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22513 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22514 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22515 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22516 { (exit 1); exit 1; }; }
22519 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22520 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22521 # trailing colons and then remove the whole line if VPATH becomes empty
22522 # (actually we leave an empty line to preserve line numbers).
22523 if test "x$srcdir" = x.; then
22524 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22525 s/:*\$(srcdir):*/:/
22526 s/:*\${srcdir}:*/:/
22528 s/^\([^=]*=[ ]*\):*/\1/
22534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22535 fi # test -n "$CONFIG_FILES"
22538 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
22543 :[FHLC]) ac_mode=$ac_tag; continue;;
22545 case $ac_mode$ac_tag in
22547 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22548 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22549 { (exit 1); exit 1; }; };;
22550 :[FH]-) ac_tag=-:-;;
22551 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22568 -) ac_f="$tmp/stdin";;
22569 *) # Look for the file first in the build tree, then in the source tree
22570 # (if the path is not absolute). The absolute path cannot be DOS-style,
22571 # because $ac_f cannot contain `:'.
22575 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22577 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22578 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22579 { (exit 1); exit 1; }; };;
22581 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22582 ac_file_inputs="$ac_file_inputs '$ac_f'"
22585 # Let's still pretend it is `configure' which instantiates (i.e., don't
22586 # use $as_me), people would be surprised to read:
22587 # /* config.h. Generated by config.status. */
22588 configure_input='Generated from '`
22589 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22591 if test x"$ac_file" != x-; then
22592 configure_input="$ac_file. $configure_input"
22593 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22594 $as_echo "$as_me: creating $ac_file" >&6;}
22596 # Neutralize special characters interpreted by sed in replacement strings.
22597 case $configure_input in #(
22598 *\&* | *\|* | *\\* )
22599 ac_sed_conf_input=`$as_echo "$configure_input" |
22600 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22601 *) ac_sed_conf_input=$configure_input;;
22605 *:-:* | *:-) cat >"$tmp/stdin" \
22606 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22607 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22608 { (exit 1); exit 1; }; } ;;
22613 ac_dir=`$as_dirname -- "$ac_file" ||
22614 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22615 X"$ac_file" : 'X\(//\)[^/]' \| \
22616 X"$ac_file" : 'X\(//\)$' \| \
22617 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22618 $as_echo X"$ac_file" |
22619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22623 /^X\(\/\/\)[^/].*/{
22638 -*) as_dir=./$as_dir;;
22640 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22644 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22645 *) as_qdir=$as_dir;;
22647 as_dirs="'$as_qdir' $as_dirs"
22648 as_dir=`$as_dirname -- "$as_dir" ||
22649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22650 X"$as_dir" : 'X\(//\)[^/]' \| \
22651 X"$as_dir" : 'X\(//\)$' \| \
22652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22653 $as_echo X"$as_dir" |
22654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22658 /^X\(\/\/\)[^/].*/{
22671 test -d "$as_dir" && break
22673 test -z "$as_dirs" || eval "mkdir $as_dirs"
22674 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22675 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22676 { (exit 1); exit 1; }; }; }
22680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22682 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22683 # A ".." for each directory in $ac_dir_suffix.
22684 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22685 case $ac_top_builddir_sub in
22686 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22687 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22690 ac_abs_top_builddir=$ac_pwd
22691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22692 # for backward compatibility:
22693 ac_top_builddir=$ac_top_build_prefix
22696 .) # We are building in place.
22698 ac_top_srcdir=$ac_top_builddir_sub
22699 ac_abs_top_srcdir=$ac_pwd ;;
22700 [\\/]* | ?:[\\/]* ) # Absolute name.
22701 ac_srcdir=$srcdir$ac_dir_suffix;
22702 ac_top_srcdir=$srcdir
22703 ac_abs_top_srcdir=$srcdir ;;
22704 *) # Relative name.
22705 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22706 ac_top_srcdir=$ac_top_build_prefix$srcdir
22707 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22719 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22720 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22722 ac_MKDIR_P=$MKDIR_P
22724 [\\/$]* | ?:[\\/]* ) ;;
22725 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22730 # If the template does not know about datarootdir, expand it.
22731 # FIXME: This hack should be removed a few years after 2.60.
22732 ac_datarootdir_hack=; ac_datarootdir_seen=
22745 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22746 *datarootdir*) ac_datarootdir_seen=yes;;
22747 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22748 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22749 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22752 ac_datarootdir_hack='
22753 s&@datadir@&$datadir&g
22754 s&@docdir@&$docdir&g
22755 s&@infodir@&$infodir&g
22756 s&@localedir@&$localedir&g
22757 s&@mandir@&$mandir&g
22758 s&\\\${datarootdir}&$datarootdir&g' ;;
22762 # Neutralize VPATH when `$srcdir' = `.'.
22763 # Shell code in configure.ac might set extrasub.
22764 # FIXME: do we really want to maintain this feature?
22765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22766 ac_sed_extra="$ac_vpsub
22769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22772 s|@configure_input@|$ac_sed_conf_input|;t t
22773 s&@top_builddir@&$ac_top_builddir_sub&;t t
22774 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22775 s&@srcdir@&$ac_srcdir&;t t
22776 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22777 s&@top_srcdir@&$ac_top_srcdir&;t t
22778 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22779 s&@builddir@&$ac_builddir&;t t
22780 s&@abs_builddir@&$ac_abs_builddir&;t t
22781 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22782 s&@INSTALL@&$ac_INSTALL&;t t
22783 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22784 $ac_datarootdir_hack
22786 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22787 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22788 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22789 { (exit 1); exit 1; }; }
22791 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22792 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22793 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22794 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22795 which seems to be undefined. Please make sure it is defined." >&5
22796 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22797 which seems to be undefined. Please make sure it is defined." >&2;}
22801 -) cat "$tmp/out" && rm -f "$tmp/out";;
22802 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22804 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22805 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22806 { (exit 1); exit 1; }; }
22810 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22811 $as_echo "$as_me: executing $ac_file commands" >&6;}
22816 case $ac_file$ac_mode in
22817 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22818 # Strip MF so we end up with the name of the file.
22819 mf=`echo "$mf" | sed -e 's/:.*$//'`
22820 # Check whether this is an Automake generated Makefile or not.
22821 # We used to match only the files named `Makefile.in', but
22822 # some people rename them; so instead we look at the file content.
22823 # Grep'ing the first line is not enough: some people post-process
22824 # each Makefile.in and add a new line on top of each file to say so.
22825 # So let's grep whole file.
22826 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22827 dirpart=`$as_dirname -- "$mf" ||
22828 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22829 X"$mf" : 'X\(//\)[^/]' \| \
22830 X"$mf" : 'X\(//\)$' \| \
22831 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22837 /^X\(\/\/\)[^/].*/{
22853 # Extract the definition of DEPDIR, am__include, and am__quote
22854 # from the Makefile without running `make'.
22855 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22856 test -z "$DEPDIR" && continue
22857 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22858 test -z "am__include" && continue
22859 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22860 # When using ansi2knr, U may be empty or an underscore; expand it
22861 U=`sed -n 's/^U = //p' < "$mf"`
22862 # Find all dependency output files, they are included files with
22863 # $(DEPDIR) in their names. We invoke sed twice because it is the
22864 # simplest approach to changing $(DEPDIR) to its actual value in the
22866 for file in `sed -n "
22867 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22868 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22869 # Make sure the directory exists.
22870 test -f "$dirpart/$file" && continue
22871 fdir=`$as_dirname -- "$file" ||
22872 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22873 X"$file" : 'X\(//\)[^/]' \| \
22874 X"$file" : 'X\(//\)$' \| \
22875 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22876 $as_echo X"$file" |
22877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22881 /^X\(\/\/\)[^/].*/{
22894 { as_dir=$dirpart/$fdir
22896 -*) as_dir=./$as_dir;;
22898 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22902 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22903 *) as_qdir=$as_dir;;
22905 as_dirs="'$as_qdir' $as_dirs"
22906 as_dir=`$as_dirname -- "$as_dir" ||
22907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22908 X"$as_dir" : 'X\(//\)[^/]' \| \
22909 X"$as_dir" : 'X\(//\)$' \| \
22910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22911 $as_echo X"$as_dir" |
22912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22916 /^X\(\/\/\)[^/].*/{
22929 test -d "$as_dir" && break
22931 test -z "$as_dirs" || eval "mkdir $as_dirs"
22932 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22933 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22934 { (exit 1); exit 1; }; }; }
22935 # echo "creating $dirpart/$file"
22936 echo '# dummy' > "$dirpart/$file"
22945 { (exit 0); exit 0; }
22947 chmod +x $CONFIG_STATUS
22948 ac_clean_files=$ac_clean_files_save
22950 test $ac_write_fail = 0 ||
22951 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22952 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22953 { (exit 1); exit 1; }; }
22956 # configure is writing to config.log, and then calls config.status.
22957 # config.status does its own redirection, appending to config.log.
22958 # Unfortunately, on DOS this fails, as config.log is still kept open
22959 # by configure, so config.status won't be able to write to it; its
22960 # output is simply discarded. So we exec the FD to /dev/null,
22961 # effectively closing config.log, so it can be properly (re)opened and
22962 # appended to by config.status. When coming back to configure, we
22963 # need to make the FD available again.
22964 if test "$no_create" != yes; then
22966 ac_config_status_args=
22967 test "$silent" = yes &&
22968 ac_config_status_args="$ac_config_status_args --quiet"
22970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22973 # would make configure fail if this is the last instruction.
22974 $ac_cs_success || { (exit 1); exit 1; }
22976 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22977 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
22978 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}