2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59c for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005 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 Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 # Find who we are. Look in the path if we contain no path at all
62 *[\\/]* ) as_myself=$0 ;;
63 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
67 test -z "$as_dir" && as_dir=.
68 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
73 # We did not find ourselves, most probably we were run as `sh COMMAND'
74 # in which case we are not to be found in the path.
75 if test "x$as_myself" = x; then
78 if test ! -f "$as_myself"; then
79 # FIXME: next line outputs $as_me, which is still unset.
80 { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
81 { (exit 1); exit 1; }; }
84 # Work around bugs in pre-3.0 UWIN ksh.
85 for as_var in ENV MAIL MAILPATH
86 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
94 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
95 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
98 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
99 eval $as_var=C; export $as_var
101 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 # Required to use basename.
106 if expr a : '\(a\)' >/dev/null 2>&1; then
112 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
119 # Name of the executable.
120 as_me=`$as_basename "$0" ||
121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
122 X"$0" : 'X\(//\)$' \| \
123 X"$0" : 'X\(/\)$' \| \
124 . : '\(.\)' 2>/dev/null ||
126 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
127 /^X\/\(\/\/\)$/{ s//\1/; q; }
128 /^X\/\(\/\).*/{ s//\1/; q; }
133 if test "x$CONFIG_SHELL" = x; then
134 if (eval ":") 2>/dev/null; then
140 if test $as_have_required = yes && (eval ":
150 as_func_ret_success () {
153 as_func_ret_failure () {
158 if as_func_success; then
162 echo as_func_success failed.
165 if as_func_failure; then
167 echo as_func_failure succeeded.
170 if as_func_ret_success; then
174 echo as_func_ret_success failed.
177 if as_func_ret_failure; then
179 echo as_func_ret_failure succeeded.
182 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
186 echo positional parameters were not saved.
189 test \$exitcode = 0) || { (exit 1); exit 1; }
194 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
195 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
196 ") 2> /dev/null; then
200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
204 test -z "$as_dir" && as_dir=.
207 for as_base in sh bash ksh sh5; do
208 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
214 for as_shell in $as_candidate_shells $SHELL; do
215 if { ($as_shell) 2> /dev/null <<\_ASEOF
216 # Be Bourne compatible
217 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
220 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
221 # is contrary to our usage. Disable this feature.
222 alias -g '${1+"$@"}'='"$@"'
224 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
227 BIN_SH=xpg4; export BIN_SH # for Tru64
228 DUALCASE=1; export DUALCASE # for MKS sh
233 CONFIG_SHELL=$as_shell
235 if { $as_shell 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
244 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
260 as_func_ret_success () {
263 as_func_ret_failure () {
268 if as_func_success; then
272 echo as_func_success failed.
275 if as_func_failure; then
277 echo as_func_failure succeeded.
280 if as_func_ret_success; then
284 echo as_func_ret_success failed.
287 if as_func_ret_failure; then
289 echo as_func_ret_failure succeeded.
292 if ( set x; as_func_ret_success y && test x = "$1" ); then
296 echo positional parameters were not saved.
299 test $exitcode = 0) || { (exit 1); exit 1; }
304 test "x$as_lineno_1" != "x$as_lineno_2" &&
305 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
316 if test "x$CONFIG_SHELL" != x; then
317 for as_var in BASH_ENV ENV
318 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
321 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
325 if test $as_have_required = no; then
326 echo This script requires a shell more modern than all the
327 echo shells that I found on your system. Please install a
328 echo modern shell, or manually run the script under such a
329 echo shell if you do have one.
330 { (exit 1); exit 1; }
340 (eval "as_func_return () {
349 as_func_ret_success () {
352 as_func_ret_failure () {
357 if as_func_success; then
361 echo as_func_success failed.
364 if as_func_failure; then
366 echo as_func_failure succeeded.
369 if as_func_ret_success; then
373 echo as_func_ret_success failed.
376 if as_func_ret_failure; then
378 echo as_func_ret_failure succeeded.
381 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
385 echo positional parameters were not saved.
388 test \$exitcode = 0") || {
389 echo No shell found that supports shell functions.
390 echo Please tell autoconf@gnu.org about your system,
391 echo including any error possibly output before this
399 test "x$as_lineno_1" != "x$as_lineno_2" &&
400 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
402 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
403 # uniformly replaced by the line number. The first 'sed' inserts a
404 # line-number line after each line using $LINENO; the second 'sed'
405 # does the real work. The second script uses 'N' to pair each
406 # line-number line with the line containing $LINENO, and appends
407 # trailing '-' during substitution so that $LINENO is not a special
409 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
410 # scripts with optimization help from Paolo Bonzini. Blame Lee
411 # E. McMahon (1931-1989) for sed's syntax. :-)
423 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
427 chmod +x $as_me.lineno ||
428 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
429 { (exit 1); exit 1; }; }
431 # Don't try to exec as it changes $[0], causing all sort of problems
432 # (the dirname of $[0] is not the place where we might find the
433 # original and so on. Autoconf is especially sensible to this).
435 # Exit status is that of the last command.
440 ECHO_C= ECHO_N= ECHO_T=
444 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
451 if expr a : '\(a\)' >/dev/null 2>&1; then
457 rm -f conf$$ conf$$.exe conf$$.file
459 if ln -s conf$$.file conf$$ 2>/dev/null; then
460 # We could just check for DJGPP; but this test a) works b) is more generic
461 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
462 if test -f conf$$.exe; then
463 # Don't use ln at all; we don't have any links
468 elif ln conf$$.file conf$$ 2>/dev/null; then
473 rm -f conf$$ conf$$.exe conf$$.file
475 if mkdir -p . 2>/dev/null; then
478 test -d ./-p && rmdir ./-p
482 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
483 # systems may use methods other than mode bits to determine executability.
484 cat >conf$$.file <<_ASEOF
489 if test -x conf$$.file >/dev/null 2>&1; then
490 as_executable_p="test -x"
496 # Sed expression to map a string onto a valid CPP name.
497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
499 # Sed expression to map a string onto a valid variable name.
500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
504 # We need space, tab and new line, in precisely that order.
514 # Check that we are running under the correct shell.
515 SHELL=${CONFIG_SHELL-/bin/sh}
519 # Remove one level of quotation (which was required for Make).
520 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
525 if test "X$1" = X--no-reexec; then
526 # Discard the --no-reexec flag, and continue.
528 elif test "X$1" = X--fallback-echo; then
529 # Avoid inline document here, it may be left over
531 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
532 # Yippee, $echo works!
535 # Restart under the correct shell.
536 exec $SHELL "$0" --no-reexec ${1+"$@"}
539 if test "X$1" = X--fallback-echo; then
540 # used as fallback echo
548 # The HP-UX ksh and POSIX shell print the target directory to stdout
550 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
552 if test -z "$ECHO"; then
553 if test "X${echo_test_string+set}" != Xset; then
554 # find a string as large as possible, as long as the shell can cope with it
555 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
556 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
557 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
558 echo_test_string=`eval $cmd` &&
559 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
566 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
567 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
568 test "X$echo_testing_string" = "X$echo_test_string"; then
571 # The Solaris, AIX, and Digital Unix default echo programs unquote
572 # backslashes. This makes it impossible to quote backslashes using
573 # echo "$something" | sed 's/\\/\\\\/g'
575 # So, first we look for a working echo in the user's PATH.
577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
578 for dir in $PATH /usr/ucb; do
580 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
581 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
590 if test "X$echo" = Xecho; then
591 # We didn't find a better echo, so look for alternatives.
592 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 # This shell has a builtin print -r that does the trick.
597 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
598 test "X$CONFIG_SHELL" != X/bin/ksh; then
599 # If we have ksh, try running configure again with it.
600 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
601 export ORIGINAL_CONFIG_SHELL
602 CONFIG_SHELL=/bin/ksh
604 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
614 test "X$echo_testing_string" = 'X\t' &&
615 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
616 test "X$echo_testing_string" = "X$echo_test_string"; then
617 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
619 SHELL="$CONFIG_SHELL"
621 echo="$CONFIG_SHELL $0 --fallback-echo"
622 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
623 test "X$echo_testing_string" = 'X\t' &&
624 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 echo="$CONFIG_SHELL $0 --fallback-echo"
628 # maybe with a smaller string...
631 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
632 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
639 if test "$prev" != 'sed 50q "$0"'; then
640 echo_test_string=`eval $prev`
641 export echo_test_string
642 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
644 # Oops. We lost completely, so just stick with echo.
653 # Copy echo and quote the copy suitably for passing to libtool from
654 # the Makefile, instead of quoting the original, which is used later.
656 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
657 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
663 tagnames=${tagnames+${tagnames},}CXX
665 tagnames=${tagnames+${tagnames},}F77
667 exec 7<&0 </dev/null 6>&1
670 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
671 # so uname gets run too.
672 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
677 ac_default_prefix=/usr/local
679 ac_config_libobj_dir=.
685 SHELL=${CONFIG_SHELL-/bin/sh}
687 # Identity of this package.
688 PACKAGE_NAME='libltdl'
689 PACKAGE_TARNAME='libltdl'
690 PACKAGE_VERSION='1.2'
691 PACKAGE_STRING='libltdl 1.2'
692 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
694 ac_unique_file="ltdl.c"
695 # Factoring default headers for most tests.
696 ac_includes_default="\
699 # include <sys/types.h>
702 # include <sys/stat.h>
713 # if !STDC_HEADERS && HAVE_MEMORY_H
719 # include <strings.h>
722 # include <inttypes.h>
740 program_transform_name
781 INSTALL_STRIP_PROGRAM
837 CONVENIENCE_LTDL_TRUE
838 CONVENIENCE_LTDL_FALSE
843 ac_precious_vars='build_alias
859 # Initialize some variables set by options.
861 ac_init_version=false
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name=s,x,x,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
917 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
963 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
964 { (exit 1); exit 1; }; }
965 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
966 eval enable_$ac_feature=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 -enable-* | --enable-*)
979 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983 { (exit 1); exit 1; }; }
984 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
985 eval enable_$ac_feature=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1149 -site=* | --site=* | --sit=*)
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1176 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid package name: $ac_package" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_package=`echo $ac_package| sed 's/-/_/g'`
1182 eval with_$ac_package=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1188 { echo "$as_me: error: invalid package name: $ac_package" >&2
1189 { (exit 1); exit 1; }; }
1190 ac_package=`echo $ac_package | sed 's/-/_/g'`
1191 eval with_$ac_package=no ;;
1194 # Obsolete; use --with-x.
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) { echo "$as_me: error: unrecognized option: $ac_option
1212 Try \`$0 --help' for more information." >&2
1213 { (exit 1); exit 1; }; }
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1221 { (exit 1); exit 1; }; }
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 { echo "$as_me: error: missing argument to $ac_option" >&2
1239 { (exit 1); exit 1; }; }
1242 # Be sure to have absolute directory names.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1248 eval ac_val=\$$ac_var
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1254 { (exit 1); exit 1; }; }
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1262 target=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269 If a cross compiler is detected then cross compile mode will be used." >&2
1270 elif test "x$build_alias" != "x$host_alias"; then
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278 test "$silent" = yes && exec 6>/dev/null
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 { echo "$as_me: error: Working directory cannot be determined" >&2
1285 { (exit 1); exit 1; }; }
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 { echo "$as_me: error: pwd does not report name of working directory" >&2
1288 { (exit 1); exit 1; }; }
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`(dirname "$0") 2>/dev/null ||
1296 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$0" : 'X\(//\)[^/]' \| \
1298 X"$0" : 'X\(//\)$' \| \
1299 X"$0" : 'X\(/\)' \| \
1300 . : '\(.\)' 2>/dev/null ||
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1304 /^X\(\/\/\)$/{ s//\1/; q; }
1305 /^X\(\/\).*/{ s//\1/; q; }
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1312 ac_srcdir_defaulted=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1317 { (exit 1); exit 1; }; }
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 cd $srcdir && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1322 { (exit 1); exit 1; }; }
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1348 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of libltdl 1.2:";;
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --disable-dependency-tracking speeds up one-time build
1426 --enable-dependency-tracking do not reject slow dependency extractors
1427 --enable-shared[=PKGS]
1428 build shared libraries [default=yes]
1429 --enable-static[=PKGS]
1430 build static libraries [default=yes]
1431 --enable-fast-install[=PKGS]
1432 optimize for fast installation [default=yes]
1433 --disable-libtool-lock avoid locking (might break parallel builds)
1434 --enable-ltdl-install install libltdl
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 --with-pic try to use only PIC/non-PIC objects [default=use
1443 include additional configurations [automatic]
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1451 headers in a nonstandard directory <include dir>
1453 CXX C++ compiler command
1454 CXXFLAGS C++ compiler flags
1455 CXXCPP C++ preprocessor
1456 F77 Fortran 77 compiler command
1457 FFLAGS Fortran 77 compiler flags
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to <bug-libtool@gnu.org>.
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d $ac_dir || continue
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1490 .) # We are building in place.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd $ac_dir || { ac_status=$?; continue; }
1506 # Check for guested configure; otherwise get Cygnus style configure.
1507 if test -f $ac_srcdir/configure.gnu; then
1509 $SHELL $ac_srcdir/configure.gnu --help=recursive
1510 elif test -f $ac_srcdir/configure; then
1512 $SHELL $ac_srcdir/configure --help=recursive
1513 elif test -f $ac_srcdir/configure.ac ||
1514 test -f $ac_srcdir/configure.in; then
1516 $ac_configure --help
1518 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1527 libltdl configure 1.2
1528 generated by GNU Autoconf 2.59c
1530 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1531 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1539 This file contains any messages produced by compilers while
1540 running configure, to aid debugging if configure makes a mistake.
1542 It was created by libltdl $as_me 1.2, which was
1543 generated by GNU Autoconf 2.59c. Invocation command line was
1554 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1555 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1556 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1557 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1558 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1560 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1561 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1563 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1564 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1565 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1566 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1567 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1568 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1569 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 echo "PATH: $as_dir"
1593 # Keep a trace of the command line.
1594 # Strip out --no-create and --no-recursion so they do not pile up.
1595 # Strip out --silent because we don't want to record it for future runs.
1596 # Also quote any args containing shell meta-characters.
1597 # Make two passes to allow for proper duplicate-argument suppression.
1602 ac_must_keep_next=false
1608 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1610 | -silent | --silent | --silen | --sile | --sil)
1612 *" "*|*" "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)
1613 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1616 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1618 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1619 if test $ac_must_keep_next = true; then
1620 ac_must_keep_next=false # Got value, back to normal.
1623 *=* | --config-cache | -C | -disable-* | --disable-* \
1624 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1625 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1626 | -with-* | --with-* | -without-* | --without-* | --x)
1627 case "$ac_configure_args0 " in
1628 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1631 -* ) ac_must_keep_next=true ;;
1634 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1635 # Get rid of the leading space.
1641 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1642 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1644 # When interrupted or exit'd, cleanup temporary files, and complete
1645 # config.log. We remove comments because anyway the quotes in there
1646 # would cause problems or look ugly.
1647 # WARNING: Be sure not to use single quotes in there, as some shells,
1648 # such as our DU 5.0 friend, will then `close' the trap.
1649 trap 'exit_status=$?
1650 # Save into config.log some information that might help in debugging.
1655 ## ---------------- ##
1656 ## Cache variables. ##
1657 ## ---------------- ##
1660 # The following way of writing the cache mishandles newlines in values,
1663 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1666 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1671 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1678 ## ----------------- ##
1679 ## Output variables. ##
1680 ## ----------------- ##
1683 for ac_var in $ac_subst_vars
1685 eval ac_val=\$$ac_var
1686 echo "$ac_var='"'"'$ac_val'"'"'"
1690 if test -n "$ac_subst_files"; then
1692 ## ------------------- ##
1693 ## File substitutions. ##
1694 ## ------------------- ##
1697 for ac_var in $ac_subst_files
1699 eval ac_val=\$$ac_var
1700 echo "$ac_var='"'"'$ac_val'"'"'"
1705 if test -s confdefs.h; then
1712 sed "/^$/d" confdefs.h | sort
1715 test "$ac_signal" != 0 &&
1716 echo "$as_me: caught signal $ac_signal"
1717 echo "$as_me: exit $exit_status"
1719 rm -f core *.core core.conftest.* &&
1720 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1723 for ac_signal in 1 2 13 15; do
1724 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1728 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1729 rm -f -r conftest* confdefs.h
1731 # Predefined preprocessor variables.
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_NAME "$PACKAGE_NAME"
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_STRING "$PACKAGE_STRING"
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1758 # Let the site file select an alternate cache file if it wants to.
1759 # Prefer explicitly selected file to automatically selected ones.
1760 if test -n "$CONFIG_SITE"; then
1761 set x "$CONFIG_SITE"
1762 elif test "x$prefix" != xNONE; then
1763 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1765 set x "$ac_default_prefix/share/config.site" \
1766 "$ac_default_prefix/etc/config.site"
1771 if test -r "$ac_site_file"; then
1772 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1773 echo "$as_me: loading site script $ac_site_file" >&6;}
1774 sed 's/^/| /' "$ac_site_file" >&5
1779 if test -r "$cache_file"; then
1780 # Some versions of bash will fail to source /dev/null (special
1781 # files actually), so we avoid doing that.
1782 if test -f "$cache_file"; then
1783 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1784 echo "$as_me: loading cache $cache_file" >&6;}
1786 [\\/]* | ?:[\\/]* ) . $cache_file;;
1787 *) . ./$cache_file;;
1791 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1792 echo "$as_me: creating cache $cache_file" >&6;}
1796 # Check that the precious variables saved in the cache have kept the same
1798 ac_cache_corrupted=false
1799 for ac_var in $ac_precious_vars; do
1800 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1801 eval ac_new_set=\$ac_env_${ac_var}_set
1802 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1803 eval ac_new_val=\$ac_env_${ac_var}_value
1804 case $ac_old_set,$ac_new_set in
1806 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1807 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1808 ac_cache_corrupted=: ;;
1810 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1811 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1812 ac_cache_corrupted=: ;;
1815 if test "x$ac_old_val" != "x$ac_new_val"; then
1816 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1817 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1818 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1819 echo "$as_me: former value: $ac_old_val" >&2;}
1820 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1821 echo "$as_me: current value: $ac_new_val" >&2;}
1822 ac_cache_corrupted=:
1825 # Pass precious variables to config.status.
1826 if test "$ac_new_set" = set; then
1828 *" "*|*" "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)
1829 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1830 *) ac_arg=$ac_var=$ac_new_val ;;
1832 case " $ac_configure_args " in
1833 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1834 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1838 if $ac_cache_corrupted; then
1839 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1840 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1841 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1842 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1843 { (exit 1); exit 1; }; }
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880 ## ------------------------------- ##
1881 ## Libltdl specific configuration. ##
1882 ## ------------------------------- ##
1885 for ac_dir in . $srcdir/.; do
1886 if test -f $ac_dir/install-sh; then
1888 ac_install_sh="$ac_aux_dir/install-sh -c"
1890 elif test -f $ac_dir/install.sh; then
1892 ac_install_sh="$ac_aux_dir/install.sh -c"
1894 elif test -f $ac_dir/shtool; then
1896 ac_install_sh="$ac_aux_dir/shtool install -c"
1900 if test -z "$ac_aux_dir"; then
1901 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1902 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1903 { (exit 1); exit 1; }; }
1905 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1906 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1907 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1910 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1911 if test -f ${srcdir}/ltmain.sh; then
1912 # if libltdl is libtoolized, it is assumed to be stand-alone and
1913 # installed unless the command line overrides it (tested above)
1914 enable_ltdl_install=yes
1916 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1917 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1918 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1919 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1920 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1921 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1922 { (exit 1); exit 1; }; }
1927 ## ------------------------ ##
1928 ## Automake Initialisation. ##
1929 ## ------------------------ ##
1930 am__api_version='1.9a'
1932 # Find a good install program. We prefer a C program (faster),
1933 # so one script is as good as another. But avoid the broken or
1934 # incompatible versions:
1935 # SysV /etc/install, /usr/sbin/install
1936 # SunOS /usr/etc/install
1937 # IRIX /sbin/install
1939 # AmigaOS /C/install, which installs bootblocks on floppy discs
1940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1943 # OS/2's system install, which has a completely different semantic
1944 # ./install, which can be erroneously created by make from ./install.sh.
1945 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1946 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1947 if test -z "$INSTALL"; then
1948 if test "${ac_cv_path_install+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 test -z "$as_dir" && as_dir=.
1956 # Account for people who put trailing slashes in PATH elements.
1958 ./ | .// | /cC/* | \
1959 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1960 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1963 # OSF1 and SCO ODT 3.0 have their own names for install.
1964 # Don't use installbsd from OSF since it installs stuff as root
1966 for ac_prog in ginstall scoinst install; do
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1969 if test $ac_prog = install &&
1970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1971 # AIX install. It has an incompatible calling convention.
1973 elif test $ac_prog = install &&
1974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1975 # program-specific install script used by HP pwplus--don't use.
1978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1990 if test "${ac_cv_path_install+set}" = set; then
1991 INSTALL=$ac_cv_path_install
1993 # As a last resort, use the slow shell script. Don't cache a
1994 # value for INSTALL within a source directory, because that will
1995 # break other packages using the cache if that directory is
1996 # removed, or if the value is a relative name.
1997 INSTALL=$ac_install_sh
2000 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2001 echo "${ECHO_T}$INSTALL" >&6; }
2003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2004 # It thinks the first close brace ends the variable substitution.
2005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2011 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2012 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2015 echo timestamp > conftest.file
2016 # Do `set' in a subshell so we don't clobber the current shell's
2017 # arguments. Must try -L first in case configure is actually a
2018 # symlink; some systems play weird games with the mod time of symlinks
2019 # (eg FreeBSD returns the mod time of the symlink's containing
2022 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2023 if test "$*" = "X"; then
2025 set X `ls -t $srcdir/configure conftest.file`
2028 if test "$*" != "X $srcdir/configure conftest.file" \
2029 && test "$*" != "X conftest.file $srcdir/configure"; then
2031 # If neither matched, then we have a broken ls. This can happen
2032 # if, for instance, CONFIG_SHELL is bash and it inherits a
2033 # broken ls alias from the environment. This has actually
2034 # happened. Such a system could not be considered "sane".
2035 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2036 alias in your environment" >&5
2037 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2038 alias in your environment" >&2;}
2039 { (exit 1); exit 1; }; }
2042 test "$2" = conftest.file
2048 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2049 Check your system clock" >&5
2050 echo "$as_me: error: newly created file is older than distributed files!
2051 Check your system clock" >&2;}
2052 { (exit 1); exit 1; }; }
2054 { echo "$as_me:$LINENO: result: yes" >&5
2055 echo "${ECHO_T}yes" >&6; }
2056 test "$program_prefix" != NONE &&
2057 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2058 # Use a double $ so make ignores it.
2059 test "$program_suffix" != NONE &&
2060 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2061 # Double any \ or $. echo might interpret backslashes.
2062 # By default was `s,x,x', remove it if useless.
2063 cat <<\_ACEOF >conftest.sed
2064 s/[\\$]/&&/g;s/;s,x,x,$//
2066 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2069 # expand $ac_aux_dir to an absolute path
2070 am_aux_dir=`cd $ac_aux_dir && pwd`
2072 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2073 # Use eval to expand $SHELL
2074 if eval "$MISSING --run true"; then
2075 am_missing_run="$MISSING --run "
2078 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2079 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2082 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2083 # We used to define $(mkdir_p) as `mkdir -p -- .', in order to
2084 # allow $(mkdir_p) to be used without argument. As in
2085 # $(mkdir_p) $(somedir)
2086 # where $(somedir) is conditionally defined. However we don't do
2088 # 1. before we restricted the check to GNU mkdir, `mkdir -p .' was
2089 # reported to fail in read-only directories. The system where this
2090 # happened has been forgotten.
2091 # 2. in practice we call $(mkdir_p) on directories such as
2092 # $(mkdir_p) "$(DESTDIR)$(somedir)"
2093 # and we don't want to create $(DESTDIR) if $(somedir) is empty.
2094 # To support the latter case, we have to write
2095 # test -z "$(somedir)" || $(mkdir_p) "$(DESTDIR)$(somedir)"
2096 # so $(mkdir_p) always has an argument.
2097 # We will have better chances of detecting a missing test if
2098 # $(mkdir_p) complains about missing arguments.
2099 # 3. $(mkdir_p) is named after `mkdir -p' and we don't expect this
2100 # to accept no argument.
2101 # 4. having something like `mkdir .' in the output is unsightly.
2102 mkdir_p='mkdir -p --'
2104 # On NextStep and OpenStep, the `mkdir' command does not
2105 # recognize any option. It will interpret all options as
2106 # directories to create.
2107 for d in ./-p ./--version;
2109 test -d $d && rmdir $d
2111 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2112 if test -f "$ac_aux_dir/mkinstalldirs"; then
2113 mkdir_p='$(mkinstalldirs)'
2115 mkdir_p='$(install_sh) -d'
2119 for ac_prog in gawk mawk nawk awk
2121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy $ac_prog; ac_word=$2
2123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2125 if test "${ac_cv_prog_AWK+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 if test -n "$AWK"; then
2129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2138 ac_cv_prog_AWK="$ac_prog"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 if test -n "$AWK"; then
2149 { echo "$as_me:$LINENO: result: $AWK" >&5
2150 echo "${ECHO_T}$AWK" >&6; }
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2157 test -n "$AWK" && break
2160 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2161 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2162 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2163 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 cat >conftest.make <<\_ACEOF
2169 @echo 'ac_maketemp=X"$(MAKE)"'
2171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2172 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2173 if test "$ac_maketemp" != X ; then
2174 eval ac_cv_prog_make_${ac_make}_set=yes
2176 eval ac_cv_prog_make_${ac_make}_set=no
2180 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2181 { echo "$as_me:$LINENO: result: yes" >&5
2182 echo "${ECHO_T}yes" >&6; }
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2187 SET_MAKE="MAKE=${MAKE-make}"
2190 rm -rf .tst 2>/dev/null
2191 mkdir .tst 2>/dev/null
2192 if test -d .tst; then
2197 rmdir .tst 2>/dev/null
2199 # test to see if srcdir already configured
2200 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2201 test -f $srcdir/config.status; then
2202 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2203 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2204 { (exit 1); exit 1; }; }
2207 # test whether we have cygpath
2208 if test -z "$CYGPATH_W"; then
2209 if (cygpath --version) >/dev/null 2>/dev/null; then
2210 CYGPATH_W='cygpath -w'
2217 # Define the identity of the package.
2222 # Some tools Automake needs.
2224 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2227 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2230 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2233 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2236 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2238 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2240 # Installed binaries are usually stripped using `strip' when the user
2241 # run `make install-strip'. However `strip' might not be the right
2242 # tool to use in cross-compilation environments, therefore Automake
2243 # will honor the `STRIP' environment variable to overrule this program.
2244 if test "$cross_compiling" != no; then
2245 if test -n "$ac_tool_prefix"; then
2246 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}strip; ac_word=$2
2248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2250 if test "${ac_cv_prog_STRIP+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 if test -n "$STRIP"; then
2254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 STRIP=$ac_cv_prog_STRIP
2273 if test -n "$STRIP"; then
2274 { echo "$as_me:$LINENO: result: $STRIP" >&5
2275 echo "${ECHO_T}$STRIP" >&6; }
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2283 if test -z "$ac_cv_prog_STRIP"; then
2285 # Extract the first word of "strip", so it can be a program name with args.
2286 set dummy strip; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test -n "$ac_ct_STRIP"; then
2293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2302 ac_cv_prog_ac_ct_STRIP="strip"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2312 if test -n "$ac_ct_STRIP"; then
2313 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2314 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2316 { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2320 if test "x$ac_ct_STRIP" = x; then
2323 if test "$build" != "$host"; then
2324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&5
2327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2328 whose name does not start with the host triplet. If you think this
2329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2334 STRIP="$ac_cv_prog_STRIP"
2338 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2340 # We need awk for the "check" target. The system "awk" is bad on
2342 # Always define AMTAR for backward compatibility.
2344 AMTAR=${AMTAR-"${am_missing_run}tar"}
2346 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2352 ac_config_headers="$ac_config_headers config.h:config-h.in"
2356 ## ------------------ ##
2357 ## C compiler checks. ##
2358 ## ------------------ ##
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 if test -n "$CC"; then
2393 { echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6; }
2396 { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2402 if test -z "$ac_cv_prog_CC"; then
2404 # Extract the first word of "gcc", so it can be a program name with args.
2405 set dummy gcc; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 if test -n "$ac_ct_CC"; then
2412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 ac_cv_prog_ac_ct_CC="gcc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6; }
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2439 if test "x$ac_ct_CC" = x; then
2442 if test "$build" != "$host"; then
2443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&5
2446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet. If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2456 if test -z "$CC"; then
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}cc; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_CC="${ac_tool_prefix}cc"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$CC"; then
2486 { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2496 if test -z "$CC"; then
2497 # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516 ac_prog_rejected=yes
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 if test $ac_prog_rejected = yes; then
2527 # We found a bogon in the path, so make sure we never use it.
2528 set dummy $ac_cv_prog_CC
2530 if test $# != 0; then
2531 # We chose a different compiler from the bogus one.
2532 # However, it has the same basename, so the bogon will be chosen
2533 # first if we set CC to just the basename; use the full file name.
2535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2541 if test -n "$CC"; then
2542 { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2551 if test -z "$CC"; then
2552 if test -n "$ac_tool_prefix"; then
2553 for ac_prog in cl.exe
2555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 if test -n "$CC"; then
2583 { echo "$as_me:$LINENO: result: $CC" >&5
2584 echo "${ECHO_T}$CC" >&6; }
2586 { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2591 test -n "$CC" && break
2594 if test -z "$CC"; then
2596 for ac_prog in cl.exe
2598 # Extract the first word of "$ac_prog", so it can be a program name with args.
2599 set dummy $ac_prog; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_CC="$ac_prog"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625 if test -n "$ac_ct_CC"; then
2626 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2627 echo "${ECHO_T}$ac_ct_CC" >&6; }
2629 { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2634 test -n "$ac_ct_CC" && break
2637 if test "x$ac_ct_CC" = x; then
2640 if test "$build" != "$host"; then
2641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet. If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet. If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2655 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: no acceptable C compiler found in \$PATH
2658 See \`config.log' for more details." >&2;}
2659 { (exit 1); exit 1; }; }
2661 # Provide some information about the compiler.
2662 echo "$as_me:$LINENO: checking for C compiler version" >&5
2663 ac_compiler=`set X $ac_compile; echo $2`
2664 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2665 (eval $ac_compiler --version >&5) 2>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }
2669 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2670 (eval $ac_compiler -v >&5) 2>&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2675 (eval $ac_compiler -V >&5) 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 ac_clean_files_save=$ac_clean_files
2696 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2697 # Try to create an executable without -o first, disregard a.out.
2698 # It will help us diagnose broken compilers, and finding out an intuition
2700 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2701 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2702 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2704 # List of possible output files, starting from the most likely.
2705 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2706 # only as a last resort. b.out is created by i960 compilers.
2707 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2709 # The IRIX 6 linker writes into existing files which may not be
2710 # executable, retaining their permissions. Remove them first so a
2711 # subsequent execution test works.
2713 for ac_file in $ac_files
2716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2717 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2722 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2723 (eval $ac_link_default) 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; then
2727 # Be careful to initialize this variable, since it used to be cached.
2728 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2730 for ac_file in $ac_files
2732 test -f "$ac_file" || continue
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2737 # We found the default executable, but exeext='' is most
2741 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2742 # FIXME: I believe we export ac_cv_exeext for Libtool,
2743 # but it would be cool to find out if it's true. Does anybody
2744 # maintain Libtool? --akim.
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2755 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2756 See \`config.log' for more details." >&5
2757 echo "$as_me: error: C compiler cannot create executables
2758 See \`config.log' for more details." >&2;}
2759 { (exit 77); exit 77; }; }
2762 ac_exeext=$ac_cv_exeext
2763 { echo "$as_me:$LINENO: result: $ac_file" >&5
2764 echo "${ECHO_T}$ac_file" >&6; }
2766 # Check the compiler produces executables we can run. If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2771 # If not cross compiling, check that we can run a simple program.
2772 if test "$cross_compiling" != yes; then
2773 if { ac_try='./$ac_file'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2781 if test "$cross_compiling" = maybe; then
2784 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2785 If you meant to cross compile, use \`--host'.
2786 See \`config.log' for more details." >&5
2787 echo "$as_me: error: cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \`config.log' for more details." >&2;}
2790 { (exit 1); exit 1; }; }
2794 { echo "$as_me:$LINENO: result: yes" >&5
2795 echo "${ECHO_T}yes" >&6; }
2797 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2798 ac_clean_files=$ac_clean_files_save
2799 # Check the compiler produces executables we can run. If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2802 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2803 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2804 echo "${ECHO_T}$cross_compiling" >&6; }
2806 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2807 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2809 (eval $ac_link) 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; then
2813 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2814 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2815 # work properly (i.e., refer to `conftest.exe'), while it won't with
2817 for ac_file in conftest.exe conftest conftest.*; do
2818 test -f "$ac_file" || continue
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2821 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2835 rm -f conftest$ac_cv_exeext
2836 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2837 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2839 rm -f conftest.$ac_ext
2840 EXEEXT=$ac_cv_exeext
2842 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2844 if test "${ac_cv_objext+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2862 rm -f conftest.o conftest.obj
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864 (eval $ac_compile) 2>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; then
2868 for ac_file in conftest.o conftest.obj conftest.*; do
2869 test -f "$ac_file" || continue;
2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2880 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2881 See \`config.log' for more details." >&5
2882 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2883 See \`config.log' for more details." >&2;}
2884 { (exit 1); exit 1; }; }
2887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2889 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2890 echo "${ECHO_T}$ac_cv_objext" >&6; }
2891 OBJEXT=$ac_cv_objext
2893 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 cat >conftest.$ac_ext <<_ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -z "$ac_c_werror_flag"
2926 || test ! -s conftest.err'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2950 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2951 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2952 GCC=`test $ac_compiler_gnu = yes && echo yes`
2953 ac_test_CFLAGS=${CFLAGS+set}
2954 ac_save_CFLAGS=$CFLAGS
2955 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cc_g+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 ac_save_c_werror_flag=$ac_c_werror_flag
2961 ac_c_werror_flag=yes
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -z "$ac_c_werror_flag"
2989 || test ! -s conftest.err'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag"
3032 || test ! -s conftest.err'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 ac_c_werror_flag=$ac_save_c_werror_flag
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103 ac_c_werror_flag=$ac_save_c_werror_flag
3105 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3107 if test "$ac_test_CFLAGS" = set; then
3108 CFLAGS=$ac_save_CFLAGS
3109 elif test $ac_cv_prog_cc_g = yes; then
3110 if test "$GCC" = yes; then
3116 if test "$GCC" = yes; then
3122 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3123 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_cc_c89+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 ac_cv_prog_cc_c89=no
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3137 #include <sys/types.h>
3138 #include <sys/stat.h>
3139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3140 struct buf { int x; };
3141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3142 static char *e (p, i)
3148 static char *f (char * (*g) (char **, int), char **p, ...)
3153 s = g (p, va_arg (v,int));
3158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3159 function prototypes and stuff, but not '\xHH' hex character constants.
3160 These don't provoke an error unfortunately, instead are silently treated
3161 as 'x'. The following induces an error, until -std is added to get
3162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3163 array size at least. It's necessary to write '\x00'==0 to get something
3164 that's true only with -std. */
3165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3167 int test (int i, double x);
3168 struct s1 {int (*f) (int a);};
3169 struct s2 {int (*f) (double a);};
3170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3176 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3181 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3182 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3184 CC="$ac_save_CC $ac_arg"
3185 rm -f conftest.$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag"
3195 || test ! -s conftest.err'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 ac_cv_prog_cc_c89=$ac_arg
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3215 rm -f conftest.err conftest.$ac_objext
3216 test "x$ac_cv_prog_cc_c89" != "xno" && break
3218 rm -f conftest.$ac_ext
3223 case "x$ac_cv_prog_cc_c89" in
3225 { echo "$as_me:$LINENO: result: none needed" >&5
3226 echo "${ECHO_T}none needed" >&6; } ;;
3228 { echo "$as_me:$LINENO: result: unsupported" >&5
3229 echo "${ECHO_T}unsupported" >&6; } ;;
3231 CC="$CC $ac_cv_prog_cc_c89"
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3237 # Some people use a C++ compiler to compile C. Since we use `exit',
3238 # in C++ we need to declare it. In case someone uses the same compiler
3239 # for both compiling C and C++ we need to have the C++ compiler decide
3240 # the declaration of exit, since it's the most demanding environment.
3241 cat >conftest.$ac_ext <<_ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>conftest.er1
3250 grep -v '^ *+' conftest.er1 >conftest.err
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try='test -z "$ac_c_werror_flag"
3256 || test ! -s conftest.err'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; } &&
3262 { ac_try='test -s conftest.$ac_objext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3268 for ac_declaration in \
3270 'extern "C" void std::exit (int) throw (); using std::exit;' \
3271 'extern "C" void std::exit (int); using std::exit;' \
3272 'extern "C" void exit (int) throw ();' \
3273 'extern "C" void exit (int);' \
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>conftest.er1
3296 grep -v '^ *+' conftest.er1 >conftest.err
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try='test -z "$ac_c_werror_flag"
3302 || test ! -s conftest.err'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3323 cat >conftest.$ac_ext <<_ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3371 if test -n "$ac_declaration"; then
3372 echo '#ifdef __cplusplus' >>confdefs.h
3373 echo $ac_declaration >>confdefs.h
3374 echo '#endif' >>confdefs.h
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 DEPDIR="${am__leading_dot}deps"
3392 ac_config_commands="$ac_config_commands depfiles"
3395 am_make=${MAKE-make}
3396 cat > confinc << 'END'
3401 # If we don't find an include directive, just comment out the code.
3402 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3403 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3407 # First try GNU make style include.
3408 echo "include confinc" > confmf
3409 # We grep out `Entering directory' and `Leaving directory'
3410 # messages which can occur if `w' ends up in MAKEFLAGS.
3411 # In particular we don't look at `^make:' because GNU make might
3412 # be invoked under some other name (usually "gmake"), in which
3413 # case it prints its new name instead of `make'.
3414 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3419 # Now try BSD make style include.
3420 if test "$am__include" = "#"; then
3421 echo '.include "confinc"' > confmf
3422 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3423 am__include=.include
3430 { echo "$as_me:$LINENO: result: $_am_result" >&5
3431 echo "${ECHO_T}$_am_result" >&6; }
3432 rm -f confinc confmf
3434 # Check whether --enable-dependency-tracking was given.
3435 if test "${enable_dependency_tracking+set}" = set; then
3436 enableval=$enable_dependency_tracking;
3439 if test "x$enable_dependency_tracking" != xno; then
3440 am_depcomp="$ac_aux_dir/depcomp"
3445 if test "x$enable_dependency_tracking" != xno; then
3456 depcc="$CC" am_compiler_list=
3458 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3459 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3460 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3464 # We make a subdir and do the tests there. Otherwise we can end up
3465 # making bogus files that we don't know about and never remove. For
3466 # instance it was reported that on HP-UX the gcc test will end up
3467 # making a dummy file named `D' -- because `-MD' means `put the output
3470 # Copy depcomp to subdir because otherwise we won't find it if we're
3471 # using a relative directory.
3472 cp "$am_depcomp" conftest.dir
3474 # We will build objects and dependencies in a subdirectory because
3475 # it helps to detect inapplicable dependency modes. For instance
3476 # both Tru64's cc and ICC support -MD to output dependencies as a
3477 # side effect of compilation, but ICC will put the dependencies in
3478 # the current directory while Tru64 will put them in the object
3482 am_cv_CC_dependencies_compiler_type=none
3483 if test "$am_compiler_list" = ""; then
3484 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3486 for depmode in $am_compiler_list; do
3487 # Setup a source with many dependencies, because some compilers
3488 # like to wrap large dependency lists on column 80 (with \), and
3489 # we should not choose a depcomp mode which is confused by this.
3491 # We need to recreate these files for each test, as the compiler may
3492 # overwrite some of them when testing with obscure command lines.
3493 # This happens at least with the AIX C compiler.
3495 for i in 1 2 3 4 5 6; do
3496 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3497 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3498 # Solaris 8's {/usr,}/bin/sh.
3499 touch sub/conftst$i.h
3501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3505 # after this tag, mechanisms are not by side-effect, so they'll
3506 # only be used when explicitly requested
3507 if test "x$enable_dependency_tracking" = xyes; then
3515 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3516 # mode. It turns out that the SunPro C++ compiler does not properly
3517 # handle `-M -o', and we need to detect this.
3518 if depmode=$depmode \
3519 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3520 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3521 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3522 >/dev/null 2>conftest.err &&
3523 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3524 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3525 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3526 # icc doesn't choke on unknown options, it will just issue warnings
3527 # or remarks (even with -Werror). So we grep stderr for any message
3528 # that says an option was ignored or not supported.
3529 # When given -MP, icc 7.0 and 7.1 complain thusly:
3530 # icc: Command line warning: ignoring option '-M'; no argument required
3531 # The diagnosis changed in icc 8.0:
3532 # icc: Command line remark: option '-MP' not supported
3533 if (grep 'ignoring option' conftest.err ||
3534 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3535 am_cv_CC_dependencies_compiler_type=$depmode
3544 am_cv_CC_dependencies_compiler_type=none
3548 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3549 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3550 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3555 test "x$enable_dependency_tracking" != xno \
3556 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3558 am__fastdepCC_FALSE='#'
3560 am__fastdepCC_TRUE='#'
3561 am__fastdepCC_FALSE=
3566 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3568 if test "${ac_cv_c_const+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3581 /* FIXME: Include the comments suggested by Paul. */
3583 /* Ultrix mips cc rejects this. */
3584 typedef int charset[2];
3586 /* SunOS 4.1.1 cc rejects this. */
3587 char const *const *ccp;
3589 /* NEC SVR4.0.2 mips cc rejects this. */
3590 struct point {int x, y;};
3591 static struct point const zero = {0,0};
3592 /* AIX XL C 1.02.0.0 rejects this.
3593 It does not let you subtract one const X* pointer from another in
3594 an arm of an if-expression whose if-part is not a constant
3596 const char *g = "string";
3597 ccp = &g + (g ? g-g : 0);
3598 /* HPUX 7.0 cc rejects these. */
3601 ccp = (char const *const *) p;
3602 { /* SCO 3.2v4 cc rejects this. */
3604 char const *s = 0 ? (char *) 0 : (char const *) 0;
3608 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3610 const int *foo = &x[0];
3613 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3614 typedef const int *iptr;
3618 { /* AIX XL C 1.02.0.0 rejects this saying
3619 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3620 struct s { int j; const int *ap[3]; };
3621 struct s *b; b->j = 5;
3623 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_c_werror_flag"
3642 || test ! -s conftest.err'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3665 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3666 if test $ac_cv_c_const = no; then
3668 cat >>confdefs.h <<\_ACEOF
3674 { echo "$as_me:$LINENO: checking for inline" >&5
3675 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3676 if test "${ac_cv_c_inline+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 for ac_kw in inline __inline__ __inline; do
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3689 static $ac_kw foo_t static_foo () {return 0; }
3690 $ac_kw foo_t foo () {return 0; }
3694 rm -f conftest.$ac_objext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696 (eval $ac_compile) 2>conftest.er1
3698 grep -v '^ *+' conftest.er1 >conftest.err
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try='test -z "$ac_c_werror_flag"
3704 || test ! -s conftest.err'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; } &&
3710 { ac_try='test -s conftest.$ac_objext'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 ac_cv_c_inline=$ac_kw; break
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3729 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3732 case $ac_cv_c_inline in
3735 case $ac_cv_c_inline in
3737 *) ac_val=$ac_cv_c_inline;;
3739 cat >>confdefs.h <<_ACEOF
3741 #define inline $ac_val
3749 ## ----------------------- ##
3750 ## Libtool initialisation. ##
3751 ## ----------------------- ##
3754 # Check whether --enable-shared was given.
3755 if test "${enable_shared+set}" = set; then
3756 enableval=$enable_shared; p=${PACKAGE-default}
3758 yes) enable_shared=yes ;;
3759 no) enable_shared=no ;;
3762 # Look at the argument we got. We use all the common list separators.
3763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3764 for pkg in $enableval; do
3766 if test "X$pkg" = "X$p"; then
3778 # Check whether --enable-static was given.
3779 if test "${enable_static+set}" = set; then
3780 enableval=$enable_static; p=${PACKAGE-default}
3782 yes) enable_static=yes ;;
3783 no) enable_static=no ;;
3786 # Look at the argument we got. We use all the common list separators.
3787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3788 for pkg in $enableval; do
3790 if test "X$pkg" = "X$p"; then
3802 # Check whether --enable-fast-install was given.
3803 if test "${enable_fast_install+set}" = set; then
3804 enableval=$enable_fast_install; p=${PACKAGE-default}
3806 yes) enable_fast_install=yes ;;
3807 no) enable_fast_install=no ;;
3809 enable_fast_install=no
3810 # Look at the argument we got. We use all the common list separators.
3811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3812 for pkg in $enableval; do
3814 if test "X$pkg" = "X$p"; then
3815 enable_fast_install=yes
3822 enable_fast_install=yes
3826 # Make sure we can run config.sub.
3827 $ac_config_sub sun4 >/dev/null 2>&1 ||
3828 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3829 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3830 { (exit 1); exit 1; }; }
3832 { echo "$as_me:$LINENO: checking build system type" >&5
3833 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3834 if test "${ac_cv_build+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 ac_build_alias=$build_alias
3838 test "x$ac_build_alias" = x &&
3839 ac_build_alias=`$ac_config_guess`
3840 test "x$ac_build_alias" = x &&
3841 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3842 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3843 { (exit 1); exit 1; }; }
3844 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
3845 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
3846 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
3847 { (exit 1); exit 1; }; }
3850 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3851 echo "${ECHO_T}$ac_cv_build" >&6; }
3852 case $ac_cv_build in
3854 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3855 echo "$as_me: error: invalid value of canonical build" >&2;}
3856 { (exit 1); exit 1; }; };;
3859 ac_save_IFS=$IFS; IFS='-'
3869 { echo "$as_me:$LINENO: checking host system type" >&5
3870 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3871 if test "${ac_cv_host+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 if test "x$host_alias" = x; then
3875 ac_cv_host=$ac_cv_build
3877 ac_cv_host=`$ac_config_sub $host_alias` ||
3878 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
3879 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
3880 { (exit 1); exit 1; }; }
3884 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3885 echo "${ECHO_T}$ac_cv_host" >&6; }
3888 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3889 echo "$as_me: error: invalid value of canonical host" >&2;}
3890 { (exit 1); exit 1; }; };;
3893 ac_save_IFS=$IFS; IFS='-'
3903 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3904 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3905 if test "${lt_cv_path_SED+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 # Loop through the user's path and test for sed and gsed.
3909 # Then use that list of sed's as ones to test for truncation.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for lt_ac_prog in sed gsed; do
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3918 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3925 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3926 # along with /bin/sed that truncates output.
3927 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3928 test ! -f $lt_ac_sed && continue
3929 cat /dev/null > conftest.in
3931 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3932 # Check for GNU sed and select it if it is found.
3933 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3934 lt_cv_path_SED=$lt_ac_sed
3938 cat conftest.in conftest.in >conftest.tmp
3939 mv conftest.tmp conftest.in
3940 cp conftest.in conftest.nl
3942 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3943 cmp -s conftest.out conftest.nl || break
3944 # 10000 chars as input seems more than enough
3945 test $lt_ac_count -gt 10 && break
3946 lt_ac_count=`expr $lt_ac_count + 1`
3947 if test $lt_ac_count -gt $lt_ac_max; then
3948 lt_ac_max=$lt_ac_count
3949 lt_cv_path_SED=$lt_ac_sed
3957 { echo "$as_me:$LINENO: result: $SED" >&5
3958 echo "${ECHO_T}$SED" >&6; }
3960 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3961 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3962 if test "${ac_cv_path_GREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 # Extract the first word of "grep ggrep" to use in msg output
3966 if test -z "$GREP"; then
3967 set dummy grep ggrep; ac_prog_name=$2
3968 if test "${ac_cv_path_GREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 ac_path_GREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 as_dummy="$PATH:/usr/xpg4/bin"
3975 for as_dir in $as_dummy
3978 test -z "$as_dir" && as_dir=.
3979 for ac_prog in grep ggrep; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3983 # Check for GNU ac_path_GREP and select it if it is found.
3984 # Check for GNU $ac_path_GREP
3985 case `"$ac_path_GREP" --version 2>&1` in
3987 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3990 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 echo 'GREP' >> "conftest.nl"
3997 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 ac_count=`expr $ac_count + 1`
4000 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_GREP="$ac_path_GREP"
4003 ac_path_GREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4012 $ac_path_GREP_found && break 3
4021 GREP="$ac_cv_path_GREP"
4022 if test -z "$GREP"; then
4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4029 ac_cv_path_GREP=$GREP
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4036 GREP="$ac_cv_path_GREP"
4039 { echo "$as_me:$LINENO: checking for egrep" >&5
4040 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4041 if test "${ac_cv_path_EGREP+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045 then ac_cv_path_EGREP="$GREP -E"
4047 # Extract the first word of "egrep" to use in msg output
4048 if test -z "$EGREP"; then
4049 set dummy egrep; ac_prog_name=$2
4050 if test "${ac_cv_path_EGREP+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 ac_path_EGREP_found=false
4054 # Loop through the user's path and test for each of PROGNAME-LIST
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 as_dummy="$PATH:/usr/xpg4/bin"
4057 for as_dir in $as_dummy
4060 test -z "$as_dir" && as_dir=.
4061 for ac_prog in egrep; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4065 # Check for GNU ac_path_EGREP and select it if it is found.
4066 # Check for GNU $ac_path_EGREP
4067 case `"$ac_path_EGREP" --version 2>&1` in
4069 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4072 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4075 cat "conftest.in" "conftest.in" >"conftest.tmp"
4076 mv "conftest.tmp" "conftest.in"
4077 cp "conftest.in" "conftest.nl"
4078 echo 'EGREP' >> "conftest.nl"
4079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081 ac_count=`expr $ac_count + 1`
4082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083 # Best one so far, save it but keep looking for a better one
4084 ac_cv_path_EGREP="$ac_path_EGREP"
4085 ac_path_EGREP_max=$ac_count
4087 # 10*(2^10) chars as input seems more than enough
4088 test $ac_count -gt 10 && break
4094 $ac_path_EGREP_found && break 3
4103 EGREP="$ac_cv_path_EGREP"
4104 if test -z "$EGREP"; then
4105 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
4106 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
4107 { (exit 1); exit 1; }; }
4111 ac_cv_path_EGREP=$EGREP
4117 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4118 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4119 EGREP="$ac_cv_path_EGREP"
4123 # Check whether --with-gnu-ld was given.
4124 if test "${with_gnu_ld+set}" = set; then
4125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4131 if test "$GCC" = yes; then
4132 # Check if gcc -print-prog-name=ld gives a path.
4133 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4137 # gcc leaves a trailing carriage return which upsets mingw
4138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4143 # Accept absolute paths.
4145 re_direlt='/[^/][^/]*/\.\./'
4146 # Canonicalize the pathname of ld
4147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4151 test -z "$LD" && LD="$ac_prog"
4154 # If it fails, then pretend we aren't using GCC.
4158 # If it is relative, then search for the first ld in PATH.
4162 elif test "$with_gnu_ld" = yes; then
4163 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4166 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4169 if test "${lt_cv_path_LD+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 if test -z "$LD"; then
4173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174 for ac_dir in $PATH; do
4176 test -z "$ac_dir" && ac_dir=.
4177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4178 lt_cv_path_LD="$ac_dir/$ac_prog"
4179 # Check to see if the program is GNU ld. I'd rather use --version,
4180 # but apparently some variants of GNU ld only accept -v.
4181 # Break only if it was the GNU/non-GNU ld that we prefer.
4182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4183 *GNU* | *'with BFD'*)
4184 test "$with_gnu_ld" != no && break
4187 test "$with_gnu_ld" != yes && break
4194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4199 if test -n "$LD"; then
4200 { echo "$as_me:$LINENO: result: $LD" >&5
4201 echo "${ECHO_T}$LD" >&6; }
4203 { echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6; }
4206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4208 { (exit 1); exit 1; }; }
4209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4215 case `$LD -v 2>&1 </dev/null` in
4216 *GNU* | *'with BFD'*)
4217 lt_cv_prog_gnu_ld=yes
4220 lt_cv_prog_gnu_ld=no
4224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4226 with_gnu_ld=$lt_cv_prog_gnu_ld
4229 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4230 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4231 if test "${lt_cv_ld_reload_flag+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 lt_cv_ld_reload_flag='-r'
4236 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4237 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4238 reload_flag=$lt_cv_ld_reload_flag
4239 case $reload_flag in
4241 *) reload_flag=" $reload_flag" ;;
4243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4246 if test "$GCC" = yes; then
4247 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4254 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4256 if test "${lt_cv_path_NM+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 if test -n "$NM"; then
4260 # Let the user override the test.
4263 lt_nm_to_check="${ac_tool_prefix}nm"
4264 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4265 lt_nm_to_check="$lt_nm_to_check nm"
4267 for lt_tmp_nm in $lt_nm_to_check; do
4268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4269 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4271 test -z "$ac_dir" && ac_dir=.
4272 tmp_nm="$ac_dir/$lt_tmp_nm"
4273 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4274 # Check to see if the nm accepts a BSD-compat flag.
4275 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4276 # nm: unknown option "B" ignored
4277 # Tru64's nm complains that /dev/null is an invalid object file
4278 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4279 */dev/null* | *'Invalid file or object type'*)
4280 lt_cv_path_NM="$tmp_nm -B"
4284 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4286 lt_cv_path_NM="$tmp_nm -p"
4290 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4291 continue # so that we can try to find one that supports BSD flags
4300 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4303 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4304 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4307 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4308 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4310 if test "$LN_S" = "ln -s"; then
4311 { echo "$as_me:$LINENO: result: yes" >&5
4312 echo "${ECHO_T}yes" >&6; }
4314 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4315 echo "${ECHO_T}no, using $LN_S" >&6; }
4318 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4319 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4320 if test "${lt_cv_deplibs_check_method+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 lt_cv_file_magic_cmd='$MAGIC_CMD'
4324 lt_cv_file_magic_test_file=
4325 lt_cv_deplibs_check_method='unknown'
4326 # Need to set the preceding variable on all platforms that support
4327 # interlibrary dependencies.
4328 # 'none' -- dependencies not supported.
4329 # `unknown' -- same as none, but documents that we really don't know.
4330 # 'pass_all' -- all dependencies passed with no checks.
4331 # 'test_compile' -- check by making test program.
4332 # 'file_magic [[regex]]' -- check by looking for files in library path
4333 # which responds to the $file_magic_cmd with a given extended regex.
4334 # If you have `file' or equivalent on your system and you're not sure
4335 # whether `pass_all' will *always* work, you probably want this one.
4339 lt_cv_deplibs_check_method=pass_all
4343 lt_cv_deplibs_check_method=pass_all
4347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4348 lt_cv_file_magic_cmd='/usr/bin/file -L'
4349 lt_cv_file_magic_test_file=/shlib/libc.so
4353 # func_win32_libid is a shell function defined in ltmain.sh
4354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4355 lt_cv_file_magic_cmd='func_win32_libid'
4359 # Base MSYS/MinGW do not provide the 'file' command needed by
4360 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4361 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4362 lt_cv_file_magic_cmd='$OBJDUMP -f'
4365 darwin* | rhapsody*)
4366 lt_cv_deplibs_check_method=pass_all
4369 freebsd* | kfreebsd*-gnu | dragonfly*)
4370 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4373 # Not sure whether the presence of OpenBSD here was a mistake.
4374 # Let's accept both of them until this is cleared up.
4375 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4376 lt_cv_file_magic_cmd=/usr/bin/file
4377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4381 lt_cv_deplibs_check_method=pass_all
4386 lt_cv_deplibs_check_method=pass_all
4389 hpux10.20* | hpux11*)
4390 lt_cv_file_magic_cmd=/usr/bin/file
4393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4397 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]'
4398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4412 irix5* | irix6* | nonstopux*)
4414 *-32|*"-32 ") libmagic=32-bit;;
4415 *-n32|*"-n32 ") libmagic=N32;;
4416 *-64|*"-64 ") libmagic=64-bit;;
4417 *) libmagic=never-match;;
4419 lt_cv_deplibs_check_method=pass_all
4422 # This must be Linux ELF.
4424 lt_cv_deplibs_check_method=pass_all
4428 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4437 lt_cv_file_magic_cmd=/usr/bin/file
4438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4442 lt_cv_deplibs_check_method=unknown
4446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4453 osf3* | osf4* | osf5*)
4454 lt_cv_deplibs_check_method=pass_all
4458 lt_cv_deplibs_check_method=pass_all
4462 case $host_vendor in
4464 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]'
4465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4468 lt_cv_deplibs_check_method=pass_all
4471 lt_cv_file_magic_cmd='/bin/file'
4472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4475 lt_cv_file_magic_cmd='/bin/file'
4476 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4477 lt_cv_file_magic_test_file=/lib/libc.so
4480 lt_cv_deplibs_check_method=pass_all
4483 lt_cv_deplibs_check_method=pass_all
4488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4489 lt_cv_deplibs_check_method=pass_all
4494 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4495 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4496 file_magic_cmd=$lt_cv_file_magic_cmd
4497 deplibs_check_method=$lt_cv_deplibs_check_method
4498 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4503 # If no C compiler was specified, use CC.
4506 # If no C compiler flags were specified, use CFLAGS.
4507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4509 # Allow CC to be a program name with arguments.
4512 # Check whether --enable-libtool-lock was given.
4513 if test "${enable_libtool_lock+set}" = set; then
4514 enableval=$enable_libtool_lock;
4517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4519 # Some flags need to be propagated to the compiler or linker for good
4523 # Find out which ABI we are using.
4524 echo 'int i;' > conftest.$ac_ext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; then
4530 case `/usr/bin/file conftest.$ac_objext` in
4542 # Find out which ABI we are using.
4543 echo '#line 4543 "configure"' > conftest.$ac_ext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 if test "$lt_cv_prog_gnu_ld" = yes; then
4550 case `/usr/bin/file conftest.$ac_objext` in
4552 LD="${LD-ld} -melf32bsmip"
4555 LD="${LD-ld} -melf32bmipn32"
4558 LD="${LD-ld} -melf64bmip"
4562 case `/usr/bin/file conftest.$ac_objext` in
4578 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4579 # Find out which ABI we are using.
4580 echo 'int i;' > conftest.$ac_ext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; then
4586 case `/usr/bin/file conftest.o` in
4590 LD="${LD-ld} -m elf_i386"
4592 ppc64-*linux*|powerpc64-*linux*)
4593 LD="${LD-ld} -m elf32ppclinux"
4596 LD="${LD-ld} -m elf_s390"
4599 LD="${LD-ld} -m elf32_sparc"
4606 LD="${LD-ld} -m elf_x86_64"
4608 ppc*-*linux*|powerpc*-*linux*)
4609 LD="${LD-ld} -m elf64ppc"
4612 LD="${LD-ld} -m elf64_s390"
4615 LD="${LD-ld} -m elf64_sparc"
4625 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4626 SAVE_CFLAGS="$CFLAGS"
4627 CFLAGS="$CFLAGS -belf"
4628 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4629 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4630 if test "${lt_cv_cc_needs_belf+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4654 rm -f conftest.$ac_objext conftest$ac_exeext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656 (eval $ac_link) 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_c_werror_flag"
4664 || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 lt_cv_cc_needs_belf=yes
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 lt_cv_cc_needs_belf=no
4684 rm -f conftest.err conftest.$ac_objext \
4685 conftest$ac_exeext conftest.$ac_ext
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4694 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4695 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4696 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4697 CFLAGS="$SAVE_CFLAGS"
4701 # Find out which ABI we are using.
4702 echo 'int i;' > conftest.$ac_ext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; then
4708 case `/usr/bin/file conftest.o` in
4710 case $lt_cv_prog_gnu_ld in
4711 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4712 *) LD="${LD-ld} -64" ;;
4720 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4721 if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$DLLTOOL"; then
4730 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 DLLTOOL=$ac_cv_prog_DLLTOOL
4749 if test -n "$DLLTOOL"; then
4750 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4751 echo "${ECHO_T}$DLLTOOL" >&6; }
4753 { echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6; }
4759 if test -z "$ac_cv_prog_DLLTOOL"; then
4760 ac_ct_DLLTOOL=$DLLTOOL
4761 # Extract the first word of "dlltool", so it can be a program name with args.
4762 set dummy dlltool; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 if test -n "$ac_ct_DLLTOOL"; then
4769 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4788 if test -n "$ac_ct_DLLTOOL"; then
4789 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4790 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4792 { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4796 if test "x$ac_ct_DLLTOOL" = x; then
4799 if test "$build" != "$host"; then
4800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4801 whose name does not start with the host triplet. If you think this
4802 configuration is useful to you, please write to autoconf@gnu.org." >&5
4803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4804 whose name does not start with the host triplet. If you think this
4805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4807 DLLTOOL=$ac_ct_DLLTOOL
4810 DLLTOOL="$ac_cv_prog_DLLTOOL"
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}as; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_prog_AS+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 if test -n "$AS"; then
4822 ac_cv_prog_AS="$AS" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_AS="${ac_tool_prefix}as"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 if test -n "$AS"; then
4842 { echo "$as_me:$LINENO: result: $AS" >&5
4843 echo "${ECHO_T}$AS" >&6; }
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4851 if test -z "$ac_cv_prog_AS"; then
4853 # Extract the first word of "as", so it can be a program name with args.
4854 set dummy as; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$ac_ct_AS"; then
4861 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_ac_ct_AS="as"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4880 if test -n "$ac_ct_AS"; then
4881 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4882 echo "${ECHO_T}$ac_ct_AS" >&6; }
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4888 if test "x$ac_ct_AS" = x; then
4891 if test "$build" != "$host"; then
4892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4893 whose name does not start with the host triplet. If you think this
4894 configuration is useful to you, please write to autoconf@gnu.org." >&5
4895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4896 whose name does not start with the host triplet. If you think this
4897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4905 if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4907 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4910 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 if test -n "$OBJDUMP"; then
4914 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 OBJDUMP=$ac_cv_prog_OBJDUMP
4933 if test -n "$OBJDUMP"; then
4934 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4935 echo "${ECHO_T}$OBJDUMP" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4943 if test -z "$ac_cv_prog_OBJDUMP"; then
4944 ac_ct_OBJDUMP=$OBJDUMP
4945 # Extract the first word of "objdump", so it can be a program name with args.
4946 set dummy objdump; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 if test -n "$ac_ct_OBJDUMP"; then
4953 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4972 if test -n "$ac_ct_OBJDUMP"; then
4973 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4974 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4976 { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4980 if test "x$ac_ct_OBJDUMP" = x; then
4983 if test "$build" != "$host"; then
4984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4985 whose name does not start with the host triplet. If you think this
4986 configuration is useful to you, please write to autoconf@gnu.org." >&5
4987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4988 whose name does not start with the host triplet. If you think this
4989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4991 OBJDUMP=$ac_ct_OBJDUMP
4994 OBJDUMP="$ac_cv_prog_OBJDUMP"
5001 need_locks="$enable_libtool_lock"
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5010 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5011 # On Suns, sometimes $CPP names a directory.
5012 if test -n "$CPP" && test -d "$CPP"; then
5015 if test -z "$CPP"; then
5016 if test "${ac_cv_prog_CPP+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 # Double quotes because CPP needs to be expanded
5020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5023 for ac_c_preproc_warn_flag in '' yes
5025 # Use a header file that comes with gcc, so configuring glibc
5026 # with a fresh cross-compiler works.
5027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5028 # <limits.h> exists even on freestanding compilers.
5029 # On the NeXT, cc -E runs the code through the compiler's parser,
5030 # not just through cpp. "Syntax error" is here to catch this case.
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5038 # include <limits.h>
5040 # include <assert.h>
5044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5047 grep -v '^ *+' conftest.er1 >conftest.err
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } >/dev/null; then
5052 if test -s conftest.err; then
5053 ac_cpp_err=$ac_c_preproc_warn_flag
5054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5061 if test -z "$ac_cpp_err"; then
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 # Broken: fails on valid input.
5071 rm -f conftest.err conftest.$ac_ext
5073 # OK, works on sane cases. Now check whether non-existent headers
5074 # can be detected and how.
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #include <ac_nonexistent.h>
5083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5086 grep -v '^ *+' conftest.er1 >conftest.err
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } >/dev/null; then
5091 if test -s conftest.err; then
5092 ac_cpp_err=$ac_c_preproc_warn_flag
5093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5100 if test -z "$ac_cpp_err"; then
5101 # Broken: success on invalid input.
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 # Passes both tests.
5112 rm -f conftest.err conftest.$ac_ext
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.err conftest.$ac_ext
5117 if $ac_preproc_ok; then
5129 { echo "$as_me:$LINENO: result: $CPP" >&5
5130 echo "${ECHO_T}$CPP" >&6; }
5132 for ac_c_preproc_warn_flag in '' yes
5134 # Use a header file that comes with gcc, so configuring glibc
5135 # with a fresh cross-compiler works.
5136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5137 # <limits.h> exists even on freestanding compilers.
5138 # On the NeXT, cc -E runs the code through the compiler's parser,
5139 # not just through cpp. "Syntax error" is here to catch this case.
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5147 # include <limits.h>
5149 # include <assert.h>
5153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5156 grep -v '^ *+' conftest.er1 >conftest.err
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } >/dev/null; then
5161 if test -s conftest.err; then
5162 ac_cpp_err=$ac_c_preproc_warn_flag
5163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5170 if test -z "$ac_cpp_err"; then
5173 echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5176 # Broken: fails on valid input.
5180 rm -f conftest.err conftest.$ac_ext
5182 # OK, works on sane cases. Now check whether non-existent headers
5183 # can be detected and how.
5184 cat >conftest.$ac_ext <<_ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <ac_nonexistent.h>
5192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5195 grep -v '^ *+' conftest.er1 >conftest.err
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } >/dev/null; then
5200 if test -s conftest.err; then
5201 ac_cpp_err=$ac_c_preproc_warn_flag
5202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5209 if test -z "$ac_cpp_err"; then
5210 # Broken: success on invalid input.
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 # Passes both tests.
5221 rm -f conftest.err conftest.$ac_ext
5224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5225 rm -f conftest.err conftest.$ac_ext
5226 if $ac_preproc_ok; then
5229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5230 See \`config.log' for more details." >&5
5231 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5232 See \`config.log' for more details." >&2;}
5233 { (exit 1); exit 1; }; }
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5244 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5245 if test "${ac_cv_header_stdc+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5267 rm -f conftest.$ac_objext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269 (eval $ac_compile) 2>conftest.er1
5271 grep -v '^ *+' conftest.er1 >conftest.err
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -z "$ac_c_werror_flag"
5277 || test ! -s conftest.err'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_header_stdc=yes
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5294 ac_cv_header_stdc=no
5297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5299 if test $ac_cv_header_stdc = yes; then
5300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5301 cat >conftest.$ac_ext <<_ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311 $EGREP "memchr" >/dev/null 2>&1; then
5314 ac_cv_header_stdc=no
5320 if test $ac_cv_header_stdc = yes; then
5321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5322 cat >conftest.$ac_ext <<_ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 $EGREP "free" >/dev/null 2>&1; then
5335 ac_cv_header_stdc=no
5341 if test $ac_cv_header_stdc = yes; then
5342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5343 if test "$cross_compiling" = yes; then
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5354 #if ((' ' & 0x0FF) == 0x020)
5355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5358 # define ISLOWER(c) \
5359 (('a' <= (c) && (c) <= 'i') \
5360 || ('j' <= (c) && (c) <= 'r') \
5361 || ('s' <= (c) && (c) <= 'z'))
5362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5370 for (i = 0; i < 256; i++)
5371 if (XOR (islower (i), ISLOWER (i))
5372 || toupper (i) != TOUPPER (i))
5377 rm -f conftest$ac_exeext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5379 (eval $ac_link) 2>&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5390 echo "$as_me: program exited with status $ac_status" >&5
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cv_header_stdc=no
5397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5405 if test $ac_cv_header_stdc = yes; then
5407 cat >>confdefs.h <<\_ACEOF
5408 #define STDC_HEADERS 1
5413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5424 inttypes.h stdint.h unistd.h
5426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5440 #include <$ac_header>
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>conftest.er1
5446 grep -v '^ *+' conftest.er1 >conftest.err
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -z "$ac_c_werror_flag"
5452 || test ! -s conftest.err'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 eval "$as_ac_Header=yes"
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 eval "$as_ac_Header=no"
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5474 ac_res=`eval echo '${'$as_ac_Header'}'`
5475 { echo "$as_me:$LINENO: result: $ac_res" >&5
5476 echo "${ECHO_T}$ac_res" >&6; }
5477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5478 cat >>confdefs.h <<_ACEOF
5479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488 for ac_header in dlfcn.h
5490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 ac_res=`eval echo '${'$as_ac_Header'}'`
5498 { echo "$as_me:$LINENO: result: $ac_res" >&5
5499 echo "${ECHO_T}$ac_res" >&6; }
5501 # Is the header compilable?
5502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5511 #include <$ac_header>
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515 (eval $ac_compile) 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag"
5523 || test ! -s conftest.err'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; } &&
5529 { ac_try='test -s conftest.$ac_objext'
5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }; then
5535 ac_header_compiler=yes
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_header_compiler=no
5543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5545 echo "${ECHO_T}$ac_header_compiler" >&6; }
5547 # Is the header present?
5548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5550 cat >conftest.$ac_ext <<_ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <$ac_header>
5558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5561 grep -v '^ *+' conftest.er1 >conftest.err
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } >/dev/null; then
5566 if test -s conftest.err; then
5567 ac_cpp_err=$ac_c_preproc_warn_flag
5568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5575 if test -z "$ac_cpp_err"; then
5576 ac_header_preproc=yes
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5581 ac_header_preproc=no
5584 rm -f conftest.err conftest.$ac_ext
5585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5586 echo "${ECHO_T}$ac_header_preproc" >&6; }
5588 # So? What about this header?
5589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5595 ac_header_preproc=yes
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5612 ## ---------------------------------- ##
5613 ## Report this to bug-libtool@gnu.org ##
5614 ## ---------------------------------- ##
5617 sed "s/^/$as_me: WARNING: /" >&2
5620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 eval "$as_ac_Header=\$ac_header_preproc"
5627 ac_res=`eval echo '${'$as_ac_Header'}'`
5628 { echo "$as_me:$LINENO: result: $ac_res" >&5
5629 echo "${ECHO_T}$ac_res" >&6; }
5632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5633 cat >>confdefs.h <<_ACEOF
5634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642 ac_cpp='$CXXCPP $CPPFLAGS'
5643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5646 if test -z "$CXX"; then
5647 if test -n "$CCC"; then
5650 if test -n "$ac_tool_prefix"; then
5651 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_CXX+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 if test -n "$CXX"; then
5661 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 if test -n "$CXX"; then
5681 { echo "$as_me:$LINENO: result: $CXX" >&5
5682 echo "${ECHO_T}$CXX" >&6; }
5684 { echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6; }
5689 test -n "$CXX" && break
5692 if test -z "$CXX"; then
5694 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5696 # Extract the first word of "$ac_prog", so it can be a program name with args.
5697 set dummy $ac_prog; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 if test -n "$ac_ct_CXX"; then
5704 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_prog_ac_ct_CXX="$ac_prog"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5723 if test -n "$ac_ct_CXX"; then
5724 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5725 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5727 { echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6; }
5732 test -n "$ac_ct_CXX" && break
5735 if test "x$ac_ct_CXX" = x; then
5738 if test "$build" != "$host"; then
5739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5740 whose name does not start with the host triplet. If you think this
5741 configuration is useful to you, please write to autoconf@gnu.org." >&5
5742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet. If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5752 # Provide some information about the compiler.
5753 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5754 ac_compiler=`set X $ac_compile; echo $2`
5755 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
5756 (eval $ac_compiler --version >&5) 2>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }
5760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
5761 (eval $ac_compiler -v >&5) 2>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }
5765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
5766 (eval $ac_compiler -V >&5) 2>&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }
5771 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5772 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5773 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 cat >conftest.$ac_ext <<_ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796 (eval $ac_compile) 2>conftest.er1
5798 grep -v '^ *+' conftest.er1 >conftest.err
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_cxx_werror_flag"
5804 || test ! -s conftest.err'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest.$ac_objext'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; }; then
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5825 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5828 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5829 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5830 GXX=`test $ac_compiler_gnu = yes && echo yes`
5831 ac_test_CXXFLAGS=${CXXFLAGS+set}
5832 ac_save_CXXFLAGS=$CXXFLAGS
5833 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5834 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5835 if test "${ac_cv_prog_cxx_g+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5839 ac_cxx_werror_flag=yes
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>conftest.er1
5861 grep -v '^ *+' conftest.er1 >conftest.err
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try='test -z "$ac_cxx_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_prog_cxx_g=yes
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5885 cat >conftest.$ac_ext <<_ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_cxx_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5944 rm -f conftest.$ac_objext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5946 (eval $ac_compile) 2>conftest.er1
5948 grep -v '^ *+' conftest.er1 >conftest.err
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try='test -z "$ac_cxx_werror_flag"
5954 || test ! -s conftest.err'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest.$ac_objext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_prog_cxx_g=yes
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5983 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5984 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5985 if test "$ac_test_CXXFLAGS" = set; then
5986 CXXFLAGS=$ac_save_CXXFLAGS
5987 elif test $ac_cv_prog_cxx_g = yes; then
5988 if test "$GXX" = yes; then
5994 if test "$GXX" = yes; then
6000 for ac_declaration in \
6002 'extern "C" void std::exit (int) throw (); using std::exit;' \
6003 'extern "C" void std::exit (int); using std::exit;' \
6004 'extern "C" void exit (int) throw ();' \
6005 'extern "C" void exit (int);' \
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6024 rm -f conftest.$ac_objext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>conftest.er1
6028 grep -v '^ *+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_cxx_werror_flag"
6034 || test ! -s conftest.err'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest.$ac_objext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6070 rm -f conftest.$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>conftest.er1
6074 grep -v '^ *+' conftest.er1 >conftest.err
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -z "$ac_cxx_werror_flag"
6080 || test ! -s conftest.err'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try='test -s conftest.$ac_objext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6103 if test -n "$ac_declaration"; then
6104 echo '#ifdef __cplusplus' >>confdefs.h
6105 echo $ac_declaration >>confdefs.h
6106 echo '#endif' >>confdefs.h
6110 ac_cpp='$CXXCPP $CPPFLAGS'
6111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6115 depcc="$CXX" am_compiler_list=
6117 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6118 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6119 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6123 # We make a subdir and do the tests there. Otherwise we can end up
6124 # making bogus files that we don't know about and never remove. For
6125 # instance it was reported that on HP-UX the gcc test will end up
6126 # making a dummy file named `D' -- because `-MD' means `put the output
6129 # Copy depcomp to subdir because otherwise we won't find it if we're
6130 # using a relative directory.
6131 cp "$am_depcomp" conftest.dir
6133 # We will build objects and dependencies in a subdirectory because
6134 # it helps to detect inapplicable dependency modes. For instance
6135 # both Tru64's cc and ICC support -MD to output dependencies as a
6136 # side effect of compilation, but ICC will put the dependencies in
6137 # the current directory while Tru64 will put them in the object
6141 am_cv_CXX_dependencies_compiler_type=none
6142 if test "$am_compiler_list" = ""; then
6143 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6145 for depmode in $am_compiler_list; do
6146 # Setup a source with many dependencies, because some compilers
6147 # like to wrap large dependency lists on column 80 (with \), and
6148 # we should not choose a depcomp mode which is confused by this.
6150 # We need to recreate these files for each test, as the compiler may
6151 # overwrite some of them when testing with obscure command lines.
6152 # This happens at least with the AIX C compiler.
6154 for i in 1 2 3 4 5 6; do
6155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6157 # Solaris 8's {/usr,}/bin/sh.
6158 touch sub/conftst$i.h
6160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6164 # after this tag, mechanisms are not by side-effect, so they'll
6165 # only be used when explicitly requested
6166 if test "x$enable_dependency_tracking" = xyes; then
6174 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6175 # mode. It turns out that the SunPro C++ compiler does not properly
6176 # handle `-M -o', and we need to detect this.
6177 if depmode=$depmode \
6178 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6180 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6181 >/dev/null 2>conftest.err &&
6182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6183 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6185 # icc doesn't choke on unknown options, it will just issue warnings
6186 # or remarks (even with -Werror). So we grep stderr for any message
6187 # that says an option was ignored or not supported.
6188 # When given -MP, icc 7.0 and 7.1 complain thusly:
6189 # icc: Command line warning: ignoring option '-M'; no argument required
6190 # The diagnosis changed in icc 8.0:
6191 # icc: Command line remark: option '-MP' not supported
6192 if (grep 'ignoring option' conftest.err ||
6193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6194 am_cv_CXX_dependencies_compiler_type=$depmode
6203 am_cv_CXX_dependencies_compiler_type=none
6207 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6208 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6209 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6214 test "x$enable_dependency_tracking" != xno \
6215 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6216 am__fastdepCXX_TRUE=
6217 am__fastdepCXX_FALSE='#'
6219 am__fastdepCXX_TRUE='#'
6220 am__fastdepCXX_FALSE=
6226 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6227 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6228 (test "X$CXX" != "Xg++"))) ; then
6230 ac_cpp='$CXXCPP $CPPFLAGS'
6231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6234 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6235 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6236 if test -z "$CXXCPP"; then
6237 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 # Double quotes because CXXCPP needs to be expanded
6241 for CXXCPP in "$CXX -E" "/lib/cpp"
6244 for ac_cxx_preproc_warn_flag in '' yes
6246 # Use a header file that comes with gcc, so configuring glibc
6247 # with a fresh cross-compiler works.
6248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249 # <limits.h> exists even on freestanding compilers.
6250 # On the NeXT, cc -E runs the code through the compiler's parser,
6251 # not just through cpp. "Syntax error" is here to catch this case.
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6259 # include <limits.h>
6261 # include <assert.h>
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } >/dev/null; then
6273 if test -s conftest.err; then
6274 ac_cpp_err=$ac_cxx_preproc_warn_flag
6275 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6282 if test -z "$ac_cpp_err"; then
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 # Broken: fails on valid input.
6292 rm -f conftest.err conftest.$ac_ext
6294 # OK, works on sane cases. Now check whether non-existent headers
6295 # can be detected and how.
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 #include <ac_nonexistent.h>
6304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } >/dev/null; then
6312 if test -s conftest.err; then
6313 ac_cpp_err=$ac_cxx_preproc_warn_flag
6314 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6321 if test -z "$ac_cpp_err"; then
6322 # Broken: success on invalid input.
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 # Passes both tests.
6333 rm -f conftest.err conftest.$ac_ext
6336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6337 rm -f conftest.err conftest.$ac_ext
6338 if $ac_preproc_ok; then
6343 ac_cv_prog_CXXCPP=$CXXCPP
6346 CXXCPP=$ac_cv_prog_CXXCPP
6348 ac_cv_prog_CXXCPP=$CXXCPP
6350 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6351 echo "${ECHO_T}$CXXCPP" >&6; }
6353 for ac_cxx_preproc_warn_flag in '' yes
6355 # Use a header file that comes with gcc, so configuring glibc
6356 # with a fresh cross-compiler works.
6357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6358 # <limits.h> exists even on freestanding compilers.
6359 # On the NeXT, cc -E runs the code through the compiler's parser,
6360 # not just through cpp. "Syntax error" is here to catch this case.
6361 cat >conftest.$ac_ext <<_ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6368 # include <limits.h>
6370 # include <assert.h>
6374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6377 grep -v '^ *+' conftest.er1 >conftest.err
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } >/dev/null; then
6382 if test -s conftest.err; then
6383 ac_cpp_err=$ac_cxx_preproc_warn_flag
6384 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6391 if test -z "$ac_cpp_err"; then
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 # Broken: fails on valid input.
6401 rm -f conftest.err conftest.$ac_ext
6403 # OK, works on sane cases. Now check whether non-existent headers
6404 # can be detected and how.
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <ac_nonexistent.h>
6413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6416 grep -v '^ *+' conftest.er1 >conftest.err
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } >/dev/null; then
6421 if test -s conftest.err; then
6422 ac_cpp_err=$ac_cxx_preproc_warn_flag
6423 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6430 if test -z "$ac_cpp_err"; then
6431 # Broken: success on invalid input.
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 # Passes both tests.
6442 rm -f conftest.err conftest.$ac_ext
6445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6446 rm -f conftest.err conftest.$ac_ext
6447 if $ac_preproc_ok; then
6450 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6451 See \`config.log' for more details." >&5
6452 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6453 See \`config.log' for more details." >&2;}
6454 { (exit 1); exit 1; }; }
6458 ac_cpp='$CXXCPP $CPPFLAGS'
6459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6467 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6468 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6470 if test -n "$ac_tool_prefix"; then
6471 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477 if test "${ac_cv_prog_F77+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 if test -n "$F77"; then
6481 ac_cv_prog_F77="$F77" # Let the user override the test.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 if test -n "$F77"; then
6501 { echo "$as_me:$LINENO: result: $F77" >&5
6502 echo "${ECHO_T}$F77" >&6; }
6504 { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6509 test -n "$F77" && break
6512 if test -z "$F77"; then
6514 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6516 # Extract the first word of "$ac_prog", so it can be a program name with args.
6517 set dummy $ac_prog; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 if test -n "$ac_ct_F77"; then
6524 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_prog_ac_ct_F77="$ac_prog"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6543 if test -n "$ac_ct_F77"; then
6544 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6545 echo "${ECHO_T}$ac_ct_F77" >&6; }
6547 { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6552 test -n "$ac_ct_F77" && break
6555 if test "x$ac_ct_F77" = x; then
6558 if test "$build" != "$host"; then
6559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6560 whose name does not start with the host triplet. If you think this
6561 configuration is useful to you, please write to autoconf@gnu.org." >&5
6562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6563 whose name does not start with the host triplet. If you think this
6564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6571 # Provide some information about the compiler.
6572 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6573 ac_compiler=`set X $ac_compile; echo $2`
6574 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
6575 (eval $ac_compiler --version >&5) 2>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }
6579 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
6580 (eval $ac_compiler -v >&5) 2>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }
6584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
6585 (eval $ac_compiler -V >&5) 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }
6591 # If we don't use `.F' as extension, the preprocessor is not run on the
6592 # input file. (Note that this only needs to work for GNU compilers.)
6595 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6596 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6597 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 cat >conftest.$ac_ext <<_ACEOF
6608 rm -f conftest.$ac_objext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>conftest.er1
6612 grep -v '^ *+' conftest.er1 >conftest.err
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try='test -z "$ac_f77_werror_flag"
6618 || test ! -s conftest.err'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try='test -s conftest.$ac_objext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6642 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6643 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6645 ac_test_FFLAGS=${FFLAGS+set}
6646 ac_save_FFLAGS=$FFLAGS
6648 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6649 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6650 if test "${ac_cv_prog_f77_g+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 cat >conftest.$ac_ext <<_ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_f77_werror_flag"
6669 || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_cv_prog_f77_g=yes
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6693 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6694 if test "$ac_test_FFLAGS" = set; then
6695 FFLAGS=$ac_save_FFLAGS
6696 elif test $ac_cv_prog_f77_g = yes; then
6697 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6703 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6710 G77=`test $ac_compiler_gnu = yes && echo yes`
6712 ac_cpp='$CPP $CPPFLAGS'
6713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6719 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6721 # find the maximum length of command line arguments
6722 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6723 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6724 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 # On DJGPP, this test can blow up pretty badly due to problems in libc
6733 # (any single argument exceeding 2000 bytes causes a buffer overrun
6734 # during glob expansion). Even if it were fixed, the result of this
6735 # check would be larger than it should be.
6736 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6740 # Under GNU Hurd, this test is not required because there is
6741 # no limit to the length of command line arguments.
6742 # Libtool will interpret -1 as no limit whatsoever
6743 lt_cv_sys_max_cmd_len=-1;
6747 # On Win9x/ME, this test blows up -- it succeeds, but takes
6748 # about 5 minutes as the teststring grows exponentially.
6749 # Worse, since 9x/ME are not pre-emptively multitasking,
6750 # you end up with a "frozen" computer, even though with patience
6751 # the test eventually succeeds (with a max line length of 256k).
6752 # Instead, let's just punt: use the minimum linelength reported by
6753 # all of the supported platforms: 8192 (on NT/2K/XP).
6754 lt_cv_sys_max_cmd_len=8192;
6758 # On AmigaOS with pdksh, this test takes hours, literally.
6759 # So we just punt and use a minimum line length of 8192.
6760 lt_cv_sys_max_cmd_len=8192;
6763 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6764 # This has been around since 386BSD, at least. Likely further.
6765 if test -x /sbin/sysctl; then
6766 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6767 elif test -x /usr/sbin/sysctl; then
6768 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6770 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6772 # And add a safety zone
6773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6778 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6779 lt_cv_sys_max_cmd_len=196608
6783 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6784 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6785 # nice to cause kernel panics so lets avoid the loop below.
6786 # First set a reasonable default.
6787 lt_cv_sys_max_cmd_len=16384
6789 if test -x /sbin/sysconfig; then
6790 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6791 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6796 lt_cv_sys_max_cmd_len=102400
6798 sysv5* | sco5v6* | sysv4.2uw2*)
6799 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6800 if test -n "$kargmax"; then
6801 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6803 lt_cv_sys_max_cmd_len=32768
6807 # If test is not a shell built-in, we'll probably end up computing a
6808 # maximum length that is only half of the actual maximum length, but
6810 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6811 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6812 = "XX$teststring") >/dev/null 2>&1 &&
6813 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6814 lt_cv_sys_max_cmd_len=$new_result &&
6815 test $i != 17 # 1/2 MB should be enough
6818 teststring=$teststring$teststring
6821 # Add a significant safety factor because C++ compilers can tack on massive
6822 # amounts of additional arguments before passing them to the linker.
6823 # It appears as though 1/2 is a usable value.
6824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6830 if test -n $lt_cv_sys_max_cmd_len ; then
6831 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6832 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6834 { echo "$as_me:$LINENO: result: none" >&5
6835 echo "${ECHO_T}none" >&6; }
6841 # Check for command to grab the raw symbol name followed by C symbol from nm.
6842 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6843 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6844 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 # These are sane defaults that work on at least a few old systems.
6849 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6851 # Character class describing NM global symbol codes.
6852 symcode='[BCDEGRST]'
6854 # Regexp to match symbols that can be accessed directly from C.
6855 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6857 # Transform an extracted symbol line into a proper C declaration
6858 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6860 # Transform an extracted symbol line into symbol name and symbol address
6861 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'"
6863 # Define system-specific variables.
6868 cygwin* | mingw* | pw32*)
6869 symcode='[ABCDGISTW]'
6871 hpux*) # Its linker distinguishes data from code symbols
6872 if test "$host_cpu" = ia64; then
6873 symcode='[ABCDEGRST]'
6875 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6876 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'"
6879 if test "$host_cpu" = ia64; then
6880 symcode='[ABCDGIRSTW]'
6881 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6882 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'"
6886 symcode='[BCDEGRST]'
6889 symcode='[BCDEGQRST]'
6900 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6908 # Handle CRLF in mingw tool chain
6912 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6916 # If we're using GNU nm, then use its standard symbol codes.
6917 case `$NM -V 2>&1` in
6918 *GNU* | *'with BFD'*)
6919 symcode='[ABCDGIRSTW]' ;;
6922 # Try without a prefix undercore, then with it.
6923 for ac_symprfx in "" "_"; do
6925 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6926 symxfrm="\\1 $ac_symprfx\\2 \\2"
6928 # Write the raw and C identifiers.
6929 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6931 # Check to see that the pipe works correctly.
6935 cat > conftest.$ac_ext <<EOF
6940 void nm_test_func(){}
6944 int main(){nm_test_var='a';nm_test_func();return(0);}
6947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; then
6952 # Now try to grab the symbols.
6954 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6955 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } && test -s "$nlist"; then
6959 # Try sorting and uniquifying the output.
6960 if sort "$nlist" | uniq > "$nlist"T; then
6961 mv -f "$nlist"T "$nlist"
6966 # Make sure that we snagged all the symbols we need.
6967 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6968 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6969 cat <<EOF > conftest.$ac_ext
6975 # Now generate the symbol file.
6976 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6978 cat <<EOF >> conftest.$ac_ext
6979 #if defined (__STDC__) && __STDC__
6980 # define lt_ptr_t void *
6982 # define lt_ptr_t char *
6986 /* The mapping between symbol names and symbols. */
6991 lt_preloaded_symbols[] =
6994 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6995 cat <<\EOF >> conftest.$ac_ext
7003 # Now try linking the two files.
7004 mv conftest.$ac_objext conftstm.$ac_objext
7005 lt_save_LIBS="$LIBS"
7006 lt_save_CFLAGS="$CFLAGS"
7007 LIBS="conftstm.$ac_objext"
7008 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010 (eval $ac_link) 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7016 LIBS="$lt_save_LIBS"
7017 CFLAGS="$lt_save_CFLAGS"
7019 echo "cannot find nm_test_func in $nlist" >&5
7022 echo "cannot find nm_test_var in $nlist" >&5
7025 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7028 echo "$progname: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 rm -f conftest* conftst*
7033 # Do not use the global_symbol_pipe unless it works.
7034 if test "$pipe_works" = yes; then
7037 lt_cv_sys_global_symbol_pipe=
7043 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7044 lt_cv_sys_global_symbol_to_cdecl=
7046 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7047 { echo "$as_me:$LINENO: result: failed" >&5
7048 echo "${ECHO_T}failed" >&6; }
7050 { echo "$as_me:$LINENO: result: ok" >&5
7051 echo "${ECHO_T}ok" >&6; }
7054 { echo "$as_me:$LINENO: checking for objdir" >&5
7055 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7056 if test "${lt_cv_objdir+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 rm -f .libs 2>/dev/null
7060 mkdir .libs 2>/dev/null
7061 if test -d .libs; then
7064 # MS-DOS does not allow filenames that begin with a dot.
7067 rmdir .libs 2>/dev/null
7069 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7070 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7071 objdir=$lt_cv_objdir
7079 # AIX sometimes has problems with the GCC collect2 program. For some
7080 # reason, if we set the COLLECT_NAMES environment variable, the problems
7081 # vanish in a puff of smoke.
7082 if test "X${COLLECT_NAMES+set}" != Xset; then
7084 export COLLECT_NAMES
7089 # Sed substitution that helps us do robust quoting. It backslashifies
7090 # metacharacters that are still active within double-quoted strings.
7091 Xsed='sed -e 1s/^X//'
7092 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7094 # Same as above, but do not quote variable references.
7095 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7097 # Sed substitution to delay expansion of an escaped shell variable in a
7098 # double_quote_subst'ed string.
7099 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7101 # Sed substitution to avoid accidental globbing in evaled expressions
7102 no_glob_subst='s/\*/\\\*/g'
7108 default_ofile=libtool
7109 can_build_shared=yes
7111 # All known linkers require a `.a' archive for static linking (except MSVC,
7112 # which needs '.lib').
7114 ltmain="$ac_aux_dir/ltmain.sh"
7115 ofile="$default_ofile"
7116 with_gnu_ld="$lt_cv_prog_gnu_ld"
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}ar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_AR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$AR"; then
7127 ac_cv_prog_AR="$AR" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_AR="${ac_tool_prefix}ar"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 if test -n "$AR"; then
7147 { echo "$as_me:$LINENO: result: $AR" >&5
7148 echo "${ECHO_T}$AR" >&6; }
7150 { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7156 if test -z "$ac_cv_prog_AR"; then
7158 # Extract the first word of "ar", so it can be a program name with args.
7159 set dummy ar; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 if test -n "$ac_ct_AR"; then
7166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_ac_ct_AR="ar"
7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7185 if test -n "$ac_ct_AR"; then
7186 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7187 echo "${ECHO_T}$ac_ct_AR" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7193 if test "x$ac_ct_AR" = x; then
7196 if test "$build" != "$host"; then
7197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7198 whose name does not start with the host triplet. If you think this
7199 configuration is useful to you, please write to autoconf@gnu.org." >&5
7200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet. If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7210 if test -n "$ac_tool_prefix"; then
7211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7212 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_prog_RANLIB+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 if test -n "$RANLIB"; then
7219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 RANLIB=$ac_cv_prog_RANLIB
7238 if test -n "$RANLIB"; then
7239 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7240 echo "${ECHO_T}$RANLIB" >&6; }
7242 { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7248 if test -z "$ac_cv_prog_RANLIB"; then
7249 ac_ct_RANLIB=$RANLIB
7250 # Extract the first word of "ranlib", so it can be a program name with args.
7251 set dummy ranlib; ac_word=$2
7252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 if test -n "$ac_ct_RANLIB"; then
7258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_ac_ct_RANLIB="ranlib"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7277 if test -n "$ac_ct_RANLIB"; then
7278 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7279 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7281 { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7285 if test "x$ac_ct_RANLIB" = x; then
7288 if test "$build" != "$host"; then
7289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7290 whose name does not start with the host triplet. If you think this
7291 configuration is useful to you, please write to autoconf@gnu.org." >&5
7292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7293 whose name does not start with the host triplet. If you think this
7294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7296 RANLIB=$ac_ct_RANLIB
7299 RANLIB="$ac_cv_prog_RANLIB"
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}strip; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_prog_STRIP+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 if test -n "$STRIP"; then
7311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 STRIP=$ac_cv_prog_STRIP
7330 if test -n "$STRIP"; then
7331 { echo "$as_me:$LINENO: result: $STRIP" >&5
7332 echo "${ECHO_T}$STRIP" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7340 if test -z "$ac_cv_prog_STRIP"; then
7342 # Extract the first word of "strip", so it can be a program name with args.
7343 set dummy strip; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 if test -n "$ac_ct_STRIP"; then
7350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_prog_ac_ct_STRIP="strip"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7369 if test -n "$ac_ct_STRIP"; then
7370 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7371 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7373 { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7377 if test "x$ac_ct_STRIP" = x; then
7380 if test "$build" != "$host"; then
7381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7382 whose name does not start with the host triplet. If you think this
7383 configuration is useful to you, please write to autoconf@gnu.org." >&5
7384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7385 whose name does not start with the host triplet. If you think this
7386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7391 STRIP="$ac_cv_prog_STRIP"
7396 old_CFLAGS="$CFLAGS"
7398 # Set sane defaults for various variables
7399 test -z "$AR" && AR=ar
7400 test -z "$AR_FLAGS" && AR_FLAGS=cru
7401 test -z "$AS" && AS=as
7402 test -z "$CC" && CC=cc
7403 test -z "$LTCC" && LTCC=$CC
7404 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7405 test -z "$DLLTOOL" && DLLTOOL=dlltool
7406 test -z "$LD" && LD=ld
7407 test -z "$LN_S" && LN_S="ln -s"
7408 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7409 test -z "$NM" && NM=nm
7410 test -z "$SED" && SED=sed
7411 test -z "$OBJDUMP" && OBJDUMP=objdump
7412 test -z "$RANLIB" && RANLIB=:
7413 test -z "$STRIP" && STRIP=:
7414 test -z "$ac_objext" && ac_objext=o
7416 # Determine commands to create old-style static archives.
7417 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7418 old_postinstall_cmds='chmod 644 $oldlib'
7419 old_postuninstall_cmds=
7421 if test -n "$RANLIB"; then
7424 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7430 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7433 for cc_temp in $compiler""; do
7435 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7436 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7441 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7444 # Only perform the check for file, if the check method requires it
7445 case $deplibs_check_method in
7447 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7448 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7449 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7450 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7458 lt_save_MAGIC_CMD="$MAGIC_CMD"
7459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7460 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7461 for ac_dir in $ac_dummy; do
7463 test -z "$ac_dir" && ac_dir=.
7464 if test -f $ac_dir/${ac_tool_prefix}file; then
7465 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7466 if test -n "$file_magic_test_file"; then
7467 case $deplibs_check_method in
7469 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7471 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7472 $EGREP "$file_magic_regex" > /dev/null; then
7477 *** Warning: the command libtool uses to detect shared libraries,
7478 *** $file_magic_cmd, produces output that libtool cannot recognize.
7479 *** The result is that libtool may fail to recognize shared libraries
7480 *** as such. This will affect the creation of libtool libraries that
7481 *** depend on shared libraries, but programs linked with such libtool
7482 *** libraries will work regardless of this problem. Nevertheless, you
7483 *** may want to report the problem to your system manager and/or to
7484 *** bug-libtool@gnu.org
7494 MAGIC_CMD="$lt_save_MAGIC_CMD"
7499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7500 if test -n "$MAGIC_CMD"; then
7501 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7502 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7504 { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7508 if test -z "$lt_cv_path_MAGIC_CMD"; then
7509 if test -n "$ac_tool_prefix"; then
7510 { echo "$as_me:$LINENO: checking for file" >&5
7511 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7512 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7520 lt_save_MAGIC_CMD="$MAGIC_CMD"
7521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7523 for ac_dir in $ac_dummy; do
7525 test -z "$ac_dir" && ac_dir=.
7526 if test -f $ac_dir/file; then
7527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7528 if test -n "$file_magic_test_file"; then
7529 case $deplibs_check_method in
7531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7534 $EGREP "$file_magic_regex" > /dev/null; then
7539 *** Warning: the command libtool uses to detect shared libraries,
7540 *** $file_magic_cmd, produces output that libtool cannot recognize.
7541 *** The result is that libtool may fail to recognize shared libraries
7542 *** as such. This will affect the creation of libtool libraries that
7543 *** depend on shared libraries, but programs linked with such libtool
7544 *** libraries will work regardless of this problem. Nevertheless, you
7545 *** may want to report the problem to your system manager and/or to
7546 *** bug-libtool@gnu.org
7556 MAGIC_CMD="$lt_save_MAGIC_CMD"
7561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7562 if test -n "$MAGIC_CMD"; then
7563 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7564 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7566 { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7580 enable_win32_dll=yes
7582 # Check whether --enable-libtool-lock was given.
7583 if test "${enable_libtool_lock+set}" = set; then
7584 enableval=$enable_libtool_lock;
7587 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7590 # Check whether --with-pic was given.
7591 if test "${with_pic+set}" = set; then
7592 withval=$with_pic; pic_mode="$withval"
7597 test -z "$pic_mode" && pic_mode=default
7599 # Use C for the default configuration in the libtool script
7603 ac_cpp='$CPP $CPPFLAGS'
7604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7609 # Source file extension for C test sources.
7612 # Object file extension for compiled C test sources.
7616 # Code to be used in simple compile tests
7617 lt_simple_compile_test_code="int some_variable = 0;\n"
7619 # Code to be used in simple link tests
7620 lt_simple_link_test_code='int main(){return(0);}\n'
7623 # If no C compiler was specified, use CC.
7626 # If no C compiler flags were specified, use CFLAGS.
7627 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7629 # Allow CC to be a program name with arguments.
7633 # save warnings/boilerplate of simple test code
7634 ac_outfile=conftest.$ac_objext
7635 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7637 _lt_compiler_boilerplate=`cat conftest.err`
7640 ac_outfile=conftest.$ac_objext
7641 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7643 _lt_linker_boilerplate=`cat conftest.err`
7648 ## There is no encapsulation within the following macros, do not change
7649 ## the running order or otherwise move them around unless you know exactly
7650 ## what you are doing...
7652 lt_prog_compiler_no_builtin_flag=
7654 if test "$GCC" = yes; then
7655 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7658 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 lt_cv_prog_compiler_rtti_exceptions=no
7664 ac_outfile=conftest.$ac_objext
7665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7666 lt_compiler_flag="-fno-rtti -fno-exceptions"
7667 # Insert the option either (1) after the last *FLAGS variable, or
7668 # (2) before a word containing "conftest.", or (3) at the end.
7669 # Note that $ac_compile itself does not contain backslashes and begins
7670 # with a dollar sign (not a hyphen), so the echo should work correctly.
7671 # The option is referenced via a variable to avoid confusing sed.
7672 lt_compile=`echo "$ac_compile" | $SED \
7673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7675 -e 's:$: $lt_compiler_flag:'`
7676 (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
7677 (eval "$lt_compile" 2>conftest.err)
7679 cat conftest.err >&5
7680 echo "$as_me:7680: \$? = $ac_status" >&5
7681 if (exit $ac_status) && test -s "$ac_outfile"; then
7682 # The compiler can only warn and ignore the option if not recognized
7683 # So say no if there are warnings other than the usual output.
7684 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7687 lt_cv_prog_compiler_rtti_exceptions=yes
7693 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7694 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7696 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7697 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7704 lt_prog_compiler_wl=
7705 lt_prog_compiler_pic=
7706 lt_prog_compiler_static=
7708 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7709 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7711 if test "$GCC" = yes; then
7712 lt_prog_compiler_wl='-Wl,'
7713 lt_prog_compiler_static='-static'
7717 # All AIX code is PIC.
7718 if test "$host_cpu" = ia64; then
7719 # AIX 5 now supports IA64 processor
7720 lt_prog_compiler_static='-Bstatic'
7725 # FIXME: we need at least 68020 code to build shared libraries, but
7726 # adding the `-m68020' flag to GCC prevents building anything better,
7728 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7731 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7732 # PIC is the default for these OSes.
7735 mingw* | pw32* | os2*)
7736 # This hack is so that the source file can tell whether it is being
7737 # built for inclusion in a dll (and should export symbols for example).
7738 lt_prog_compiler_pic='-DDLL_EXPORT'
7741 darwin* | rhapsody*)
7742 # PIC is the default on this platform
7743 # Common symbols not allowed in MH_DYLIB files
7744 lt_prog_compiler_pic='-fno-common'
7748 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7749 # Instead, we relocate shared libraries at runtime.
7753 # Just because we use GCC doesn't mean we suddenly get shared libraries
7754 # on systems that don't support them.
7755 lt_prog_compiler_can_build_shared=no
7760 if test -d /usr/nec; then
7761 lt_prog_compiler_pic=-Kconform_pic
7766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7773 lt_prog_compiler_pic='-fPIC'
7779 lt_prog_compiler_pic='-fPIC'
7783 # PORTME Check for flag to pass linker flags through the system compiler.
7786 lt_prog_compiler_wl='-Wl,'
7787 if test "$host_cpu" = ia64; then
7788 # AIX 5 now supports IA64 processor
7789 lt_prog_compiler_static='-Bstatic'
7791 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7795 # PIC is the default on this platform
7796 # Common symbols not allowed in MH_DYLIB files
7797 case $cc_basename in
7799 lt_prog_compiler_pic='-qnocommon'
7800 lt_prog_compiler_wl='-Wl,'
7805 mingw* | pw32* | os2*)
7806 # This hack is so that the source file can tell whether it is being
7807 # built for inclusion in a dll (and should export symbols for example).
7808 lt_prog_compiler_pic='-DDLL_EXPORT'
7811 hpux9* | hpux10* | hpux11*)
7812 lt_prog_compiler_wl='-Wl,'
7813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7820 lt_prog_compiler_pic='+Z'
7823 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7824 lt_prog_compiler_static='${wl}-a ${wl}archive'
7827 irix5* | irix6* | nonstopux*)
7828 lt_prog_compiler_wl='-Wl,'
7829 # PIC (with -KPIC) is the default.
7830 lt_prog_compiler_static='-non_shared'
7834 lt_prog_compiler_pic='-KPIC'
7835 lt_prog_compiler_static='-Bstatic'
7839 case $cc_basename in
7841 lt_prog_compiler_wl='-Wl,'
7842 lt_prog_compiler_pic='-KPIC'
7843 lt_prog_compiler_static='-static'
7845 pgcc* | pgf77* | pgf90* | pgf95*)
7846 # Portland Group compilers (*not* the Pentium gcc compiler,
7847 # which looks to be a dead project)
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_pic='-fpic'
7850 lt_prog_compiler_static='-Bstatic'
7853 lt_prog_compiler_wl='-Wl,'
7854 # All Alpha code is PIC.
7855 lt_prog_compiler_static='-non_shared'
7860 osf3* | osf4* | osf5*)
7861 lt_prog_compiler_wl='-Wl,'
7862 # All OSF/1 code is PIC.
7863 lt_prog_compiler_static='-non_shared'
7867 lt_prog_compiler_pic='-KPIC'
7868 lt_prog_compiler_static='-Bstatic'
7869 case $cc_basename in
7871 lt_prog_compiler_wl='-Qoption ld ';;
7873 lt_prog_compiler_wl='-Wl,';;
7878 lt_prog_compiler_wl='-Qoption ld '
7879 lt_prog_compiler_pic='-PIC'
7880 lt_prog_compiler_static='-Bstatic'
7883 sysv4 | sysv4.2uw2* | sysv4.3*)
7884 lt_prog_compiler_wl='-Wl,'
7885 lt_prog_compiler_pic='-KPIC'
7886 lt_prog_compiler_static='-Bstatic'
7890 if test -d /usr/nec ;then
7891 lt_prog_compiler_pic='-Kconform_pic'
7892 lt_prog_compiler_static='-Bstatic'
7896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7897 lt_prog_compiler_wl='-Wl,'
7898 lt_prog_compiler_pic='-KPIC'
7899 lt_prog_compiler_static='-Bstatic'
7903 lt_prog_compiler_wl='-Wl,'
7904 lt_prog_compiler_can_build_shared=no
7908 lt_prog_compiler_pic='-pic'
7909 lt_prog_compiler_static='-Bstatic'
7913 lt_prog_compiler_can_build_shared=no
7918 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7919 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7922 # Check to make sure the PIC flag actually works.
7924 if test -n "$lt_prog_compiler_pic"; then
7926 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7927 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7928 if test "${lt_prog_compiler_pic_works+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 lt_prog_compiler_pic_works=no
7932 ac_outfile=conftest.$ac_objext
7933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7934 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7935 # Insert the option either (1) after the last *FLAGS variable, or
7936 # (2) before a word containing "conftest.", or (3) at the end.
7937 # Note that $ac_compile itself does not contain backslashes and begins
7938 # with a dollar sign (not a hyphen), so the echo should work correctly.
7939 # The option is referenced via a variable to avoid confusing sed.
7940 lt_compile=`echo "$ac_compile" | $SED \
7941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943 -e 's:$: $lt_compiler_flag:'`
7944 (eval echo "\"\$as_me:7944: $lt_compile\"" >&5)
7945 (eval "$lt_compile" 2>conftest.err)
7947 cat conftest.err >&5
7948 echo "$as_me:7948: \$? = $ac_status" >&5
7949 if (exit $ac_status) && test -s "$ac_outfile"; then
7950 # The compiler can only warn and ignore the option if not recognized
7951 # So say no if there are warnings other than the usual output.
7952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7955 lt_prog_compiler_pic_works=yes
7961 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7962 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7964 if test x"$lt_prog_compiler_pic_works" = xyes; then
7965 case $lt_prog_compiler_pic in
7967 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7970 lt_prog_compiler_pic=
7971 lt_prog_compiler_can_build_shared=no
7976 # For platforms which do not support PIC, -DPIC is meaningless:
7978 lt_prog_compiler_pic=
7981 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7986 # Check to make sure the static flag actually works.
7988 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7989 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7990 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7991 if test "${lt_prog_compiler_static_works+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 lt_prog_compiler_static_works=no
7995 save_LDFLAGS="$LDFLAGS"
7996 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7997 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7999 # The linker can only warn and ignore the option if not recognized
8000 # So say no if there are warnings
8001 if test -s conftest.err; then
8002 # Append any errors to the config.log.
8003 cat conftest.err 1>&5
8004 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8006 if diff conftest.exp conftest.er2 >/dev/null; then
8007 lt_prog_compiler_static_works=yes
8010 lt_prog_compiler_static_works=yes
8014 LDFLAGS="$save_LDFLAGS"
8017 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8018 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8020 if test x"$lt_prog_compiler_static_works" = xyes; then
8023 lt_prog_compiler_static=
8027 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8028 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8029 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 lt_cv_prog_compiler_c_o=no
8033 $rm -r conftest 2>/dev/null
8037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8039 lt_compiler_flag="-o out/conftest2.$ac_objext"
8040 # Insert the option either (1) after the last *FLAGS variable, or
8041 # (2) before a word containing "conftest.", or (3) at the end.
8042 # Note that $ac_compile itself does not contain backslashes and begins
8043 # with a dollar sign (not a hyphen), so the echo should work correctly.
8044 lt_compile=`echo "$ac_compile" | $SED \
8045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8047 -e 's:$: $lt_compiler_flag:'`
8048 (eval echo "\"\$as_me:8048: $lt_compile\"" >&5)
8049 (eval "$lt_compile" 2>out/conftest.err)
8051 cat out/conftest.err >&5
8052 echo "$as_me:8052: \$? = $ac_status" >&5
8053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8055 # The compiler can only warn and ignore the option if not recognized
8056 # So say no if there are warnings
8057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8060 lt_cv_prog_compiler_c_o=yes
8065 # SGI C++ compiler will create directory out/ii_files/ for
8066 # template instantiation
8067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8068 $rm out/* && rmdir out
8074 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8078 hard_links="nottested"
8079 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8080 # do not overwrite the value of need_locks provided by the user
8081 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8087 ln conftest.a conftest.b 2>&5 || hard_links=no
8088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8089 { echo "$as_me:$LINENO: result: $hard_links" >&5
8090 echo "${ECHO_T}$hard_links" >&6; }
8091 if test "$hard_links" = no; then
8092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8100 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8104 allow_undefined_flag=
8105 enable_shared_with_static_runtimes=no
8107 archive_expsym_cmds=
8108 old_archive_From_new_cmds=
8109 old_archive_from_expsyms_cmds=
8110 export_dynamic_flag_spec=
8111 whole_archive_flag_spec=
8112 thread_safe_flag_spec=
8113 hardcode_libdir_flag_spec=
8114 hardcode_libdir_flag_spec_ld=
8115 hardcode_libdir_separator=
8118 hardcode_shlibpath_var=unsupported
8119 link_all_deplibs=unknown
8120 hardcode_automatic=no
8123 always_export_symbols=no
8124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8125 # include_expsyms should be a list of space-separated symbols to be *always*
8126 # included in the symbol list
8128 # exclude_expsyms can be an extended regexp of symbols to exclude
8129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8131 # as well as any symbol that contains `d'.
8132 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8134 # platforms (ab)use it in PIC code, but their linkers get confused if
8135 # the symbol is explicitly referenced. Since portable code cannot
8136 # rely on this symbol name, it's probably fine to never include it in
8137 # preloaded symbol tables.
8138 extract_expsyms_cmds=
8139 # Just being paranoid about ensuring that cc_basename is set.
8140 for cc_temp in $compiler""; do
8142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8148 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8151 cygwin* | mingw* | pw32*)
8152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8153 # When not using gcc, we currently assume that we are using
8154 # Microsoft Visual C++.
8155 if test "$GCC" != yes; then
8160 # we just hope/assume this is gcc and not c89 (= MSVC++)
8169 if test "$with_gnu_ld" = yes; then
8170 # If archive_cmds runs LD, not CC, wlarc should be empty
8173 # Set some defaults for GNU ld with shared library support. These
8174 # are reset later if shared libraries are not supported. Putting them
8175 # here allows them to be overridden if necessary.
8176 runpath_var=LD_RUN_PATH
8177 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8178 export_dynamic_flag_spec='${wl}--export-dynamic'
8179 # ancient GNU ld didn't support --whole-archive et. al.
8180 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8181 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8183 whole_archive_flag_spec=
8185 supports_anon_versioning=no
8186 case `$LD -v 2>/dev/null` in
8187 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8190 *\ 2.11.*) ;; # other 2.11 versions
8191 *) supports_anon_versioning=yes ;;
8194 # See if GNU ld supports shared libraries.
8196 aix3* | aix4* | aix5*)
8197 # On AIX/PPC, the GNU linker is very broken
8198 if test "$host_cpu" != ia64; then
8202 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8203 *** to be unable to reliably create shared libraries on AIX.
8204 *** Therefore, libtool is disabling shared libraries support. If you
8205 *** really care for shared libraries, you may want to modify your PATH
8206 *** so that a non-GNU linker is found, and then restart.
8213 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)'
8214 hardcode_libdir_flag_spec='-L$libdir'
8215 hardcode_minus_L=yes
8217 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8218 # that the semantics of dynamic libraries on AmigaOS, at least up
8219 # to version 4, is to share data among multiple programs linked
8220 # with the same dynamic library. Since this doesn't match the
8221 # behavior of shared libraries on other platforms, we can't use
8227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8228 allow_undefined_flag=unsupported
8229 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8230 # support --undefined. This deserves some investigation. FIXME
8231 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237 cygwin* | mingw* | pw32*)
8238 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8239 # as there is no search path for DLLs.
8240 hardcode_libdir_flag_spec='-L$libdir'
8241 allow_undefined_flag=unsupported
8242 always_export_symbols=no
8243 enable_shared_with_static_runtimes=yes
8244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8246 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8248 # If the export-symbols file already is a .def file (1st line
8249 # is EXPORTS), use it as is; otherwise, prepend...
8250 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8251 cp $export_symbols $output_objdir/$soname.def;
8253 echo EXPORTS > $output_objdir/$soname.def;
8254 cat $export_symbols >> $output_objdir/$soname.def;
8256 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8264 hardcode_shlibpath_var=no
8265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8266 export_dynamic_flag_spec='${wl}-E'
8267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8268 # Instead, shared libraries are loaded at an image base (0x10000000 by
8269 # default) and relocated if they conflict, which is a slow very memory
8270 # consuming and fragmenting process. To avoid this, we pick a random,
8271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8272 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8274 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'
8278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8280 case $cc_basename,$host_cpu in
8281 pgcc*) # Portland Group C compiler
8282 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'
8283 tmp_addflag=' $pic_flag'
8285 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8286 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'
8287 tmp_addflag=' $pic_flag -Mnomain' ;;
8288 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8289 tmp_addflag=' -i_dynamic' ;;
8290 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8291 tmp_addflag=' -i_dynamic -nofor_main' ;;
8292 ifc* | ifort*) # Intel Fortran compiler
8293 tmp_addflag=' -nofor_main' ;;
8295 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8297 if test $supports_anon_versioning = yes; then
8298 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8300 $echo "local: *; };" >> $output_objdir/$libname.ver~
8301 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8310 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8323 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8324 *** create shared libraries on Solaris systems. Therefore, libtool
8325 *** is disabling shared libraries support. We urge you to upgrade GNU
8326 *** binutils to release 2.9.1 or newer. Another option is to modify
8327 *** your PATH or compiler configuration so that the native linker is
8328 *** used, and then restart.
8331 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8340 case `$LD -v 2>&1` in
8341 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8345 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8346 *** reliably create shared libraries on SCO systems. Therefore, libtool
8347 *** is disabling shared libraries support. We urge you to upgrade GNU
8348 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8349 *** your PATH or compiler configuration so that the native linker is
8350 *** used, and then restart.
8355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8356 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8367 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8370 hardcode_shlibpath_var=no
8374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8383 if test "$ld_shlibs" = no; then
8385 hardcode_libdir_flag_spec=
8386 export_dynamic_flag_spec=
8387 whole_archive_flag_spec=
8390 # PORTME fill in a description of your system's linker (not GNU ld)
8393 allow_undefined_flag=unsupported
8394 always_export_symbols=yes
8395 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'
8396 # Note: this linker hardcodes the directories in LIBPATH if there
8397 # are no directories specified by -L.
8398 hardcode_minus_L=yes
8399 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8400 # Neither direct hardcoding nor static linking is supported with a
8402 hardcode_direct=unsupported
8407 if test "$host_cpu" = ia64; then
8408 # On IA64, the linker does run time linking by default, so we don't
8409 # have to do anything special.
8410 aix_use_runtimelinking=no
8411 exp_sym_flag='-Bexport'
8414 # If we're using GNU nm, then we don't want the "-C" option.
8415 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8416 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8417 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'
8419 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'
8421 aix_use_runtimelinking=no
8423 # Test if we are trying to use run time linking or normal
8424 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8425 # need to do runtime linking.
8426 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8427 for ld_flag in $LDFLAGS; do
8428 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8429 aix_use_runtimelinking=yes
8436 exp_sym_flag='-bexport'
8437 no_entry_flag='-bnoentry'
8440 # When large executables or shared objects are built, AIX ld can
8441 # have problems creating the table of contents. If linking a library
8442 # or program results in "error TOC overflow" add -mminimal-toc to
8443 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8448 hardcode_libdir_separator=':'
8449 link_all_deplibs=yes
8451 if test "$GCC" = yes; then
8452 case $host_os in aix4.[012]|aix4.[012].*)
8453 # We only want to do this on AIX 4.2 and lower, the check
8454 # below for broken collect2 doesn't work under 4.3+
8455 collect2name=`${CC} -print-prog-name=collect2`
8456 if test -f "$collect2name" && \
8457 strings "$collect2name" | grep resolve_lib_name >/dev/null
8459 # We have reworked collect2
8462 # We have old collect2
8463 hardcode_direct=unsupported
8464 # It fails to find uninstalled libraries when the uninstalled
8465 # path is not listed in the libpath. Setting hardcode_minus_L
8466 # to unsupported forces relinking
8467 hardcode_minus_L=yes
8468 hardcode_libdir_flag_spec='-L$libdir'
8469 hardcode_libdir_separator=
8473 shared_flag='-shared'
8474 if test "$aix_use_runtimelinking" = yes; then
8475 shared_flag="$shared_flag "'${wl}-G'
8479 if test "$host_cpu" = ia64; then
8480 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8481 # chokes on -Wl,-G. The following line is correct:
8484 if test "$aix_use_runtimelinking" = yes; then
8485 shared_flag='${wl}-G'
8487 shared_flag='${wl}-bM:SRE'
8492 # It seems that -bexpall does not export symbols beginning with
8493 # underscore (_), so it is better to generate a list of symbols to export.
8494 always_export_symbols=yes
8495 if test "$aix_use_runtimelinking" = yes; then
8496 # Warning - without using the other runtime loading flags (-brtl),
8497 # -berok will link without error, but may produce a broken library.
8498 allow_undefined_flag='-berok'
8499 # Determine the default libpath from the value encoded in an empty executable.
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag"
8525 || test ! -s conftest.err'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try='test -s conftest$ac_exeext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8540 # Check for a 64-bit object if we didn't find anything.
8541 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; }
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8550 rm -f conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8554 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8555 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"
8557 if test "$host_cpu" = ia64; then
8558 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8559 allow_undefined_flag="-z nodefs"
8560 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"
8562 # Determine the default libpath from the value encoded in an empty executable.
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag"
8588 || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest$ac_exeext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8603 # Check for a 64-bit object if we didn't find anything.
8604 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; }
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8613 rm -f conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8618 # Warning - without using the other run time loading flags,
8619 # -berok will link without error, but may produce a broken library.
8620 no_undefined_flag=' ${wl}-bernotok'
8621 allow_undefined_flag=' ${wl}-berok'
8622 # Exported symbols can be pulled into shared objects from archives
8623 whole_archive_flag_spec='$convenience'
8624 archive_cmds_need_lc=yes
8625 # This is similar to how AIX traditionally builds its shared libraries.
8626 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'
8632 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)'
8633 hardcode_libdir_flag_spec='-L$libdir'
8634 hardcode_minus_L=yes
8635 # see comment about different semantics on the GNU ld section
8640 export_dynamic_flag_spec=-rdynamic
8643 cygwin* | mingw* | pw32*)
8644 # When not using gcc, we currently assume that we are using
8645 # Microsoft Visual C++.
8646 # hardcode_libdir_flag_spec is actually meaningless, as there is
8647 # no search path for DLLs.
8648 hardcode_libdir_flag_spec=' '
8649 allow_undefined_flag=unsupported
8650 # Tell ltmain to make .lib files, not .a files.
8652 # Tell ltmain to make .dll files, not .so files.
8654 # FIXME: Setting linknames here is a bad hack.
8655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8656 # The linker will automatically build a .lib file if we build a DLL.
8657 old_archive_From_new_cmds='true'
8658 # FIXME: Should let the user specify the lib program.
8659 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8660 fix_srcfile_path='`cygpath -w "$srcfile"`'
8661 enable_shared_with_static_runtimes=yes
8664 darwin* | rhapsody*)
8666 rhapsody* | darwin1.[012])
8667 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8670 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8671 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8673 case ${MACOSX_DEPLOYMENT_TARGET} in
8675 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8678 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8684 archive_cmds_need_lc=no
8686 hardcode_automatic=yes
8687 hardcode_shlibpath_var=unsupported
8688 whole_archive_flag_spec=''
8689 link_all_deplibs=yes
8690 if test "$GCC" = yes ; then
8691 output_verbose_link_cmd='echo'
8692 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8693 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8694 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8695 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}'
8696 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}'
8698 case $cc_basename in
8700 output_verbose_link_cmd='echo'
8701 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8702 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8704 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}'
8705 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}'
8715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_shlibpath_var=no
8724 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8725 # support. Future versions do this automatically, but an explicit c++rt0.o
8726 # does not break anything, and helps significantly (at the cost of a little
8729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8730 hardcode_libdir_flag_spec='-R$libdir'
8732 hardcode_shlibpath_var=no
8735 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8739 hardcode_minus_L=yes
8740 hardcode_shlibpath_var=no
8743 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8744 freebsd* | kfreebsd*-gnu | dragonfly*)
8745 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8746 hardcode_libdir_flag_spec='-R$libdir'
8748 hardcode_shlibpath_var=no
8752 if test "$GCC" = yes; then
8753 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'
8755 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'
8757 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8758 hardcode_libdir_separator=:
8761 # hardcode_minus_L: Not really in the search PATH,
8762 # but as the default location of the library.
8763 hardcode_minus_L=yes
8764 export_dynamic_flag_spec='${wl}-E'
8768 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8771 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8773 if test "$with_gnu_ld" = no; then
8774 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8775 hardcode_libdir_separator=:
8778 export_dynamic_flag_spec='${wl}-E'
8780 # hardcode_minus_L: Not really in the search PATH,
8781 # but as the default location of the library.
8782 hardcode_minus_L=yes
8787 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8790 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8812 if test "$with_gnu_ld" = no; then
8813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8814 hardcode_libdir_separator=:
8818 hardcode_libdir_flag_spec_ld='+b $libdir'
8820 hardcode_shlibpath_var=no
8824 export_dynamic_flag_spec='${wl}-E'
8826 # hardcode_minus_L: Not really in the search PATH,
8827 # but as the default location of the library.
8828 hardcode_minus_L=yes
8834 irix5* | irix6* | nonstopux*)
8835 if test "$GCC" = yes; then
8836 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'
8838 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'
8839 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8842 hardcode_libdir_separator=:
8843 link_all_deplibs=yes
8847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8850 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8852 hardcode_libdir_flag_spec='-R$libdir'
8854 hardcode_shlibpath_var=no
8858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8861 hardcode_libdir_separator=:
8862 hardcode_shlibpath_var=no
8867 hardcode_shlibpath_var=no
8868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8870 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8872 export_dynamic_flag_spec='${wl}-E'
8875 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8877 hardcode_libdir_flag_spec='-R$libdir'
8880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8888 hardcode_libdir_flag_spec='-L$libdir'
8889 hardcode_minus_L=yes
8890 allow_undefined_flag=unsupported
8891 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'
8892 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8896 if test "$GCC" = yes; then
8897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8898 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'
8900 allow_undefined_flag=' -expect_unresolved \*'
8901 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'
8903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904 hardcode_libdir_separator=:
8907 osf4* | osf5*) # as osf3* with the addition of -msym flag
8908 if test "$GCC" = yes; then
8909 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8910 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'
8911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8913 allow_undefined_flag=' -expect_unresolved \*'
8914 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'
8915 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8916 $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'
8918 # Both c and cxx compiler support -rpath directly
8919 hardcode_libdir_flag_spec='-rpath $libdir'
8921 hardcode_libdir_separator=:
8925 no_undefined_flag=' -z text'
8926 if test "$GCC" = yes; then
8928 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8929 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8930 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8933 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8935 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8937 hardcode_libdir_flag_spec='-R$libdir'
8938 hardcode_shlibpath_var=no
8940 solaris2.[0-5] | solaris2.[0-5].*) ;;
8942 # The compiler driver will combine linker options so we
8943 # cannot just pass the convience library names through
8944 # without $wl, iff we do not link with $LD.
8945 # Luckily, gcc supports the same syntax we need for Sun Studio.
8946 # Supported since Solaris 2.6 (maybe 2.5.1?)
8949 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8951 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' ;;
8954 link_all_deplibs=yes
8958 if test "x$host_vendor" = xsequent; then
8959 # Use $CC to link under sequent, because it throws in some extra .o
8960 # files that make .init and .fini sections work.
8961 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8963 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8965 hardcode_libdir_flag_spec='-L$libdir'
8967 hardcode_minus_L=yes
8968 hardcode_shlibpath_var=no
8972 case $host_vendor in
8974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975 hardcode_direct=yes # is this really true???
8978 ## LD is ld it makes a PLAMLIB
8979 ## CC just makes a GrossModule.
8980 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8981 reload_cmds='$CC -r -o $output$reload_objs'
8985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8989 runpath_var='LD_RUN_PATH'
8990 hardcode_shlibpath_var=no
8994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995 hardcode_shlibpath_var=no
8996 export_dynamic_flag_spec='-Bexport'
9000 if test -d /usr/nec; then
9001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002 hardcode_shlibpath_var=no
9003 runpath_var=LD_RUN_PATH
9004 hardcode_runpath_var=yes
9009 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9010 no_undefined_flag='${wl}-z,text'
9011 archive_cmds_need_lc=no
9012 hardcode_shlibpath_var=no
9013 runpath_var='LD_RUN_PATH'
9015 if test "$GCC" = yes; then
9016 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9019 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9020 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9024 sysv5* | sco3.2v5* | sco5v6*)
9025 # Note: We can NOT use -z defs as we might desire, because we do not
9026 # link with -lc, and that would cause any symbols used from libc to
9027 # always be unresolved, which means just about no library would
9028 # ever link correctly. If we're not using GNU ld we use -z text
9029 # though, which does catch some bad symbols but isn't as heavy-handed
9031 no_undefined_flag='${wl}-z,text'
9032 allow_undefined_flag='${wl}-z,nodefs'
9033 archive_cmds_need_lc=no
9034 hardcode_shlibpath_var=no
9035 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9036 hardcode_libdir_separator=':'
9037 link_all_deplibs=yes
9038 export_dynamic_flag_spec='${wl}-Bexport'
9039 runpath_var='LD_RUN_PATH'
9041 if test "$GCC" = yes; then
9042 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9043 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9046 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_libdir_flag_spec='-L$libdir'
9053 hardcode_shlibpath_var=no
9062 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9063 echo "${ECHO_T}$ld_shlibs" >&6; }
9064 test "$ld_shlibs" = no && can_build_shared=no
9067 # Do we need to explicitly link libc?
9069 case "x$archive_cmds_need_lc" in
9071 # Assume -lc should be added
9072 archive_cmds_need_lc=yes
9074 if test "$enable_shared" = yes && test "$GCC" = yes; then
9075 case $archive_cmds in
9077 # FIXME: we may have to deal with multi-command sequences.
9080 # Test whether the compiler implicitly links with -lc since on some
9081 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9082 # to ld, don't add -lc before -lgcc.
9083 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9084 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9086 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9089 (eval $ac_compile) 2>&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } 2>conftest.err; then
9095 libobjs=conftest.$ac_objext
9097 wl=$lt_prog_compiler_wl
9098 pic_flag=$lt_prog_compiler_pic
9104 lt_save_allow_undefined_flag=$allow_undefined_flag
9105 allow_undefined_flag=
9106 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9107 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }
9112 archive_cmds_need_lc=no
9114 archive_cmds_need_lc=yes
9116 allow_undefined_flag=$lt_save_allow_undefined_flag
9118 cat conftest.err 1>&5
9121 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9122 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9129 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9130 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9132 libname_spec='lib$name'
9140 shlibpath_overrides_runpath=unknown
9142 dynamic_linker="$host_os ld.so"
9143 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9144 if test "$GCC" = yes; then
9145 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9146 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9147 # if the path contains ";" then we assume it to be the separator
9148 # otherwise default to the standard path separator (i.e. ":") - it is
9149 # assumed that no part of a normal pathname contains ";" but that should
9150 # okay in the real world where ";" in dirpaths is itself problematic.
9151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9156 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9158 need_lib_prefix=unknown
9159 hardcode_into_libs=no
9161 # when you set need_version to no, make sure it does not cause -set_version
9162 # flags to be left without arguments
9163 need_version=unknown
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9169 shlibpath_var=LIBPATH
9171 # AIX 3 has no versioning support, so we append a major version to the name.
9172 soname_spec='${libname}${release}${shared_ext}$major'
9179 hardcode_into_libs=yes
9180 if test "$host_cpu" = ia64; then
9181 # AIX 5 supports IA64
9182 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9183 shlibpath_var=LD_LIBRARY_PATH
9185 # With GCC up to 2.95.x, collect2 would create an import file
9186 # for dependence libraries. The import file would start with
9187 # the line `#! .'. This would cause the generated library to
9188 # depend on `.', always an invalid library. This was fixed in
9189 # development snapshots of GCC prior to 3.0.
9191 aix4 | aix4.[01] | aix4.[01].*)
9192 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9194 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9201 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9202 # soname into executable. Probably we can add versioning support to
9203 # collect2, so additional links can be useful in future.
9204 if test "$aix_use_runtimelinking" = yes; then
9205 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9206 # instead of lib<name>.a to let people know that these are not
9207 # typical AIX shared libraries.
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 # We preserve .a as extension for shared libraries through AIX4.2
9211 # and later when we are not doing run time linking.
9212 library_names_spec='${libname}${release}.a $libname.a'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LIBPATH
9220 library_names_spec='$libname.ixlibrary $libname.a'
9221 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9222 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'
9226 library_names_spec='${libname}${shared_ext}'
9227 dynamic_linker="$host_os ld.so"
9228 shlibpath_var=LIBRARY_PATH
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9239 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9240 # the default ld.so.conf also contains /usr/contrib/lib and
9241 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9242 # libtool to hard-code these into programs
9245 cygwin* | mingw* | pw32*)
9246 version_type=windows
9251 case $GCC,$host_os in
9252 yes,cygwin* | yes,mingw* | yes,pw32*)
9253 library_names_spec='$libname.dll.a'
9254 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9255 postinstall_cmds='base_file=`basename \${file}`~
9256 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9257 dldir=$destdir/`dirname \$dlpath`~
9258 test -d \$dldir || mkdir -p \$dldir~
9259 $install_prog $dir/$dlname \$dldir/$dlname~
9260 chmod a+x \$dldir/$dlname'
9261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9262 dlpath=$dir/\$dldll~
9264 shlibpath_overrides_runpath=yes
9268 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9269 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9270 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9273 # MinGW DLLs use traditional 'lib' prefix
9274 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9275 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9276 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9277 # It is most probably a Windows format PATH printed by
9278 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9279 # path with ; separators, and with drive letters. We can handle the
9280 # drive letters (cygwin fileutils understands them), so leave them,
9281 # especially as we might pass files found there to a mingw objdump,
9282 # which wouldn't understand a cygwinified path. Ahh.
9283 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9289 # pw32 DLLs use 'pw' prefix rather than 'lib'
9290 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9296 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9299 dynamic_linker='Win32 ld.exe'
9300 # FIXME: first we should search . and the directory the executable is in
9304 darwin* | rhapsody*)
9305 dynamic_linker="$host_os dyld"
9309 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9310 soname_spec='${libname}${release}${major}$shared_ext'
9311 shlibpath_overrides_runpath=yes
9312 shlibpath_var=DYLD_LIBRARY_PATH
9313 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9314 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9315 if test "$GCC" = yes; then
9316 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"`
9318 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9320 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 shlibpath_var=LD_LIBRARY_PATH
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 shlibpath_overrides_runpath=no
9344 hardcode_into_libs=yes
9345 dynamic_linker='GNU ld.so'
9348 freebsd* | dragonfly*)
9349 # DragonFly does not have aout. When/if they implement a new
9350 # versioning mechanism, adjust this.
9351 if test -x /usr/bin/objformat; then
9352 objformat=`/usr/bin/objformat`
9355 freebsd[123]*) objformat=aout ;;
9359 version_type=freebsd-$objformat
9360 case $version_type in
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9371 shlibpath_var=LD_LIBRARY_PATH
9374 shlibpath_overrides_runpath=yes
9376 freebsd3.[01]* | freebsdelf3.[01]*)
9377 shlibpath_overrides_runpath=yes
9378 hardcode_into_libs=yes
9380 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9381 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9382 shlibpath_overrides_runpath=no
9383 hardcode_into_libs=yes
9385 freebsd*) # from 4.6 on
9386 shlibpath_overrides_runpath=yes
9387 hardcode_into_libs=yes
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 hardcode_into_libs=yes
9402 hpux9* | hpux10* | hpux11*)
9403 # Give a soname corresponding to the major version so that dld.sl refuses to
9404 # link against other versions.
9411 hardcode_into_libs=yes
9412 dynamic_linker="$host_os dld.so"
9413 shlibpath_var=LD_LIBRARY_PATH
9414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 if test "X$HPUX_IA64_MODE" = X32; then
9418 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9420 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9426 hardcode_into_libs=yes
9427 dynamic_linker="$host_os dld.sl"
9428 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9437 dynamic_linker="$host_os dld.sl"
9438 shlibpath_var=SHLIB_PATH
9439 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9444 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9445 postinstall_cmds='chmod 555 $lib'
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=no
9457 hardcode_into_libs=yes
9460 irix5* | irix6* | nonstopux*)
9462 nonstopux*) version_type=nonstopux ;;
9464 if test "$lt_cv_prog_gnu_ld" = yes; then
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9475 irix5* | nonstopux*)
9479 case $LD in # libtool.m4 will add one of these switches to LD
9480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9481 libsuff= shlibsuff= libmagic=32-bit;;
9482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9483 libsuff=32 shlibsuff=N32 libmagic=N32;;
9484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9486 *) libsuff= shlibsuff= libmagic=never-match;;
9490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9491 shlibpath_overrides_runpath=no
9492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9494 hardcode_into_libs=yes
9497 # No shared lib support for Linux oldld, aout, or coff.
9498 linux*oldld* | linux*aout* | linux*coff*)
9502 # This must be Linux ELF.
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 shlibpath_overrides_runpath=no
9512 # This implies no fast_install, which is unacceptable.
9513 # Some rework will be needed to allow for fast_install
9514 # before this can be enabled.
9515 hardcode_into_libs=yes
9517 # Append ld.so.conf contents to the search path
9518 if test -f /etc/ld.so.conf; then
9519 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' ' '`
9520 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9523 # We used to test for /lib/ld.so.1 and disable shared libraries on
9524 # powerpc, because MkLinux only supported shared libraries with the
9525 # GNU dynamic linker. Since this was broken with cross compilers,
9526 # most powerpc-linux boxes support dynamic linking these days and
9527 # people can always --disable-shared, the test was removed, and we
9528 # assume the GNU/Linux dynamic linker is in use.
9529 dynamic_linker='GNU/Linux ld.so'
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 shlibpath_overrides_runpath=no
9540 hardcode_into_libs=yes
9541 dynamic_linker='GNU ld.so'
9548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9551 dynamic_linker='NetBSD (a.out) ld.so'
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 dynamic_linker='NetBSD ld.elf_so'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 shlibpath_overrides_runpath=yes
9559 hardcode_into_libs=yes
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574 soname_spec='${libname}${release}${shared_ext}$major'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 shlibpath_overrides_runpath=yes
9581 sys_lib_dlsearch_path_spec="/usr/lib"
9583 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9585 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9586 *) need_version=no ;;
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9593 openbsd2.[89] | openbsd2.[89].*)
9594 shlibpath_overrides_runpath=no
9597 shlibpath_overrides_runpath=yes
9601 shlibpath_overrides_runpath=yes
9606 libname_spec='$name'
9609 library_names_spec='$libname${shared_ext} $libname.a'
9610 dynamic_linker='OS/2 ld.exe'
9611 shlibpath_var=LIBPATH
9614 osf3* | osf4* | osf5*)
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9622 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630 soname_spec='${libname}${release}${shared_ext}$major'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 shlibpath_overrides_runpath=yes
9633 hardcode_into_libs=yes
9634 # ldd complains unless libraries are executable
9635 postinstall_cmds='chmod +x $lib'
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9641 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=yes
9644 if test "$with_gnu_ld" = yes; then
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 case $host_vendor in
9657 shlibpath_overrides_runpath=no
9659 export_dynamic_flag_spec='${wl}-Blargedynsym'
9660 runpath_var=LD_RUN_PATH
9668 shlibpath_overrides_runpath=no
9669 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9675 if test -d /usr/nec ;then
9677 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9678 soname_spec='$libname${shared_ext}.$major'
9679 shlibpath_var=LD_LIBRARY_PATH
9683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9684 version_type=freebsd-elf
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 hardcode_into_libs=yes
9691 if test "$with_gnu_ld" = yes; then
9692 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9693 shlibpath_overrides_runpath=no
9695 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9696 shlibpath_overrides_runpath=yes
9699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9703 sys_lib_dlsearch_path_spec='/usr/lib'
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709 soname_spec='${libname}${release}${shared_ext}$major'
9710 shlibpath_var=LD_LIBRARY_PATH
9717 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9718 echo "${ECHO_T}$dynamic_linker" >&6; }
9719 test "$dynamic_linker" = no && can_build_shared=no
9721 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9722 if test "$GCC" = yes; then
9723 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9726 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9727 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9729 if test -n "$hardcode_libdir_flag_spec" || \
9730 test -n "$runpath_var" || \
9731 test "X$hardcode_automatic" = "Xyes" ; then
9733 # We can hardcode non-existant directories.
9734 if test "$hardcode_direct" != no &&
9735 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9736 # have to relink, otherwise we might link with an installed library
9737 # when we should be linking with a yet-to-be-installed one
9738 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9739 test "$hardcode_minus_L" != no; then
9740 # Linking always hardcodes the temporary library directory.
9741 hardcode_action=relink
9743 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9744 hardcode_action=immediate
9747 # We cannot hardcode anything, or else we can only hardcode existing
9749 hardcode_action=unsupported
9751 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9752 echo "${ECHO_T}$hardcode_action" >&6; }
9754 if test "$hardcode_action" = relink; then
9755 # Fast installation is not supported
9756 enable_fast_install=no
9757 elif test "$shlibpath_overrides_runpath" = yes ||
9758 test "$enable_shared" = no; then
9759 # Fast installation is not necessary
9760 enable_fast_install=needless
9765 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9766 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9767 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9768 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9769 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9770 { echo "$as_me:$LINENO: result: yes" >&5
9771 echo "${ECHO_T}yes" >&6; }
9773 # FIXME - insert some real tests, host_os isn't really good enough
9776 if test -n "$STRIP" ; then
9777 striplib="$STRIP -x"
9778 { echo "$as_me:$LINENO: result: yes" >&5
9779 echo "${ECHO_T}yes" >&6; }
9781 { echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6; }
9786 { echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6; }
9792 if test "x$enable_dlopen" != xyes; then
9793 enable_dlopen=unknown
9794 enable_dlopen_self=unknown
9795 enable_dlopen_self_static=unknown
9802 lt_cv_dlopen="load_add_on"
9804 lt_cv_dlopen_self=yes
9808 lt_cv_dlopen="LoadLibrary"
9813 lt_cv_dlopen="dlopen"
9818 # if libdl is installed we need to link against it
9819 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9820 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9821 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 ac_check_lib_save_LIBS=$LIBS
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850 (eval $ac_link) 2>conftest.er1
9852 grep -v '^ *+' conftest.er1 >conftest.err
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -z "$ac_c_werror_flag"
9858 || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest$ac_exeext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 ac_cv_lib_dl_dlopen=yes
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_cv_lib_dl_dlopen=no
9878 rm -f conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9882 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9883 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9884 if test $ac_cv_lib_dl_dlopen = yes; then
9885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9890 lt_cv_dlopen_self=yes
9897 { echo "$as_me:$LINENO: checking for shl_load" >&5
9898 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9899 if test "${ac_cv_func_shl_load+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 cat >conftest.$ac_ext <<_ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9908 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9910 #define shl_load innocuous_shl_load
9912 /* System header to define __stub macros and hopefully few prototypes,
9913 which can conflict with char shl_load (); below.
9914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9915 <limits.h> exists even on freestanding compilers. */
9918 # include <limits.h>
9920 # include <assert.h>
9925 /* Override any GCC internal prototype to avoid an error.
9926 Use char because int might match the return type of a GCC
9927 builtin and then its argument prototype would still apply. */
9932 /* The GNU C library defines this for functions which it implements
9933 to always fail with ENOSYS. Some functions are actually named
9934 something starting with __ and the normal name is an alias. */
9935 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>conftest.er1
9951 grep -v '^ *+' conftest.er1 >conftest.err
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_func_shl_load=yes
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_cv_func_shl_load=no
9977 rm -f conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9980 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9981 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9982 if test $ac_cv_func_shl_load = yes; then
9983 lt_cv_dlopen="shl_load"
9985 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9986 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9987 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 ac_check_lib_save_LIBS=$LIBS
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9999 /* Override any GCC internal prototype to avoid an error.
10000 Use char because int might match the return type of a GCC
10001 builtin and then its argument prototype would still apply. */
10009 return shl_load ();
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_lib_dld_shl_load=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_cv_lib_dld_shl_load=no
10044 rm -f conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10048 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10049 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10050 if test $ac_cv_lib_dld_shl_load = yes; then
10051 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10053 { echo "$as_me:$LINENO: checking for dlopen" >&5
10054 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10055 if test "${ac_cv_func_dlopen+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 cat >conftest.$ac_ext <<_ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10066 #define dlopen innocuous_dlopen
10068 /* System header to define __stub macros and hopefully few prototypes,
10069 which can conflict with char dlopen (); below.
10070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071 <limits.h> exists even on freestanding compilers. */
10074 # include <limits.h>
10076 # include <assert.h>
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10088 /* The GNU C library defines this for functions which it implements
10089 to always fail with ENOSYS. Some functions are actually named
10090 something starting with __ and the normal name is an alias. */
10091 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10105 (eval $ac_link) 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag"
10113 || test ! -s conftest.err'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest$ac_exeext'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; }; then
10125 ac_cv_func_dlopen=yes
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_cv_func_dlopen=no
10133 rm -f conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10136 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10137 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10138 if test $ac_cv_func_dlopen = yes; then
10139 lt_cv_dlopen="dlopen"
10141 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 ac_check_lib_save_LIBS=$LIBS
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1 >conftest.err
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest$ac_exeext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_lib_dl_dlopen=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_cv_lib_dl_dlopen=no
10200 rm -f conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10204 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10205 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10206 if test $ac_cv_lib_dl_dlopen = yes; then
10207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10209 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10210 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10211 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 ac_check_lib_save_LIBS=$LIBS
10215 LIBS="-lsvld $LIBS"
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10223 /* Override any GCC internal prototype to avoid an error.
10224 Use char because int might match the return type of a GCC
10225 builtin and then its argument prototype would still apply. */
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240 (eval $ac_link) 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_c_werror_flag"
10248 || test ! -s conftest.err'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_svld_dlopen=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_cv_lib_svld_dlopen=no
10268 rm -f conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10272 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10273 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10274 if test $ac_cv_lib_svld_dlopen = yes; then
10275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10277 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10278 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10279 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 ac_check_lib_save_LIBS=$LIBS
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10291 /* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10301 return dld_link ();
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10308 (eval $ac_link) 2>conftest.er1
10310 grep -v '^ *+' conftest.er1 >conftest.err
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try='test -z "$ac_c_werror_flag"
10316 || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try='test -s conftest$ac_exeext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 ac_cv_lib_dld_dld_link=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_cv_lib_dld_dld_link=no
10336 rm -f conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10342 if test $ac_cv_lib_dld_dld_link = yes; then
10343 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10364 if test "x$lt_cv_dlopen" != xno; then
10370 case $lt_cv_dlopen in
10372 save_CPPFLAGS="$CPPFLAGS"
10373 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10375 save_LDFLAGS="$LDFLAGS"
10376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10379 LIBS="$lt_cv_dlopen_libs $LIBS"
10381 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10383 if test "${lt_cv_dlopen_self+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 if test "$cross_compiling" = yes; then :
10387 lt_cv_dlopen_self=cross
10389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390 lt_status=$lt_dlunknown
10391 cat > conftest.$ac_ext <<EOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10402 # define LT_DLGLOBAL RTLD_GLOBAL
10405 # define LT_DLGLOBAL DL_GLOBAL
10407 # define LT_DLGLOBAL 0
10411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412 find out it does not work in some platform. */
10413 #ifndef LT_DLLAZY_OR_NOW
10415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10418 # define LT_DLLAZY_OR_NOW DL_LAZY
10421 # define LT_DLLAZY_OR_NOW RTLD_NOW
10424 # define LT_DLLAZY_OR_NOW DL_NOW
10426 # define LT_DLLAZY_OR_NOW 0
10434 extern "C" void exit (int);
10437 void fnord() { int i=42;}
10440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441 int status = $lt_dlunknown;
10445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447 /* dlclose (self); */
10455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456 (eval $ac_link) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10460 (./conftest; exit; ) >&5 2>/dev/null
10462 case x$lt_status in
10463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10468 # compilation failed
10469 lt_cv_dlopen_self=no
10476 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10477 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10479 if test "x$lt_cv_dlopen_self" = xyes; then
10480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10481 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10482 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10483 if test "${lt_cv_dlopen_self_static+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 if test "$cross_compiling" = yes; then :
10487 lt_cv_dlopen_self_static=cross
10489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490 lt_status=$lt_dlunknown
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10502 # define LT_DLGLOBAL RTLD_GLOBAL
10505 # define LT_DLGLOBAL DL_GLOBAL
10507 # define LT_DLGLOBAL 0
10511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512 find out it does not work in some platform. */
10513 #ifndef LT_DLLAZY_OR_NOW
10515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10518 # define LT_DLLAZY_OR_NOW DL_LAZY
10521 # define LT_DLLAZY_OR_NOW RTLD_NOW
10524 # define LT_DLLAZY_OR_NOW DL_NOW
10526 # define LT_DLLAZY_OR_NOW 0
10534 extern "C" void exit (int);
10537 void fnord() { int i=42;}
10540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541 int status = $lt_dlunknown;
10545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10546 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547 /* dlclose (self); */
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560 (./conftest; exit; ) >&5 2>/dev/null
10562 case x$lt_status in
10563 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10564 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10565 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10568 # compilation failed
10569 lt_cv_dlopen_self_static=no
10576 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10577 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10580 CPPFLAGS="$save_CPPFLAGS"
10581 LDFLAGS="$save_LDFLAGS"
10586 case $lt_cv_dlopen_self in
10587 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10588 *) enable_dlopen_self=unknown ;;
10591 case $lt_cv_dlopen_self_static in
10592 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10593 *) enable_dlopen_self_static=unknown ;;
10598 # Report which library types will actually be built
10599 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10600 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10601 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10602 echo "${ECHO_T}$can_build_shared" >&6; }
10604 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10605 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10606 test "$can_build_shared" = "no" && enable_shared=no
10608 # On AIX, shared libraries and static libraries use the same namespace, and
10609 # are all built from PIC.
10612 test "$enable_shared" = yes && enable_static=no
10613 if test -n "$RANLIB"; then
10614 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10615 postinstall_cmds='$RANLIB $lib'
10620 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10621 test "$enable_shared" = yes && enable_static=no
10625 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10626 echo "${ECHO_T}$enable_shared" >&6; }
10628 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10629 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10630 # Make sure either enable_shared or enable_static is yes.
10631 test "$enable_shared" = yes || enable_static=yes
10632 { echo "$as_me:$LINENO: result: $enable_static" >&5
10633 echo "${ECHO_T}$enable_static" >&6; }
10635 # The else clause should only fire when bootstrapping the
10636 # libtool distribution, otherwise you forgot to ship ltmain.sh
10637 # with your package, and you will get complaints that there are
10638 # no rules to generate ltmain.sh.
10639 if test -f "$ltmain"; then
10640 # See if we are running on zsh, and set the options which allow our commands through
10641 # without removal of \ escapes.
10642 if test -n "${ZSH_VERSION+set}" ; then
10643 setopt NO_GLOB_SUBST
10645 # Now quote all the things that may contain metacharacters while being
10646 # careful not to overquote the AC_SUBSTed values. We take copies of the
10647 # variables and quote the copies for generation of the libtool script.
10648 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10650 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10651 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10652 deplibs_check_method reload_flag reload_cmds need_locks \
10653 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10654 lt_cv_sys_global_symbol_to_c_name_address \
10655 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10656 old_postinstall_cmds old_postuninstall_cmds \
10660 lt_prog_compiler_wl \
10661 lt_prog_compiler_pic \
10662 lt_prog_compiler_static \
10663 lt_prog_compiler_no_builtin_flag \
10664 export_dynamic_flag_spec \
10665 thread_safe_flag_spec \
10666 whole_archive_flag_spec \
10667 enable_shared_with_static_runtimes \
10669 old_archive_from_new_cmds \
10674 compiler_lib_search_path \
10676 archive_expsym_cmds \
10678 postuninstall_cmds \
10679 old_archive_from_expsyms_cmds \
10680 allow_undefined_flag \
10681 no_undefined_flag \
10682 export_symbols_cmds \
10683 hardcode_libdir_flag_spec \
10684 hardcode_libdir_flag_spec_ld \
10685 hardcode_libdir_separator \
10686 hardcode_automatic \
10688 module_expsym_cmds \
10689 lt_cv_prog_compiler_c_o \
10691 include_expsyms; do
10694 old_archive_cmds | \
10695 old_archive_from_new_cmds | \
10697 archive_expsym_cmds | \
10699 module_expsym_cmds | \
10700 old_archive_from_expsyms_cmds | \
10701 export_symbols_cmds | \
10702 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10703 postinstall_cmds | postuninstall_cmds | \
10704 old_postinstall_cmds | old_postuninstall_cmds | \
10705 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10706 # Double-quote double-evaled strings.
10707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10710 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10716 *'\$0 --fallback-echo"')
10717 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10721 cfgfile="${ofile}T"
10722 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10724 { echo "$as_me:$LINENO: creating $ofile" >&5
10725 echo "$as_me: creating $ofile" >&6;}
10727 cat <<__EOF__ >> "$cfgfile"
10730 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10731 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10734 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10735 # Free Software Foundation, Inc.
10737 # This file is part of GNU Libtool:
10738 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10740 # This program is free software; you can redistribute it and/or modify
10741 # it under the terms of the GNU General Public License as published by
10742 # the Free Software Foundation; either version 2 of the License, or
10743 # (at your option) any later version.
10745 # This program is distributed in the hope that it will be useful, but
10746 # WITHOUT ANY WARRANTY; without even the implied warranty of
10747 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10748 # General Public License for more details.
10750 # You should have received a copy of the GNU General Public License
10751 # along with this program; if not, write to the Free Software
10752 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10754 # As a special exception to the GNU General Public License, if you
10755 # distribute this file as part of a program that contains a
10756 # configuration script generated by Autoconf, you may include it under
10757 # the same distribution terms that you use for the rest of that program.
10759 # A sed program that does not truncate output.
10762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10763 Xsed="$SED -e 1s/^X//"
10765 # The HP-UX ksh and POSIX shell print the target directory to stdout
10766 # if CDPATH is set.
10767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10769 # The names of the tagged configurations supported by this script.
10772 # ### BEGIN LIBTOOL CONFIG
10774 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10776 # Shell to use when invoking shell scripts.
10779 # Whether or not to build shared libraries.
10780 build_libtool_libs=$enable_shared
10782 # Whether or not to build static libraries.
10783 build_old_libs=$enable_static
10785 # Whether or not to add -lc for building shared libraries.
10786 build_libtool_need_lc=$archive_cmds_need_lc
10788 # Whether or not to disallow shared libs when runtime libs are static
10789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10791 # Whether or not to optimize for fast installation.
10792 fast_install=$enable_fast_install
10795 host_alias=$host_alias
10799 # The build system.
10800 build_alias=$build_alias
10804 # An echo program that does not interpret backslashes.
10809 AR_FLAGS=$lt_AR_FLAGS
10814 # LTCC compiler flags.
10815 LTCFLAGS=$lt_LTCFLAGS
10817 # A language-specific compiler.
10820 # Is the compiler the GNU C compiler?
10826 # The linker used to build libraries.
10829 # Whether we need hard or soft links.
10832 # A BSD-compatible nm program.
10835 # A symbol stripping program
10838 # Used to examine libraries when file_magic_cmd begins "file"
10839 MAGIC_CMD=$MAGIC_CMD
10841 # Used on cygwin: DLL creation program.
10844 # Used on cygwin: object dumper.
10847 # Used on cygwin: assembler.
10850 # The name of the directory that contains temporary libtool files.
10853 # How to create reloadable object files.
10854 reload_flag=$lt_reload_flag
10855 reload_cmds=$lt_reload_cmds
10857 # How to pass a linker flag through the compiler.
10858 wl=$lt_lt_prog_compiler_wl
10860 # Object file suffix (normally "o").
10861 objext="$ac_objext"
10863 # Old archive suffix (normally "a").
10866 # Shared library suffix (normally ".so").
10867 shrext_cmds='$shrext_cmds'
10869 # Executable file suffix (normally "").
10872 # Additional compiler flags for building library objects.
10873 pic_flag=$lt_lt_prog_compiler_pic
10876 # What is the maximum length of a command?
10877 max_cmd_len=$lt_cv_sys_max_cmd_len
10879 # Does compiler simultaneously support -c and -o options?
10880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10882 # Must we lock files when doing compilation?
10883 need_locks=$lt_need_locks
10885 # Do we need the lib prefix for modules?
10886 need_lib_prefix=$need_lib_prefix
10888 # Do we need a version for libraries?
10889 need_version=$need_version
10891 # Whether dlopen is supported.
10892 dlopen_support=$enable_dlopen
10894 # Whether dlopen of programs is supported.
10895 dlopen_self=$enable_dlopen_self
10897 # Whether dlopen of statically linked programs is supported.
10898 dlopen_self_static=$enable_dlopen_self_static
10900 # Compiler flag to prevent dynamic linking.
10901 link_static_flag=$lt_lt_prog_compiler_static
10903 # Compiler flag to turn off builtin functions.
10904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10906 # Compiler flag to allow reflexive dlopens.
10907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10909 # Compiler flag to generate shared objects directly from archives.
10910 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10912 # Compiler flag to generate thread-safe objects.
10913 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10915 # Library versioning type.
10916 version_type=$version_type
10918 # Format of library name prefix.
10919 libname_spec=$lt_libname_spec
10921 # List of archive names. First name is the real one, the rest are links.
10922 # The last name is the one that the linker finds with -lNAME.
10923 library_names_spec=$lt_library_names_spec
10925 # The coded name of the library, if different from the real name.
10926 soname_spec=$lt_soname_spec
10928 # Commands used to build and install an old-style archive.
10930 old_archive_cmds=$lt_old_archive_cmds
10931 old_postinstall_cmds=$lt_old_postinstall_cmds
10932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10934 # Create an old-style archive from a shared archive.
10935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10937 # Create a temporary old-style archive to link instead of a shared archive.
10938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10940 # Commands used to build and install a shared archive.
10941 archive_cmds=$lt_archive_cmds
10942 archive_expsym_cmds=$lt_archive_expsym_cmds
10943 postinstall_cmds=$lt_postinstall_cmds
10944 postuninstall_cmds=$lt_postuninstall_cmds
10946 # Commands used to build a loadable module (assumed same as above if empty)
10947 module_cmds=$lt_module_cmds
10948 module_expsym_cmds=$lt_module_expsym_cmds
10950 # Commands to strip libraries.
10951 old_striplib=$lt_old_striplib
10952 striplib=$lt_striplib
10954 # Dependencies to place before the objects being linked to create a
10956 predep_objects=$lt_predep_objects
10958 # Dependencies to place after the objects being linked to create a
10960 postdep_objects=$lt_postdep_objects
10962 # Dependencies to place before the objects being linked to create a
10964 predeps=$lt_predeps
10966 # Dependencies to place after the objects being linked to create a
10968 postdeps=$lt_postdeps
10970 # The library search path used internally by the compiler when linking
10971 # a shared library.
10972 compiler_lib_search_path=$lt_compiler_lib_search_path
10974 # Method to check whether dependent libraries are shared objects.
10975 deplibs_check_method=$lt_deplibs_check_method
10977 # Command to use when deplibs_check_method == file_magic.
10978 file_magic_cmd=$lt_file_magic_cmd
10980 # Flag that allows shared libraries with undefined symbols to be built.
10981 allow_undefined_flag=$lt_allow_undefined_flag
10983 # Flag that forces no undefined symbols.
10984 no_undefined_flag=$lt_no_undefined_flag
10986 # Commands used to finish a libtool library installation in a directory.
10987 finish_cmds=$lt_finish_cmds
10989 # Same as above, but a single script fragment to be evaled but not shown.
10990 finish_eval=$lt_finish_eval
10992 # Take the output of nm and produce a listing of raw symbols and C names.
10993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10995 # Transform the output of nm in a proper C declaration
10996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10998 # Transform the output of nm in a C name address pair
10999 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11001 # This is the shared library runtime path variable.
11002 runpath_var=$runpath_var
11004 # This is the shared library path variable.
11005 shlibpath_var=$shlibpath_var
11007 # Is shlibpath searched before the hard-coded library search path?
11008 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11010 # How to hardcode a shared library path into an executable.
11011 hardcode_action=$hardcode_action
11013 # Whether we should hardcode library paths into libraries.
11014 hardcode_into_libs=$hardcode_into_libs
11016 # Flag to hardcode \$libdir into a binary during linking.
11017 # This must work even if \$libdir does not exist.
11018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11020 # If ld is used when linking, flag to hardcode \$libdir into
11021 # a binary during linking. This must work even if \$libdir does
11023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11025 # Whether we need a single -rpath flag with a separated argument.
11026 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11028 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11029 # resulting binary.
11030 hardcode_direct=$hardcode_direct
11032 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11033 # resulting binary.
11034 hardcode_minus_L=$hardcode_minus_L
11036 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11037 # the resulting binary.
11038 hardcode_shlibpath_var=$hardcode_shlibpath_var
11040 # Set to yes if building a shared library automatically hardcodes DIR into the library
11041 # and all subsequent libraries and executables linked against it.
11042 hardcode_automatic=$hardcode_automatic
11044 # Variables whose values should be saved in libtool wrapper scripts and
11045 # restored at relink time.
11046 variables_saved_for_relink="$variables_saved_for_relink"
11048 # Whether libtool must link a program against all its dependency libraries.
11049 link_all_deplibs=$link_all_deplibs
11051 # Compile-time system search path for libraries
11052 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11054 # Run-time system search path for libraries
11055 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11057 # Fix the shell variable \$srcfile for the compiler.
11058 fix_srcfile_path="$fix_srcfile_path"
11060 # Set to yes if exported symbols are required.
11061 always_export_symbols=$always_export_symbols
11063 # The commands to list exported symbols.
11064 export_symbols_cmds=$lt_export_symbols_cmds
11066 # The commands to extract the exported symbol list from a shared archive.
11067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11069 # Symbols that should not be listed in the preloaded symbols.
11070 exclude_expsyms=$lt_exclude_expsyms
11072 # Symbols that must always be exported.
11073 include_expsyms=$lt_include_expsyms
11075 # ### END LIBTOOL CONFIG
11082 cat <<\EOF >> "$cfgfile"
11084 # AIX sometimes has problems with the GCC collect2 program. For some
11085 # reason, if we set the COLLECT_NAMES environment variable, the problems
11086 # vanish in a puff of smoke.
11087 if test "X${COLLECT_NAMES+set}" != Xset; then
11089 export COLLECT_NAMES
11095 # We use sed instead of cat because bash on DJGPP gets confused if
11096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11097 # text mode, it properly converts lines to CR/LF. This bash problem
11098 # is reportedly fixed, but why not run on old versions too?
11099 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11101 mv -f "$cfgfile" "$ofile" || \
11102 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11106 # If there is no Makefile yet, we rely on a make rule to execute
11107 # `config.status --recheck' to rerun these tests and create the
11108 # libtool script then.
11109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11110 if test -f "$ltmain_in"; then
11111 test -f Makefile && make "$ltmain"
11117 ac_cpp='$CPP $CPPFLAGS'
11118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11125 # Check whether --with-tags was given.
11126 if test "${with_tags+set}" = set; then
11127 withval=$with_tags; tagnames="$withval"
11131 if test -f "$ltmain" && test -n "$tagnames"; then
11132 if test ! -f "${ofile}"; then
11133 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11134 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11137 if test -z "$LTCC"; then
11138 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11139 if test -z "$LTCC"; then
11140 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11141 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11144 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11147 if test -z "$LTCFLAGS"; then
11148 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11151 # Extract list of available tagged configurations in $ofile.
11152 # Note that this assumes the entire list is on one line.
11153 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11156 for tagname in $tagnames; do
11158 # Check whether tagname contains only valid characters
11159 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11161 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11162 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11163 { (exit 1); exit 1; }; }
11167 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11169 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11170 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11171 { (exit 1); exit 1; }; }
11174 # Update the list of available tags.
11175 if test -n "$tagname"; then
11176 echo appending configuration tag \"$tagname\" to $ofile
11180 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11181 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11182 (test "X$CXX" != "Xg++"))) ; then
11184 ac_cpp='$CXXCPP $CPPFLAGS'
11185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11192 archive_cmds_need_lc_CXX=no
11193 allow_undefined_flag_CXX=
11194 always_export_symbols_CXX=no
11195 archive_expsym_cmds_CXX=
11196 export_dynamic_flag_spec_CXX=
11197 hardcode_direct_CXX=no
11198 hardcode_libdir_flag_spec_CXX=
11199 hardcode_libdir_flag_spec_ld_CXX=
11200 hardcode_libdir_separator_CXX=
11201 hardcode_minus_L_CXX=no
11202 hardcode_shlibpath_var_CXX=unsupported
11203 hardcode_automatic_CXX=no
11205 module_expsym_cmds_CXX=
11206 link_all_deplibs_CXX=unknown
11207 old_archive_cmds_CXX=$old_archive_cmds
11208 no_undefined_flag_CXX=
11209 whole_archive_flag_spec_CXX=
11210 enable_shared_with_static_runtimes_CXX=no
11212 # Dependencies to place before and after the object being linked:
11213 predep_objects_CXX=
11214 postdep_objects_CXX=
11217 compiler_lib_search_path_CXX=
11219 # Source file extension for C++ test sources.
11222 # Object file extension for compiled C++ test sources.
11226 # Code to be used in simple compile tests
11227 lt_simple_compile_test_code="int some_variable = 0;\n"
11229 # Code to be used in simple link tests
11230 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11232 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11234 # If no C compiler was specified, use CC.
11237 # If no C compiler flags were specified, use CFLAGS.
11238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11240 # Allow CC to be a program name with arguments.
11244 # save warnings/boilerplate of simple test code
11245 ac_outfile=conftest.$ac_objext
11246 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11248 _lt_compiler_boilerplate=`cat conftest.err`
11251 ac_outfile=conftest.$ac_objext
11252 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11254 _lt_linker_boilerplate=`cat conftest.err`
11258 # Allow CC to be a program name with arguments.
11263 lt_save_with_gnu_ld=$with_gnu_ld
11264 lt_save_path_LD=$lt_cv_path_LD
11265 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11266 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11268 $as_unset lt_cv_prog_gnu_ld
11270 if test -n "${lt_cv_path_LDCXX+set}"; then
11271 lt_cv_path_LD=$lt_cv_path_LDCXX
11273 $as_unset lt_cv_path_LD
11275 test -z "${LDCXX+set}" || LD=$LDCXX
11279 for cc_temp in $compiler""; do
11281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11287 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11290 # We don't want -fno-exception wen compiling C++ code, so set the
11291 # no_builtin_flag separately
11292 if test "$GXX" = yes; then
11293 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11295 lt_prog_compiler_no_builtin_flag_CXX=
11298 if test "$GXX" = yes; then
11299 # Set up default GNU C++ configuration
11302 # Check whether --with-gnu-ld was given.
11303 if test "${with_gnu_ld+set}" = set; then
11304 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11310 if test "$GCC" = yes; then
11311 # Check if gcc -print-prog-name=ld gives a path.
11312 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11313 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11316 # gcc leaves a trailing carriage return which upsets mingw
11317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11322 # Accept absolute paths.
11324 re_direlt='/[^/][^/]*/\.\./'
11325 # Canonicalize the pathname of ld
11326 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11327 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11328 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11330 test -z "$LD" && LD="$ac_prog"
11333 # If it fails, then pretend we aren't using GCC.
11337 # If it is relative, then search for the first ld in PATH.
11338 with_gnu_ld=unknown
11341 elif test "$with_gnu_ld" = yes; then
11342 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11343 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11345 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11346 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11348 if test "${lt_cv_path_LD+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 if test -z "$LD"; then
11352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11353 for ac_dir in $PATH; do
11355 test -z "$ac_dir" && ac_dir=.
11356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11357 lt_cv_path_LD="$ac_dir/$ac_prog"
11358 # Check to see if the program is GNU ld. I'd rather use --version,
11359 # but apparently some variants of GNU ld only accept -v.
11360 # Break only if it was the GNU/non-GNU ld that we prefer.
11361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11362 *GNU* | *'with BFD'*)
11363 test "$with_gnu_ld" != no && break
11366 test "$with_gnu_ld" != yes && break
11373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11377 LD="$lt_cv_path_LD"
11378 if test -n "$LD"; then
11379 { echo "$as_me:$LINENO: result: $LD" >&5
11380 echo "${ECHO_T}$LD" >&6; }
11382 { echo "$as_me:$LINENO: result: no" >&5
11383 echo "${ECHO_T}no" >&6; }
11385 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11386 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11387 { (exit 1); exit 1; }; }
11388 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11389 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11394 case `$LD -v 2>&1 </dev/null` in
11395 *GNU* | *'with BFD'*)
11396 lt_cv_prog_gnu_ld=yes
11399 lt_cv_prog_gnu_ld=no
11403 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11404 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11405 with_gnu_ld=$lt_cv_prog_gnu_ld
11409 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11410 # archiving commands below assume that GNU ld is being used.
11411 if test "$with_gnu_ld" = yes; then
11412 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413 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'
11415 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11416 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11418 # If archive_cmds runs LD, not CC, wlarc should be empty
11419 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11420 # investigate it a little bit more. (MM)
11423 # ancient GNU ld didn't support --whole-archive et. al.
11424 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11425 grep 'no-whole-archive' > /dev/null; then
11426 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11428 whole_archive_flag_spec_CXX=
11434 # A generic and very simple default shared library creation
11435 # command for GNU C++ for the case where it uses the native
11436 # linker, instead of GNU ld. If possible, this setting should
11437 # overridden to take advantage of the native linker features on
11438 # the platform it is being used on.
11439 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11442 # Commands to make compiler produce verbose output that lists
11443 # what "hidden" libraries, object files and flags are used when
11444 # linking a shared library.
11445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11453 # PORTME: fill in a description of your system's C++ link characteristics
11454 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11455 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11459 # FIXME: insert proper C++ library support
11463 if test "$host_cpu" = ia64; then
11464 # On IA64, the linker does run time linking by default, so we don't
11465 # have to do anything special.
11466 aix_use_runtimelinking=no
11467 exp_sym_flag='-Bexport'
11470 aix_use_runtimelinking=no
11472 # Test if we are trying to use run time linking or normal
11473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11474 # need to do runtime linking.
11475 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11476 for ld_flag in $LDFLAGS; do
11479 aix_use_runtimelinking=yes
11487 exp_sym_flag='-bexport'
11488 no_entry_flag='-bnoentry'
11491 # When large executables or shared objects are built, AIX ld can
11492 # have problems creating the table of contents. If linking a library
11493 # or program results in "error TOC overflow" add -mminimal-toc to
11494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11497 archive_cmds_CXX=''
11498 hardcode_direct_CXX=yes
11499 hardcode_libdir_separator_CXX=':'
11500 link_all_deplibs_CXX=yes
11502 if test "$GXX" = yes; then
11503 case $host_os in aix4.[012]|aix4.[012].*)
11504 # We only want to do this on AIX 4.2 and lower, the check
11505 # below for broken collect2 doesn't work under 4.3+
11506 collect2name=`${CC} -print-prog-name=collect2`
11507 if test -f "$collect2name" && \
11508 strings "$collect2name" | grep resolve_lib_name >/dev/null
11510 # We have reworked collect2
11511 hardcode_direct_CXX=yes
11513 # We have old collect2
11514 hardcode_direct_CXX=unsupported
11515 # It fails to find uninstalled libraries when the uninstalled
11516 # path is not listed in the libpath. Setting hardcode_minus_L
11517 # to unsupported forces relinking
11518 hardcode_minus_L_CXX=yes
11519 hardcode_libdir_flag_spec_CXX='-L$libdir'
11520 hardcode_libdir_separator_CXX=
11524 shared_flag='-shared'
11525 if test "$aix_use_runtimelinking" = yes; then
11526 shared_flag="$shared_flag "'${wl}-G'
11530 if test "$host_cpu" = ia64; then
11531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11532 # chokes on -Wl,-G. The following line is correct:
11535 if test "$aix_use_runtimelinking" = yes; then
11536 shared_flag='${wl}-G'
11538 shared_flag='${wl}-bM:SRE'
11543 # It seems that -bexpall does not export symbols beginning with
11544 # underscore (_), so it is better to generate a list of symbols to export.
11545 always_export_symbols_CXX=yes
11546 if test "$aix_use_runtimelinking" = yes; then
11547 # Warning - without using the other runtime loading flags (-brtl),
11548 # -berok will link without error, but may produce a broken library.
11549 allow_undefined_flag_CXX='-berok'
11550 # Determine the default libpath from the value encoded in an empty executable.
11551 cat >conftest.$ac_ext <<_ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11568 (eval $ac_link) 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_cxx_werror_flag"
11576 || test ! -s conftest.err'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest$ac_exeext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11591 # Check for a 64-bit object if we didn't find anything.
11592 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; }
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11601 rm -f conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext conftest.$ac_ext
11603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11605 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11607 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"
11609 if test "$host_cpu" = ia64; then
11610 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11611 allow_undefined_flag_CXX="-z nodefs"
11612 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"
11614 # Determine the default libpath from the value encoded in an empty executable.
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11630 rm -f conftest.$ac_objext conftest$ac_exeext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11632 (eval $ac_link) 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_cxx_werror_flag"
11640 || test ! -s conftest.err'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; } &&
11646 { ac_try='test -s conftest$ac_exeext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11655 # Check for a 64-bit object if we didn't find anything.
11656 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; }
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11665 rm -f conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11669 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11670 # Warning - without using the other run time loading flags,
11671 # -berok will link without error, but may produce a broken library.
11672 no_undefined_flag_CXX=' ${wl}-bernotok'
11673 allow_undefined_flag_CXX=' ${wl}-berok'
11674 # Exported symbols can be pulled into shared objects from archives
11675 whole_archive_flag_spec_CXX='$convenience'
11676 archive_cmds_need_lc_CXX=yes
11677 # This is similar to how AIX traditionally builds its shared libraries.
11678 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'
11684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11685 allow_undefined_flag_CXX=unsupported
11686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11687 # support --undefined. This deserves some investigation. FIXME
11688 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11695 case $cc_basename in
11697 # FIXME: insert proper C++ library support
11703 cygwin* | mingw* | pw32*)
11704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11705 # as there is no search path for DLLs.
11706 hardcode_libdir_flag_spec_CXX='-L$libdir'
11707 allow_undefined_flag_CXX=unsupported
11708 always_export_symbols_CXX=no
11709 enable_shared_with_static_runtimes_CXX=yes
11711 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11712 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'
11713 # If the export-symbols file already is a .def file (1st line
11714 # is EXPORTS), use it as is; otherwise, prepend...
11715 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11716 cp $export_symbols $output_objdir/$soname.def;
11718 echo EXPORTS > $output_objdir/$soname.def;
11719 cat $export_symbols >> $output_objdir/$soname.def;
11721 $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'
11726 darwin* | rhapsody*)
11728 rhapsody* | darwin1.[012])
11729 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11732 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11733 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11735 case ${MACOSX_DEPLOYMENT_TARGET} in
11737 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11740 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11746 archive_cmds_need_lc_CXX=no
11747 hardcode_direct_CXX=no
11748 hardcode_automatic_CXX=yes
11749 hardcode_shlibpath_var_CXX=unsupported
11750 whole_archive_flag_spec_CXX=''
11751 link_all_deplibs_CXX=yes
11753 if test "$GXX" = yes ; then
11754 lt_int_apple_cc_single_mod=no
11755 output_verbose_link_cmd='echo'
11756 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11757 lt_int_apple_cc_single_mod=yes
11759 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11760 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11762 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'
11764 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11765 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11766 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11767 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}'
11769 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}'
11771 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}'
11773 case $cc_basename in
11775 output_verbose_link_cmd='echo'
11776 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'
11777 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11778 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11779 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}'
11780 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}'
11790 case $cc_basename in
11792 # FIXME: insert proper C++ library support
11796 # Green Hills C++ Compiler
11797 # FIXME: insert proper C++ library support
11801 # FIXME: insert proper C++ library support
11807 # C++ shared libraries reported to be fairly broken before switch to ELF
11811 archive_cmds_need_lc_CXX=no
11813 freebsd* | kfreebsd*-gnu | dragonfly*)
11814 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11821 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11822 hardcode_libdir_separator_CXX=:
11823 export_dynamic_flag_spec_CXX='${wl}-E'
11824 hardcode_direct_CXX=yes
11825 hardcode_minus_L_CXX=yes # Not in the search PATH,
11826 # but as the default
11827 # location of the library.
11829 case $cc_basename in
11831 # FIXME: insert proper C++ library support
11835 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'
11836 # Commands to make compiler produce verbose output that lists
11837 # what "hidden" libraries, object files and flags are used when
11838 # linking a shared library.
11840 # There doesn't appear to be a way to prevent this compiler from
11841 # explicitly linking system object files so we need to strip them
11842 # from the output so that they don't get included in the library
11844 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'
11847 if test "$GXX" = yes; then
11848 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'
11850 # FIXME: insert proper C++ library support
11857 if test $with_gnu_ld = no; then
11858 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11859 hardcode_libdir_separator_CXX=:
11863 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11866 export_dynamic_flag_spec_CXX='${wl}-E'
11872 hardcode_direct_CXX=no
11873 hardcode_shlibpath_var_CXX=no
11876 hardcode_direct_CXX=yes
11877 hardcode_minus_L_CXX=yes # Not in the search PATH,
11878 # but as the default
11879 # location of the library.
11883 case $cc_basename in
11885 # FIXME: insert proper C++ library support
11891 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11894 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11897 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11900 # Commands to make compiler produce verbose output that lists
11901 # what "hidden" libraries, object files and flags are used when
11902 # linking a shared library.
11904 # There doesn't appear to be a way to prevent this compiler from
11905 # explicitly linking system object files so we need to strip them
11906 # from the output so that they don't get included in the library
11908 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'
11911 if test "$GXX" = yes; then
11912 if test $with_gnu_ld = no; then
11915 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11918 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11921 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'
11926 # FIXME: insert proper C++ library support
11933 hardcode_direct_CXX=no
11934 hardcode_shlibpath_var_CXX=no
11935 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11936 export_dynamic_flag_spec_CXX='${wl}-E'
11937 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11938 # Instead, shared libraries are loaded at an image base (0x10000000 by
11939 # default) and relocated if they conflict, which is a slow very memory
11940 # consuming and fragmenting process. To avoid this, we pick a random,
11941 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11942 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11943 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'
11944 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'
11947 case $cc_basename in
11950 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'
11952 # Archives containing C++ object files must be created using
11953 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11954 # necessary to make sure instantiated templates are included
11956 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11959 if test "$GXX" = yes; then
11960 if test "$with_gnu_ld" = no; then
11961 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'
11963 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'
11966 link_all_deplibs_CXX=yes
11969 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11970 hardcode_libdir_separator_CXX=:
11973 case $cc_basename in
11975 # Kuck and Associates, Inc. (KAI) C++ Compiler
11977 # KCC will only create a shared library if the output file
11978 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11979 # to its proper name (with version) after linking.
11980 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'
11981 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'
11982 # Commands to make compiler produce verbose output that lists
11983 # what "hidden" libraries, object files and flags are used when
11984 # linking a shared library.
11986 # There doesn't appear to be a way to prevent this compiler from
11987 # explicitly linking system object files so we need to strip them
11988 # from the output so that they don't get included in the library
11990 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'
11992 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11993 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11995 # Archives containing C++ object files must be created using
11996 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11997 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12002 # version 8.0 and above of icpc choke on multiply defined symbols
12003 # if we add $predep_objects and $postdep_objects, however 7.1 and
12004 # earlier do not add the objects themselves.
12005 case `$CC -V 2>&1` in
12007 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12008 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'
12010 *) # Version 8.0 or newer
12013 ia64*) tmp_idyn=' -i_dynamic';;
12015 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12016 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'
12019 archive_cmds_need_lc_CXX=no
12020 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12021 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12022 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12025 # Portland Group C++ compiler
12026 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12027 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'
12029 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12030 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12031 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'
12035 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12036 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'
12038 runpath_var=LD_RUN_PATH
12039 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12040 hardcode_libdir_separator_CXX=:
12042 # Commands to make compiler produce verbose output that lists
12043 # what "hidden" libraries, object files and flags are used when
12044 # linking a shared library.
12046 # There doesn't appear to be a way to prevent this compiler from
12047 # explicitly linking system object files so we need to strip them
12048 # from the output so that they don't get included in the library
12050 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'
12055 # FIXME: insert proper C++ library support
12059 # FIXME: insert proper C++ library support
12063 case $cc_basename in
12065 # FIXME: insert proper C++ library support
12069 # FIXME: insert proper C++ library support
12075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12076 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12078 hardcode_libdir_flag_spec_CXX='-R$libdir'
12079 hardcode_direct_CXX=yes
12080 hardcode_shlibpath_var_CXX=no
12082 # Workaround some broken pre-1.5 toolchains
12083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12086 # C++ shared libraries are fairly broken
12090 hardcode_direct_CXX=yes
12091 hardcode_shlibpath_var_CXX=no
12092 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12095 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12096 export_dynamic_flag_spec_CXX='${wl}-E'
12097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12099 output_verbose_link_cmd='echo'
12102 case $cc_basename in
12104 # Kuck and Associates, Inc. (KAI) C++ Compiler
12106 # KCC will only create a shared library if the output file
12107 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12108 # to its proper name (with version) after linking.
12109 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'
12111 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12112 hardcode_libdir_separator_CXX=:
12114 # Archives containing C++ object files must be created using
12115 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12116 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12120 # Rational C++ 2.4.1
12121 # FIXME: insert proper C++ library support
12125 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12126 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'
12128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12129 hardcode_libdir_separator_CXX=:
12131 # Commands to make compiler produce verbose output that lists
12132 # what "hidden" libraries, object files and flags are used when
12133 # linking a shared library.
12135 # There doesn't appear to be a way to prevent this compiler from
12136 # explicitly linking system object files so we need to strip them
12137 # from the output so that they don't get included in the library
12139 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'
12142 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12143 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12144 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'
12146 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12147 hardcode_libdir_separator_CXX=:
12149 # Commands to make compiler produce verbose output that lists
12150 # what "hidden" libraries, object files and flags are used when
12151 # linking a shared library.
12152 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12155 # FIXME: insert proper C++ library support
12162 case $cc_basename in
12164 # Kuck and Associates, Inc. (KAI) C++ Compiler
12166 # KCC will only create a shared library if the output file
12167 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12168 # to its proper name (with version) after linking.
12169 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'
12171 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12172 hardcode_libdir_separator_CXX=:
12174 # Archives containing C++ object files must be created using
12175 # the KAI C++ compiler.
12176 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12179 # Rational C++ 2.4.1
12180 # FIXME: insert proper C++ library support
12184 allow_undefined_flag_CXX=' -expect_unresolved \*'
12185 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'
12186 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12187 echo "-hidden">> $lib.exp~
12188 $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~
12191 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12192 hardcode_libdir_separator_CXX=:
12194 # Commands to make compiler produce verbose output that lists
12195 # what "hidden" libraries, object files and flags are used when
12196 # linking a shared library.
12198 # There doesn't appear to be a way to prevent this compiler from
12199 # explicitly linking system object files so we need to strip them
12200 # from the output so that they don't get included in the library
12202 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'
12205 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12206 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12207 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'
12209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12210 hardcode_libdir_separator_CXX=:
12212 # Commands to make compiler produce verbose output that lists
12213 # what "hidden" libraries, object files and flags are used when
12214 # linking a shared library.
12215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12218 # FIXME: insert proper C++ library support
12225 # FIXME: insert proper C++ library support
12229 case $cc_basename in
12232 # FIXME: insert proper C++ library support
12237 # FIXME: insert proper C++ library support
12241 # FIXME: insert proper C++ library support
12247 case $cc_basename in
12249 # Sun C++ 4.2, 5.x and Centerline C++
12250 archive_cmds_need_lc_CXX=yes
12251 no_undefined_flag_CXX=' -zdefs'
12252 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12253 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12254 $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'
12256 hardcode_libdir_flag_spec_CXX='-R$libdir'
12257 hardcode_shlibpath_var_CXX=no
12259 solaris2.[0-5] | solaris2.[0-5].*) ;;
12261 # The C++ compiler is used as linker so we must use $wl
12262 # flag to pass the commands to the underlying system
12263 # linker. We must also pass each convience library through
12264 # to the system linker between allextract/defaultextract.
12265 # The C++ compiler will combine linker options so we
12266 # cannot just pass the convience library names through
12268 # Supported since Solaris 2.6 (maybe 2.5.1?)
12269 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'
12272 link_all_deplibs_CXX=yes
12274 output_verbose_link_cmd='echo'
12276 # Archives containing C++ object files must be created using
12277 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12278 # necessary to make sure instantiated templates are included
12280 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12283 # Green Hills C++ Compiler
12284 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12286 # The C++ compiler must be used to create the archive.
12287 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12290 # GNU C++ compiler with Solaris linker
12291 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12292 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12293 if $CC --version | grep -v '^2\.7' > /dev/null; then
12294 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12295 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12296 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12298 # Commands to make compiler produce verbose output that lists
12299 # what "hidden" libraries, object files and flags are used when
12300 # linking a shared library.
12301 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12303 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12305 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12306 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12307 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12309 # Commands to make compiler produce verbose output that lists
12310 # what "hidden" libraries, object files and flags are used when
12311 # linking a shared library.
12312 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12315 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12320 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12321 no_undefined_flag_CXX='${wl}-z,text'
12322 archive_cmds_need_lc_CXX=no
12323 hardcode_shlibpath_var_CXX=no
12324 runpath_var='LD_RUN_PATH'
12326 case $cc_basename in
12328 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12332 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12333 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12337 sysv5* | sco3.2v5* | sco5v6*)
12338 # Note: We can NOT use -z defs as we might desire, because we do not
12339 # link with -lc, and that would cause any symbols used from libc to
12340 # always be unresolved, which means just about no library would
12341 # ever link correctly. If we're not using GNU ld we use -z text
12342 # though, which does catch some bad symbols but isn't as heavy-handed
12344 # For security reasons, it is highly recommended that you always
12345 # use absolute paths for naming shared libraries, and exclude the
12346 # DT_RUNPATH tag from executables and libraries. But doing so
12347 # requires that you compile everything twice, which is a pain.
12348 # So that behaviour is only enabled if SCOABSPATH is set to a
12349 # non-empty value in the environment. Most likely only useful for
12350 # creating official distributions of packages.
12351 # This is a hack until libtool officially supports absolute path
12352 # names for shared libraries.
12353 no_undefined_flag_CXX='${wl}-z,text'
12354 allow_undefined_flag_CXX='${wl}-z,nodefs'
12355 archive_cmds_need_lc_CXX=no
12356 hardcode_shlibpath_var_CXX=no
12357 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12358 hardcode_libdir_separator_CXX=':'
12359 link_all_deplibs_CXX=yes
12360 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12361 runpath_var='LD_RUN_PATH'
12363 case $cc_basename in
12365 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12366 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12369 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12370 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12375 case $cc_basename in
12377 # NonStop-UX NCC 3.20
12378 # FIXME: insert proper C++ library support
12382 # FIXME: insert proper C++ library support
12388 # FIXME: insert proper C++ library support
12392 # FIXME: insert proper C++ library support
12396 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12397 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12398 test "$ld_shlibs_CXX" = no && can_build_shared=no
12404 ## There is no encapsulation within the following macros, do not change
12405 ## the running order or otherwise move them around unless you know exactly
12406 ## what you are doing...
12408 cat > conftest.$ac_ext <<EOF
12412 Foo (void) { a = 0; }
12418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12419 (eval $ac_compile) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; then
12423 # Parse the compiler output and extract the necessary
12424 # objects, libraries and library flags.
12426 # Sentinel used to keep track of whether or not we are before
12427 # the conftest object file.
12428 pre_test_object_deps_done=no
12430 # The `*' in the case matches for architectures that use `case' in
12431 # $output_verbose_cmd can trigger glob expansion during the loop
12432 # eval without this substitution.
12433 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12435 for p in `eval $output_verbose_link_cmd`; do
12439 # Some compilers place space between "-{L,R}" and the path.
12440 # Remove the space.
12441 if test $p = "-L" \
12442 || test $p = "-R"; then
12449 if test "$pre_test_object_deps_done" = no; then
12452 # Internal compiler library paths should come after those
12453 # provided the user. The postdeps already come after the
12454 # user supplied libs so there is no need to process them.
12455 if test -z "$compiler_lib_search_path_CXX"; then
12456 compiler_lib_search_path_CXX="${prev}${p}"
12458 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12461 # The "-l" case would never come before the object being
12462 # linked, so don't bother handling this case.
12465 if test -z "$postdeps_CXX"; then
12466 postdeps_CXX="${prev}${p}"
12468 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12474 # This assumes that the test object file only shows up
12475 # once in the compiler output.
12476 if test "$p" = "conftest.$objext"; then
12477 pre_test_object_deps_done=yes
12481 if test "$pre_test_object_deps_done" = no; then
12482 if test -z "$predep_objects_CXX"; then
12483 predep_objects_CXX="$p"
12485 predep_objects_CXX="$predep_objects_CXX $p"
12488 if test -z "$postdep_objects_CXX"; then
12489 postdep_objects_CXX="$p"
12491 postdep_objects_CXX="$postdep_objects_CXX $p"
12496 *) ;; # Ignore the rest.
12504 echo "libtool.m4: error: problem compiling CXX test program"
12507 $rm -f confest.$objext
12509 # PORTME: override above test on systems where it is broken
12512 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12513 # hack all around it, let's just trust "g++" to DTRT.
12514 predep_objects_CXX=
12515 postdep_objects_CXX=
12520 case $cc_basename in
12522 # Adding this requires a known-good setup of shared libraries for
12523 # Sun compiler versions before 5.6, else PIC objects from an old
12524 # archive will be linked into the output, leading to subtle bugs.
12525 postdeps_CXX='-lCstd -lCrun'
12532 case " $postdeps_CXX " in
12533 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12536 lt_prog_compiler_wl_CXX=
12537 lt_prog_compiler_pic_CXX=
12538 lt_prog_compiler_static_CXX=
12540 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12541 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12543 # C++ specific cases for pic, static, wl, etc.
12544 if test "$GXX" = yes; then
12545 lt_prog_compiler_wl_CXX='-Wl,'
12546 lt_prog_compiler_static_CXX='-static'
12550 # All AIX code is PIC.
12551 if test "$host_cpu" = ia64; then
12552 # AIX 5 now supports IA64 processor
12553 lt_prog_compiler_static_CXX='-Bstatic'
12557 # FIXME: we need at least 68020 code to build shared libraries, but
12558 # adding the `-m68020' flag to GCC prevents building anything better,
12560 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12562 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12563 # PIC is the default for these OSes.
12565 mingw* | os2* | pw32*)
12566 # This hack is so that the source file can tell whether it is being
12567 # built for inclusion in a dll (and should export symbols for example).
12568 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12570 darwin* | rhapsody*)
12571 # PIC is the default on this platform
12572 # Common symbols not allowed in MH_DYLIB files
12573 lt_prog_compiler_pic_CXX='-fno-common'
12576 # DJGPP does not support shared libraries at all
12577 lt_prog_compiler_pic_CXX=
12580 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12581 # Instead, we relocate shared libraries at runtime.
12584 if test -d /usr/nec; then
12585 lt_prog_compiler_pic_CXX=-Kconform_pic
12589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12590 # not for PA HP-UX.
12595 lt_prog_compiler_pic_CXX='-fPIC'
12600 lt_prog_compiler_pic_CXX='-fPIC'
12606 # All AIX code is PIC.
12607 if test "$host_cpu" = ia64; then
12608 # AIX 5 now supports IA64 processor
12609 lt_prog_compiler_static_CXX='-Bstatic'
12611 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12615 case $cc_basename in
12617 # Green Hills C++ Compiler
12618 # _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"
12623 # PIC is the default on this platform
12624 # Common symbols not allowed in MH_DYLIB files
12625 case $cc_basename in
12627 lt_prog_compiler_pic_CXX='-qnocommon'
12628 lt_prog_compiler_wl_CXX='-Wl,'
12633 case $cc_basename in
12635 lt_prog_compiler_pic_CXX='-KPIC'
12638 # Green Hills C++ Compiler
12639 lt_prog_compiler_pic_CXX='-pic'
12645 freebsd* | kfreebsd*-gnu | dragonfly*)
12646 # FreeBSD uses GNU C++
12648 hpux9* | hpux10* | hpux11*)
12649 case $cc_basename in
12651 lt_prog_compiler_wl_CXX='-Wl,'
12652 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12653 if test "$host_cpu" != ia64; then
12654 lt_prog_compiler_pic_CXX='+Z'
12658 lt_prog_compiler_wl_CXX='-Wl,'
12659 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12665 lt_prog_compiler_pic_CXX='+Z'
12674 # This is c89, which is MS Visual C++ (no shared libs)
12675 # Anyone wants to do a port?
12677 irix5* | irix6* | nonstopux*)
12678 case $cc_basename in
12680 lt_prog_compiler_wl_CXX='-Wl,'
12681 lt_prog_compiler_static_CXX='-non_shared'
12682 # CC pic flag -KPIC is the default.
12689 case $cc_basename in
12692 lt_prog_compiler_wl_CXX='--backend -Wl,'
12693 lt_prog_compiler_pic_CXX='-fPIC'
12697 lt_prog_compiler_wl_CXX='-Wl,'
12698 lt_prog_compiler_pic_CXX='-KPIC'
12699 lt_prog_compiler_static_CXX='-static'
12702 # Portland Group C++ compiler.
12703 lt_prog_compiler_wl_CXX='-Wl,'
12704 lt_prog_compiler_pic_CXX='-fpic'
12705 lt_prog_compiler_static_CXX='-Bstatic'
12709 # Make sure the PIC flag is empty. It appears that all Alpha
12710 # Linux and Compaq Tru64 Unix objects are PIC.
12711 lt_prog_compiler_pic_CXX=
12712 lt_prog_compiler_static_CXX='-non_shared'
12723 case $cc_basename in
12725 lt_prog_compiler_pic_CXX='-W c,exportall'
12733 osf3* | osf4* | osf5*)
12734 case $cc_basename in
12736 lt_prog_compiler_wl_CXX='--backend -Wl,'
12739 # Rational C++ 2.4.1
12740 lt_prog_compiler_pic_CXX='-pic'
12743 # Digital/Compaq C++
12744 lt_prog_compiler_wl_CXX='-Wl,'
12745 # Make sure the PIC flag is empty. It appears that all Alpha
12746 # Linux and Compaq Tru64 Unix objects are PIC.
12747 lt_prog_compiler_pic_CXX=
12748 lt_prog_compiler_static_CXX='-non_shared'
12757 case $cc_basename in
12759 # Sun C++ 4.2, 5.x and Centerline C++
12760 lt_prog_compiler_pic_CXX='-KPIC'
12761 lt_prog_compiler_static_CXX='-Bstatic'
12762 lt_prog_compiler_wl_CXX='-Qoption ld '
12765 # Green Hills C++ Compiler
12766 lt_prog_compiler_pic_CXX='-PIC'
12773 case $cc_basename in
12776 lt_prog_compiler_pic_CXX='-pic'
12777 lt_prog_compiler_static_CXX='-Bstatic'
12781 lt_prog_compiler_pic_CXX='-pic'
12788 case $cc_basename in
12790 # NonStop-UX NCC 3.20
12791 lt_prog_compiler_pic_CXX='-KPIC'
12797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12798 case $cc_basename in
12800 lt_prog_compiler_wl_CXX='-Wl,'
12801 lt_prog_compiler_pic_CXX='-KPIC'
12802 lt_prog_compiler_static_CXX='-Bstatic'
12809 lt_prog_compiler_can_build_shared_CXX=no
12814 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12815 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12818 # Check to make sure the PIC flag actually works.
12820 if test -n "$lt_prog_compiler_pic_CXX"; then
12822 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12823 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12824 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 lt_prog_compiler_pic_works_CXX=no
12828 ac_outfile=conftest.$ac_objext
12829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12830 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12831 # Insert the option either (1) after the last *FLAGS variable, or
12832 # (2) before a word containing "conftest.", or (3) at the end.
12833 # Note that $ac_compile itself does not contain backslashes and begins
12834 # with a dollar sign (not a hyphen), so the echo should work correctly.
12835 # The option is referenced via a variable to avoid confusing sed.
12836 lt_compile=`echo "$ac_compile" | $SED \
12837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12839 -e 's:$: $lt_compiler_flag:'`
12840 (eval echo "\"\$as_me:12840: $lt_compile\"" >&5)
12841 (eval "$lt_compile" 2>conftest.err)
12843 cat conftest.err >&5
12844 echo "$as_me:12844: \$? = $ac_status" >&5
12845 if (exit $ac_status) && test -s "$ac_outfile"; then
12846 # The compiler can only warn and ignore the option if not recognized
12847 # So say no if there are warnings other than the usual output.
12848 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12850 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12851 lt_prog_compiler_pic_works_CXX=yes
12857 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12858 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12860 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12861 case $lt_prog_compiler_pic_CXX in
12863 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12866 lt_prog_compiler_pic_CXX=
12867 lt_prog_compiler_can_build_shared_CXX=no
12872 # For platforms which do not support PIC, -DPIC is meaningless:
12874 lt_prog_compiler_pic_CXX=
12877 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12882 # Check to make sure the static flag actually works.
12884 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12885 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12886 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12887 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 lt_prog_compiler_static_works_CXX=no
12891 save_LDFLAGS="$LDFLAGS"
12892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12893 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12895 # The linker can only warn and ignore the option if not recognized
12896 # So say no if there are warnings
12897 if test -s conftest.err; then
12898 # Append any errors to the config.log.
12899 cat conftest.err 1>&5
12900 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12902 if diff conftest.exp conftest.er2 >/dev/null; then
12903 lt_prog_compiler_static_works_CXX=yes
12906 lt_prog_compiler_static_works_CXX=yes
12910 LDFLAGS="$save_LDFLAGS"
12913 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12914 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12916 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12919 lt_prog_compiler_static_CXX=
12923 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12924 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12925 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 lt_cv_prog_compiler_c_o_CXX=no
12929 $rm -r conftest 2>/dev/null
12933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12935 lt_compiler_flag="-o out/conftest2.$ac_objext"
12936 # Insert the option either (1) after the last *FLAGS variable, or
12937 # (2) before a word containing "conftest.", or (3) at the end.
12938 # Note that $ac_compile itself does not contain backslashes and begins
12939 # with a dollar sign (not a hyphen), so the echo should work correctly.
12940 lt_compile=`echo "$ac_compile" | $SED \
12941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12943 -e 's:$: $lt_compiler_flag:'`
12944 (eval echo "\"\$as_me:12944: $lt_compile\"" >&5)
12945 (eval "$lt_compile" 2>out/conftest.err)
12947 cat out/conftest.err >&5
12948 echo "$as_me:12948: \$? = $ac_status" >&5
12949 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12951 # The compiler can only warn and ignore the option if not recognized
12952 # So say no if there are warnings
12953 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12954 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12955 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12956 lt_cv_prog_compiler_c_o_CXX=yes
12961 # SGI C++ compiler will create directory out/ii_files/ for
12962 # template instantiation
12963 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12964 $rm out/* && rmdir out
12970 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12971 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12974 hard_links="nottested"
12975 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12976 # do not overwrite the value of need_locks provided by the user
12977 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12983 ln conftest.a conftest.b 2>&5 || hard_links=no
12984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12985 { echo "$as_me:$LINENO: result: $hard_links" >&5
12986 echo "${ECHO_T}$hard_links" >&6; }
12987 if test "$hard_links" = no; then
12988 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12996 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12997 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12999 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13002 # If we're using GNU nm, then we don't want the "-C" option.
13003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13005 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'
13007 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'
13011 export_symbols_cmds_CXX="$ltdll_cmds"
13014 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'
13017 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13021 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13022 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13023 test "$ld_shlibs_CXX" = no && can_build_shared=no
13026 # Do we need to explicitly link libc?
13028 case "x$archive_cmds_need_lc_CXX" in
13030 # Assume -lc should be added
13031 archive_cmds_need_lc_CXX=yes
13033 if test "$enable_shared" = yes && test "$GCC" = yes; then
13034 case $archive_cmds_CXX in
13036 # FIXME: we may have to deal with multi-command sequences.
13039 # Test whether the compiler implicitly links with -lc since on some
13040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13041 # to ld, don't add -lc before -lgcc.
13042 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13043 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } 2>conftest.err; then
13054 libobjs=conftest.$ac_objext
13056 wl=$lt_prog_compiler_wl_CXX
13057 pic_flag=$lt_prog_compiler_pic_CXX
13063 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13064 allow_undefined_flag_CXX=
13065 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13066 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }
13071 archive_cmds_need_lc_CXX=no
13073 archive_cmds_need_lc_CXX=yes
13075 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13077 cat conftest.err 1>&5
13080 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13081 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13088 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13089 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13090 library_names_spec=
13091 libname_spec='lib$name'
13095 postuninstall_cmds=
13099 shlibpath_overrides_runpath=unknown
13101 dynamic_linker="$host_os ld.so"
13102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13103 if test "$GCC" = yes; then
13104 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13105 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13106 # if the path contains ";" then we assume it to be the separator
13107 # otherwise default to the standard path separator (i.e. ":") - it is
13108 # assumed that no part of a normal pathname contains ";" but that should
13109 # okay in the real world where ";" in dirpaths is itself problematic.
13110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13117 need_lib_prefix=unknown
13118 hardcode_into_libs=no
13120 # when you set need_version to no, make sure it does not cause -set_version
13121 # flags to be left without arguments
13122 need_version=unknown
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13128 shlibpath_var=LIBPATH
13130 # AIX 3 has no versioning support, so we append a major version to the name.
13131 soname_spec='${libname}${release}${shared_ext}$major'
13138 hardcode_into_libs=yes
13139 if test "$host_cpu" = ia64; then
13140 # AIX 5 supports IA64
13141 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13142 shlibpath_var=LD_LIBRARY_PATH
13144 # With GCC up to 2.95.x, collect2 would create an import file
13145 # for dependence libraries. The import file would start with
13146 # the line `#! .'. This would cause the generated library to
13147 # depend on `.', always an invalid library. This was fixed in
13148 # development snapshots of GCC prior to 3.0.
13150 aix4 | aix4.[01] | aix4.[01].*)
13151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13153 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13156 can_build_shared=no
13160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13161 # soname into executable. Probably we can add versioning support to
13162 # collect2, so additional links can be useful in future.
13163 if test "$aix_use_runtimelinking" = yes; then
13164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13165 # instead of lib<name>.a to let people know that these are not
13166 # typical AIX shared libraries.
13167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13169 # We preserve .a as extension for shared libraries through AIX4.2
13170 # and later when we are not doing run time linking.
13171 library_names_spec='${libname}${release}.a $libname.a'
13172 soname_spec='${libname}${release}${shared_ext}$major'
13174 shlibpath_var=LIBPATH
13179 library_names_spec='$libname.ixlibrary $libname.a'
13180 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13181 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'
13185 library_names_spec='${libname}${shared_ext}'
13186 dynamic_linker="$host_os ld.so"
13187 shlibpath_var=LIBRARY_PATH
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13194 soname_spec='${libname}${release}${shared_ext}$major'
13195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13196 shlibpath_var=LD_LIBRARY_PATH
13197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13199 # the default ld.so.conf also contains /usr/contrib/lib and
13200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13201 # libtool to hard-code these into programs
13204 cygwin* | mingw* | pw32*)
13205 version_type=windows
13210 case $GCC,$host_os in
13211 yes,cygwin* | yes,mingw* | yes,pw32*)
13212 library_names_spec='$libname.dll.a'
13213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13214 postinstall_cmds='base_file=`basename \${file}`~
13215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13216 dldir=$destdir/`dirname \$dlpath`~
13217 test -d \$dldir || mkdir -p \$dldir~
13218 $install_prog $dir/$dlname \$dldir/$dlname~
13219 chmod a+x \$dldir/$dlname'
13220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13221 dlpath=$dir/\$dldll~
13223 shlibpath_overrides_runpath=yes
13227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13228 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13229 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13232 # MinGW DLLs use traditional 'lib' prefix
13233 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13234 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13235 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13236 # It is most probably a Windows format PATH printed by
13237 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13238 # path with ; separators, and with drive letters. We can handle the
13239 # drive letters (cygwin fileutils understands them), so leave them,
13240 # especially as we might pass files found there to a mingw objdump,
13241 # which wouldn't understand a cygwinified path. Ahh.
13242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13248 # pw32 DLLs use 'pw' prefix rather than 'lib'
13249 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13255 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13258 dynamic_linker='Win32 ld.exe'
13259 # FIXME: first we should search . and the directory the executable is in
13263 darwin* | rhapsody*)
13264 dynamic_linker="$host_os dyld"
13265 version_type=darwin
13268 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13269 soname_spec='${libname}${release}${major}$shared_ext'
13270 shlibpath_overrides_runpath=yes
13271 shlibpath_var=DYLD_LIBRARY_PATH
13272 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13273 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13274 if test "$GCC" = yes; then
13275 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"`
13277 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13287 soname_spec='${libname}${release}${shared_ext}$major'
13288 shlibpath_var=LD_LIBRARY_PATH
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13300 soname_spec='${libname}${release}${shared_ext}$major'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=no
13303 hardcode_into_libs=yes
13304 dynamic_linker='GNU ld.so'
13307 freebsd* | dragonfly*)
13308 # DragonFly does not have aout. When/if they implement a new
13309 # versioning mechanism, adjust this.
13310 if test -x /usr/bin/objformat; then
13311 objformat=`/usr/bin/objformat`
13314 freebsd[123]*) objformat=aout ;;
13315 *) objformat=elf ;;
13318 version_type=freebsd-$objformat
13319 case $version_type in
13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13330 shlibpath_var=LD_LIBRARY_PATH
13333 shlibpath_overrides_runpath=yes
13335 freebsd3.[01]* | freebsdelf3.[01]*)
13336 shlibpath_overrides_runpath=yes
13337 hardcode_into_libs=yes
13339 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13340 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13341 shlibpath_overrides_runpath=no
13342 hardcode_into_libs=yes
13344 freebsd*) # from 4.6 on
13345 shlibpath_overrides_runpath=yes
13346 hardcode_into_libs=yes
13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13356 soname_spec='${libname}${release}${shared_ext}$major'
13357 shlibpath_var=LD_LIBRARY_PATH
13358 hardcode_into_libs=yes
13361 hpux9* | hpux10* | hpux11*)
13362 # Give a soname corresponding to the major version so that dld.sl refuses to
13363 # link against other versions.
13370 hardcode_into_libs=yes
13371 dynamic_linker="$host_os dld.so"
13372 shlibpath_var=LD_LIBRARY_PATH
13373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13375 soname_spec='${libname}${release}${shared_ext}$major'
13376 if test "X$HPUX_IA64_MODE" = X32; then
13377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13385 hardcode_into_libs=yes
13386 dynamic_linker="$host_os dld.sl"
13387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13390 soname_spec='${libname}${release}${shared_ext}$major'
13391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13396 dynamic_linker="$host_os dld.sl"
13397 shlibpath_var=SHLIB_PATH
13398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13400 soname_spec='${libname}${release}${shared_ext}$major'
13403 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13404 postinstall_cmds='chmod 555 $lib'
13411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13412 soname_spec='${libname}${release}${shared_ext}$major'
13413 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13414 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=no
13416 hardcode_into_libs=yes
13419 irix5* | irix6* | nonstopux*)
13421 nonstopux*) version_type=nonstopux ;;
13423 if test "$lt_cv_prog_gnu_ld" = yes; then
13431 soname_spec='${libname}${release}${shared_ext}$major'
13432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13434 irix5* | nonstopux*)
13435 libsuff= shlibsuff=
13438 case $LD in # libtool.m4 will add one of these switches to LD
13439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13440 libsuff= shlibsuff= libmagic=32-bit;;
13441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13442 libsuff=32 shlibsuff=N32 libmagic=N32;;
13443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13444 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13445 *) libsuff= shlibsuff= libmagic=never-match;;
13449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13450 shlibpath_overrides_runpath=no
13451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13453 hardcode_into_libs=yes
13456 # No shared lib support for Linux oldld, aout, or coff.
13457 linux*oldld* | linux*aout* | linux*coff*)
13461 # This must be Linux ELF.
13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467 soname_spec='${libname}${release}${shared_ext}$major'
13468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13469 shlibpath_var=LD_LIBRARY_PATH
13470 shlibpath_overrides_runpath=no
13471 # This implies no fast_install, which is unacceptable.
13472 # Some rework will be needed to allow for fast_install
13473 # before this can be enabled.
13474 hardcode_into_libs=yes
13476 # Append ld.so.conf contents to the search path
13477 if test -f /etc/ld.so.conf; then
13478 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' ' '`
13479 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13482 # We used to test for /lib/ld.so.1 and disable shared libraries on
13483 # powerpc, because MkLinux only supported shared libraries with the
13484 # GNU dynamic linker. Since this was broken with cross compilers,
13485 # most powerpc-linux boxes support dynamic linking these days and
13486 # people can always --disable-shared, the test was removed, and we
13487 # assume the GNU/Linux dynamic linker is in use.
13488 dynamic_linker='GNU/Linux ld.so'
13495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13496 soname_spec='${libname}${release}${shared_ext}$major'
13497 shlibpath_var=LD_LIBRARY_PATH
13498 shlibpath_overrides_runpath=no
13499 hardcode_into_libs=yes
13500 dynamic_linker='GNU ld.so'
13507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13510 dynamic_linker='NetBSD (a.out) ld.so'
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13513 soname_spec='${libname}${release}${shared_ext}$major'
13514 dynamic_linker='NetBSD ld.elf_so'
13516 shlibpath_var=LD_LIBRARY_PATH
13517 shlibpath_overrides_runpath=yes
13518 hardcode_into_libs=yes
13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524 shlibpath_var=LD_LIBRARY_PATH
13525 shlibpath_overrides_runpath=yes
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533 soname_spec='${libname}${release}${shared_ext}$major'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 shlibpath_overrides_runpath=yes
13540 sys_lib_dlsearch_path_spec="/usr/lib"
13542 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13544 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13545 *) need_version=no ;;
13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13549 shlibpath_var=LD_LIBRARY_PATH
13550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13552 openbsd2.[89] | openbsd2.[89].*)
13553 shlibpath_overrides_runpath=no
13556 shlibpath_overrides_runpath=yes
13560 shlibpath_overrides_runpath=yes
13565 libname_spec='$name'
13568 library_names_spec='$libname${shared_ext} $libname.a'
13569 dynamic_linker='OS/2 ld.exe'
13570 shlibpath_var=LIBPATH
13573 osf3* | osf4* | osf5*)
13577 soname_spec='${libname}${release}${shared_ext}$major'
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13579 shlibpath_var=LD_LIBRARY_PATH
13580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13581 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13589 soname_spec='${libname}${release}${shared_ext}$major'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 shlibpath_overrides_runpath=yes
13592 hardcode_into_libs=yes
13593 # ldd complains unless libraries are executable
13594 postinstall_cmds='chmod +x $lib'
13599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13600 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13601 shlibpath_var=LD_LIBRARY_PATH
13602 shlibpath_overrides_runpath=yes
13603 if test "$with_gnu_ld" = yes; then
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13612 soname_spec='${libname}${release}${shared_ext}$major'
13613 shlibpath_var=LD_LIBRARY_PATH
13614 case $host_vendor in
13616 shlibpath_overrides_runpath=no
13618 export_dynamic_flag_spec='${wl}-Blargedynsym'
13619 runpath_var=LD_RUN_PATH
13627 shlibpath_overrides_runpath=no
13628 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13634 if test -d /usr/nec ;then
13636 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13637 soname_spec='$libname${shared_ext}.$major'
13638 shlibpath_var=LD_LIBRARY_PATH
13642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13643 version_type=freebsd-elf
13646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13647 soname_spec='${libname}${release}${shared_ext}$major'
13648 shlibpath_var=LD_LIBRARY_PATH
13649 hardcode_into_libs=yes
13650 if test "$with_gnu_ld" = yes; then
13651 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13652 shlibpath_overrides_runpath=no
13654 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13655 shlibpath_overrides_runpath=yes
13658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13662 sys_lib_dlsearch_path_spec='/usr/lib'
13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13668 soname_spec='${libname}${release}${shared_ext}$major'
13669 shlibpath_var=LD_LIBRARY_PATH
13676 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13677 echo "${ECHO_T}$dynamic_linker" >&6; }
13678 test "$dynamic_linker" = no && can_build_shared=no
13680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13681 if test "$GCC" = yes; then
13682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13685 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13686 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13687 hardcode_action_CXX=
13688 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13689 test -n "$runpath_var_CXX" || \
13690 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13692 # We can hardcode non-existant directories.
13693 if test "$hardcode_direct_CXX" != no &&
13694 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13695 # have to relink, otherwise we might link with an installed library
13696 # when we should be linking with a yet-to-be-installed one
13697 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13698 test "$hardcode_minus_L_CXX" != no; then
13699 # Linking always hardcodes the temporary library directory.
13700 hardcode_action_CXX=relink
13702 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13703 hardcode_action_CXX=immediate
13706 # We cannot hardcode anything, or else we can only hardcode existing
13708 hardcode_action_CXX=unsupported
13710 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13711 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13713 if test "$hardcode_action_CXX" = relink; then
13714 # Fast installation is not supported
13715 enable_fast_install=no
13716 elif test "$shlibpath_overrides_runpath" = yes ||
13717 test "$enable_shared" = no; then
13718 # Fast installation is not necessary
13719 enable_fast_install=needless
13723 # The else clause should only fire when bootstrapping the
13724 # libtool distribution, otherwise you forgot to ship ltmain.sh
13725 # with your package, and you will get complaints that there are
13726 # no rules to generate ltmain.sh.
13727 if test -f "$ltmain"; then
13728 # See if we are running on zsh, and set the options which allow our commands through
13729 # without removal of \ escapes.
13730 if test -n "${ZSH_VERSION+set}" ; then
13731 setopt NO_GLOB_SUBST
13733 # Now quote all the things that may contain metacharacters while being
13734 # careful not to overquote the AC_SUBSTed values. We take copies of the
13735 # variables and quote the copies for generation of the libtool script.
13736 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13738 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13739 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13740 deplibs_check_method reload_flag reload_cmds need_locks \
13741 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13742 lt_cv_sys_global_symbol_to_c_name_address \
13743 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13744 old_postinstall_cmds old_postuninstall_cmds \
13748 lt_prog_compiler_wl_CXX \
13749 lt_prog_compiler_pic_CXX \
13750 lt_prog_compiler_static_CXX \
13751 lt_prog_compiler_no_builtin_flag_CXX \
13752 export_dynamic_flag_spec_CXX \
13753 thread_safe_flag_spec_CXX \
13754 whole_archive_flag_spec_CXX \
13755 enable_shared_with_static_runtimes_CXX \
13756 old_archive_cmds_CXX \
13757 old_archive_from_new_cmds_CXX \
13758 predep_objects_CXX \
13759 postdep_objects_CXX \
13762 compiler_lib_search_path_CXX \
13764 archive_expsym_cmds_CXX \
13765 postinstall_cmds_CXX \
13766 postuninstall_cmds_CXX \
13767 old_archive_from_expsyms_cmds_CXX \
13768 allow_undefined_flag_CXX \
13769 no_undefined_flag_CXX \
13770 export_symbols_cmds_CXX \
13771 hardcode_libdir_flag_spec_CXX \
13772 hardcode_libdir_flag_spec_ld_CXX \
13773 hardcode_libdir_separator_CXX \
13774 hardcode_automatic_CXX \
13776 module_expsym_cmds_CXX \
13777 lt_cv_prog_compiler_c_o_CXX \
13778 exclude_expsyms_CXX \
13779 include_expsyms_CXX; do
13782 old_archive_cmds_CXX | \
13783 old_archive_from_new_cmds_CXX | \
13784 archive_cmds_CXX | \
13785 archive_expsym_cmds_CXX | \
13786 module_cmds_CXX | \
13787 module_expsym_cmds_CXX | \
13788 old_archive_from_expsyms_cmds_CXX | \
13789 export_symbols_cmds_CXX | \
13790 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13791 postinstall_cmds | postuninstall_cmds | \
13792 old_postinstall_cmds | old_postuninstall_cmds | \
13793 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13794 # Double-quote double-evaled strings.
13795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13804 *'\$0 --fallback-echo"')
13805 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13811 cat <<__EOF__ >> "$cfgfile"
13812 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13814 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13816 # Shell to use when invoking shell scripts.
13819 # Whether or not to build shared libraries.
13820 build_libtool_libs=$enable_shared
13822 # Whether or not to build static libraries.
13823 build_old_libs=$enable_static
13825 # Whether or not to add -lc for building shared libraries.
13826 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13828 # Whether or not to disallow shared libs when runtime libs are static
13829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13831 # Whether or not to optimize for fast installation.
13832 fast_install=$enable_fast_install
13835 host_alias=$host_alias
13839 # The build system.
13840 build_alias=$build_alias
13844 # An echo program that does not interpret backslashes.
13849 AR_FLAGS=$lt_AR_FLAGS
13854 # LTCC compiler flags.
13855 LTCFLAGS=$lt_LTCFLAGS
13857 # A language-specific compiler.
13858 CC=$lt_compiler_CXX
13860 # Is the compiler the GNU C compiler?
13866 # The linker used to build libraries.
13869 # Whether we need hard or soft links.
13872 # A BSD-compatible nm program.
13875 # A symbol stripping program
13878 # Used to examine libraries when file_magic_cmd begins "file"
13879 MAGIC_CMD=$MAGIC_CMD
13881 # Used on cygwin: DLL creation program.
13884 # Used on cygwin: object dumper.
13887 # Used on cygwin: assembler.
13890 # The name of the directory that contains temporary libtool files.
13893 # How to create reloadable object files.
13894 reload_flag=$lt_reload_flag
13895 reload_cmds=$lt_reload_cmds
13897 # How to pass a linker flag through the compiler.
13898 wl=$lt_lt_prog_compiler_wl_CXX
13900 # Object file suffix (normally "o").
13901 objext="$ac_objext"
13903 # Old archive suffix (normally "a").
13906 # Shared library suffix (normally ".so").
13907 shrext_cmds='$shrext_cmds'
13909 # Executable file suffix (normally "").
13912 # Additional compiler flags for building library objects.
13913 pic_flag=$lt_lt_prog_compiler_pic_CXX
13916 # What is the maximum length of a command?
13917 max_cmd_len=$lt_cv_sys_max_cmd_len
13919 # Does compiler simultaneously support -c and -o options?
13920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13922 # Must we lock files when doing compilation?
13923 need_locks=$lt_need_locks
13925 # Do we need the lib prefix for modules?
13926 need_lib_prefix=$need_lib_prefix
13928 # Do we need a version for libraries?
13929 need_version=$need_version
13931 # Whether dlopen is supported.
13932 dlopen_support=$enable_dlopen
13934 # Whether dlopen of programs is supported.
13935 dlopen_self=$enable_dlopen_self
13937 # Whether dlopen of statically linked programs is supported.
13938 dlopen_self_static=$enable_dlopen_self_static
13940 # Compiler flag to prevent dynamic linking.
13941 link_static_flag=$lt_lt_prog_compiler_static_CXX
13943 # Compiler flag to turn off builtin functions.
13944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13946 # Compiler flag to allow reflexive dlopens.
13947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13949 # Compiler flag to generate shared objects directly from archives.
13950 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13952 # Compiler flag to generate thread-safe objects.
13953 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13955 # Library versioning type.
13956 version_type=$version_type
13958 # Format of library name prefix.
13959 libname_spec=$lt_libname_spec
13961 # List of archive names. First name is the real one, the rest are links.
13962 # The last name is the one that the linker finds with -lNAME.
13963 library_names_spec=$lt_library_names_spec
13965 # The coded name of the library, if different from the real name.
13966 soname_spec=$lt_soname_spec
13968 # Commands used to build and install an old-style archive.
13970 old_archive_cmds=$lt_old_archive_cmds_CXX
13971 old_postinstall_cmds=$lt_old_postinstall_cmds
13972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13974 # Create an old-style archive from a shared archive.
13975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13977 # Create a temporary old-style archive to link instead of a shared archive.
13978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13980 # Commands used to build and install a shared archive.
13981 archive_cmds=$lt_archive_cmds_CXX
13982 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13983 postinstall_cmds=$lt_postinstall_cmds
13984 postuninstall_cmds=$lt_postuninstall_cmds
13986 # Commands used to build a loadable module (assumed same as above if empty)
13987 module_cmds=$lt_module_cmds_CXX
13988 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13990 # Commands to strip libraries.
13991 old_striplib=$lt_old_striplib
13992 striplib=$lt_striplib
13994 # Dependencies to place before the objects being linked to create a
13996 predep_objects=$lt_predep_objects_CXX
13998 # Dependencies to place after the objects being linked to create a
14000 postdep_objects=$lt_postdep_objects_CXX
14002 # Dependencies to place before the objects being linked to create a
14004 predeps=$lt_predeps_CXX
14006 # Dependencies to place after the objects being linked to create a
14008 postdeps=$lt_postdeps_CXX
14010 # The library search path used internally by the compiler when linking
14011 # a shared library.
14012 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14014 # Method to check whether dependent libraries are shared objects.
14015 deplibs_check_method=$lt_deplibs_check_method
14017 # Command to use when deplibs_check_method == file_magic.
14018 file_magic_cmd=$lt_file_magic_cmd
14020 # Flag that allows shared libraries with undefined symbols to be built.
14021 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14023 # Flag that forces no undefined symbols.
14024 no_undefined_flag=$lt_no_undefined_flag_CXX
14026 # Commands used to finish a libtool library installation in a directory.
14027 finish_cmds=$lt_finish_cmds
14029 # Same as above, but a single script fragment to be evaled but not shown.
14030 finish_eval=$lt_finish_eval
14032 # Take the output of nm and produce a listing of raw symbols and C names.
14033 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14035 # Transform the output of nm in a proper C declaration
14036 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14038 # Transform the output of nm in a C name address pair
14039 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14041 # This is the shared library runtime path variable.
14042 runpath_var=$runpath_var
14044 # This is the shared library path variable.
14045 shlibpath_var=$shlibpath_var
14047 # Is shlibpath searched before the hard-coded library search path?
14048 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14050 # How to hardcode a shared library path into an executable.
14051 hardcode_action=$hardcode_action_CXX
14053 # Whether we should hardcode library paths into libraries.
14054 hardcode_into_libs=$hardcode_into_libs
14056 # Flag to hardcode \$libdir into a binary during linking.
14057 # This must work even if \$libdir does not exist.
14058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14060 # If ld is used when linking, flag to hardcode \$libdir into
14061 # a binary during linking. This must work even if \$libdir does
14063 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14065 # Whether we need a single -rpath flag with a separated argument.
14066 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14068 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14069 # resulting binary.
14070 hardcode_direct=$hardcode_direct_CXX
14072 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14073 # resulting binary.
14074 hardcode_minus_L=$hardcode_minus_L_CXX
14076 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14077 # the resulting binary.
14078 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14080 # Set to yes if building a shared library automatically hardcodes DIR into the library
14081 # and all subsequent libraries and executables linked against it.
14082 hardcode_automatic=$hardcode_automatic_CXX
14084 # Variables whose values should be saved in libtool wrapper scripts and
14085 # restored at relink time.
14086 variables_saved_for_relink="$variables_saved_for_relink"
14088 # Whether libtool must link a program against all its dependency libraries.
14089 link_all_deplibs=$link_all_deplibs_CXX
14091 # Compile-time system search path for libraries
14092 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14094 # Run-time system search path for libraries
14095 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14097 # Fix the shell variable \$srcfile for the compiler.
14098 fix_srcfile_path="$fix_srcfile_path_CXX"
14100 # Set to yes if exported symbols are required.
14101 always_export_symbols=$always_export_symbols_CXX
14103 # The commands to list exported symbols.
14104 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14106 # The commands to extract the exported symbol list from a shared archive.
14107 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14109 # Symbols that should not be listed in the preloaded symbols.
14110 exclude_expsyms=$lt_exclude_expsyms_CXX
14112 # Symbols that must always be exported.
14113 include_expsyms=$lt_include_expsyms_CXX
14115 # ### END LIBTOOL TAG CONFIG: $tagname
14121 # If there is no Makefile yet, we rely on a make rule to execute
14122 # `config.status --recheck' to rerun these tests and create the
14123 # libtool script then.
14124 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14125 if test -f "$ltmain_in"; then
14126 test -f Makefile && make "$ltmain"
14132 ac_cpp='$CPP $CPPFLAGS'
14133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14141 with_gnu_ldcxx=$with_gnu_ld
14142 with_gnu_ld=$lt_save_with_gnu_ld
14143 lt_cv_path_LDCXX=$lt_cv_path_LD
14144 lt_cv_path_LD=$lt_save_path_LD
14145 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14146 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14154 if test -n "$F77" && test "X$F77" != "Xno"; then
14157 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14158 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14159 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14162 archive_cmds_need_lc_F77=no
14163 allow_undefined_flag_F77=
14164 always_export_symbols_F77=no
14165 archive_expsym_cmds_F77=
14166 export_dynamic_flag_spec_F77=
14167 hardcode_direct_F77=no
14168 hardcode_libdir_flag_spec_F77=
14169 hardcode_libdir_flag_spec_ld_F77=
14170 hardcode_libdir_separator_F77=
14171 hardcode_minus_L_F77=no
14172 hardcode_automatic_F77=no
14174 module_expsym_cmds_F77=
14175 link_all_deplibs_F77=unknown
14176 old_archive_cmds_F77=$old_archive_cmds
14177 no_undefined_flag_F77=
14178 whole_archive_flag_spec_F77=
14179 enable_shared_with_static_runtimes_F77=no
14181 # Source file extension for f77 test sources.
14184 # Object file extension for compiled f77 test sources.
14188 # Code to be used in simple compile tests
14189 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14191 # Code to be used in simple link tests
14192 lt_simple_link_test_code=" program t\n end\n"
14194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14196 # If no C compiler was specified, use CC.
14199 # If no C compiler flags were specified, use CFLAGS.
14200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14202 # Allow CC to be a program name with arguments.
14206 # save warnings/boilerplate of simple test code
14207 ac_outfile=conftest.$ac_objext
14208 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14210 _lt_compiler_boilerplate=`cat conftest.err`
14213 ac_outfile=conftest.$ac_objext
14214 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14216 _lt_linker_boilerplate=`cat conftest.err`
14220 # Allow CC to be a program name with arguments.
14225 for cc_temp in $compiler""; do
14227 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14228 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14233 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14236 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14237 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14238 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14239 echo "${ECHO_T}$can_build_shared" >&6; }
14241 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14242 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14243 test "$can_build_shared" = "no" && enable_shared=no
14245 # On AIX, shared libraries and static libraries use the same namespace, and
14246 # are all built from PIC.
14249 test "$enable_shared" = yes && enable_static=no
14250 if test -n "$RANLIB"; then
14251 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14252 postinstall_cmds='$RANLIB $lib'
14256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14257 test "$enable_shared" = yes && enable_static=no
14261 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14262 echo "${ECHO_T}$enable_shared" >&6; }
14264 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14265 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14266 # Make sure either enable_shared or enable_static is yes.
14267 test "$enable_shared" = yes || enable_static=yes
14268 { echo "$as_me:$LINENO: result: $enable_static" >&5
14269 echo "${ECHO_T}$enable_static" >&6; }
14274 lt_prog_compiler_wl_F77=
14275 lt_prog_compiler_pic_F77=
14276 lt_prog_compiler_static_F77=
14278 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14279 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14281 if test "$GCC" = yes; then
14282 lt_prog_compiler_wl_F77='-Wl,'
14283 lt_prog_compiler_static_F77='-static'
14287 # All AIX code is PIC.
14288 if test "$host_cpu" = ia64; then
14289 # AIX 5 now supports IA64 processor
14290 lt_prog_compiler_static_F77='-Bstatic'
14295 # FIXME: we need at least 68020 code to build shared libraries, but
14296 # adding the `-m68020' flag to GCC prevents building anything better,
14298 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14301 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14302 # PIC is the default for these OSes.
14305 mingw* | pw32* | os2*)
14306 # This hack is so that the source file can tell whether it is being
14307 # built for inclusion in a dll (and should export symbols for example).
14308 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14311 darwin* | rhapsody*)
14312 # PIC is the default on this platform
14313 # Common symbols not allowed in MH_DYLIB files
14314 lt_prog_compiler_pic_F77='-fno-common'
14318 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14319 # Instead, we relocate shared libraries at runtime.
14323 # Just because we use GCC doesn't mean we suddenly get shared libraries
14324 # on systems that don't support them.
14325 lt_prog_compiler_can_build_shared_F77=no
14330 if test -d /usr/nec; then
14331 lt_prog_compiler_pic_F77=-Kconform_pic
14336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14337 # not for PA HP-UX.
14343 lt_prog_compiler_pic_F77='-fPIC'
14349 lt_prog_compiler_pic_F77='-fPIC'
14353 # PORTME Check for flag to pass linker flags through the system compiler.
14356 lt_prog_compiler_wl_F77='-Wl,'
14357 if test "$host_cpu" = ia64; then
14358 # AIX 5 now supports IA64 processor
14359 lt_prog_compiler_static_F77='-Bstatic'
14361 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14365 # PIC is the default on this platform
14366 # Common symbols not allowed in MH_DYLIB files
14367 case $cc_basename in
14369 lt_prog_compiler_pic_F77='-qnocommon'
14370 lt_prog_compiler_wl_F77='-Wl,'
14375 mingw* | pw32* | os2*)
14376 # This hack is so that the source file can tell whether it is being
14377 # built for inclusion in a dll (and should export symbols for example).
14378 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14381 hpux9* | hpux10* | hpux11*)
14382 lt_prog_compiler_wl_F77='-Wl,'
14383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14384 # not for PA HP-UX.
14390 lt_prog_compiler_pic_F77='+Z'
14393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14394 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14397 irix5* | irix6* | nonstopux*)
14398 lt_prog_compiler_wl_F77='-Wl,'
14399 # PIC (with -KPIC) is the default.
14400 lt_prog_compiler_static_F77='-non_shared'
14404 lt_prog_compiler_pic_F77='-KPIC'
14405 lt_prog_compiler_static_F77='-Bstatic'
14409 case $cc_basename in
14411 lt_prog_compiler_wl_F77='-Wl,'
14412 lt_prog_compiler_pic_F77='-KPIC'
14413 lt_prog_compiler_static_F77='-static'
14415 pgcc* | pgf77* | pgf90* | pgf95*)
14416 # Portland Group compilers (*not* the Pentium gcc compiler,
14417 # which looks to be a dead project)
14418 lt_prog_compiler_wl_F77='-Wl,'
14419 lt_prog_compiler_pic_F77='-fpic'
14420 lt_prog_compiler_static_F77='-Bstatic'
14423 lt_prog_compiler_wl_F77='-Wl,'
14424 # All Alpha code is PIC.
14425 lt_prog_compiler_static_F77='-non_shared'
14430 osf3* | osf4* | osf5*)
14431 lt_prog_compiler_wl_F77='-Wl,'
14432 # All OSF/1 code is PIC.
14433 lt_prog_compiler_static_F77='-non_shared'
14437 lt_prog_compiler_pic_F77='-KPIC'
14438 lt_prog_compiler_static_F77='-Bstatic'
14439 case $cc_basename in
14440 f77* | f90* | f95*)
14441 lt_prog_compiler_wl_F77='-Qoption ld ';;
14443 lt_prog_compiler_wl_F77='-Wl,';;
14448 lt_prog_compiler_wl_F77='-Qoption ld '
14449 lt_prog_compiler_pic_F77='-PIC'
14450 lt_prog_compiler_static_F77='-Bstatic'
14453 sysv4 | sysv4.2uw2* | sysv4.3*)
14454 lt_prog_compiler_wl_F77='-Wl,'
14455 lt_prog_compiler_pic_F77='-KPIC'
14456 lt_prog_compiler_static_F77='-Bstatic'
14460 if test -d /usr/nec ;then
14461 lt_prog_compiler_pic_F77='-Kconform_pic'
14462 lt_prog_compiler_static_F77='-Bstatic'
14466 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14467 lt_prog_compiler_wl_F77='-Wl,'
14468 lt_prog_compiler_pic_F77='-KPIC'
14469 lt_prog_compiler_static_F77='-Bstatic'
14473 lt_prog_compiler_wl_F77='-Wl,'
14474 lt_prog_compiler_can_build_shared_F77=no
14478 lt_prog_compiler_pic_F77='-pic'
14479 lt_prog_compiler_static_F77='-Bstatic'
14483 lt_prog_compiler_can_build_shared_F77=no
14488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14489 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14492 # Check to make sure the PIC flag actually works.
14494 if test -n "$lt_prog_compiler_pic_F77"; then
14496 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14497 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14498 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 lt_prog_compiler_pic_works_F77=no
14502 ac_outfile=conftest.$ac_objext
14503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14504 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14505 # Insert the option either (1) after the last *FLAGS variable, or
14506 # (2) before a word containing "conftest.", or (3) at the end.
14507 # Note that $ac_compile itself does not contain backslashes and begins
14508 # with a dollar sign (not a hyphen), so the echo should work correctly.
14509 # The option is referenced via a variable to avoid confusing sed.
14510 lt_compile=`echo "$ac_compile" | $SED \
14511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14513 -e 's:$: $lt_compiler_flag:'`
14514 (eval echo "\"\$as_me:14514: $lt_compile\"" >&5)
14515 (eval "$lt_compile" 2>conftest.err)
14517 cat conftest.err >&5
14518 echo "$as_me:14518: \$? = $ac_status" >&5
14519 if (exit $ac_status) && test -s "$ac_outfile"; then
14520 # The compiler can only warn and ignore the option if not recognized
14521 # So say no if there are warnings other than the usual output.
14522 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14525 lt_prog_compiler_pic_works_F77=yes
14531 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14532 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14534 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14535 case $lt_prog_compiler_pic_F77 in
14537 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14540 lt_prog_compiler_pic_F77=
14541 lt_prog_compiler_can_build_shared_F77=no
14546 # For platforms which do not support PIC, -DPIC is meaningless:
14548 lt_prog_compiler_pic_F77=
14551 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14556 # Check to make sure the static flag actually works.
14558 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14559 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14560 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14561 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 lt_prog_compiler_static_works_F77=no
14565 save_LDFLAGS="$LDFLAGS"
14566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14567 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14569 # The linker can only warn and ignore the option if not recognized
14570 # So say no if there are warnings
14571 if test -s conftest.err; then
14572 # Append any errors to the config.log.
14573 cat conftest.err 1>&5
14574 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14576 if diff conftest.exp conftest.er2 >/dev/null; then
14577 lt_prog_compiler_static_works_F77=yes
14580 lt_prog_compiler_static_works_F77=yes
14584 LDFLAGS="$save_LDFLAGS"
14587 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14588 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14590 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14593 lt_prog_compiler_static_F77=
14597 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14598 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14599 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 lt_cv_prog_compiler_c_o_F77=no
14603 $rm -r conftest 2>/dev/null
14607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14609 lt_compiler_flag="-o out/conftest2.$ac_objext"
14610 # Insert the option either (1) after the last *FLAGS variable, or
14611 # (2) before a word containing "conftest.", or (3) at the end.
14612 # Note that $ac_compile itself does not contain backslashes and begins
14613 # with a dollar sign (not a hyphen), so the echo should work correctly.
14614 lt_compile=`echo "$ac_compile" | $SED \
14615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14617 -e 's:$: $lt_compiler_flag:'`
14618 (eval echo "\"\$as_me:14618: $lt_compile\"" >&5)
14619 (eval "$lt_compile" 2>out/conftest.err)
14621 cat out/conftest.err >&5
14622 echo "$as_me:14622: \$? = $ac_status" >&5
14623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14625 # The compiler can only warn and ignore the option if not recognized
14626 # So say no if there are warnings
14627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14630 lt_cv_prog_compiler_c_o_F77=yes
14635 # SGI C++ compiler will create directory out/ii_files/ for
14636 # template instantiation
14637 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14638 $rm out/* && rmdir out
14644 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14645 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14648 hard_links="nottested"
14649 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14650 # do not overwrite the value of need_locks provided by the user
14651 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14652 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14657 ln conftest.a conftest.b 2>&5 || hard_links=no
14658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14659 { echo "$as_me:$LINENO: result: $hard_links" >&5
14660 echo "${ECHO_T}$hard_links" >&6; }
14661 if test "$hard_links" = no; then
14662 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14663 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14670 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14671 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14674 allow_undefined_flag_F77=
14675 enable_shared_with_static_runtimes_F77=no
14677 archive_expsym_cmds_F77=
14678 old_archive_From_new_cmds_F77=
14679 old_archive_from_expsyms_cmds_F77=
14680 export_dynamic_flag_spec_F77=
14681 whole_archive_flag_spec_F77=
14682 thread_safe_flag_spec_F77=
14683 hardcode_libdir_flag_spec_F77=
14684 hardcode_libdir_flag_spec_ld_F77=
14685 hardcode_libdir_separator_F77=
14686 hardcode_direct_F77=no
14687 hardcode_minus_L_F77=no
14688 hardcode_shlibpath_var_F77=unsupported
14689 link_all_deplibs_F77=unknown
14690 hardcode_automatic_F77=no
14692 module_expsym_cmds_F77=
14693 always_export_symbols_F77=no
14694 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14695 # include_expsyms should be a list of space-separated symbols to be *always*
14696 # included in the symbol list
14697 include_expsyms_F77=
14698 # exclude_expsyms can be an extended regexp of symbols to exclude
14699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14701 # as well as any symbol that contains `d'.
14702 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14704 # platforms (ab)use it in PIC code, but their linkers get confused if
14705 # the symbol is explicitly referenced. Since portable code cannot
14706 # rely on this symbol name, it's probably fine to never include it in
14707 # preloaded symbol tables.
14708 extract_expsyms_cmds=
14709 # Just being paranoid about ensuring that cc_basename is set.
14710 for cc_temp in $compiler""; do
14712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14718 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14721 cygwin* | mingw* | pw32*)
14722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14723 # When not using gcc, we currently assume that we are using
14724 # Microsoft Visual C++.
14725 if test "$GCC" != yes; then
14730 # we just hope/assume this is gcc and not c89 (= MSVC++)
14739 if test "$with_gnu_ld" = yes; then
14740 # If archive_cmds runs LD, not CC, wlarc should be empty
14743 # Set some defaults for GNU ld with shared library support. These
14744 # are reset later if shared libraries are not supported. Putting them
14745 # here allows them to be overridden if necessary.
14746 runpath_var=LD_RUN_PATH
14747 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14748 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14749 # ancient GNU ld didn't support --whole-archive et. al.
14750 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14751 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14753 whole_archive_flag_spec_F77=
14755 supports_anon_versioning=no
14756 case `$LD -v 2>/dev/null` in
14757 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14758 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14759 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14760 *\ 2.11.*) ;; # other 2.11 versions
14761 *) supports_anon_versioning=yes ;;
14764 # See if GNU ld supports shared libraries.
14766 aix3* | aix4* | aix5*)
14767 # On AIX/PPC, the GNU linker is very broken
14768 if test "$host_cpu" != ia64; then
14772 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14773 *** to be unable to reliably create shared libraries on AIX.
14774 *** Therefore, libtool is disabling shared libraries support. If you
14775 *** really care for shared libraries, you may want to modify your PATH
14776 *** so that a non-GNU linker is found, and then restart.
14783 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)'
14784 hardcode_libdir_flag_spec_F77='-L$libdir'
14785 hardcode_minus_L_F77=yes
14787 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14788 # that the semantics of dynamic libraries on AmigaOS, at least up
14789 # to version 4, is to share data among multiple programs linked
14790 # with the same dynamic library. Since this doesn't match the
14791 # behavior of shared libraries on other platforms, we can't use
14797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14798 allow_undefined_flag_F77=unsupported
14799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14800 # support --undefined. This deserves some investigation. FIXME
14801 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14807 cygwin* | mingw* | pw32*)
14808 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14809 # as there is no search path for DLLs.
14810 hardcode_libdir_flag_spec_F77='-L$libdir'
14811 allow_undefined_flag_F77=unsupported
14812 always_export_symbols_F77=no
14813 enable_shared_with_static_runtimes_F77=yes
14814 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14816 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14817 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14818 # If the export-symbols file already is a .def file (1st line
14819 # is EXPORTS), use it as is; otherwise, prepend...
14820 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14821 cp $export_symbols $output_objdir/$soname.def;
14823 echo EXPORTS > $output_objdir/$soname.def;
14824 cat $export_symbols >> $output_objdir/$soname.def;
14826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14833 hardcode_direct_F77=no
14834 hardcode_shlibpath_var_F77=no
14835 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14836 export_dynamic_flag_spec_F77='${wl}-E'
14837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14838 # Instead, shared libraries are loaded at an image base (0x10000000 by
14839 # default) and relocated if they conflict, which is a slow very memory
14840 # consuming and fragmenting process. To avoid this, we pick a random,
14841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14842 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14843 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'
14844 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'
14848 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14850 case $cc_basename,$host_cpu in
14851 pgcc*) # Portland Group C compiler
14852 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'
14853 tmp_addflag=' $pic_flag'
14855 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14856 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'
14857 tmp_addflag=' $pic_flag -Mnomain' ;;
14858 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14859 tmp_addflag=' -i_dynamic' ;;
14860 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14861 tmp_addflag=' -i_dynamic -nofor_main' ;;
14862 ifc* | ifort*) # Intel Fortran compiler
14863 tmp_addflag=' -nofor_main' ;;
14865 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14867 if test $supports_anon_versioning = yes; then
14868 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14870 $echo "local: *; };" >> $output_objdir/$libname.ver~
14871 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14883 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14884 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14889 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14893 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14894 *** create shared libraries on Solaris systems. Therefore, libtool
14895 *** is disabling shared libraries support. We urge you to upgrade GNU
14896 *** binutils to release 2.9.1 or newer. Another option is to modify
14897 *** your PATH or compiler configuration so that the native linker is
14898 *** used, and then restart.
14901 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14902 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14903 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14910 case `$LD -v 2>&1` in
14911 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14915 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14916 *** reliably create shared libraries on SCO systems. Therefore, libtool
14917 *** is disabling shared libraries support. We urge you to upgrade GNU
14918 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14919 *** your PATH or compiler configuration so that the native linker is
14920 *** used, and then restart.
14925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14926 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14927 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14928 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14937 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14939 hardcode_direct_F77=yes
14940 hardcode_shlibpath_var_F77=no
14944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14953 if test "$ld_shlibs_F77" = no; then
14955 hardcode_libdir_flag_spec_F77=
14956 export_dynamic_flag_spec_F77=
14957 whole_archive_flag_spec_F77=
14960 # PORTME fill in a description of your system's linker (not GNU ld)
14963 allow_undefined_flag_F77=unsupported
14964 always_export_symbols_F77=yes
14965 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'
14966 # Note: this linker hardcodes the directories in LIBPATH if there
14967 # are no directories specified by -L.
14968 hardcode_minus_L_F77=yes
14969 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14970 # Neither direct hardcoding nor static linking is supported with a
14972 hardcode_direct_F77=unsupported
14977 if test "$host_cpu" = ia64; then
14978 # On IA64, the linker does run time linking by default, so we don't
14979 # have to do anything special.
14980 aix_use_runtimelinking=no
14981 exp_sym_flag='-Bexport'
14984 # If we're using GNU nm, then we don't want the "-C" option.
14985 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14986 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14987 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'
14989 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'
14991 aix_use_runtimelinking=no
14993 # Test if we are trying to use run time linking or normal
14994 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14995 # need to do runtime linking.
14996 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14997 for ld_flag in $LDFLAGS; do
14998 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14999 aix_use_runtimelinking=yes
15006 exp_sym_flag='-bexport'
15007 no_entry_flag='-bnoentry'
15010 # When large executables or shared objects are built, AIX ld can
15011 # have problems creating the table of contents. If linking a library
15012 # or program results in "error TOC overflow" add -mminimal-toc to
15013 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15014 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15016 archive_cmds_F77=''
15017 hardcode_direct_F77=yes
15018 hardcode_libdir_separator_F77=':'
15019 link_all_deplibs_F77=yes
15021 if test "$GCC" = yes; then
15022 case $host_os in aix4.[012]|aix4.[012].*)
15023 # We only want to do this on AIX 4.2 and lower, the check
15024 # below for broken collect2 doesn't work under 4.3+
15025 collect2name=`${CC} -print-prog-name=collect2`
15026 if test -f "$collect2name" && \
15027 strings "$collect2name" | grep resolve_lib_name >/dev/null
15029 # We have reworked collect2
15030 hardcode_direct_F77=yes
15032 # We have old collect2
15033 hardcode_direct_F77=unsupported
15034 # It fails to find uninstalled libraries when the uninstalled
15035 # path is not listed in the libpath. Setting hardcode_minus_L
15036 # to unsupported forces relinking
15037 hardcode_minus_L_F77=yes
15038 hardcode_libdir_flag_spec_F77='-L$libdir'
15039 hardcode_libdir_separator_F77=
15043 shared_flag='-shared'
15044 if test "$aix_use_runtimelinking" = yes; then
15045 shared_flag="$shared_flag "'${wl}-G'
15049 if test "$host_cpu" = ia64; then
15050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15051 # chokes on -Wl,-G. The following line is correct:
15054 if test "$aix_use_runtimelinking" = yes; then
15055 shared_flag='${wl}-G'
15057 shared_flag='${wl}-bM:SRE'
15062 # It seems that -bexpall does not export symbols beginning with
15063 # underscore (_), so it is better to generate a list of symbols to export.
15064 always_export_symbols_F77=yes
15065 if test "$aix_use_runtimelinking" = yes; then
15066 # Warning - without using the other runtime loading flags (-brtl),
15067 # -berok will link without error, but may produce a broken library.
15068 allow_undefined_flag_F77='-berok'
15069 # Determine the default libpath from the value encoded in an empty executable.
15070 cat >conftest.$ac_ext <<_ACEOF
15075 rm -f conftest.$ac_objext conftest$ac_exeext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15077 (eval $ac_link) 2>conftest.er1
15079 grep -v '^ *+' conftest.er1 >conftest.err
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -z "$ac_f77_werror_flag"
15085 || test ! -s conftest.err'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest$ac_exeext'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15100 # Check for a 64-bit object if we didn't find anything.
15101 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; }
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15110 rm -f conftest.err conftest.$ac_objext \
15111 conftest$ac_exeext conftest.$ac_ext
15112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15114 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15115 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"
15117 if test "$host_cpu" = ia64; then
15118 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15119 allow_undefined_flag_F77="-z nodefs"
15120 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"
15122 # Determine the default libpath from the value encoded in an empty executable.
15123 cat >conftest.$ac_ext <<_ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130 (eval $ac_link) 2>conftest.er1
15132 grep -v '^ *+' conftest.er1 >conftest.err
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try='test -z "$ac_f77_werror_flag"
15138 || test ! -s conftest.err'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15153 # Check for a 64-bit object if we didn't find anything.
15154 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; }
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15163 rm -f conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
15165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15167 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15168 # Warning - without using the other run time loading flags,
15169 # -berok will link without error, but may produce a broken library.
15170 no_undefined_flag_F77=' ${wl}-bernotok'
15171 allow_undefined_flag_F77=' ${wl}-berok'
15172 # Exported symbols can be pulled into shared objects from archives
15173 whole_archive_flag_spec_F77='$convenience'
15174 archive_cmds_need_lc_F77=yes
15175 # This is similar to how AIX traditionally builds its shared libraries.
15176 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'
15182 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)'
15183 hardcode_libdir_flag_spec_F77='-L$libdir'
15184 hardcode_minus_L_F77=yes
15185 # see comment about different semantics on the GNU ld section
15190 export_dynamic_flag_spec_F77=-rdynamic
15193 cygwin* | mingw* | pw32*)
15194 # When not using gcc, we currently assume that we are using
15195 # Microsoft Visual C++.
15196 # hardcode_libdir_flag_spec is actually meaningless, as there is
15197 # no search path for DLLs.
15198 hardcode_libdir_flag_spec_F77=' '
15199 allow_undefined_flag_F77=unsupported
15200 # Tell ltmain to make .lib files, not .a files.
15202 # Tell ltmain to make .dll files, not .so files.
15204 # FIXME: Setting linknames here is a bad hack.
15205 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15206 # The linker will automatically build a .lib file if we build a DLL.
15207 old_archive_From_new_cmds_F77='true'
15208 # FIXME: Should let the user specify the lib program.
15209 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15210 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15211 enable_shared_with_static_runtimes_F77=yes
15214 darwin* | rhapsody*)
15216 rhapsody* | darwin1.[012])
15217 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15220 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15221 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15223 case ${MACOSX_DEPLOYMENT_TARGET} in
15225 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15228 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15234 archive_cmds_need_lc_F77=no
15235 hardcode_direct_F77=no
15236 hardcode_automatic_F77=yes
15237 hardcode_shlibpath_var_F77=unsupported
15238 whole_archive_flag_spec_F77=''
15239 link_all_deplibs_F77=yes
15240 if test "$GCC" = yes ; then
15241 output_verbose_link_cmd='echo'
15242 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15243 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15244 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15245 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}'
15246 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}'
15248 case $cc_basename in
15250 output_verbose_link_cmd='echo'
15251 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15252 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15253 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15254 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}'
15255 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}'
15265 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15266 hardcode_libdir_flag_spec_F77='-L$libdir'
15267 hardcode_shlibpath_var_F77=no
15274 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15275 # support. Future versions do this automatically, but an explicit c++rt0.o
15276 # does not break anything, and helps significantly (at the cost of a little
15279 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15280 hardcode_libdir_flag_spec_F77='-R$libdir'
15281 hardcode_direct_F77=yes
15282 hardcode_shlibpath_var_F77=no
15285 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15287 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15288 hardcode_direct_F77=yes
15289 hardcode_minus_L_F77=yes
15290 hardcode_shlibpath_var_F77=no
15293 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15294 freebsd* | kfreebsd*-gnu | dragonfly*)
15295 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15296 hardcode_libdir_flag_spec_F77='-R$libdir'
15297 hardcode_direct_F77=yes
15298 hardcode_shlibpath_var_F77=no
15302 if test "$GCC" = yes; then
15303 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'
15305 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'
15307 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15308 hardcode_libdir_separator_F77=:
15309 hardcode_direct_F77=yes
15311 # hardcode_minus_L: Not really in the search PATH,
15312 # but as the default location of the library.
15313 hardcode_minus_L_F77=yes
15314 export_dynamic_flag_spec_F77='${wl}-E'
15318 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15319 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15321 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15323 if test "$with_gnu_ld" = no; then
15324 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15325 hardcode_libdir_separator_F77=:
15327 hardcode_direct_F77=yes
15328 export_dynamic_flag_spec_F77='${wl}-E'
15330 # hardcode_minus_L: Not really in the search PATH,
15331 # but as the default location of the library.
15332 hardcode_minus_L_F77=yes
15337 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15340 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15343 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15346 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15352 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15355 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15358 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15362 if test "$with_gnu_ld" = no; then
15363 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15364 hardcode_libdir_separator_F77=:
15368 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15369 hardcode_direct_F77=no
15370 hardcode_shlibpath_var_F77=no
15373 hardcode_direct_F77=yes
15374 export_dynamic_flag_spec_F77='${wl}-E'
15376 # hardcode_minus_L: Not really in the search PATH,
15377 # but as the default location of the library.
15378 hardcode_minus_L_F77=yes
15384 irix5* | irix6* | nonstopux*)
15385 if test "$GCC" = yes; then
15386 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'
15388 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'
15389 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15391 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15392 hardcode_libdir_separator_F77=:
15393 link_all_deplibs_F77=yes
15397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15398 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15400 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15402 hardcode_libdir_flag_spec_F77='-R$libdir'
15403 hardcode_direct_F77=yes
15404 hardcode_shlibpath_var_F77=no
15408 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15409 hardcode_direct_F77=yes
15410 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15411 hardcode_libdir_separator_F77=:
15412 hardcode_shlibpath_var_F77=no
15416 hardcode_direct_F77=yes
15417 hardcode_shlibpath_var_F77=no
15418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15419 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15420 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15421 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15422 export_dynamic_flag_spec_F77='${wl}-E'
15425 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15426 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15427 hardcode_libdir_flag_spec_F77='-R$libdir'
15430 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15431 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15438 hardcode_libdir_flag_spec_F77='-L$libdir'
15439 hardcode_minus_L_F77=yes
15440 allow_undefined_flag_F77=unsupported
15441 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'
15442 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15446 if test "$GCC" = yes; then
15447 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15448 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'
15450 allow_undefined_flag_F77=' -expect_unresolved \*'
15451 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'
15453 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15454 hardcode_libdir_separator_F77=:
15457 osf4* | osf5*) # as osf3* with the addition of -msym flag
15458 if test "$GCC" = yes; then
15459 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15460 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'
15461 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15463 allow_undefined_flag_F77=' -expect_unresolved \*'
15464 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'
15465 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~
15466 $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'
15468 # Both c and cxx compiler support -rpath directly
15469 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15471 hardcode_libdir_separator_F77=:
15475 no_undefined_flag_F77=' -z text'
15476 if test "$GCC" = yes; then
15478 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15479 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15480 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15483 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15487 hardcode_libdir_flag_spec_F77='-R$libdir'
15488 hardcode_shlibpath_var_F77=no
15490 solaris2.[0-5] | solaris2.[0-5].*) ;;
15492 # The compiler driver will combine linker options so we
15493 # cannot just pass the convience library names through
15494 # without $wl, iff we do not link with $LD.
15495 # Luckily, gcc supports the same syntax we need for Sun Studio.
15496 # Supported since Solaris 2.6 (maybe 2.5.1?)
15499 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15501 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' ;;
15504 link_all_deplibs_F77=yes
15508 if test "x$host_vendor" = xsequent; then
15509 # Use $CC to link under sequent, because it throws in some extra .o
15510 # files that make .init and .fini sections work.
15511 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15513 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15515 hardcode_libdir_flag_spec_F77='-L$libdir'
15516 hardcode_direct_F77=yes
15517 hardcode_minus_L_F77=yes
15518 hardcode_shlibpath_var_F77=no
15522 case $host_vendor in
15524 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15525 hardcode_direct_F77=yes # is this really true???
15528 ## LD is ld it makes a PLAMLIB
15529 ## CC just makes a GrossModule.
15530 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15531 reload_cmds_F77='$CC -r -o $output$reload_objs'
15532 hardcode_direct_F77=no
15535 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15536 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15539 runpath_var='LD_RUN_PATH'
15540 hardcode_shlibpath_var_F77=no
15544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_shlibpath_var_F77=no
15546 export_dynamic_flag_spec_F77='-Bexport'
15550 if test -d /usr/nec; then
15551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_shlibpath_var_F77=no
15553 runpath_var=LD_RUN_PATH
15554 hardcode_runpath_var=yes
15559 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15560 no_undefined_flag_F77='${wl}-z,text'
15561 archive_cmds_need_lc_F77=no
15562 hardcode_shlibpath_var_F77=no
15563 runpath_var='LD_RUN_PATH'
15565 if test "$GCC" = yes; then
15566 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15567 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15569 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15570 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15574 sysv5* | sco3.2v5* | sco5v6*)
15575 # Note: We can NOT use -z defs as we might desire, because we do not
15576 # link with -lc, and that would cause any symbols used from libc to
15577 # always be unresolved, which means just about no library would
15578 # ever link correctly. If we're not using GNU ld we use -z text
15579 # though, which does catch some bad symbols but isn't as heavy-handed
15581 no_undefined_flag_F77='${wl}-z,text'
15582 allow_undefined_flag_F77='${wl}-z,nodefs'
15583 archive_cmds_need_lc_F77=no
15584 hardcode_shlibpath_var_F77=no
15585 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15586 hardcode_libdir_separator_F77=':'
15587 link_all_deplibs_F77=yes
15588 export_dynamic_flag_spec_F77='${wl}-Bexport'
15589 runpath_var='LD_RUN_PATH'
15591 if test "$GCC" = yes; then
15592 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15595 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15602 hardcode_libdir_flag_spec_F77='-L$libdir'
15603 hardcode_shlibpath_var_F77=no
15612 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15613 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15614 test "$ld_shlibs_F77" = no && can_build_shared=no
15617 # Do we need to explicitly link libc?
15619 case "x$archive_cmds_need_lc_F77" in
15621 # Assume -lc should be added
15622 archive_cmds_need_lc_F77=yes
15624 if test "$enable_shared" = yes && test "$GCC" = yes; then
15625 case $archive_cmds_F77 in
15627 # FIXME: we may have to deal with multi-command sequences.
15630 # Test whether the compiler implicitly links with -lc since on some
15631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15632 # to ld, don't add -lc before -lgcc.
15633 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15634 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15639 (eval $ac_compile) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } 2>conftest.err; then
15645 libobjs=conftest.$ac_objext
15647 wl=$lt_prog_compiler_wl_F77
15648 pic_flag=$lt_prog_compiler_pic_F77
15654 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15655 allow_undefined_flag_F77=
15656 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15657 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }
15662 archive_cmds_need_lc_F77=no
15664 archive_cmds_need_lc_F77=yes
15666 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15668 cat conftest.err 1>&5
15671 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15672 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15679 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15680 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15681 library_names_spec=
15682 libname_spec='lib$name'
15686 postuninstall_cmds=
15690 shlibpath_overrides_runpath=unknown
15692 dynamic_linker="$host_os ld.so"
15693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15694 if test "$GCC" = yes; then
15695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15696 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15697 # if the path contains ";" then we assume it to be the separator
15698 # otherwise default to the standard path separator (i.e. ":") - it is
15699 # assumed that no part of a normal pathname contains ";" but that should
15700 # okay in the real world where ";" in dirpaths is itself problematic.
15701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15708 need_lib_prefix=unknown
15709 hardcode_into_libs=no
15711 # when you set need_version to no, make sure it does not cause -set_version
15712 # flags to be left without arguments
15713 need_version=unknown
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15719 shlibpath_var=LIBPATH
15721 # AIX 3 has no versioning support, so we append a major version to the name.
15722 soname_spec='${libname}${release}${shared_ext}$major'
15729 hardcode_into_libs=yes
15730 if test "$host_cpu" = ia64; then
15731 # AIX 5 supports IA64
15732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15733 shlibpath_var=LD_LIBRARY_PATH
15735 # With GCC up to 2.95.x, collect2 would create an import file
15736 # for dependence libraries. The import file would start with
15737 # the line `#! .'. This would cause the generated library to
15738 # depend on `.', always an invalid library. This was fixed in
15739 # development snapshots of GCC prior to 3.0.
15741 aix4 | aix4.[01] | aix4.[01].*)
15742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15747 can_build_shared=no
15751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15752 # soname into executable. Probably we can add versioning support to
15753 # collect2, so additional links can be useful in future.
15754 if test "$aix_use_runtimelinking" = yes; then
15755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15756 # instead of lib<name>.a to let people know that these are not
15757 # typical AIX shared libraries.
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760 # We preserve .a as extension for shared libraries through AIX4.2
15761 # and later when we are not doing run time linking.
15762 library_names_spec='${libname}${release}.a $libname.a'
15763 soname_spec='${libname}${release}${shared_ext}$major'
15765 shlibpath_var=LIBPATH
15770 library_names_spec='$libname.ixlibrary $libname.a'
15771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15772 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'
15776 library_names_spec='${libname}${shared_ext}'
15777 dynamic_linker="$host_os ld.so"
15778 shlibpath_var=LIBRARY_PATH
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
15786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15790 # the default ld.so.conf also contains /usr/contrib/lib and
15791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15792 # libtool to hard-code these into programs
15795 cygwin* | mingw* | pw32*)
15796 version_type=windows
15801 case $GCC,$host_os in
15802 yes,cygwin* | yes,mingw* | yes,pw32*)
15803 library_names_spec='$libname.dll.a'
15804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15805 postinstall_cmds='base_file=`basename \${file}`~
15806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15807 dldir=$destdir/`dirname \$dlpath`~
15808 test -d \$dldir || mkdir -p \$dldir~
15809 $install_prog $dir/$dlname \$dldir/$dlname~
15810 chmod a+x \$dldir/$dlname'
15811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15812 dlpath=$dir/\$dldll~
15814 shlibpath_overrides_runpath=yes
15818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15820 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15823 # MinGW DLLs use traditional 'lib' prefix
15824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15826 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15827 # It is most probably a Windows format PATH printed by
15828 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15829 # path with ; separators, and with drive letters. We can handle the
15830 # drive letters (cygwin fileutils understands them), so leave them,
15831 # especially as we might pass files found there to a mingw objdump,
15832 # which wouldn't understand a cygwinified path. Ahh.
15833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15839 # pw32 DLLs use 'pw' prefix rather than 'lib'
15840 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15846 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15849 dynamic_linker='Win32 ld.exe'
15850 # FIXME: first we should search . and the directory the executable is in
15854 darwin* | rhapsody*)
15855 dynamic_linker="$host_os dyld"
15856 version_type=darwin
15859 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15860 soname_spec='${libname}${release}${major}$shared_ext'
15861 shlibpath_overrides_runpath=yes
15862 shlibpath_var=DYLD_LIBRARY_PATH
15863 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15864 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15865 if test "$GCC" = yes; then
15866 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"`
15868 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 shlibpath_var=LD_LIBRARY_PATH
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 shlibpath_overrides_runpath=no
15894 hardcode_into_libs=yes
15895 dynamic_linker='GNU ld.so'
15898 freebsd* | dragonfly*)
15899 # DragonFly does not have aout. When/if they implement a new
15900 # versioning mechanism, adjust this.
15901 if test -x /usr/bin/objformat; then
15902 objformat=`/usr/bin/objformat`
15905 freebsd[123]*) objformat=aout ;;
15906 *) objformat=elf ;;
15909 version_type=freebsd-$objformat
15910 case $version_type in
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15921 shlibpath_var=LD_LIBRARY_PATH
15924 shlibpath_overrides_runpath=yes
15926 freebsd3.[01]* | freebsdelf3.[01]*)
15927 shlibpath_overrides_runpath=yes
15928 hardcode_into_libs=yes
15930 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15931 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15932 shlibpath_overrides_runpath=no
15933 hardcode_into_libs=yes
15935 freebsd*) # from 4.6 on
15936 shlibpath_overrides_runpath=yes
15937 hardcode_into_libs=yes
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 hardcode_into_libs=yes
15952 hpux9* | hpux10* | hpux11*)
15953 # Give a soname corresponding to the major version so that dld.sl refuses to
15954 # link against other versions.
15961 hardcode_into_libs=yes
15962 dynamic_linker="$host_os dld.so"
15963 shlibpath_var=LD_LIBRARY_PATH
15964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15966 soname_spec='${libname}${release}${shared_ext}$major'
15967 if test "X$HPUX_IA64_MODE" = X32; then
15968 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15970 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15976 hardcode_into_libs=yes
15977 dynamic_linker="$host_os dld.sl"
15978 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981 soname_spec='${libname}${release}${shared_ext}$major'
15982 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15987 dynamic_linker="$host_os dld.sl"
15988 shlibpath_var=SHLIB_PATH
15989 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991 soname_spec='${libname}${release}${shared_ext}$major'
15994 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15995 postinstall_cmds='chmod 555 $lib'
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16003 soname_spec='${libname}${release}${shared_ext}$major'
16004 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=no
16007 hardcode_into_libs=yes
16010 irix5* | irix6* | nonstopux*)
16012 nonstopux*) version_type=nonstopux ;;
16014 if test "$lt_cv_prog_gnu_ld" = yes; then
16022 soname_spec='${libname}${release}${shared_ext}$major'
16023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16025 irix5* | nonstopux*)
16026 libsuff= shlibsuff=
16029 case $LD in # libtool.m4 will add one of these switches to LD
16030 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16031 libsuff= shlibsuff= libmagic=32-bit;;
16032 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16033 libsuff=32 shlibsuff=N32 libmagic=N32;;
16034 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16035 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16036 *) libsuff= shlibsuff= libmagic=never-match;;
16040 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16041 shlibpath_overrides_runpath=no
16042 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16043 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16044 hardcode_into_libs=yes
16047 # No shared lib support for Linux oldld, aout, or coff.
16048 linux*oldld* | linux*aout* | linux*coff*)
16052 # This must be Linux ELF.
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 soname_spec='${libname}${release}${shared_ext}$major'
16059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 shlibpath_overrides_runpath=no
16062 # This implies no fast_install, which is unacceptable.
16063 # Some rework will be needed to allow for fast_install
16064 # before this can be enabled.
16065 hardcode_into_libs=yes
16067 # Append ld.so.conf contents to the search path
16068 if test -f /etc/ld.so.conf; then
16069 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' ' '`
16070 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16073 # We used to test for /lib/ld.so.1 and disable shared libraries on
16074 # powerpc, because MkLinux only supported shared libraries with the
16075 # GNU dynamic linker. Since this was broken with cross compilers,
16076 # most powerpc-linux boxes support dynamic linking these days and
16077 # people can always --disable-shared, the test was removed, and we
16078 # assume the GNU/Linux dynamic linker is in use.
16079 dynamic_linker='GNU/Linux ld.so'
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 shlibpath_overrides_runpath=no
16090 hardcode_into_libs=yes
16091 dynamic_linker='GNU ld.so'
16098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16101 dynamic_linker='NetBSD (a.out) ld.so'
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 dynamic_linker='NetBSD ld.elf_so'
16107 shlibpath_var=LD_LIBRARY_PATH
16108 shlibpath_overrides_runpath=yes
16109 hardcode_into_libs=yes
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=yes
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=yes
16131 sys_lib_dlsearch_path_spec="/usr/lib"
16133 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16135 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16136 *) need_version=no ;;
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16140 shlibpath_var=LD_LIBRARY_PATH
16141 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16143 openbsd2.[89] | openbsd2.[89].*)
16144 shlibpath_overrides_runpath=no
16147 shlibpath_overrides_runpath=yes
16151 shlibpath_overrides_runpath=yes
16156 libname_spec='$name'
16159 library_names_spec='$libname${shared_ext} $libname.a'
16160 dynamic_linker='OS/2 ld.exe'
16161 shlibpath_var=LIBPATH
16164 osf3* | osf4* | osf5*)
16168 soname_spec='${libname}${release}${shared_ext}$major'
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16172 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180 soname_spec='${libname}${release}${shared_ext}$major'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 shlibpath_overrides_runpath=yes
16183 hardcode_into_libs=yes
16184 # ldd complains unless libraries are executable
16185 postinstall_cmds='chmod +x $lib'
16190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16191 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16192 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=yes
16194 if test "$with_gnu_ld" = yes; then
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203 soname_spec='${libname}${release}${shared_ext}$major'
16204 shlibpath_var=LD_LIBRARY_PATH
16205 case $host_vendor in
16207 shlibpath_overrides_runpath=no
16209 export_dynamic_flag_spec='${wl}-Blargedynsym'
16210 runpath_var=LD_RUN_PATH
16218 shlibpath_overrides_runpath=no
16219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16225 if test -d /usr/nec ;then
16227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16228 soname_spec='$libname${shared_ext}.$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16234 version_type=freebsd-elf
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 hardcode_into_libs=yes
16241 if test "$with_gnu_ld" = yes; then
16242 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16243 shlibpath_overrides_runpath=no
16245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16246 shlibpath_overrides_runpath=yes
16249 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16253 sys_lib_dlsearch_path_spec='/usr/lib'
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 shlibpath_var=LD_LIBRARY_PATH
16267 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16268 echo "${ECHO_T}$dynamic_linker" >&6; }
16269 test "$dynamic_linker" = no && can_build_shared=no
16271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16272 if test "$GCC" = yes; then
16273 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16276 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16277 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16278 hardcode_action_F77=
16279 if test -n "$hardcode_libdir_flag_spec_F77" || \
16280 test -n "$runpath_var_F77" || \
16281 test "X$hardcode_automatic_F77" = "Xyes" ; then
16283 # We can hardcode non-existant directories.
16284 if test "$hardcode_direct_F77" != no &&
16285 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16286 # have to relink, otherwise we might link with an installed library
16287 # when we should be linking with a yet-to-be-installed one
16288 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16289 test "$hardcode_minus_L_F77" != no; then
16290 # Linking always hardcodes the temporary library directory.
16291 hardcode_action_F77=relink
16293 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16294 hardcode_action_F77=immediate
16297 # We cannot hardcode anything, or else we can only hardcode existing
16299 hardcode_action_F77=unsupported
16301 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16302 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16304 if test "$hardcode_action_F77" = relink; then
16305 # Fast installation is not supported
16306 enable_fast_install=no
16307 elif test "$shlibpath_overrides_runpath" = yes ||
16308 test "$enable_shared" = no; then
16309 # Fast installation is not necessary
16310 enable_fast_install=needless
16314 # The else clause should only fire when bootstrapping the
16315 # libtool distribution, otherwise you forgot to ship ltmain.sh
16316 # with your package, and you will get complaints that there are
16317 # no rules to generate ltmain.sh.
16318 if test -f "$ltmain"; then
16319 # See if we are running on zsh, and set the options which allow our commands through
16320 # without removal of \ escapes.
16321 if test -n "${ZSH_VERSION+set}" ; then
16322 setopt NO_GLOB_SUBST
16324 # Now quote all the things that may contain metacharacters while being
16325 # careful not to overquote the AC_SUBSTed values. We take copies of the
16326 # variables and quote the copies for generation of the libtool script.
16327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16331 deplibs_check_method reload_flag reload_cmds need_locks \
16332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16333 lt_cv_sys_global_symbol_to_c_name_address \
16334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16335 old_postinstall_cmds old_postuninstall_cmds \
16339 lt_prog_compiler_wl_F77 \
16340 lt_prog_compiler_pic_F77 \
16341 lt_prog_compiler_static_F77 \
16342 lt_prog_compiler_no_builtin_flag_F77 \
16343 export_dynamic_flag_spec_F77 \
16344 thread_safe_flag_spec_F77 \
16345 whole_archive_flag_spec_F77 \
16346 enable_shared_with_static_runtimes_F77 \
16347 old_archive_cmds_F77 \
16348 old_archive_from_new_cmds_F77 \
16349 predep_objects_F77 \
16350 postdep_objects_F77 \
16353 compiler_lib_search_path_F77 \
16355 archive_expsym_cmds_F77 \
16356 postinstall_cmds_F77 \
16357 postuninstall_cmds_F77 \
16358 old_archive_from_expsyms_cmds_F77 \
16359 allow_undefined_flag_F77 \
16360 no_undefined_flag_F77 \
16361 export_symbols_cmds_F77 \
16362 hardcode_libdir_flag_spec_F77 \
16363 hardcode_libdir_flag_spec_ld_F77 \
16364 hardcode_libdir_separator_F77 \
16365 hardcode_automatic_F77 \
16367 module_expsym_cmds_F77 \
16368 lt_cv_prog_compiler_c_o_F77 \
16369 exclude_expsyms_F77 \
16370 include_expsyms_F77; do
16373 old_archive_cmds_F77 | \
16374 old_archive_from_new_cmds_F77 | \
16375 archive_cmds_F77 | \
16376 archive_expsym_cmds_F77 | \
16377 module_cmds_F77 | \
16378 module_expsym_cmds_F77 | \
16379 old_archive_from_expsyms_cmds_F77 | \
16380 export_symbols_cmds_F77 | \
16381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16382 postinstall_cmds | postuninstall_cmds | \
16383 old_postinstall_cmds | old_postuninstall_cmds | \
16384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16385 # Double-quote double-evaled strings.
16386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16395 *'\$0 --fallback-echo"')
16396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16402 cat <<__EOF__ >> "$cfgfile"
16403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16407 # Shell to use when invoking shell scripts.
16410 # Whether or not to build shared libraries.
16411 build_libtool_libs=$enable_shared
16413 # Whether or not to build static libraries.
16414 build_old_libs=$enable_static
16416 # Whether or not to add -lc for building shared libraries.
16417 build_libtool_need_lc=$archive_cmds_need_lc_F77
16419 # Whether or not to disallow shared libs when runtime libs are static
16420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16422 # Whether or not to optimize for fast installation.
16423 fast_install=$enable_fast_install
16426 host_alias=$host_alias
16430 # The build system.
16431 build_alias=$build_alias
16435 # An echo program that does not interpret backslashes.
16440 AR_FLAGS=$lt_AR_FLAGS
16445 # LTCC compiler flags.
16446 LTCFLAGS=$lt_LTCFLAGS
16448 # A language-specific compiler.
16449 CC=$lt_compiler_F77
16451 # Is the compiler the GNU C compiler?
16457 # The linker used to build libraries.
16460 # Whether we need hard or soft links.
16463 # A BSD-compatible nm program.
16466 # A symbol stripping program
16469 # Used to examine libraries when file_magic_cmd begins "file"
16470 MAGIC_CMD=$MAGIC_CMD
16472 # Used on cygwin: DLL creation program.
16475 # Used on cygwin: object dumper.
16478 # Used on cygwin: assembler.
16481 # The name of the directory that contains temporary libtool files.
16484 # How to create reloadable object files.
16485 reload_flag=$lt_reload_flag
16486 reload_cmds=$lt_reload_cmds
16488 # How to pass a linker flag through the compiler.
16489 wl=$lt_lt_prog_compiler_wl_F77
16491 # Object file suffix (normally "o").
16492 objext="$ac_objext"
16494 # Old archive suffix (normally "a").
16497 # Shared library suffix (normally ".so").
16498 shrext_cmds='$shrext_cmds'
16500 # Executable file suffix (normally "").
16503 # Additional compiler flags for building library objects.
16504 pic_flag=$lt_lt_prog_compiler_pic_F77
16507 # What is the maximum length of a command?
16508 max_cmd_len=$lt_cv_sys_max_cmd_len
16510 # Does compiler simultaneously support -c and -o options?
16511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16513 # Must we lock files when doing compilation?
16514 need_locks=$lt_need_locks
16516 # Do we need the lib prefix for modules?
16517 need_lib_prefix=$need_lib_prefix
16519 # Do we need a version for libraries?
16520 need_version=$need_version
16522 # Whether dlopen is supported.
16523 dlopen_support=$enable_dlopen
16525 # Whether dlopen of programs is supported.
16526 dlopen_self=$enable_dlopen_self
16528 # Whether dlopen of statically linked programs is supported.
16529 dlopen_self_static=$enable_dlopen_self_static
16531 # Compiler flag to prevent dynamic linking.
16532 link_static_flag=$lt_lt_prog_compiler_static_F77
16534 # Compiler flag to turn off builtin functions.
16535 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16537 # Compiler flag to allow reflexive dlopens.
16538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16540 # Compiler flag to generate shared objects directly from archives.
16541 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16543 # Compiler flag to generate thread-safe objects.
16544 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16546 # Library versioning type.
16547 version_type=$version_type
16549 # Format of library name prefix.
16550 libname_spec=$lt_libname_spec
16552 # List of archive names. First name is the real one, the rest are links.
16553 # The last name is the one that the linker finds with -lNAME.
16554 library_names_spec=$lt_library_names_spec
16556 # The coded name of the library, if different from the real name.
16557 soname_spec=$lt_soname_spec
16559 # Commands used to build and install an old-style archive.
16561 old_archive_cmds=$lt_old_archive_cmds_F77
16562 old_postinstall_cmds=$lt_old_postinstall_cmds
16563 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16565 # Create an old-style archive from a shared archive.
16566 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16568 # Create a temporary old-style archive to link instead of a shared archive.
16569 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16571 # Commands used to build and install a shared archive.
16572 archive_cmds=$lt_archive_cmds_F77
16573 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16574 postinstall_cmds=$lt_postinstall_cmds
16575 postuninstall_cmds=$lt_postuninstall_cmds
16577 # Commands used to build a loadable module (assumed same as above if empty)
16578 module_cmds=$lt_module_cmds_F77
16579 module_expsym_cmds=$lt_module_expsym_cmds_F77
16581 # Commands to strip libraries.
16582 old_striplib=$lt_old_striplib
16583 striplib=$lt_striplib
16585 # Dependencies to place before the objects being linked to create a
16587 predep_objects=$lt_predep_objects_F77
16589 # Dependencies to place after the objects being linked to create a
16591 postdep_objects=$lt_postdep_objects_F77
16593 # Dependencies to place before the objects being linked to create a
16595 predeps=$lt_predeps_F77
16597 # Dependencies to place after the objects being linked to create a
16599 postdeps=$lt_postdeps_F77
16601 # The library search path used internally by the compiler when linking
16602 # a shared library.
16603 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16605 # Method to check whether dependent libraries are shared objects.
16606 deplibs_check_method=$lt_deplibs_check_method
16608 # Command to use when deplibs_check_method == file_magic.
16609 file_magic_cmd=$lt_file_magic_cmd
16611 # Flag that allows shared libraries with undefined symbols to be built.
16612 allow_undefined_flag=$lt_allow_undefined_flag_F77
16614 # Flag that forces no undefined symbols.
16615 no_undefined_flag=$lt_no_undefined_flag_F77
16617 # Commands used to finish a libtool library installation in a directory.
16618 finish_cmds=$lt_finish_cmds
16620 # Same as above, but a single script fragment to be evaled but not shown.
16621 finish_eval=$lt_finish_eval
16623 # Take the output of nm and produce a listing of raw symbols and C names.
16624 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16626 # Transform the output of nm in a proper C declaration
16627 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16629 # Transform the output of nm in a C name address pair
16630 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16632 # This is the shared library runtime path variable.
16633 runpath_var=$runpath_var
16635 # This is the shared library path variable.
16636 shlibpath_var=$shlibpath_var
16638 # Is shlibpath searched before the hard-coded library search path?
16639 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16641 # How to hardcode a shared library path into an executable.
16642 hardcode_action=$hardcode_action_F77
16644 # Whether we should hardcode library paths into libraries.
16645 hardcode_into_libs=$hardcode_into_libs
16647 # Flag to hardcode \$libdir into a binary during linking.
16648 # This must work even if \$libdir does not exist.
16649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16651 # If ld is used when linking, flag to hardcode \$libdir into
16652 # a binary during linking. This must work even if \$libdir does
16654 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16656 # Whether we need a single -rpath flag with a separated argument.
16657 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16659 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16660 # resulting binary.
16661 hardcode_direct=$hardcode_direct_F77
16663 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16664 # resulting binary.
16665 hardcode_minus_L=$hardcode_minus_L_F77
16667 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16668 # the resulting binary.
16669 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16671 # Set to yes if building a shared library automatically hardcodes DIR into the library
16672 # and all subsequent libraries and executables linked against it.
16673 hardcode_automatic=$hardcode_automatic_F77
16675 # Variables whose values should be saved in libtool wrapper scripts and
16676 # restored at relink time.
16677 variables_saved_for_relink="$variables_saved_for_relink"
16679 # Whether libtool must link a program against all its dependency libraries.
16680 link_all_deplibs=$link_all_deplibs_F77
16682 # Compile-time system search path for libraries
16683 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16685 # Run-time system search path for libraries
16686 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16688 # Fix the shell variable \$srcfile for the compiler.
16689 fix_srcfile_path="$fix_srcfile_path_F77"
16691 # Set to yes if exported symbols are required.
16692 always_export_symbols=$always_export_symbols_F77
16694 # The commands to list exported symbols.
16695 export_symbols_cmds=$lt_export_symbols_cmds_F77
16697 # The commands to extract the exported symbol list from a shared archive.
16698 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16700 # Symbols that should not be listed in the preloaded symbols.
16701 exclude_expsyms=$lt_exclude_expsyms_F77
16703 # Symbols that must always be exported.
16704 include_expsyms=$lt_include_expsyms_F77
16706 # ### END LIBTOOL TAG CONFIG: $tagname
16712 # If there is no Makefile yet, we rely on a make rule to execute
16713 # `config.status --recheck' to rerun these tests and create the
16714 # libtool script then.
16715 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16716 if test -f "$ltmain_in"; then
16717 test -f Makefile && make "$ltmain"
16723 ac_cpp='$CPP $CPPFLAGS'
16724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16736 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16739 # Source file extension for Java test sources.
16742 # Object file extension for compiled Java test sources.
16746 # Code to be used in simple compile tests
16747 lt_simple_compile_test_code="class foo {}\n"
16749 # Code to be used in simple link tests
16750 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16752 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16754 # If no C compiler was specified, use CC.
16757 # If no C compiler flags were specified, use CFLAGS.
16758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16760 # Allow CC to be a program name with arguments.
16764 # save warnings/boilerplate of simple test code
16765 ac_outfile=conftest.$ac_objext
16766 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16768 _lt_compiler_boilerplate=`cat conftest.err`
16771 ac_outfile=conftest.$ac_objext
16772 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16774 _lt_linker_boilerplate=`cat conftest.err`
16778 # Allow CC to be a program name with arguments.
16783 for cc_temp in $compiler""; do
16785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16791 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16794 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16795 archive_cmds_need_lc_GCJ=no
16797 old_archive_cmds_GCJ=$old_archive_cmds
16800 ## There is no encapsulation within the following macros, do not change
16801 ## the running order or otherwise move them around unless you know exactly
16802 ## what you are doing...
16804 lt_prog_compiler_no_builtin_flag_GCJ=
16806 if test "$GCC" = yes; then
16807 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16810 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16811 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16812 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16815 lt_cv_prog_compiler_rtti_exceptions=no
16816 ac_outfile=conftest.$ac_objext
16817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16818 lt_compiler_flag="-fno-rtti -fno-exceptions"
16819 # Insert the option either (1) after the last *FLAGS variable, or
16820 # (2) before a word containing "conftest.", or (3) at the end.
16821 # Note that $ac_compile itself does not contain backslashes and begins
16822 # with a dollar sign (not a hyphen), so the echo should work correctly.
16823 # The option is referenced via a variable to avoid confusing sed.
16824 lt_compile=`echo "$ac_compile" | $SED \
16825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16827 -e 's:$: $lt_compiler_flag:'`
16828 (eval echo "\"\$as_me:16828: $lt_compile\"" >&5)
16829 (eval "$lt_compile" 2>conftest.err)
16831 cat conftest.err >&5
16832 echo "$as_me:16832: \$? = $ac_status" >&5
16833 if (exit $ac_status) && test -s "$ac_outfile"; then
16834 # The compiler can only warn and ignore the option if not recognized
16835 # So say no if there are warnings other than the usual output.
16836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16839 lt_cv_prog_compiler_rtti_exceptions=yes
16845 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16846 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16848 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16849 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16856 lt_prog_compiler_wl_GCJ=
16857 lt_prog_compiler_pic_GCJ=
16858 lt_prog_compiler_static_GCJ=
16860 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16861 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16863 if test "$GCC" = yes; then
16864 lt_prog_compiler_wl_GCJ='-Wl,'
16865 lt_prog_compiler_static_GCJ='-static'
16869 # All AIX code is PIC.
16870 if test "$host_cpu" = ia64; then
16871 # AIX 5 now supports IA64 processor
16872 lt_prog_compiler_static_GCJ='-Bstatic'
16877 # FIXME: we need at least 68020 code to build shared libraries, but
16878 # adding the `-m68020' flag to GCC prevents building anything better,
16880 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16883 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16884 # PIC is the default for these OSes.
16887 mingw* | pw32* | os2*)
16888 # This hack is so that the source file can tell whether it is being
16889 # built for inclusion in a dll (and should export symbols for example).
16890 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16893 darwin* | rhapsody*)
16894 # PIC is the default on this platform
16895 # Common symbols not allowed in MH_DYLIB files
16896 lt_prog_compiler_pic_GCJ='-fno-common'
16900 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16901 # Instead, we relocate shared libraries at runtime.
16905 # Just because we use GCC doesn't mean we suddenly get shared libraries
16906 # on systems that don't support them.
16907 lt_prog_compiler_can_build_shared_GCJ=no
16912 if test -d /usr/nec; then
16913 lt_prog_compiler_pic_GCJ=-Kconform_pic
16918 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16919 # not for PA HP-UX.
16925 lt_prog_compiler_pic_GCJ='-fPIC'
16931 lt_prog_compiler_pic_GCJ='-fPIC'
16935 # PORTME Check for flag to pass linker flags through the system compiler.
16938 lt_prog_compiler_wl_GCJ='-Wl,'
16939 if test "$host_cpu" = ia64; then
16940 # AIX 5 now supports IA64 processor
16941 lt_prog_compiler_static_GCJ='-Bstatic'
16943 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16947 # PIC is the default on this platform
16948 # Common symbols not allowed in MH_DYLIB files
16949 case $cc_basename in
16951 lt_prog_compiler_pic_GCJ='-qnocommon'
16952 lt_prog_compiler_wl_GCJ='-Wl,'
16957 mingw* | pw32* | os2*)
16958 # This hack is so that the source file can tell whether it is being
16959 # built for inclusion in a dll (and should export symbols for example).
16960 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16963 hpux9* | hpux10* | hpux11*)
16964 lt_prog_compiler_wl_GCJ='-Wl,'
16965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16966 # not for PA HP-UX.
16972 lt_prog_compiler_pic_GCJ='+Z'
16975 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16976 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16979 irix5* | irix6* | nonstopux*)
16980 lt_prog_compiler_wl_GCJ='-Wl,'
16981 # PIC (with -KPIC) is the default.
16982 lt_prog_compiler_static_GCJ='-non_shared'
16986 lt_prog_compiler_pic_GCJ='-KPIC'
16987 lt_prog_compiler_static_GCJ='-Bstatic'
16991 case $cc_basename in
16993 lt_prog_compiler_wl_GCJ='-Wl,'
16994 lt_prog_compiler_pic_GCJ='-KPIC'
16995 lt_prog_compiler_static_GCJ='-static'
16997 pgcc* | pgf77* | pgf90* | pgf95*)
16998 # Portland Group compilers (*not* the Pentium gcc compiler,
16999 # which looks to be a dead project)
17000 lt_prog_compiler_wl_GCJ='-Wl,'
17001 lt_prog_compiler_pic_GCJ='-fpic'
17002 lt_prog_compiler_static_GCJ='-Bstatic'
17005 lt_prog_compiler_wl_GCJ='-Wl,'
17006 # All Alpha code is PIC.
17007 lt_prog_compiler_static_GCJ='-non_shared'
17012 osf3* | osf4* | osf5*)
17013 lt_prog_compiler_wl_GCJ='-Wl,'
17014 # All OSF/1 code is PIC.
17015 lt_prog_compiler_static_GCJ='-non_shared'
17019 lt_prog_compiler_pic_GCJ='-KPIC'
17020 lt_prog_compiler_static_GCJ='-Bstatic'
17021 case $cc_basename in
17022 f77* | f90* | f95*)
17023 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17025 lt_prog_compiler_wl_GCJ='-Wl,';;
17030 lt_prog_compiler_wl_GCJ='-Qoption ld '
17031 lt_prog_compiler_pic_GCJ='-PIC'
17032 lt_prog_compiler_static_GCJ='-Bstatic'
17035 sysv4 | sysv4.2uw2* | sysv4.3*)
17036 lt_prog_compiler_wl_GCJ='-Wl,'
17037 lt_prog_compiler_pic_GCJ='-KPIC'
17038 lt_prog_compiler_static_GCJ='-Bstatic'
17042 if test -d /usr/nec ;then
17043 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17044 lt_prog_compiler_static_GCJ='-Bstatic'
17048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17049 lt_prog_compiler_wl_GCJ='-Wl,'
17050 lt_prog_compiler_pic_GCJ='-KPIC'
17051 lt_prog_compiler_static_GCJ='-Bstatic'
17055 lt_prog_compiler_wl_GCJ='-Wl,'
17056 lt_prog_compiler_can_build_shared_GCJ=no
17060 lt_prog_compiler_pic_GCJ='-pic'
17061 lt_prog_compiler_static_GCJ='-Bstatic'
17065 lt_prog_compiler_can_build_shared_GCJ=no
17070 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17071 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17074 # Check to make sure the PIC flag actually works.
17076 if test -n "$lt_prog_compiler_pic_GCJ"; then
17078 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17079 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17080 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 lt_prog_compiler_pic_works_GCJ=no
17084 ac_outfile=conftest.$ac_objext
17085 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17086 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17087 # Insert the option either (1) after the last *FLAGS variable, or
17088 # (2) before a word containing "conftest.", or (3) at the end.
17089 # Note that $ac_compile itself does not contain backslashes and begins
17090 # with a dollar sign (not a hyphen), so the echo should work correctly.
17091 # The option is referenced via a variable to avoid confusing sed.
17092 lt_compile=`echo "$ac_compile" | $SED \
17093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17095 -e 's:$: $lt_compiler_flag:'`
17096 (eval echo "\"\$as_me:17096: $lt_compile\"" >&5)
17097 (eval "$lt_compile" 2>conftest.err)
17099 cat conftest.err >&5
17100 echo "$as_me:17100: \$? = $ac_status" >&5
17101 if (exit $ac_status) && test -s "$ac_outfile"; then
17102 # The compiler can only warn and ignore the option if not recognized
17103 # So say no if there are warnings other than the usual output.
17104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17107 lt_prog_compiler_pic_works_GCJ=yes
17113 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17114 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17116 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17117 case $lt_prog_compiler_pic_GCJ in
17119 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17122 lt_prog_compiler_pic_GCJ=
17123 lt_prog_compiler_can_build_shared_GCJ=no
17128 # For platforms which do not support PIC, -DPIC is meaningless:
17130 lt_prog_compiler_pic_GCJ=
17133 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17138 # Check to make sure the static flag actually works.
17140 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17141 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17142 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17143 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 lt_prog_compiler_static_works_GCJ=no
17147 save_LDFLAGS="$LDFLAGS"
17148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17149 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17151 # The linker can only warn and ignore the option if not recognized
17152 # So say no if there are warnings
17153 if test -s conftest.err; then
17154 # Append any errors to the config.log.
17155 cat conftest.err 1>&5
17156 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17158 if diff conftest.exp conftest.er2 >/dev/null; then
17159 lt_prog_compiler_static_works_GCJ=yes
17162 lt_prog_compiler_static_works_GCJ=yes
17166 LDFLAGS="$save_LDFLAGS"
17169 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17170 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17172 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17175 lt_prog_compiler_static_GCJ=
17179 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17180 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17181 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 lt_cv_prog_compiler_c_o_GCJ=no
17185 $rm -r conftest 2>/dev/null
17189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17191 lt_compiler_flag="-o out/conftest2.$ac_objext"
17192 # Insert the option either (1) after the last *FLAGS variable, or
17193 # (2) before a word containing "conftest.", or (3) at the end.
17194 # Note that $ac_compile itself does not contain backslashes and begins
17195 # with a dollar sign (not a hyphen), so the echo should work correctly.
17196 lt_compile=`echo "$ac_compile" | $SED \
17197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17199 -e 's:$: $lt_compiler_flag:'`
17200 (eval echo "\"\$as_me:17200: $lt_compile\"" >&5)
17201 (eval "$lt_compile" 2>out/conftest.err)
17203 cat out/conftest.err >&5
17204 echo "$as_me:17204: \$? = $ac_status" >&5
17205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17207 # The compiler can only warn and ignore the option if not recognized
17208 # So say no if there are warnings
17209 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17212 lt_cv_prog_compiler_c_o_GCJ=yes
17217 # SGI C++ compiler will create directory out/ii_files/ for
17218 # template instantiation
17219 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17220 $rm out/* && rmdir out
17226 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17227 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17230 hard_links="nottested"
17231 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17232 # do not overwrite the value of need_locks provided by the user
17233 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17234 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17239 ln conftest.a conftest.b 2>&5 || hard_links=no
17240 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17241 { echo "$as_me:$LINENO: result: $hard_links" >&5
17242 echo "${ECHO_T}$hard_links" >&6; }
17243 if test "$hard_links" = no; then
17244 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17245 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17252 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17253 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17256 allow_undefined_flag_GCJ=
17257 enable_shared_with_static_runtimes_GCJ=no
17259 archive_expsym_cmds_GCJ=
17260 old_archive_From_new_cmds_GCJ=
17261 old_archive_from_expsyms_cmds_GCJ=
17262 export_dynamic_flag_spec_GCJ=
17263 whole_archive_flag_spec_GCJ=
17264 thread_safe_flag_spec_GCJ=
17265 hardcode_libdir_flag_spec_GCJ=
17266 hardcode_libdir_flag_spec_ld_GCJ=
17267 hardcode_libdir_separator_GCJ=
17268 hardcode_direct_GCJ=no
17269 hardcode_minus_L_GCJ=no
17270 hardcode_shlibpath_var_GCJ=unsupported
17271 link_all_deplibs_GCJ=unknown
17272 hardcode_automatic_GCJ=no
17274 module_expsym_cmds_GCJ=
17275 always_export_symbols_GCJ=no
17276 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17277 # include_expsyms should be a list of space-separated symbols to be *always*
17278 # included in the symbol list
17279 include_expsyms_GCJ=
17280 # exclude_expsyms can be an extended regexp of symbols to exclude
17281 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17282 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17283 # as well as any symbol that contains `d'.
17284 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17285 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17286 # platforms (ab)use it in PIC code, but their linkers get confused if
17287 # the symbol is explicitly referenced. Since portable code cannot
17288 # rely on this symbol name, it's probably fine to never include it in
17289 # preloaded symbol tables.
17290 extract_expsyms_cmds=
17291 # Just being paranoid about ensuring that cc_basename is set.
17292 for cc_temp in $compiler""; do
17294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17300 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17303 cygwin* | mingw* | pw32*)
17304 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17305 # When not using gcc, we currently assume that we are using
17306 # Microsoft Visual C++.
17307 if test "$GCC" != yes; then
17312 # we just hope/assume this is gcc and not c89 (= MSVC++)
17321 if test "$with_gnu_ld" = yes; then
17322 # If archive_cmds runs LD, not CC, wlarc should be empty
17325 # Set some defaults for GNU ld with shared library support. These
17326 # are reset later if shared libraries are not supported. Putting them
17327 # here allows them to be overridden if necessary.
17328 runpath_var=LD_RUN_PATH
17329 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17330 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17331 # ancient GNU ld didn't support --whole-archive et. al.
17332 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17333 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17335 whole_archive_flag_spec_GCJ=
17337 supports_anon_versioning=no
17338 case `$LD -v 2>/dev/null` in
17339 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17340 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17341 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17342 *\ 2.11.*) ;; # other 2.11 versions
17343 *) supports_anon_versioning=yes ;;
17346 # See if GNU ld supports shared libraries.
17348 aix3* | aix4* | aix5*)
17349 # On AIX/PPC, the GNU linker is very broken
17350 if test "$host_cpu" != ia64; then
17354 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17355 *** to be unable to reliably create shared libraries on AIX.
17356 *** Therefore, libtool is disabling shared libraries support. If you
17357 *** really care for shared libraries, you may want to modify your PATH
17358 *** so that a non-GNU linker is found, and then restart.
17365 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)'
17366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367 hardcode_minus_L_GCJ=yes
17369 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17370 # that the semantics of dynamic libraries on AmigaOS, at least up
17371 # to version 4, is to share data among multiple programs linked
17372 # with the same dynamic library. Since this doesn't match the
17373 # behavior of shared libraries on other platforms, we can't use
17379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17380 allow_undefined_flag_GCJ=unsupported
17381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17382 # support --undefined. This deserves some investigation. FIXME
17383 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17389 cygwin* | mingw* | pw32*)
17390 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17391 # as there is no search path for DLLs.
17392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17393 allow_undefined_flag_GCJ=unsupported
17394 always_export_symbols_GCJ=no
17395 enable_shared_with_static_runtimes_GCJ=yes
17396 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17398 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17399 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17400 # If the export-symbols file already is a .def file (1st line
17401 # is EXPORTS), use it as is; otherwise, prepend...
17402 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17403 cp $export_symbols $output_objdir/$soname.def;
17405 echo EXPORTS > $output_objdir/$soname.def;
17406 cat $export_symbols >> $output_objdir/$soname.def;
17408 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17415 hardcode_direct_GCJ=no
17416 hardcode_shlibpath_var_GCJ=no
17417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17418 export_dynamic_flag_spec_GCJ='${wl}-E'
17419 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17420 # Instead, shared libraries are loaded at an image base (0x10000000 by
17421 # default) and relocated if they conflict, which is a slow very memory
17422 # consuming and fragmenting process. To avoid this, we pick a random,
17423 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17424 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17425 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'
17426 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'
17430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17432 case $cc_basename,$host_cpu in
17433 pgcc*) # Portland Group C compiler
17434 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'
17435 tmp_addflag=' $pic_flag'
17437 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17438 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'
17439 tmp_addflag=' $pic_flag -Mnomain' ;;
17440 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17441 tmp_addflag=' -i_dynamic' ;;
17442 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17443 tmp_addflag=' -i_dynamic -nofor_main' ;;
17444 ifc* | ifort*) # Intel Fortran compiler
17445 tmp_addflag=' -nofor_main' ;;
17447 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17449 if test $supports_anon_versioning = yes; then
17450 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17452 $echo "local: *; };" >> $output_objdir/$libname.ver~
17453 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17462 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17466 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17471 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17475 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17476 *** create shared libraries on Solaris systems. Therefore, libtool
17477 *** is disabling shared libraries support. We urge you to upgrade GNU
17478 *** binutils to release 2.9.1 or newer. Another option is to modify
17479 *** your PATH or compiler configuration so that the native linker is
17480 *** used, and then restart.
17483 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17492 case `$LD -v 2>&1` in
17493 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17497 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17498 *** reliably create shared libraries on SCO systems. Therefore, libtool
17499 *** is disabling shared libraries support. We urge you to upgrade GNU
17500 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17501 *** your PATH or compiler configuration so that the native linker is
17502 *** used, and then restart.
17507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17508 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17519 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17521 hardcode_direct_GCJ=yes
17522 hardcode_shlibpath_var_GCJ=no
17526 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17527 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17528 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17535 if test "$ld_shlibs_GCJ" = no; then
17537 hardcode_libdir_flag_spec_GCJ=
17538 export_dynamic_flag_spec_GCJ=
17539 whole_archive_flag_spec_GCJ=
17542 # PORTME fill in a description of your system's linker (not GNU ld)
17545 allow_undefined_flag_GCJ=unsupported
17546 always_export_symbols_GCJ=yes
17547 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'
17548 # Note: this linker hardcodes the directories in LIBPATH if there
17549 # are no directories specified by -L.
17550 hardcode_minus_L_GCJ=yes
17551 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17552 # Neither direct hardcoding nor static linking is supported with a
17554 hardcode_direct_GCJ=unsupported
17559 if test "$host_cpu" = ia64; then
17560 # On IA64, the linker does run time linking by default, so we don't
17561 # have to do anything special.
17562 aix_use_runtimelinking=no
17563 exp_sym_flag='-Bexport'
17566 # If we're using GNU nm, then we don't want the "-C" option.
17567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17568 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17569 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'
17571 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'
17573 aix_use_runtimelinking=no
17575 # Test if we are trying to use run time linking or normal
17576 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17577 # need to do runtime linking.
17578 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17579 for ld_flag in $LDFLAGS; do
17580 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17581 aix_use_runtimelinking=yes
17588 exp_sym_flag='-bexport'
17589 no_entry_flag='-bnoentry'
17592 # When large executables or shared objects are built, AIX ld can
17593 # have problems creating the table of contents. If linking a library
17594 # or program results in "error TOC overflow" add -mminimal-toc to
17595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17598 archive_cmds_GCJ=''
17599 hardcode_direct_GCJ=yes
17600 hardcode_libdir_separator_GCJ=':'
17601 link_all_deplibs_GCJ=yes
17603 if test "$GCC" = yes; then
17604 case $host_os in aix4.[012]|aix4.[012].*)
17605 # We only want to do this on AIX 4.2 and lower, the check
17606 # below for broken collect2 doesn't work under 4.3+
17607 collect2name=`${CC} -print-prog-name=collect2`
17608 if test -f "$collect2name" && \
17609 strings "$collect2name" | grep resolve_lib_name >/dev/null
17611 # We have reworked collect2
17612 hardcode_direct_GCJ=yes
17614 # We have old collect2
17615 hardcode_direct_GCJ=unsupported
17616 # It fails to find uninstalled libraries when the uninstalled
17617 # path is not listed in the libpath. Setting hardcode_minus_L
17618 # to unsupported forces relinking
17619 hardcode_minus_L_GCJ=yes
17620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17621 hardcode_libdir_separator_GCJ=
17625 shared_flag='-shared'
17626 if test "$aix_use_runtimelinking" = yes; then
17627 shared_flag="$shared_flag "'${wl}-G'
17631 if test "$host_cpu" = ia64; then
17632 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17633 # chokes on -Wl,-G. The following line is correct:
17636 if test "$aix_use_runtimelinking" = yes; then
17637 shared_flag='${wl}-G'
17639 shared_flag='${wl}-bM:SRE'
17644 # It seems that -bexpall does not export symbols beginning with
17645 # underscore (_), so it is better to generate a list of symbols to export.
17646 always_export_symbols_GCJ=yes
17647 if test "$aix_use_runtimelinking" = yes; then
17648 # Warning - without using the other runtime loading flags (-brtl),
17649 # -berok will link without error, but may produce a broken library.
17650 allow_undefined_flag_GCJ='-berok'
17651 # Determine the default libpath from the value encoded in an empty executable.
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17669 (eval $ac_link) 2>conftest.er1
17671 grep -v '^ *+' conftest.er1 >conftest.err
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
17676 { ac_try='test -z "$ac_c_werror_flag"
17677 || test ! -s conftest.err'
17678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679 (eval $ac_try) 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest$ac_exeext'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
17690 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17692 # Check for a 64-bit object if we didn't find anything.
17693 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; }
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17702 rm -f conftest.err conftest.$ac_objext \
17703 conftest$ac_exeext conftest.$ac_ext
17704 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17706 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17707 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"
17709 if test "$host_cpu" = ia64; then
17710 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17711 allow_undefined_flag_GCJ="-z nodefs"
17712 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"
17714 # Determine the default libpath from the value encoded in an empty executable.
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732 (eval $ac_link) 2>conftest.er1
17734 grep -v '^ *+' conftest.er1 >conftest.err
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17755 # Check for a 64-bit object if we didn't find anything.
17756 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; }
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17765 rm -f conftest.err conftest.$ac_objext \
17766 conftest$ac_exeext conftest.$ac_ext
17767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17769 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17770 # Warning - without using the other run time loading flags,
17771 # -berok will link without error, but may produce a broken library.
17772 no_undefined_flag_GCJ=' ${wl}-bernotok'
17773 allow_undefined_flag_GCJ=' ${wl}-berok'
17774 # Exported symbols can be pulled into shared objects from archives
17775 whole_archive_flag_spec_GCJ='$convenience'
17776 archive_cmds_need_lc_GCJ=yes
17777 # This is similar to how AIX traditionally builds its shared libraries.
17778 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'
17784 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)'
17785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17786 hardcode_minus_L_GCJ=yes
17787 # see comment about different semantics on the GNU ld section
17792 export_dynamic_flag_spec_GCJ=-rdynamic
17795 cygwin* | mingw* | pw32*)
17796 # When not using gcc, we currently assume that we are using
17797 # Microsoft Visual C++.
17798 # hardcode_libdir_flag_spec is actually meaningless, as there is
17799 # no search path for DLLs.
17800 hardcode_libdir_flag_spec_GCJ=' '
17801 allow_undefined_flag_GCJ=unsupported
17802 # Tell ltmain to make .lib files, not .a files.
17804 # Tell ltmain to make .dll files, not .so files.
17806 # FIXME: Setting linknames here is a bad hack.
17807 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17808 # The linker will automatically build a .lib file if we build a DLL.
17809 old_archive_From_new_cmds_GCJ='true'
17810 # FIXME: Should let the user specify the lib program.
17811 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17812 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17813 enable_shared_with_static_runtimes_GCJ=yes
17816 darwin* | rhapsody*)
17818 rhapsody* | darwin1.[012])
17819 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17822 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17823 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17825 case ${MACOSX_DEPLOYMENT_TARGET} in
17827 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17830 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17836 archive_cmds_need_lc_GCJ=no
17837 hardcode_direct_GCJ=no
17838 hardcode_automatic_GCJ=yes
17839 hardcode_shlibpath_var_GCJ=unsupported
17840 whole_archive_flag_spec_GCJ=''
17841 link_all_deplibs_GCJ=yes
17842 if test "$GCC" = yes ; then
17843 output_verbose_link_cmd='echo'
17844 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17845 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17846 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17847 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}'
17848 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}'
17850 case $cc_basename in
17852 output_verbose_link_cmd='echo'
17853 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17854 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17856 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}'
17857 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}'
17867 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17868 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17869 hardcode_shlibpath_var_GCJ=no
17876 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17877 # support. Future versions do this automatically, but an explicit c++rt0.o
17878 # does not break anything, and helps significantly (at the cost of a little
17881 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17882 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17883 hardcode_direct_GCJ=yes
17884 hardcode_shlibpath_var_GCJ=no
17887 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17889 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17890 hardcode_direct_GCJ=yes
17891 hardcode_minus_L_GCJ=yes
17892 hardcode_shlibpath_var_GCJ=no
17895 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17896 freebsd* | kfreebsd*-gnu | dragonfly*)
17897 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17898 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17899 hardcode_direct_GCJ=yes
17900 hardcode_shlibpath_var_GCJ=no
17904 if test "$GCC" = yes; then
17905 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'
17907 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'
17909 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17910 hardcode_libdir_separator_GCJ=:
17911 hardcode_direct_GCJ=yes
17913 # hardcode_minus_L: Not really in the search PATH,
17914 # but as the default location of the library.
17915 hardcode_minus_L_GCJ=yes
17916 export_dynamic_flag_spec_GCJ='${wl}-E'
17920 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17921 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17923 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17925 if test "$with_gnu_ld" = no; then
17926 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17927 hardcode_libdir_separator_GCJ=:
17929 hardcode_direct_GCJ=yes
17930 export_dynamic_flag_spec_GCJ='${wl}-E'
17932 # hardcode_minus_L: Not really in the search PATH,
17933 # but as the default location of the library.
17934 hardcode_minus_L_GCJ=yes
17939 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17942 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17945 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17948 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17954 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17957 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17960 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17964 if test "$with_gnu_ld" = no; then
17965 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17966 hardcode_libdir_separator_GCJ=:
17970 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17971 hardcode_direct_GCJ=no
17972 hardcode_shlibpath_var_GCJ=no
17975 hardcode_direct_GCJ=yes
17976 export_dynamic_flag_spec_GCJ='${wl}-E'
17978 # hardcode_minus_L: Not really in the search PATH,
17979 # but as the default location of the library.
17980 hardcode_minus_L_GCJ=yes
17986 irix5* | irix6* | nonstopux*)
17987 if test "$GCC" = yes; then
17988 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'
17990 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'
17991 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17994 hardcode_libdir_separator_GCJ=:
17995 link_all_deplibs_GCJ=yes
17999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18000 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18002 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18005 hardcode_direct_GCJ=yes
18006 hardcode_shlibpath_var_GCJ=no
18010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18011 hardcode_direct_GCJ=yes
18012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18013 hardcode_libdir_separator_GCJ=:
18014 hardcode_shlibpath_var_GCJ=no
18018 hardcode_direct_GCJ=yes
18019 hardcode_shlibpath_var_GCJ=no
18020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18021 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18022 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18024 export_dynamic_flag_spec_GCJ='${wl}-E'
18027 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18032 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18033 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18040 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18041 hardcode_minus_L_GCJ=yes
18042 allow_undefined_flag_GCJ=unsupported
18043 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'
18044 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18048 if test "$GCC" = yes; then
18049 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18050 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'
18052 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18053 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'
18055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18056 hardcode_libdir_separator_GCJ=:
18059 osf4* | osf5*) # as osf3* with the addition of -msym flag
18060 if test "$GCC" = yes; then
18061 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18062 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'
18063 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18065 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18066 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'
18067 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~
18068 $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'
18070 # Both c and cxx compiler support -rpath directly
18071 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18073 hardcode_libdir_separator_GCJ=:
18077 no_undefined_flag_GCJ=' -z text'
18078 if test "$GCC" = yes; then
18080 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18081 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18082 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18085 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18086 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18089 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18090 hardcode_shlibpath_var_GCJ=no
18092 solaris2.[0-5] | solaris2.[0-5].*) ;;
18094 # The compiler driver will combine linker options so we
18095 # cannot just pass the convience library names through
18096 # without $wl, iff we do not link with $LD.
18097 # Luckily, gcc supports the same syntax we need for Sun Studio.
18098 # Supported since Solaris 2.6 (maybe 2.5.1?)
18101 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18103 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' ;;
18106 link_all_deplibs_GCJ=yes
18110 if test "x$host_vendor" = xsequent; then
18111 # Use $CC to link under sequent, because it throws in some extra .o
18112 # files that make .init and .fini sections work.
18113 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18117 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18118 hardcode_direct_GCJ=yes
18119 hardcode_minus_L_GCJ=yes
18120 hardcode_shlibpath_var_GCJ=no
18124 case $host_vendor in
18126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18127 hardcode_direct_GCJ=yes # is this really true???
18130 ## LD is ld it makes a PLAMLIB
18131 ## CC just makes a GrossModule.
18132 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18133 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18134 hardcode_direct_GCJ=no
18137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18141 runpath_var='LD_RUN_PATH'
18142 hardcode_shlibpath_var_GCJ=no
18146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147 hardcode_shlibpath_var_GCJ=no
18148 export_dynamic_flag_spec_GCJ='-Bexport'
18152 if test -d /usr/nec; then
18153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18154 hardcode_shlibpath_var_GCJ=no
18155 runpath_var=LD_RUN_PATH
18156 hardcode_runpath_var=yes
18161 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18162 no_undefined_flag_GCJ='${wl}-z,text'
18163 archive_cmds_need_lc_GCJ=no
18164 hardcode_shlibpath_var_GCJ=no
18165 runpath_var='LD_RUN_PATH'
18167 if test "$GCC" = yes; then
18168 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18169 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18171 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18172 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18176 sysv5* | sco3.2v5* | sco5v6*)
18177 # Note: We can NOT use -z defs as we might desire, because we do not
18178 # link with -lc, and that would cause any symbols used from libc to
18179 # always be unresolved, which means just about no library would
18180 # ever link correctly. If we're not using GNU ld we use -z text
18181 # though, which does catch some bad symbols but isn't as heavy-handed
18183 no_undefined_flag_GCJ='${wl}-z,text'
18184 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18185 archive_cmds_need_lc_GCJ=no
18186 hardcode_shlibpath_var_GCJ=no
18187 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18188 hardcode_libdir_separator_GCJ=':'
18189 link_all_deplibs_GCJ=yes
18190 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18191 runpath_var='LD_RUN_PATH'
18193 if test "$GCC" = yes; then
18194 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18195 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18197 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18198 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18205 hardcode_shlibpath_var_GCJ=no
18214 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18215 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18216 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18219 # Do we need to explicitly link libc?
18221 case "x$archive_cmds_need_lc_GCJ" in
18223 # Assume -lc should be added
18224 archive_cmds_need_lc_GCJ=yes
18226 if test "$enable_shared" = yes && test "$GCC" = yes; then
18227 case $archive_cmds_GCJ in
18229 # FIXME: we may have to deal with multi-command sequences.
18232 # Test whether the compiler implicitly links with -lc since on some
18233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18234 # to ld, don't add -lc before -lgcc.
18235 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18241 (eval $ac_compile) 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } 2>conftest.err; then
18247 libobjs=conftest.$ac_objext
18249 wl=$lt_prog_compiler_wl_GCJ
18250 pic_flag=$lt_prog_compiler_pic_GCJ
18256 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18257 allow_undefined_flag_GCJ=
18258 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18259 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }
18264 archive_cmds_need_lc_GCJ=no
18266 archive_cmds_need_lc_GCJ=yes
18268 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18270 cat conftest.err 1>&5
18273 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18274 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18281 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18282 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18283 library_names_spec=
18284 libname_spec='lib$name'
18288 postuninstall_cmds=
18292 shlibpath_overrides_runpath=unknown
18294 dynamic_linker="$host_os ld.so"
18295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18296 if test "$GCC" = yes; then
18297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18298 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18299 # if the path contains ";" then we assume it to be the separator
18300 # otherwise default to the standard path separator (i.e. ":") - it is
18301 # assumed that no part of a normal pathname contains ";" but that should
18302 # okay in the real world where ";" in dirpaths is itself problematic.
18303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18308 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18310 need_lib_prefix=unknown
18311 hardcode_into_libs=no
18313 # when you set need_version to no, make sure it does not cause -set_version
18314 # flags to be left without arguments
18315 need_version=unknown
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18321 shlibpath_var=LIBPATH
18323 # AIX 3 has no versioning support, so we append a major version to the name.
18324 soname_spec='${libname}${release}${shared_ext}$major'
18331 hardcode_into_libs=yes
18332 if test "$host_cpu" = ia64; then
18333 # AIX 5 supports IA64
18334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18335 shlibpath_var=LD_LIBRARY_PATH
18337 # With GCC up to 2.95.x, collect2 would create an import file
18338 # for dependence libraries. The import file would start with
18339 # the line `#! .'. This would cause the generated library to
18340 # depend on `.', always an invalid library. This was fixed in
18341 # development snapshots of GCC prior to 3.0.
18343 aix4 | aix4.[01] | aix4.[01].*)
18344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18346 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18349 can_build_shared=no
18353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18354 # soname into executable. Probably we can add versioning support to
18355 # collect2, so additional links can be useful in future.
18356 if test "$aix_use_runtimelinking" = yes; then
18357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18358 # instead of lib<name>.a to let people know that these are not
18359 # typical AIX shared libraries.
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 # We preserve .a as extension for shared libraries through AIX4.2
18363 # and later when we are not doing run time linking.
18364 library_names_spec='${libname}${release}.a $libname.a'
18365 soname_spec='${libname}${release}${shared_ext}$major'
18367 shlibpath_var=LIBPATH
18372 library_names_spec='$libname.ixlibrary $libname.a'
18373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18374 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'
18378 library_names_spec='${libname}${shared_ext}'
18379 dynamic_linker="$host_os ld.so"
18380 shlibpath_var=LIBRARY_PATH
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18389 shlibpath_var=LD_LIBRARY_PATH
18390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18392 # the default ld.so.conf also contains /usr/contrib/lib and
18393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18394 # libtool to hard-code these into programs
18397 cygwin* | mingw* | pw32*)
18398 version_type=windows
18403 case $GCC,$host_os in
18404 yes,cygwin* | yes,mingw* | yes,pw32*)
18405 library_names_spec='$libname.dll.a'
18406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18407 postinstall_cmds='base_file=`basename \${file}`~
18408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18409 dldir=$destdir/`dirname \$dlpath`~
18410 test -d \$dldir || mkdir -p \$dldir~
18411 $install_prog $dir/$dlname \$dldir/$dlname~
18412 chmod a+x \$dldir/$dlname'
18413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18414 dlpath=$dir/\$dldll~
18416 shlibpath_overrides_runpath=yes
18420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18422 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18425 # MinGW DLLs use traditional 'lib' prefix
18426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18428 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18429 # It is most probably a Windows format PATH printed by
18430 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18431 # path with ; separators, and with drive letters. We can handle the
18432 # drive letters (cygwin fileutils understands them), so leave them,
18433 # especially as we might pass files found there to a mingw objdump,
18434 # which wouldn't understand a cygwinified path. Ahh.
18435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18441 # pw32 DLLs use 'pw' prefix rather than 'lib'
18442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18451 dynamic_linker='Win32 ld.exe'
18452 # FIXME: first we should search . and the directory the executable is in
18456 darwin* | rhapsody*)
18457 dynamic_linker="$host_os dyld"
18458 version_type=darwin
18461 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18462 soname_spec='${libname}${release}${major}$shared_ext'
18463 shlibpath_overrides_runpath=yes
18464 shlibpath_var=DYLD_LIBRARY_PATH
18465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18466 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18467 if test "$GCC" = yes; then
18468 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"`
18470 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18480 soname_spec='${libname}${release}${shared_ext}$major'
18481 shlibpath_var=LD_LIBRARY_PATH
18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18493 soname_spec='${libname}${release}${shared_ext}$major'
18494 shlibpath_var=LD_LIBRARY_PATH
18495 shlibpath_overrides_runpath=no
18496 hardcode_into_libs=yes
18497 dynamic_linker='GNU ld.so'
18500 freebsd* | dragonfly*)
18501 # DragonFly does not have aout. When/if they implement a new
18502 # versioning mechanism, adjust this.
18503 if test -x /usr/bin/objformat; then
18504 objformat=`/usr/bin/objformat`
18507 freebsd[123]*) objformat=aout ;;
18508 *) objformat=elf ;;
18511 version_type=freebsd-$objformat
18512 case $version_type in
18514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18523 shlibpath_var=LD_LIBRARY_PATH
18526 shlibpath_overrides_runpath=yes
18528 freebsd3.[01]* | freebsdelf3.[01]*)
18529 shlibpath_overrides_runpath=yes
18530 hardcode_into_libs=yes
18532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18534 shlibpath_overrides_runpath=no
18535 hardcode_into_libs=yes
18537 freebsd*) # from 4.6 on
18538 shlibpath_overrides_runpath=yes
18539 hardcode_into_libs=yes
18548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18549 soname_spec='${libname}${release}${shared_ext}$major'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 hardcode_into_libs=yes
18554 hpux9* | hpux10* | hpux11*)
18555 # Give a soname corresponding to the major version so that dld.sl refuses to
18556 # link against other versions.
18563 hardcode_into_libs=yes
18564 dynamic_linker="$host_os dld.so"
18565 shlibpath_var=LD_LIBRARY_PATH
18566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 if test "X$HPUX_IA64_MODE" = X32; then
18570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18572 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18578 hardcode_into_libs=yes
18579 dynamic_linker="$host_os dld.sl"
18580 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18589 dynamic_linker="$host_os dld.sl"
18590 shlibpath_var=SHLIB_PATH
18591 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18593 soname_spec='${libname}${release}${shared_ext}$major'
18596 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18597 postinstall_cmds='chmod 555 $lib'
18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18605 soname_spec='${libname}${release}${shared_ext}$major'
18606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18607 shlibpath_var=LD_LIBRARY_PATH
18608 shlibpath_overrides_runpath=no
18609 hardcode_into_libs=yes
18612 irix5* | irix6* | nonstopux*)
18614 nonstopux*) version_type=nonstopux ;;
18616 if test "$lt_cv_prog_gnu_ld" = yes; then
18624 soname_spec='${libname}${release}${shared_ext}$major'
18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18627 irix5* | nonstopux*)
18628 libsuff= shlibsuff=
18631 case $LD in # libtool.m4 will add one of these switches to LD
18632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18633 libsuff= shlibsuff= libmagic=32-bit;;
18634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18635 libsuff=32 shlibsuff=N32 libmagic=N32;;
18636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18637 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18638 *) libsuff= shlibsuff= libmagic=never-match;;
18642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18643 shlibpath_overrides_runpath=no
18644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18646 hardcode_into_libs=yes
18649 # No shared lib support for Linux oldld, aout, or coff.
18650 linux*oldld* | linux*aout* | linux*coff*)
18654 # This must be Linux ELF.
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660 soname_spec='${libname}${release}${shared_ext}$major'
18661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18662 shlibpath_var=LD_LIBRARY_PATH
18663 shlibpath_overrides_runpath=no
18664 # This implies no fast_install, which is unacceptable.
18665 # Some rework will be needed to allow for fast_install
18666 # before this can be enabled.
18667 hardcode_into_libs=yes
18669 # Append ld.so.conf contents to the search path
18670 if test -f /etc/ld.so.conf; then
18671 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' ' '`
18672 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18675 # We used to test for /lib/ld.so.1 and disable shared libraries on
18676 # powerpc, because MkLinux only supported shared libraries with the
18677 # GNU dynamic linker. Since this was broken with cross compilers,
18678 # most powerpc-linux boxes support dynamic linking these days and
18679 # people can always --disable-shared, the test was removed, and we
18680 # assume the GNU/Linux dynamic linker is in use.
18681 dynamic_linker='GNU/Linux ld.so'
18688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18689 soname_spec='${libname}${release}${shared_ext}$major'
18690 shlibpath_var=LD_LIBRARY_PATH
18691 shlibpath_overrides_runpath=no
18692 hardcode_into_libs=yes
18693 dynamic_linker='GNU ld.so'
18700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18703 dynamic_linker='NetBSD (a.out) ld.so'
18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18706 soname_spec='${libname}${release}${shared_ext}$major'
18707 dynamic_linker='NetBSD ld.elf_so'
18709 shlibpath_var=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath=yes
18711 hardcode_into_libs=yes
18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717 shlibpath_var=LD_LIBRARY_PATH
18718 shlibpath_overrides_runpath=yes
18725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18726 soname_spec='${libname}${release}${shared_ext}$major'
18727 shlibpath_var=LD_LIBRARY_PATH
18728 shlibpath_overrides_runpath=yes
18733 sys_lib_dlsearch_path_spec="/usr/lib"
18735 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18737 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18738 *) need_version=no ;;
18740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18742 shlibpath_var=LD_LIBRARY_PATH
18743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18745 openbsd2.[89] | openbsd2.[89].*)
18746 shlibpath_overrides_runpath=no
18749 shlibpath_overrides_runpath=yes
18753 shlibpath_overrides_runpath=yes
18758 libname_spec='$name'
18761 library_names_spec='$libname${shared_ext} $libname.a'
18762 dynamic_linker='OS/2 ld.exe'
18763 shlibpath_var=LIBPATH
18766 osf3* | osf4* | osf5*)
18770 soname_spec='${libname}${release}${shared_ext}$major'
18771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18772 shlibpath_var=LD_LIBRARY_PATH
18773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18782 soname_spec='${libname}${release}${shared_ext}$major'
18783 shlibpath_var=LD_LIBRARY_PATH
18784 shlibpath_overrides_runpath=yes
18785 hardcode_into_libs=yes
18786 # ldd complains unless libraries are executable
18787 postinstall_cmds='chmod +x $lib'
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18793 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18794 shlibpath_var=LD_LIBRARY_PATH
18795 shlibpath_overrides_runpath=yes
18796 if test "$with_gnu_ld" = yes; then
18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18805 soname_spec='${libname}${release}${shared_ext}$major'
18806 shlibpath_var=LD_LIBRARY_PATH
18807 case $host_vendor in
18809 shlibpath_overrides_runpath=no
18811 export_dynamic_flag_spec='${wl}-Blargedynsym'
18812 runpath_var=LD_RUN_PATH
18820 shlibpath_overrides_runpath=no
18821 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18827 if test -d /usr/nec ;then
18829 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18830 soname_spec='$libname${shared_ext}.$major'
18831 shlibpath_var=LD_LIBRARY_PATH
18835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18836 version_type=freebsd-elf
18839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18840 soname_spec='${libname}${release}${shared_ext}$major'
18841 shlibpath_var=LD_LIBRARY_PATH
18842 hardcode_into_libs=yes
18843 if test "$with_gnu_ld" = yes; then
18844 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18845 shlibpath_overrides_runpath=no
18847 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18848 shlibpath_overrides_runpath=yes
18851 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18855 sys_lib_dlsearch_path_spec='/usr/lib'
18860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18861 soname_spec='${libname}${release}${shared_ext}$major'
18862 shlibpath_var=LD_LIBRARY_PATH
18869 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18870 echo "${ECHO_T}$dynamic_linker" >&6; }
18871 test "$dynamic_linker" = no && can_build_shared=no
18873 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18874 if test "$GCC" = yes; then
18875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18878 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18879 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18880 hardcode_action_GCJ=
18881 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18882 test -n "$runpath_var_GCJ" || \
18883 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18885 # We can hardcode non-existant directories.
18886 if test "$hardcode_direct_GCJ" != no &&
18887 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18888 # have to relink, otherwise we might link with an installed library
18889 # when we should be linking with a yet-to-be-installed one
18890 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18891 test "$hardcode_minus_L_GCJ" != no; then
18892 # Linking always hardcodes the temporary library directory.
18893 hardcode_action_GCJ=relink
18895 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18896 hardcode_action_GCJ=immediate
18899 # We cannot hardcode anything, or else we can only hardcode existing
18901 hardcode_action_GCJ=unsupported
18903 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18904 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18906 if test "$hardcode_action_GCJ" = relink; then
18907 # Fast installation is not supported
18908 enable_fast_install=no
18909 elif test "$shlibpath_overrides_runpath" = yes ||
18910 test "$enable_shared" = no; then
18911 # Fast installation is not necessary
18912 enable_fast_install=needless
18916 # The else clause should only fire when bootstrapping the
18917 # libtool distribution, otherwise you forgot to ship ltmain.sh
18918 # with your package, and you will get complaints that there are
18919 # no rules to generate ltmain.sh.
18920 if test -f "$ltmain"; then
18921 # See if we are running on zsh, and set the options which allow our commands through
18922 # without removal of \ escapes.
18923 if test -n "${ZSH_VERSION+set}" ; then
18924 setopt NO_GLOB_SUBST
18926 # Now quote all the things that may contain metacharacters while being
18927 # careful not to overquote the AC_SUBSTed values. We take copies of the
18928 # variables and quote the copies for generation of the libtool script.
18929 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18931 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18932 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18933 deplibs_check_method reload_flag reload_cmds need_locks \
18934 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18935 lt_cv_sys_global_symbol_to_c_name_address \
18936 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18937 old_postinstall_cmds old_postuninstall_cmds \
18941 lt_prog_compiler_wl_GCJ \
18942 lt_prog_compiler_pic_GCJ \
18943 lt_prog_compiler_static_GCJ \
18944 lt_prog_compiler_no_builtin_flag_GCJ \
18945 export_dynamic_flag_spec_GCJ \
18946 thread_safe_flag_spec_GCJ \
18947 whole_archive_flag_spec_GCJ \
18948 enable_shared_with_static_runtimes_GCJ \
18949 old_archive_cmds_GCJ \
18950 old_archive_from_new_cmds_GCJ \
18951 predep_objects_GCJ \
18952 postdep_objects_GCJ \
18955 compiler_lib_search_path_GCJ \
18957 archive_expsym_cmds_GCJ \
18958 postinstall_cmds_GCJ \
18959 postuninstall_cmds_GCJ \
18960 old_archive_from_expsyms_cmds_GCJ \
18961 allow_undefined_flag_GCJ \
18962 no_undefined_flag_GCJ \
18963 export_symbols_cmds_GCJ \
18964 hardcode_libdir_flag_spec_GCJ \
18965 hardcode_libdir_flag_spec_ld_GCJ \
18966 hardcode_libdir_separator_GCJ \
18967 hardcode_automatic_GCJ \
18969 module_expsym_cmds_GCJ \
18970 lt_cv_prog_compiler_c_o_GCJ \
18971 exclude_expsyms_GCJ \
18972 include_expsyms_GCJ; do
18975 old_archive_cmds_GCJ | \
18976 old_archive_from_new_cmds_GCJ | \
18977 archive_cmds_GCJ | \
18978 archive_expsym_cmds_GCJ | \
18979 module_cmds_GCJ | \
18980 module_expsym_cmds_GCJ | \
18981 old_archive_from_expsyms_cmds_GCJ | \
18982 export_symbols_cmds_GCJ | \
18983 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18984 postinstall_cmds | postuninstall_cmds | \
18985 old_postinstall_cmds | old_postuninstall_cmds | \
18986 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18987 # Double-quote double-evaled strings.
18988 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18991 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18997 *'\$0 --fallback-echo"')
18998 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19004 cat <<__EOF__ >> "$cfgfile"
19005 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19007 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19009 # Shell to use when invoking shell scripts.
19012 # Whether or not to build shared libraries.
19013 build_libtool_libs=$enable_shared
19015 # Whether or not to build static libraries.
19016 build_old_libs=$enable_static
19018 # Whether or not to add -lc for building shared libraries.
19019 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19021 # Whether or not to disallow shared libs when runtime libs are static
19022 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19024 # Whether or not to optimize for fast installation.
19025 fast_install=$enable_fast_install
19028 host_alias=$host_alias
19032 # The build system.
19033 build_alias=$build_alias
19037 # An echo program that does not interpret backslashes.
19042 AR_FLAGS=$lt_AR_FLAGS
19047 # LTCC compiler flags.
19048 LTCFLAGS=$lt_LTCFLAGS
19050 # A language-specific compiler.
19051 CC=$lt_compiler_GCJ
19053 # Is the compiler the GNU C compiler?
19059 # The linker used to build libraries.
19062 # Whether we need hard or soft links.
19065 # A BSD-compatible nm program.
19068 # A symbol stripping program
19071 # Used to examine libraries when file_magic_cmd begins "file"
19072 MAGIC_CMD=$MAGIC_CMD
19074 # Used on cygwin: DLL creation program.
19077 # Used on cygwin: object dumper.
19080 # Used on cygwin: assembler.
19083 # The name of the directory that contains temporary libtool files.
19086 # How to create reloadable object files.
19087 reload_flag=$lt_reload_flag
19088 reload_cmds=$lt_reload_cmds
19090 # How to pass a linker flag through the compiler.
19091 wl=$lt_lt_prog_compiler_wl_GCJ
19093 # Object file suffix (normally "o").
19094 objext="$ac_objext"
19096 # Old archive suffix (normally "a").
19099 # Shared library suffix (normally ".so").
19100 shrext_cmds='$shrext_cmds'
19102 # Executable file suffix (normally "").
19105 # Additional compiler flags for building library objects.
19106 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19109 # What is the maximum length of a command?
19110 max_cmd_len=$lt_cv_sys_max_cmd_len
19112 # Does compiler simultaneously support -c and -o options?
19113 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19115 # Must we lock files when doing compilation?
19116 need_locks=$lt_need_locks
19118 # Do we need the lib prefix for modules?
19119 need_lib_prefix=$need_lib_prefix
19121 # Do we need a version for libraries?
19122 need_version=$need_version
19124 # Whether dlopen is supported.
19125 dlopen_support=$enable_dlopen
19127 # Whether dlopen of programs is supported.
19128 dlopen_self=$enable_dlopen_self
19130 # Whether dlopen of statically linked programs is supported.
19131 dlopen_self_static=$enable_dlopen_self_static
19133 # Compiler flag to prevent dynamic linking.
19134 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19136 # Compiler flag to turn off builtin functions.
19137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19139 # Compiler flag to allow reflexive dlopens.
19140 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19142 # Compiler flag to generate shared objects directly from archives.
19143 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19145 # Compiler flag to generate thread-safe objects.
19146 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19148 # Library versioning type.
19149 version_type=$version_type
19151 # Format of library name prefix.
19152 libname_spec=$lt_libname_spec
19154 # List of archive names. First name is the real one, the rest are links.
19155 # The last name is the one that the linker finds with -lNAME.
19156 library_names_spec=$lt_library_names_spec
19158 # The coded name of the library, if different from the real name.
19159 soname_spec=$lt_soname_spec
19161 # Commands used to build and install an old-style archive.
19163 old_archive_cmds=$lt_old_archive_cmds_GCJ
19164 old_postinstall_cmds=$lt_old_postinstall_cmds
19165 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19167 # Create an old-style archive from a shared archive.
19168 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19170 # Create a temporary old-style archive to link instead of a shared archive.
19171 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19173 # Commands used to build and install a shared archive.
19174 archive_cmds=$lt_archive_cmds_GCJ
19175 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19176 postinstall_cmds=$lt_postinstall_cmds
19177 postuninstall_cmds=$lt_postuninstall_cmds
19179 # Commands used to build a loadable module (assumed same as above if empty)
19180 module_cmds=$lt_module_cmds_GCJ
19181 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19183 # Commands to strip libraries.
19184 old_striplib=$lt_old_striplib
19185 striplib=$lt_striplib
19187 # Dependencies to place before the objects being linked to create a
19189 predep_objects=$lt_predep_objects_GCJ
19191 # Dependencies to place after the objects being linked to create a
19193 postdep_objects=$lt_postdep_objects_GCJ
19195 # Dependencies to place before the objects being linked to create a
19197 predeps=$lt_predeps_GCJ
19199 # Dependencies to place after the objects being linked to create a
19201 postdeps=$lt_postdeps_GCJ
19203 # The library search path used internally by the compiler when linking
19204 # a shared library.
19205 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19207 # Method to check whether dependent libraries are shared objects.
19208 deplibs_check_method=$lt_deplibs_check_method
19210 # Command to use when deplibs_check_method == file_magic.
19211 file_magic_cmd=$lt_file_magic_cmd
19213 # Flag that allows shared libraries with undefined symbols to be built.
19214 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19216 # Flag that forces no undefined symbols.
19217 no_undefined_flag=$lt_no_undefined_flag_GCJ
19219 # Commands used to finish a libtool library installation in a directory.
19220 finish_cmds=$lt_finish_cmds
19222 # Same as above, but a single script fragment to be evaled but not shown.
19223 finish_eval=$lt_finish_eval
19225 # Take the output of nm and produce a listing of raw symbols and C names.
19226 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19228 # Transform the output of nm in a proper C declaration
19229 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19231 # Transform the output of nm in a C name address pair
19232 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19234 # This is the shared library runtime path variable.
19235 runpath_var=$runpath_var
19237 # This is the shared library path variable.
19238 shlibpath_var=$shlibpath_var
19240 # Is shlibpath searched before the hard-coded library search path?
19241 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19243 # How to hardcode a shared library path into an executable.
19244 hardcode_action=$hardcode_action_GCJ
19246 # Whether we should hardcode library paths into libraries.
19247 hardcode_into_libs=$hardcode_into_libs
19249 # Flag to hardcode \$libdir into a binary during linking.
19250 # This must work even if \$libdir does not exist.
19251 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19253 # If ld is used when linking, flag to hardcode \$libdir into
19254 # a binary during linking. This must work even if \$libdir does
19256 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19258 # Whether we need a single -rpath flag with a separated argument.
19259 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19261 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19262 # resulting binary.
19263 hardcode_direct=$hardcode_direct_GCJ
19265 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19266 # resulting binary.
19267 hardcode_minus_L=$hardcode_minus_L_GCJ
19269 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19270 # the resulting binary.
19271 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19273 # Set to yes if building a shared library automatically hardcodes DIR into the library
19274 # and all subsequent libraries and executables linked against it.
19275 hardcode_automatic=$hardcode_automatic_GCJ
19277 # Variables whose values should be saved in libtool wrapper scripts and
19278 # restored at relink time.
19279 variables_saved_for_relink="$variables_saved_for_relink"
19281 # Whether libtool must link a program against all its dependency libraries.
19282 link_all_deplibs=$link_all_deplibs_GCJ
19284 # Compile-time system search path for libraries
19285 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19287 # Run-time system search path for libraries
19288 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19290 # Fix the shell variable \$srcfile for the compiler.
19291 fix_srcfile_path="$fix_srcfile_path_GCJ"
19293 # Set to yes if exported symbols are required.
19294 always_export_symbols=$always_export_symbols_GCJ
19296 # The commands to list exported symbols.
19297 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19299 # The commands to extract the exported symbol list from a shared archive.
19300 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19302 # Symbols that should not be listed in the preloaded symbols.
19303 exclude_expsyms=$lt_exclude_expsyms_GCJ
19305 # Symbols that must always be exported.
19306 include_expsyms=$lt_include_expsyms_GCJ
19308 # ### END LIBTOOL TAG CONFIG: $tagname
19314 # If there is no Makefile yet, we rely on a make rule to execute
19315 # `config.status --recheck' to rerun these tests and create the
19316 # libtool script then.
19317 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19318 if test -f "$ltmain_in"; then
19319 test -f Makefile && make "$ltmain"
19325 ac_cpp='$CPP $CPPFLAGS'
19326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19340 # Source file extension for RC test sources.
19343 # Object file extension for compiled RC test sources.
19347 # Code to be used in simple compile tests
19348 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19350 # Code to be used in simple link tests
19351 lt_simple_link_test_code="$lt_simple_compile_test_code"
19353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19355 # If no C compiler was specified, use CC.
19358 # If no C compiler flags were specified, use CFLAGS.
19359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19361 # Allow CC to be a program name with arguments.
19365 # save warnings/boilerplate of simple test code
19366 ac_outfile=conftest.$ac_objext
19367 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19368 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19369 _lt_compiler_boilerplate=`cat conftest.err`
19372 ac_outfile=conftest.$ac_objext
19373 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19374 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19375 _lt_linker_boilerplate=`cat conftest.err`
19379 # Allow CC to be a program name with arguments.
19384 for cc_temp in $compiler""; do
19386 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19387 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19392 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19394 lt_cv_prog_compiler_c_o_RC=yes
19396 # The else clause should only fire when bootstrapping the
19397 # libtool distribution, otherwise you forgot to ship ltmain.sh
19398 # with your package, and you will get complaints that there are
19399 # no rules to generate ltmain.sh.
19400 if test -f "$ltmain"; then
19401 # See if we are running on zsh, and set the options which allow our commands through
19402 # without removal of \ escapes.
19403 if test -n "${ZSH_VERSION+set}" ; then
19404 setopt NO_GLOB_SUBST
19406 # Now quote all the things that may contain metacharacters while being
19407 # careful not to overquote the AC_SUBSTed values. We take copies of the
19408 # variables and quote the copies for generation of the libtool script.
19409 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19411 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19412 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19413 deplibs_check_method reload_flag reload_cmds need_locks \
19414 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19415 lt_cv_sys_global_symbol_to_c_name_address \
19416 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19417 old_postinstall_cmds old_postuninstall_cmds \
19421 lt_prog_compiler_wl_RC \
19422 lt_prog_compiler_pic_RC \
19423 lt_prog_compiler_static_RC \
19424 lt_prog_compiler_no_builtin_flag_RC \
19425 export_dynamic_flag_spec_RC \
19426 thread_safe_flag_spec_RC \
19427 whole_archive_flag_spec_RC \
19428 enable_shared_with_static_runtimes_RC \
19429 old_archive_cmds_RC \
19430 old_archive_from_new_cmds_RC \
19431 predep_objects_RC \
19432 postdep_objects_RC \
19435 compiler_lib_search_path_RC \
19437 archive_expsym_cmds_RC \
19438 postinstall_cmds_RC \
19439 postuninstall_cmds_RC \
19440 old_archive_from_expsyms_cmds_RC \
19441 allow_undefined_flag_RC \
19442 no_undefined_flag_RC \
19443 export_symbols_cmds_RC \
19444 hardcode_libdir_flag_spec_RC \
19445 hardcode_libdir_flag_spec_ld_RC \
19446 hardcode_libdir_separator_RC \
19447 hardcode_automatic_RC \
19449 module_expsym_cmds_RC \
19450 lt_cv_prog_compiler_c_o_RC \
19451 exclude_expsyms_RC \
19452 include_expsyms_RC; do
19455 old_archive_cmds_RC | \
19456 old_archive_from_new_cmds_RC | \
19457 archive_cmds_RC | \
19458 archive_expsym_cmds_RC | \
19460 module_expsym_cmds_RC | \
19461 old_archive_from_expsyms_cmds_RC | \
19462 export_symbols_cmds_RC | \
19463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19464 postinstall_cmds | postuninstall_cmds | \
19465 old_postinstall_cmds | old_postuninstall_cmds | \
19466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19467 # Double-quote double-evaled strings.
19468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19477 *'\$0 --fallback-echo"')
19478 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19484 cat <<__EOF__ >> "$cfgfile"
19485 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19489 # Shell to use when invoking shell scripts.
19492 # Whether or not to build shared libraries.
19493 build_libtool_libs=$enable_shared
19495 # Whether or not to build static libraries.
19496 build_old_libs=$enable_static
19498 # Whether or not to add -lc for building shared libraries.
19499 build_libtool_need_lc=$archive_cmds_need_lc_RC
19501 # Whether or not to disallow shared libs when runtime libs are static
19502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19504 # Whether or not to optimize for fast installation.
19505 fast_install=$enable_fast_install
19508 host_alias=$host_alias
19512 # The build system.
19513 build_alias=$build_alias
19517 # An echo program that does not interpret backslashes.
19522 AR_FLAGS=$lt_AR_FLAGS
19527 # LTCC compiler flags.
19528 LTCFLAGS=$lt_LTCFLAGS
19530 # A language-specific compiler.
19533 # Is the compiler the GNU C compiler?
19539 # The linker used to build libraries.
19542 # Whether we need hard or soft links.
19545 # A BSD-compatible nm program.
19548 # A symbol stripping program
19551 # Used to examine libraries when file_magic_cmd begins "file"
19552 MAGIC_CMD=$MAGIC_CMD
19554 # Used on cygwin: DLL creation program.
19557 # Used on cygwin: object dumper.
19560 # Used on cygwin: assembler.
19563 # The name of the directory that contains temporary libtool files.
19566 # How to create reloadable object files.
19567 reload_flag=$lt_reload_flag
19568 reload_cmds=$lt_reload_cmds
19570 # How to pass a linker flag through the compiler.
19571 wl=$lt_lt_prog_compiler_wl_RC
19573 # Object file suffix (normally "o").
19574 objext="$ac_objext"
19576 # Old archive suffix (normally "a").
19579 # Shared library suffix (normally ".so").
19580 shrext_cmds='$shrext_cmds'
19582 # Executable file suffix (normally "").
19585 # Additional compiler flags for building library objects.
19586 pic_flag=$lt_lt_prog_compiler_pic_RC
19589 # What is the maximum length of a command?
19590 max_cmd_len=$lt_cv_sys_max_cmd_len
19592 # Does compiler simultaneously support -c and -o options?
19593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19595 # Must we lock files when doing compilation?
19596 need_locks=$lt_need_locks
19598 # Do we need the lib prefix for modules?
19599 need_lib_prefix=$need_lib_prefix
19601 # Do we need a version for libraries?
19602 need_version=$need_version
19604 # Whether dlopen is supported.
19605 dlopen_support=$enable_dlopen
19607 # Whether dlopen of programs is supported.
19608 dlopen_self=$enable_dlopen_self
19610 # Whether dlopen of statically linked programs is supported.
19611 dlopen_self_static=$enable_dlopen_self_static
19613 # Compiler flag to prevent dynamic linking.
19614 link_static_flag=$lt_lt_prog_compiler_static_RC
19616 # Compiler flag to turn off builtin functions.
19617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19619 # Compiler flag to allow reflexive dlopens.
19620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19622 # Compiler flag to generate shared objects directly from archives.
19623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19625 # Compiler flag to generate thread-safe objects.
19626 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19628 # Library versioning type.
19629 version_type=$version_type
19631 # Format of library name prefix.
19632 libname_spec=$lt_libname_spec
19634 # List of archive names. First name is the real one, the rest are links.
19635 # The last name is the one that the linker finds with -lNAME.
19636 library_names_spec=$lt_library_names_spec
19638 # The coded name of the library, if different from the real name.
19639 soname_spec=$lt_soname_spec
19641 # Commands used to build and install an old-style archive.
19643 old_archive_cmds=$lt_old_archive_cmds_RC
19644 old_postinstall_cmds=$lt_old_postinstall_cmds
19645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19647 # Create an old-style archive from a shared archive.
19648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19650 # Create a temporary old-style archive to link instead of a shared archive.
19651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19653 # Commands used to build and install a shared archive.
19654 archive_cmds=$lt_archive_cmds_RC
19655 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19656 postinstall_cmds=$lt_postinstall_cmds
19657 postuninstall_cmds=$lt_postuninstall_cmds
19659 # Commands used to build a loadable module (assumed same as above if empty)
19660 module_cmds=$lt_module_cmds_RC
19661 module_expsym_cmds=$lt_module_expsym_cmds_RC
19663 # Commands to strip libraries.
19664 old_striplib=$lt_old_striplib
19665 striplib=$lt_striplib
19667 # Dependencies to place before the objects being linked to create a
19669 predep_objects=$lt_predep_objects_RC
19671 # Dependencies to place after the objects being linked to create a
19673 postdep_objects=$lt_postdep_objects_RC
19675 # Dependencies to place before the objects being linked to create a
19677 predeps=$lt_predeps_RC
19679 # Dependencies to place after the objects being linked to create a
19681 postdeps=$lt_postdeps_RC
19683 # The library search path used internally by the compiler when linking
19684 # a shared library.
19685 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19687 # Method to check whether dependent libraries are shared objects.
19688 deplibs_check_method=$lt_deplibs_check_method
19690 # Command to use when deplibs_check_method == file_magic.
19691 file_magic_cmd=$lt_file_magic_cmd
19693 # Flag that allows shared libraries with undefined symbols to be built.
19694 allow_undefined_flag=$lt_allow_undefined_flag_RC
19696 # Flag that forces no undefined symbols.
19697 no_undefined_flag=$lt_no_undefined_flag_RC
19699 # Commands used to finish a libtool library installation in a directory.
19700 finish_cmds=$lt_finish_cmds
19702 # Same as above, but a single script fragment to be evaled but not shown.
19703 finish_eval=$lt_finish_eval
19705 # Take the output of nm and produce a listing of raw symbols and C names.
19706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19708 # Transform the output of nm in a proper C declaration
19709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19711 # Transform the output of nm in a C name address pair
19712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19714 # This is the shared library runtime path variable.
19715 runpath_var=$runpath_var
19717 # This is the shared library path variable.
19718 shlibpath_var=$shlibpath_var
19720 # Is shlibpath searched before the hard-coded library search path?
19721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19723 # How to hardcode a shared library path into an executable.
19724 hardcode_action=$hardcode_action_RC
19726 # Whether we should hardcode library paths into libraries.
19727 hardcode_into_libs=$hardcode_into_libs
19729 # Flag to hardcode \$libdir into a binary during linking.
19730 # This must work even if \$libdir does not exist.
19731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19733 # If ld is used when linking, flag to hardcode \$libdir into
19734 # a binary during linking. This must work even if \$libdir does
19736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19738 # Whether we need a single -rpath flag with a separated argument.
19739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19742 # resulting binary.
19743 hardcode_direct=$hardcode_direct_RC
19745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19746 # resulting binary.
19747 hardcode_minus_L=$hardcode_minus_L_RC
19749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19750 # the resulting binary.
19751 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19753 # Set to yes if building a shared library automatically hardcodes DIR into the library
19754 # and all subsequent libraries and executables linked against it.
19755 hardcode_automatic=$hardcode_automatic_RC
19757 # Variables whose values should be saved in libtool wrapper scripts and
19758 # restored at relink time.
19759 variables_saved_for_relink="$variables_saved_for_relink"
19761 # Whether libtool must link a program against all its dependency libraries.
19762 link_all_deplibs=$link_all_deplibs_RC
19764 # Compile-time system search path for libraries
19765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19767 # Run-time system search path for libraries
19768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19770 # Fix the shell variable \$srcfile for the compiler.
19771 fix_srcfile_path="$fix_srcfile_path_RC"
19773 # Set to yes if exported symbols are required.
19774 always_export_symbols=$always_export_symbols_RC
19776 # The commands to list exported symbols.
19777 export_symbols_cmds=$lt_export_symbols_cmds_RC
19779 # The commands to extract the exported symbol list from a shared archive.
19780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19782 # Symbols that should not be listed in the preloaded symbols.
19783 exclude_expsyms=$lt_exclude_expsyms_RC
19785 # Symbols that must always be exported.
19786 include_expsyms=$lt_include_expsyms_RC
19788 # ### END LIBTOOL TAG CONFIG: $tagname
19794 # If there is no Makefile yet, we rely on a make rule to execute
19795 # `config.status --recheck' to rerun these tests and create the
19796 # libtool script then.
19797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19798 if test -f "$ltmain_in"; then
19799 test -f Makefile && make "$ltmain"
19805 ac_cpp='$CPP $CPPFLAGS'
19806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19815 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19816 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19817 { (exit 1); exit 1; }; }
19821 # Append the new tag name to the list of available tags.
19822 if test -n "$tagname" ; then
19823 available_tags="$available_tags $tagname"
19829 # Now substitute the updated list of available tags.
19830 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19831 mv "${ofile}T" "$ofile"
19835 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19836 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19837 { (exit 1); exit 1; }; }
19843 # This can be used to rebuild libtool when needed
19844 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19846 # Always use our own libtool.
19847 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19849 # Prevent multiple expansion
19877 ac_header_dirent=no
19878 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19879 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19880 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19881 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 #include <sys/types.h>
19903 rm -f conftest.$ac_objext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19905 (eval $ac_compile) 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } &&
19912 { ac_try='test -z "$ac_c_werror_flag"
19913 || test ! -s conftest.err'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } &&
19919 { ac_try='test -s conftest.$ac_objext'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
19925 eval "$as_ac_Header=yes"
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19930 eval "$as_ac_Header=no"
19933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19935 ac_res=`eval echo '${'$as_ac_Header'}'`
19936 { echo "$as_me:$LINENO: result: $ac_res" >&5
19937 echo "${ECHO_T}$ac_res" >&6; }
19938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19939 cat >>confdefs.h <<_ACEOF
19940 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19943 ac_header_dirent=$ac_hdr; break
19947 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19948 if test $ac_header_dirent = dirent.h; then
19949 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19950 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19951 if test "${ac_cv_search_opendir+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 ac_func_search_save_LIBS=$LIBS
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19962 /* Override any GCC internal prototype to avoid an error.
19963 Use char because int might match the return type of a GCC
19964 builtin and then its argument prototype would still apply. */
19977 for ac_lib in '' dir; do
19978 if test -z "$ac_lib"; then
19979 ac_res="none required"
19982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19984 rm -f conftest.$ac_objext conftest$ac_exeext
19985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19986 (eval $ac_link) 2>conftest.er1
19988 grep -v '^ *+' conftest.er1 >conftest.err
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -z "$ac_c_werror_flag"
19994 || test ! -s conftest.err'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest$ac_exeext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ac_cv_search_opendir=$ac_res
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20014 rm -f conftest.err conftest.$ac_objext \
20016 if test "${ac_cv_search_opendir+set}" = set; then
20020 if test "${ac_cv_search_opendir+set}" = set; then
20023 ac_cv_search_opendir=no
20025 rm conftest.$ac_ext
20026 LIBS=$ac_func_search_save_LIBS
20028 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20029 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20030 ac_res=$ac_cv_search_opendir
20031 if test "$ac_res" != no; then
20032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20037 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20038 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20039 if test "${ac_cv_search_opendir+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 ac_func_search_save_LIBS=$LIBS
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20050 /* Override any GCC internal prototype to avoid an error.
20051 Use char because int might match the return type of a GCC
20052 builtin and then its argument prototype would still apply. */
20065 for ac_lib in '' x; do
20066 if test -z "$ac_lib"; then
20067 ac_res="none required"
20070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20072 rm -f conftest.$ac_objext conftest$ac_exeext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20074 (eval $ac_link) 2>conftest.er1
20076 grep -v '^ *+' conftest.er1 >conftest.err
20078 cat conftest.err >&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } &&
20081 { ac_try='test -z "$ac_c_werror_flag"
20082 || test ! -s conftest.err'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; } &&
20088 { ac_try='test -s conftest$ac_exeext'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; }; then
20094 ac_cv_search_opendir=$ac_res
20096 echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20102 rm -f conftest.err conftest.$ac_objext \
20104 if test "${ac_cv_search_opendir+set}" = set; then
20108 if test "${ac_cv_search_opendir+set}" = set; then
20111 ac_cv_search_opendir=no
20113 rm conftest.$ac_ext
20114 LIBS=$ac_func_search_save_LIBS
20116 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20117 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20118 ac_res=$ac_cv_search_opendir
20119 if test "$ac_res" != no; then
20120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20126 # Check whether --enable-ltdl-install was given.
20127 if test "${enable_ltdl_install+set}" = set; then
20128 enableval=$enable_ltdl_install;
20134 if test x"${enable_ltdl_install-no}" != xno; then
20136 INSTALL_LTDL_FALSE='#'
20138 INSTALL_LTDL_TRUE='#'
20139 INSTALL_LTDL_FALSE=
20144 if test x"${enable_ltdl_convenience-no}" != xno; then
20145 CONVENIENCE_LTDL_TRUE=
20146 CONVENIENCE_LTDL_FALSE='#'
20148 CONVENIENCE_LTDL_TRUE='#'
20149 CONVENIENCE_LTDL_FALSE=
20154 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20155 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20156 if test "${libltdl_cv_shlibext+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 eval libltdl_cv_shlibext=$shrext_cmds
20164 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20165 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20166 if test -n "$libltdl_cv_shlibext"; then
20168 cat >>confdefs.h <<_ACEOF
20169 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20175 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20176 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20177 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 libltdl_cv_shlibpath_var="$shlibpath_var"
20182 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20183 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20184 if test -n "$libltdl_cv_shlibpath_var"; then
20186 cat >>confdefs.h <<_ACEOF
20187 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20193 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20194 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20195 if test "${libltdl_cv_sys_search_path+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20200 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20201 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20202 if test -n "$libltdl_cv_sys_search_path"; then
20204 for dir in $libltdl_cv_sys_search_path; do
20205 if test -z "$sys_search_path"; then
20206 sys_search_path="$dir"
20208 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20212 cat >>confdefs.h <<_ACEOF
20213 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20218 { echo "$as_me:$LINENO: checking for objdir" >&5
20219 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20220 if test "${libltdl_cv_objdir+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 libltdl_cv_objdir="$objdir"
20224 if test -n "$objdir"; then
20227 rm -f .libs 2>/dev/null
20228 mkdir .libs 2>/dev/null
20229 if test -d .libs; then
20230 libltdl_cv_objdir=.libs
20232 # MS-DOS does not allow filenames that begin with a dot.
20233 libltdl_cv_objdir=_libs
20235 rmdir .libs 2>/dev/null
20239 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20240 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20242 cat >>confdefs.h <<_ACEOF
20243 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20248 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20249 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20250 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20254 libltdl_cv_preloaded_symbols=yes
20256 libltdl_cv_preloaded_symbols=no
20260 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20261 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20262 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20264 cat >>confdefs.h <<\_ACEOF
20265 #define HAVE_PRELOADED_SYMBOLS 1
20273 ac_cpp='$CPP $CPPFLAGS'
20274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20279 { echo "$as_me:$LINENO: checking for shl_load" >&5
20280 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20281 if test "${ac_cv_func_shl_load+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 cat >conftest.$ac_ext <<_ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20290 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20292 #define shl_load innocuous_shl_load
20294 /* System header to define __stub macros and hopefully few prototypes,
20295 which can conflict with char shl_load (); below.
20296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20297 <limits.h> exists even on freestanding compilers. */
20300 # include <limits.h>
20302 # include <assert.h>
20307 /* Override any GCC internal prototype to avoid an error.
20308 Use char because int might match the return type of a GCC
20309 builtin and then its argument prototype would still apply. */
20314 /* The GNU C library defines this for functions which it implements
20315 to always fail with ENOSYS. Some functions are actually named
20316 something starting with __ and the normal name is an alias. */
20317 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20324 return shl_load ();
20329 rm -f conftest.$ac_objext conftest$ac_exeext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20331 (eval $ac_link) 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } &&
20338 { ac_try='test -z "$ac_c_werror_flag"
20339 || test ! -s conftest.err'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest$ac_exeext'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_cv_func_shl_load=yes
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 ac_cv_func_shl_load=no
20359 rm -f conftest.err conftest.$ac_objext \
20360 conftest$ac_exeext conftest.$ac_ext
20362 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20363 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20364 if test $ac_cv_func_shl_load = yes; then
20366 cat >>confdefs.h <<\_ACEOF
20367 #define HAVE_SHL_LOAD 1
20371 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20372 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20373 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 ac_check_lib_save_LIBS=$LIBS
20378 cat >conftest.$ac_ext <<_ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20385 /* Override any GCC internal prototype to avoid an error.
20386 Use char because int might match the return type of a GCC
20387 builtin and then its argument prototype would still apply. */
20395 return shl_load ();
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20402 (eval $ac_link) 2>conftest.er1
20404 grep -v '^ *+' conftest.er1 >conftest.err
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } &&
20409 { ac_try='test -z "$ac_c_werror_flag"
20410 || test ! -s conftest.err'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest$ac_exeext'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 ac_cv_lib_dld_shl_load=yes
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_cv_lib_dld_shl_load=no
20430 rm -f conftest.err conftest.$ac_objext \
20431 conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20434 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20435 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20436 if test $ac_cv_lib_dld_shl_load = yes; then
20438 cat >>confdefs.h <<\_ACEOF
20439 #define HAVE_SHL_LOAD 1
20442 LIBADD_DL="$LIBADD_DL -ldld"
20444 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 ac_check_lib_save_LIBS=$LIBS
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20458 /* Override any GCC internal prototype to avoid an error.
20459 Use char because int might match the return type of a GCC
20460 builtin and then its argument prototype would still apply. */
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20475 (eval $ac_link) 2>conftest.er1
20477 grep -v '^ *+' conftest.er1 >conftest.err
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -z "$ac_c_werror_flag"
20483 || test ! -s conftest.err'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest$ac_exeext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 ac_cv_lib_dl_dlopen=yes
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_cv_lib_dl_dlopen=no
20503 rm -f conftest.err conftest.$ac_objext \
20504 conftest$ac_exeext conftest.$ac_ext
20505 LIBS=$ac_check_lib_save_LIBS
20507 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20508 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20509 if test $ac_cv_lib_dl_dlopen = yes; then
20511 cat >>confdefs.h <<\_ACEOF
20512 #define HAVE_LIBDL 1
20515 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20517 cat >conftest.$ac_ext <<_ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20524 # include <dlfcn.h>
20535 rm -f conftest.$ac_objext conftest$ac_exeext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20537 (eval $ac_link) 2>conftest.er1
20539 grep -v '^ *+' conftest.er1 >conftest.err
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_c_werror_flag"
20545 || test ! -s conftest.err'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest$ac_exeext'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20558 cat >>confdefs.h <<\_ACEOF
20559 #define HAVE_LIBDL 1
20561 libltdl_cv_func_dlopen="yes"
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20566 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20567 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20571 ac_check_lib_save_LIBS=$LIBS
20572 LIBS="-lsvld $LIBS"
20573 cat >conftest.$ac_ext <<_ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20580 /* Override any GCC internal prototype to avoid an error.
20581 Use char because int might match the return type of a GCC
20582 builtin and then its argument prototype would still apply. */
20595 rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20597 (eval $ac_link) 2>conftest.er1
20599 grep -v '^ *+' conftest.er1 >conftest.err
20601 cat conftest.err >&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } &&
20604 { ac_try='test -z "$ac_c_werror_flag"
20605 || test ! -s conftest.err'
20606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607 (eval $ac_try) 2>&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; } &&
20611 { ac_try='test -s conftest$ac_exeext'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; }; then
20617 ac_cv_lib_svld_dlopen=yes
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 ac_cv_lib_svld_dlopen=no
20625 rm -f conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext conftest.$ac_ext
20627 LIBS=$ac_check_lib_save_LIBS
20629 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20630 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20631 if test $ac_cv_lib_svld_dlopen = yes; then
20633 cat >>confdefs.h <<\_ACEOF
20634 #define HAVE_LIBDL 1
20637 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20639 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20640 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20641 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 ac_check_lib_save_LIBS=$LIBS
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20653 /* Override any GCC internal prototype to avoid an error.
20654 Use char because int might match the return type of a GCC
20655 builtin and then its argument prototype would still apply. */
20663 return dld_link ();
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670 (eval $ac_link) 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag"
20678 || test ! -s conftest.err'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest$ac_exeext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_cv_lib_dld_dld_link=yes
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ac_cv_lib_dld_dld_link=no
20698 rm -f conftest.err conftest.$ac_objext \
20699 conftest$ac_exeext conftest.$ac_ext
20700 LIBS=$ac_check_lib_save_LIBS
20702 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20703 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20704 if test $ac_cv_lib_dld_dld_link = yes; then
20706 cat >>confdefs.h <<\_ACEOF
20710 LIBADD_DL="$LIBADD_DL -ldld"
20712 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20713 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20714 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20725 #define _dyld_func_lookup innocuous__dyld_func_lookup
20727 /* System header to define __stub macros and hopefully few prototypes,
20728 which can conflict with char _dyld_func_lookup (); below.
20729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20730 <limits.h> exists even on freestanding compilers. */
20733 # include <limits.h>
20735 # include <assert.h>
20738 #undef _dyld_func_lookup
20740 /* Override any GCC internal prototype to avoid an error.
20741 Use char because int might match the return type of a GCC
20742 builtin and then its argument prototype would still apply. */
20746 char _dyld_func_lookup ();
20747 /* The GNU C library defines this for functions which it implements
20748 to always fail with ENOSYS. Some functions are actually named
20749 something starting with __ and the normal name is an alias. */
20750 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20757 return _dyld_func_lookup ();
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764 (eval $ac_link) 2>conftest.er1
20766 grep -v '^ *+' conftest.er1 >conftest.err
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
20771 { ac_try='test -z "$ac_c_werror_flag"
20772 || test ! -s conftest.err'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; } &&
20778 { ac_try='test -s conftest$ac_exeext'
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 ac_cv_func__dyld_func_lookup=yes
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20789 ac_cv_func__dyld_func_lookup=no
20792 rm -f conftest.err conftest.$ac_objext \
20793 conftest$ac_exeext conftest.$ac_ext
20795 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20796 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20797 if test $ac_cv_func__dyld_func_lookup = yes; then
20799 cat >>confdefs.h <<\_ACEOF
20800 #define HAVE_DYLD 1
20814 rm -f conftest.err conftest.$ac_objext \
20815 conftest$ac_exeext conftest.$ac_ext
20826 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20828 lt_save_LIBS="$LIBS"
20829 LIBS="$LIBS $LIBADD_DL"
20831 for ac_func in dlerror
20833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 cat >conftest.$ac_ext <<_ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20847 #define $ac_func innocuous_$ac_func
20849 /* System header to define __stub macros and hopefully few prototypes,
20850 which can conflict with char $ac_func (); below.
20851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20852 <limits.h> exists even on freestanding compilers. */
20855 # include <limits.h>
20857 # include <assert.h>
20862 /* Override any GCC internal prototype to avoid an error.
20863 Use char because int might match the return type of a GCC
20864 builtin and then its argument prototype would still apply. */
20869 /* The GNU C library defines this for functions which it implements
20870 to always fail with ENOSYS. Some functions are actually named
20871 something starting with __ and the normal name is an alias. */
20872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20879 return $ac_func ();
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
20893 { ac_try='test -z "$ac_c_werror_flag"
20894 || test ! -s conftest.err'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest$ac_exeext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 eval "$as_ac_var=yes"
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 eval "$as_ac_var=no"
20914 rm -f conftest.err conftest.$ac_objext \
20915 conftest$ac_exeext conftest.$ac_ext
20917 ac_res=`eval echo '${'$as_ac_var'}'`
20918 { echo "$as_me:$LINENO: result: $ac_res" >&5
20919 echo "${ECHO_T}$ac_res" >&6; }
20920 if test `eval echo '${'$as_ac_var'}'` = yes; then
20921 cat >>confdefs.h <<_ACEOF
20922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20928 LIBS="$lt_save_LIBS"
20931 ac_cpp='$CPP $CPPFLAGS'
20932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20939 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20940 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 ac_cv_sys_symbol_underscore=no
20944 cat > conftest.$ac_ext <<EOF
20945 void nm_test_func(){}
20946 int main(){nm_test_func;return 0;}
20948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20949 (eval $ac_compile) 2>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; then
20953 # Now try to grab the symbols.
20954 ac_nlist=conftest.nm
20955 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20956 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } && test -s "$ac_nlist"; then
20960 # See whether the symbols have a leading underscore.
20961 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20962 ac_cv_sys_symbol_underscore=yes
20964 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20967 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20971 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20974 echo "configure: failed program was:" >&5
20980 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20981 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20984 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20985 if test x"$libltdl_cv_func_dlopen" = xyes ||
20986 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20987 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20988 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20989 if test "${libltdl_cv_need_uscore+set}" = set; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 libltdl_cv_need_uscore=unknown
20994 LIBS="$LIBS $LIBADD_DL"
20995 if test "$cross_compiling" = yes; then :
20996 libltdl_cv_need_uscore=cross
20998 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20999 lt_status=$lt_dlunknown
21000 cat > conftest.$ac_ext <<EOF
21001 #line 21001 "configure"
21002 #include "confdefs.h"
21011 # define LT_DLGLOBAL RTLD_GLOBAL
21014 # define LT_DLGLOBAL DL_GLOBAL
21016 # define LT_DLGLOBAL 0
21020 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21021 find out it does not work in some platform. */
21022 #ifndef LT_DLLAZY_OR_NOW
21024 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21027 # define LT_DLLAZY_OR_NOW DL_LAZY
21030 # define LT_DLLAZY_OR_NOW RTLD_NOW
21033 # define LT_DLLAZY_OR_NOW DL_NOW
21035 # define LT_DLLAZY_OR_NOW 0
21043 extern "C" void exit (int);
21046 void fnord() { int i=42;}
21049 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21050 int status = $lt_dlunknown;
21054 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21055 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21056 /* dlclose (self); */
21064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065 (eval $ac_link) 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21069 (./conftest; exit; ) >&5 2>/dev/null
21071 case x$lt_status in
21072 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21073 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21074 x$lt_dlunknown|x*) ;;
21077 # compilation failed
21086 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21087 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21091 if test x"$libltdl_cv_need_uscore" = xyes; then
21093 cat >>confdefs.h <<\_ACEOF
21094 #define NEED_USCORE 1
21100 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21101 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21102 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21105 # PORTME does your system automatically load deplibs for dlopen?
21106 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21107 # For now, we just catch OSes we know something about -- in the
21108 # future, we'll try test this programmatically.
21109 libltdl_cv_sys_dlopen_deplibs=unknown
21111 aix3*|aix4.1.*|aix4.2.*)
21112 # Unknown whether this is true for these versions of AIX, but
21113 # we want this `case' here to explicitly catch those versions.
21114 libltdl_cv_sys_dlopen_deplibs=unknown
21117 libltdl_cv_sys_dlopen_deplibs=yes
21120 # Assuming the user has installed a libdl from somewhere, this is true
21121 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21122 libltdl_cv_sys_dlopen_deplibs=yes
21124 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21125 # GNU and its variants, using gnu ld.so (Glibc)
21126 libltdl_cv_sys_dlopen_deplibs=yes
21129 libltdl_cv_sys_dlopen_deplibs=yes
21132 libltdl_cv_sys_dlopen_deplibs=yes
21134 irix[12345]*|irix6.[01]*)
21135 # Catch all versions of IRIX before 6.2, and indicate that we don't
21136 # know how it worked for any of those versions.
21137 libltdl_cv_sys_dlopen_deplibs=unknown
21140 # The case above catches anything before 6.2, and it's known that
21141 # at 6.2 and later dlopen does load deplibs.
21142 libltdl_cv_sys_dlopen_deplibs=yes
21145 libltdl_cv_sys_dlopen_deplibs=yes
21148 libltdl_cv_sys_dlopen_deplibs=yes
21151 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21152 # it did *not* use an RPATH in a shared library to find objects the
21153 # library depends on, so we explictly say `no'.
21154 libltdl_cv_sys_dlopen_deplibs=no
21156 osf5.0|osf5.0a|osf5.1)
21157 # dlopen *does* load deplibs and with the right loader patch applied
21158 # it even uses RPATH in a shared library to search for shared objects
21159 # that the library depends on, but there's no easy way to know if that
21160 # patch is installed. Since this is the case, all we can really
21161 # say is unknown -- it depends on the patch being installed. If
21162 # it is, this changes to `yes'. Without it, it would be `no'.
21163 libltdl_cv_sys_dlopen_deplibs=unknown
21166 # the two cases above should catch all versions of osf <= 5.1. Read
21167 # the comments above for what we know about them.
21168 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21169 # is used to find them so we can finally say `yes'.
21170 libltdl_cv_sys_dlopen_deplibs=yes
21173 libltdl_cv_sys_dlopen_deplibs=yes
21175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21176 libltdl_cv_sys_dlopen_deplibs=yes
21181 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21182 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21183 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21185 cat >>confdefs.h <<\_ACEOF
21186 #define LTDL_DLOPEN_DEPLIBS 1
21192 for ac_header in argz.h
21194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202 { echo "$as_me:$LINENO: result: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21205 # Is the header compilable?
21206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21208 cat >conftest.$ac_ext <<_ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 $ac_includes_default
21215 #include <$ac_header>
21217 rm -f conftest.$ac_objext
21218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21219 (eval $ac_compile) 2>conftest.er1
21221 grep -v '^ *+' conftest.er1 >conftest.err
21223 cat conftest.err >&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } &&
21226 { ac_try='test -z "$ac_c_werror_flag"
21227 || test ! -s conftest.err'
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; } &&
21233 { ac_try='test -s conftest.$ac_objext'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; }; then
21239 ac_header_compiler=yes
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_header_compiler=no
21247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21249 echo "${ECHO_T}$ac_header_compiler" >&6; }
21251 # Is the header present?
21252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21254 cat >conftest.$ac_ext <<_ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 #include <$ac_header>
21262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21265 grep -v '^ *+' conftest.er1 >conftest.err
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } >/dev/null; then
21270 if test -s conftest.err; then
21271 ac_cpp_err=$ac_c_preproc_warn_flag
21272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21279 if test -z "$ac_cpp_err"; then
21280 ac_header_preproc=yes
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_header_preproc=no
21288 rm -f conftest.err conftest.$ac_ext
21289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21290 echo "${ECHO_T}$ac_header_preproc" >&6; }
21292 # So? What about this header?
21293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21299 ac_header_preproc=yes
21302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21316 ## ---------------------------------- ##
21317 ## Report this to bug-libtool@gnu.org ##
21318 ## ---------------------------------- ##
21321 sed "s/^/$as_me: WARNING: /" >&2
21324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21329 eval "$as_ac_Header=\$ac_header_preproc"
21331 ac_res=`eval echo '${'$as_ac_Header'}'`
21332 { echo "$as_me:$LINENO: result: $ac_res" >&5
21333 echo "${ECHO_T}$ac_res" >&6; }
21336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21337 cat >>confdefs.h <<_ACEOF
21338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21346 { echo "$as_me:$LINENO: checking for error_t" >&5
21347 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21348 if test "${ac_cv_type_error_t+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 cat >conftest.$ac_ext <<_ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h. */
21366 if (sizeof (error_t))
21372 rm -f conftest.$ac_objext
21373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21374 (eval $ac_compile) 2>conftest.er1
21376 grep -v '^ *+' conftest.er1 >conftest.err
21378 cat conftest.err >&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } &&
21381 { ac_try='test -z "$ac_c_werror_flag"
21382 || test ! -s conftest.err'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; } &&
21388 { ac_try='test -s conftest.$ac_objext'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21394 ac_cv_type_error_t=yes
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 ac_cv_type_error_t=no
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21404 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21405 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21406 if test $ac_cv_type_error_t = yes; then
21408 cat >>confdefs.h <<_ACEOF
21409 #define HAVE_ERROR_T 1
21415 cat >>confdefs.h <<\_ACEOF
21416 #define error_t int
21427 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
21435 cat >conftest.$ac_ext <<_ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21443 #define $ac_func innocuous_$ac_func
21445 /* System header to define __stub macros and hopefully few prototypes,
21446 which can conflict with char $ac_func (); below.
21447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21448 <limits.h> exists even on freestanding compilers. */
21451 # include <limits.h>
21453 # include <assert.h>
21458 /* Override any GCC internal prototype to avoid an error.
21459 Use char because int might match the return type of a GCC
21460 builtin and then its argument prototype would still apply. */
21465 /* The GNU C library defines this for functions which it implements
21466 to always fail with ENOSYS. Some functions are actually named
21467 something starting with __ and the normal name is an alias. */
21468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21475 return $ac_func ();
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21482 (eval $ac_link) 2>conftest.er1
21484 grep -v '^ *+' conftest.er1 >conftest.err
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
21489 { ac_try='test -z "$ac_c_werror_flag"
21490 || test ! -s conftest.err'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 eval "$as_ac_var=yes"
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 eval "$as_ac_var=no"
21510 rm -f conftest.err conftest.$ac_objext \
21511 conftest$ac_exeext conftest.$ac_ext
21513 ac_res=`eval echo '${'$as_ac_var'}'`
21514 { echo "$as_me:$LINENO: result: $ac_res" >&5
21515 echo "${ECHO_T}$ac_res" >&6; }
21516 if test `eval echo '${'$as_ac_var'}'` = yes; then
21517 cat >>confdefs.h <<_ACEOF
21518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21551 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21559 echo $ECHO_N "(cached) $ECHO_C" >&6
21561 ac_res=`eval echo '${'$as_ac_Header'}'`
21562 { echo "$as_me:$LINENO: result: $ac_res" >&5
21563 echo "${ECHO_T}$ac_res" >&6; }
21565 # Is the header compilable?
21566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21568 cat >conftest.$ac_ext <<_ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21574 $ac_includes_default
21575 #include <$ac_header>
21577 rm -f conftest.$ac_objext
21578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21579 (eval $ac_compile) 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } &&
21586 { ac_try='test -z "$ac_c_werror_flag"
21587 || test ! -s conftest.err'
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; } &&
21593 { ac_try='test -s conftest.$ac_objext'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
21599 ac_header_compiler=yes
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21604 ac_header_compiler=no
21607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21609 echo "${ECHO_T}$ac_header_compiler" >&6; }
21611 # Is the header present?
21612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 #include <$ac_header>
21622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } >/dev/null; then
21630 if test -s conftest.err; then
21631 ac_cpp_err=$ac_c_preproc_warn_flag
21632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21639 if test -z "$ac_cpp_err"; then
21640 ac_header_preproc=yes
21642 echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21645 ac_header_preproc=no
21648 rm -f conftest.err conftest.$ac_ext
21649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21650 echo "${ECHO_T}$ac_header_preproc" >&6; }
21652 # So? What about this header?
21653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21659 ac_header_preproc=yes
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21676 ## ---------------------------------- ##
21677 ## Report this to bug-libtool@gnu.org ##
21678 ## ---------------------------------- ##
21681 sed "s/^/$as_me: WARNING: /" >&2
21684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21689 eval "$as_ac_Header=\$ac_header_preproc"
21691 ac_res=`eval echo '${'$as_ac_Header'}'`
21692 { echo "$as_me:$LINENO: result: $ac_res" >&5
21693 echo "${ECHO_T}$ac_res" >&6; }
21696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21697 cat >>confdefs.h <<_ACEOF
21698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21709 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21718 ac_res=`eval echo '${'$as_ac_Header'}'`
21719 { echo "$as_me:$LINENO: result: $ac_res" >&5
21720 echo "${ECHO_T}$ac_res" >&6; }
21722 # Is the header compilable?
21723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 $ac_includes_default
21732 #include <$ac_header>
21734 rm -f conftest.$ac_objext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21736 (eval $ac_compile) 2>conftest.er1
21738 grep -v '^ *+' conftest.er1 >conftest.err
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } &&
21743 { ac_try='test -z "$ac_c_werror_flag"
21744 || test ! -s conftest.err'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; } &&
21750 { ac_try='test -s conftest.$ac_objext'
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; }; then
21756 ac_header_compiler=yes
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_header_compiler=no
21764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21766 echo "${ECHO_T}$ac_header_compiler" >&6; }
21768 # Is the header present?
21769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21771 cat >conftest.$ac_ext <<_ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21777 #include <$ac_header>
21779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21782 grep -v '^ *+' conftest.er1 >conftest.err
21784 cat conftest.err >&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); } >/dev/null; then
21787 if test -s conftest.err; then
21788 ac_cpp_err=$ac_c_preproc_warn_flag
21789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21796 if test -z "$ac_cpp_err"; then
21797 ac_header_preproc=yes
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21802 ac_header_preproc=no
21805 rm -f conftest.err conftest.$ac_ext
21806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21807 echo "${ECHO_T}$ac_header_preproc" >&6; }
21809 # So? What about this header?
21810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21816 ac_header_preproc=yes
21819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21833 ## ---------------------------------- ##
21834 ## Report this to bug-libtool@gnu.org ##
21835 ## ---------------------------------- ##
21838 sed "s/^/$as_me: WARNING: /" >&2
21841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 eval "$as_ac_Header=\$ac_header_preproc"
21848 ac_res=`eval echo '${'$as_ac_Header'}'`
21849 { echo "$as_me:$LINENO: result: $ac_res" >&5
21850 echo "${ECHO_T}$ac_res" >&6; }
21853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21854 cat >>confdefs.h <<_ACEOF
21855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21864 for ac_header in string.h strings.h
21866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21873 ac_res=`eval echo '${'$as_ac_Header'}'`
21874 { echo "$as_me:$LINENO: result: $ac_res" >&5
21875 echo "${ECHO_T}$ac_res" >&6; }
21877 # Is the header compilable?
21878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 $ac_includes_default
21887 #include <$ac_header>
21889 rm -f conftest.$ac_objext
21890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21891 (eval $ac_compile) 2>conftest.er1
21893 grep -v '^ *+' conftest.er1 >conftest.err
21895 cat conftest.err >&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } &&
21898 { ac_try='test -z "$ac_c_werror_flag"
21899 || test ! -s conftest.err'
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; } &&
21905 { ac_try='test -s conftest.$ac_objext'
21906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907 (eval $ac_try) 2>&5
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
21911 ac_header_compiler=yes
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21916 ac_header_compiler=no
21919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21921 echo "${ECHO_T}$ac_header_compiler" >&6; }
21923 # Is the header present?
21924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21926 cat >conftest.$ac_ext <<_ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21932 #include <$ac_header>
21934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21937 grep -v '^ *+' conftest.er1 >conftest.err
21939 cat conftest.err >&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } >/dev/null; then
21942 if test -s conftest.err; then
21943 ac_cpp_err=$ac_c_preproc_warn_flag
21944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21951 if test -z "$ac_cpp_err"; then
21952 ac_header_preproc=yes
21954 echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21957 ac_header_preproc=no
21960 rm -f conftest.err conftest.$ac_ext
21961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21962 echo "${ECHO_T}$ac_header_preproc" >&6; }
21964 # So? What about this header?
21965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21971 ac_header_preproc=yes
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21988 ## ---------------------------------- ##
21989 ## Report this to bug-libtool@gnu.org ##
21990 ## ---------------------------------- ##
21993 sed "s/^/$as_me: WARNING: /" >&2
21996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 eval "$as_ac_Header=\$ac_header_preproc"
22003 ac_res=`eval echo '${'$as_ac_Header'}'`
22004 { echo "$as_me:$LINENO: result: $ac_res" >&5
22005 echo "${ECHO_T}$ac_res" >&6; }
22008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22009 cat >>confdefs.h <<_ACEOF
22010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22020 for ac_func in strchr index
22022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22026 echo $ECHO_N "(cached) $ECHO_C" >&6
22028 cat >conftest.$ac_ext <<_ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22036 #define $ac_func innocuous_$ac_func
22038 /* System header to define __stub macros and hopefully few prototypes,
22039 which can conflict with char $ac_func (); below.
22040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22041 <limits.h> exists even on freestanding compilers. */
22044 # include <limits.h>
22046 # include <assert.h>
22051 /* Override any GCC internal prototype to avoid an error.
22052 Use char because int might match the return type of a GCC
22053 builtin and then its argument prototype would still apply. */
22058 /* The GNU C library defines this for functions which it implements
22059 to always fail with ENOSYS. Some functions are actually named
22060 something starting with __ and the normal name is an alias. */
22061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22068 return $ac_func ();
22073 rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22075 (eval $ac_link) 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } &&
22082 { ac_try='test -z "$ac_c_werror_flag"
22083 || test ! -s conftest.err'
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085 (eval $ac_try) 2>&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; } &&
22089 { ac_try='test -s conftest$ac_exeext'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
22095 eval "$as_ac_var=yes"
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 eval "$as_ac_var=no"
22103 rm -f conftest.err conftest.$ac_objext \
22104 conftest$ac_exeext conftest.$ac_ext
22106 ac_res=`eval echo '${'$as_ac_var'}'`
22107 { echo "$as_me:$LINENO: result: $ac_res" >&5
22108 echo "${ECHO_T}$ac_res" >&6; }
22109 if test `eval echo '${'$as_ac_var'}'` = yes; then
22110 cat >>confdefs.h <<_ACEOF
22111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22119 for ac_func in strrchr rindex
22121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 cat >conftest.$ac_ext <<_ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22135 #define $ac_func innocuous_$ac_func
22137 /* System header to define __stub macros and hopefully few prototypes,
22138 which can conflict with char $ac_func (); below.
22139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22140 <limits.h> exists even on freestanding compilers. */
22143 # include <limits.h>
22145 # include <assert.h>
22150 /* Override any GCC internal prototype to avoid an error.
22151 Use char because int might match the return type of a GCC
22152 builtin and then its argument prototype would still apply. */
22157 /* The GNU C library defines this for functions which it implements
22158 to always fail with ENOSYS. Some functions are actually named
22159 something starting with __ and the normal name is an alias. */
22160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22167 return $ac_func ();
22172 rm -f conftest.$ac_objext conftest$ac_exeext
22173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22174 (eval $ac_link) 2>conftest.er1
22176 grep -v '^ *+' conftest.er1 >conftest.err
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } &&
22181 { ac_try='test -z "$ac_c_werror_flag"
22182 || test ! -s conftest.err'
22183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184 (eval $ac_try) 2>&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); }; } &&
22188 { ac_try='test -s conftest$ac_exeext'
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; }; then
22194 eval "$as_ac_var=yes"
22196 echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22199 eval "$as_ac_var=no"
22202 rm -f conftest.err conftest.$ac_objext \
22203 conftest$ac_exeext conftest.$ac_ext
22205 ac_res=`eval echo '${'$as_ac_var'}'`
22206 { echo "$as_me:$LINENO: result: $ac_res" >&5
22207 echo "${ECHO_T}$ac_res" >&6; }
22208 if test `eval echo '${'$as_ac_var'}'` = yes; then
22209 cat >>confdefs.h <<_ACEOF
22210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22218 for ac_func in memcpy bcopy
22220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 cat >conftest.$ac_ext <<_ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22234 #define $ac_func innocuous_$ac_func
22236 /* System header to define __stub macros and hopefully few prototypes,
22237 which can conflict with char $ac_func (); below.
22238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22239 <limits.h> exists even on freestanding compilers. */
22242 # include <limits.h>
22244 # include <assert.h>
22249 /* Override any GCC internal prototype to avoid an error.
22250 Use char because int might match the return type of a GCC
22251 builtin and then its argument prototype would still apply. */
22256 /* The GNU C library defines this for functions which it implements
22257 to always fail with ENOSYS. Some functions are actually named
22258 something starting with __ and the normal name is an alias. */
22259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22266 return $ac_func ();
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22273 (eval $ac_link) 2>conftest.er1
22275 grep -v '^ *+' conftest.er1 >conftest.err
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } &&
22280 { ac_try='test -z "$ac_c_werror_flag"
22281 || test ! -s conftest.err'
22282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; } &&
22287 { ac_try='test -s conftest$ac_exeext'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; }; then
22293 eval "$as_ac_var=yes"
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 eval "$as_ac_var=no"
22301 rm -f conftest.err conftest.$ac_objext \
22302 conftest$ac_exeext conftest.$ac_ext
22304 ac_res=`eval echo '${'$as_ac_var'}'`
22305 { echo "$as_me:$LINENO: result: $ac_res" >&5
22306 echo "${ECHO_T}$ac_res" >&6; }
22307 if test `eval echo '${'$as_ac_var'}'` = yes; then
22308 cat >>confdefs.h <<_ACEOF
22309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22317 for ac_func in memmove strcmp
22319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22333 #define $ac_func innocuous_$ac_func
22335 /* System header to define __stub macros and hopefully few prototypes,
22336 which can conflict with char $ac_func (); below.
22337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22338 <limits.h> exists even on freestanding compilers. */
22341 # include <limits.h>
22343 # include <assert.h>
22348 /* Override any GCC internal prototype to avoid an error.
22349 Use char because int might match the return type of a GCC
22350 builtin and then its argument prototype would still apply. */
22355 /* The GNU C library defines this for functions which it implements
22356 to always fail with ENOSYS. Some functions are actually named
22357 something starting with __ and the normal name is an alias. */
22358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22365 return $ac_func ();
22370 rm -f conftest.$ac_objext conftest$ac_exeext
22371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22372 (eval $ac_link) 2>conftest.er1
22374 grep -v '^ *+' conftest.er1 >conftest.err
22376 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } &&
22379 { ac_try='test -z "$ac_c_werror_flag"
22380 || test ! -s conftest.err'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; } &&
22386 { ac_try='test -s conftest$ac_exeext'
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; }; then
22392 eval "$as_ac_var=yes"
22394 echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 eval "$as_ac_var=no"
22400 rm -f conftest.err conftest.$ac_objext \
22401 conftest$ac_exeext conftest.$ac_ext
22403 ac_res=`eval echo '${'$as_ac_var'}'`
22404 { echo "$as_me:$LINENO: result: $ac_res" >&5
22405 echo "${ECHO_T}$ac_res" >&6; }
22406 if test `eval echo '${'$as_ac_var'}'` = yes; then
22407 cat >>confdefs.h <<_ACEOF
22408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22417 for ac_func in closedir opendir readdir
22419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22433 #define $ac_func innocuous_$ac_func
22435 /* System header to define __stub macros and hopefully few prototypes,
22436 which can conflict with char $ac_func (); below.
22437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22438 <limits.h> exists even on freestanding compilers. */
22441 # include <limits.h>
22443 # include <assert.h>
22448 /* Override any GCC internal prototype to avoid an error.
22449 Use char because int might match the return type of a GCC
22450 builtin and then its argument prototype would still apply. */
22455 /* The GNU C library defines this for functions which it implements
22456 to always fail with ENOSYS. Some functions are actually named
22457 something starting with __ and the normal name is an alias. */
22458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22465 return $ac_func ();
22470 rm -f conftest.$ac_objext conftest$ac_exeext
22471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472 (eval $ac_link) 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } &&
22479 { ac_try='test -z "$ac_c_werror_flag"
22480 || test ! -s conftest.err'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; } &&
22486 { ac_try='test -s conftest$ac_exeext'
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }; then
22492 eval "$as_ac_var=yes"
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22497 eval "$as_ac_var=no"
22500 rm -f conftest.err conftest.$ac_objext \
22501 conftest$ac_exeext conftest.$ac_ext
22503 ac_res=`eval echo '${'$as_ac_var'}'`
22504 { echo "$as_me:$LINENO: result: $ac_res" >&5
22505 echo "${ECHO_T}$ac_res" >&6; }
22506 if test `eval echo '${'$as_ac_var'}'` = yes; then
22507 cat >>confdefs.h <<_ACEOF
22508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22520 ac_config_files="$ac_config_files Makefile"
22522 cat >confcache <<\_ACEOF
22523 # This file is a shell script that caches the results of configure
22524 # tests run on this system so they can be shared between configure
22525 # scripts and configure runs, see configure's option --config-cache.
22526 # It is not useful on other systems. If it contains results you don't
22527 # want to keep, you may remove or edit it.
22529 # config.status only pays attention to the cache file if you give it
22530 # the --recheck option to rerun configure.
22532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22534 # following values.
22538 # The following way of writing the cache mishandles newlines in values,
22539 # but we know of no workaround that is simple, portable, and efficient.
22540 # So, don't put newlines in cache variables' values.
22541 # Ultrix sh set writes to stderr and can't be redirected directly,
22542 # and sets the high bit in the cache file unless we assign to the vars.
22545 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22547 # `set' does not quote correctly, so add quotes (double-quote
22548 # substitution turns \\\\ into \\, and sed turns \\ into \).
22551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22554 # `set' quotes correctly as required by POSIX, so do not add quotes.
22556 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22565 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22567 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22568 if test -w $cache_file; then
22569 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22570 cat confcache >$cache_file
22572 echo "not updating unwritable cache $cache_file"
22577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22578 # Let make expand exec_prefix.
22579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22581 DEFS=-DHAVE_CONFIG_H
22585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22586 # 1. Remove the extension, and $U if already installed.
22587 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22588 ac_i=`echo "$ac_i" | sed "$ac_script"`
22589 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22590 # will be set to the directory where LIBOBJS objects are built.
22591 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22592 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22594 LIBOBJS=$ac_libobjs
22596 LTLIBOBJS=$ac_ltlibobjs
22599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22600 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22601 Usually this means the macro was only invoked conditionally." >&5
22602 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22603 Usually this means the macro was only invoked conditionally." >&2;}
22604 { (exit 1); exit 1; }; }
22606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22607 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22608 Usually this means the macro was only invoked conditionally." >&5
22609 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22610 Usually this means the macro was only invoked conditionally." >&2;}
22611 { (exit 1); exit 1; }; }
22613 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22614 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22615 Usually this means the macro was only invoked conditionally." >&5
22616 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22617 Usually this means the macro was only invoked conditionally." >&2;}
22618 { (exit 1); exit 1; }; }
22620 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22621 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22622 Usually this means the macro was only invoked conditionally." >&5
22623 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22624 Usually this means the macro was only invoked conditionally." >&2;}
22625 { (exit 1); exit 1; }; }
22627 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22628 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22629 Usually this means the macro was only invoked conditionally." >&5
22630 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22631 Usually this means the macro was only invoked conditionally." >&2;}
22632 { (exit 1); exit 1; }; }
22635 : ${CONFIG_STATUS=./config.status}
22636 ac_clean_files_save=$ac_clean_files
22637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22638 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22639 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22640 cat >$CONFIG_STATUS <<_ACEOF
22642 # Generated by $as_me.
22643 # Run this file to recreate the current configuration.
22644 # Compiler output produced by configure, useful for debugging
22645 # configure, is in config.log if it exists.
22648 ac_cs_recheck=false
22650 SHELL=\${CONFIG_SHELL-$SHELL}
22653 cat >>$CONFIG_STATUS <<\_ACEOF
22654 ## --------------------- ##
22655 ## M4sh Initialization. ##
22656 ## --------------------- ##
22658 # Be Bourne compatible
22659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22662 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22663 # is contrary to our usage. Disable this feature.
22664 alias -g '${1+"$@"}'='"$@"'
22665 setopt NO_GLOB_SUBST
22666 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22669 BIN_SH=xpg4; export BIN_SH # for Tru64
22670 DUALCASE=1; export DUALCASE # for MKS sh
22674 # Avoid depending upon Character Ranges.
22675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22678 as_cr_digits='0123456789'
22679 as_cr_alnum=$as_cr_Letters$as_cr_digits
22681 # The user is always right.
22682 if test "${PATH_SEPARATOR+set}" != set; then
22683 echo "#! /bin/sh" >conf$$.sh
22684 echo "exit 0" >>conf$$.sh
22686 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22694 # Support unset when possible.
22695 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22702 # Find who we are. Look in the path if we contain no path at all
22705 *[\\/]* ) as_myself=$0 ;;
22706 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707 for as_dir in $PATH
22710 test -z "$as_dir" && as_dir=.
22711 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22716 # We did not find ourselves, most probably we were run as `sh COMMAND'
22717 # in which case we are not to be found in the path.
22718 if test "x$as_myself" = x; then
22721 if test ! -f "$as_myself"; then
22722 # FIXME: next line outputs $as_me, which is still unset.
22723 { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
22724 { (exit 1); exit 1; }; }
22727 # Work around bugs in pre-3.0 UWIN ksh.
22728 for as_var in ENV MAIL MAILPATH
22729 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22737 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22738 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22739 LC_TELEPHONE LC_TIME
22741 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22742 eval $as_var=C; export $as_var
22744 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22748 # Required to use basename.
22749 if expr a : '\(a\)' >/dev/null 2>&1; then
22755 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22756 as_basename=basename
22762 # Name of the executable.
22763 as_me=`$as_basename "$0" ||
22764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22765 X"$0" : 'X\(//\)$' \| \
22766 X"$0" : 'X\(/\)$' \| \
22767 . : '\(.\)' 2>/dev/null ||
22769 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22770 /^X\/\(\/\/\)$/{ s//\1/; q; }
22771 /^X\/\(\/\).*/{ s//\1/; q; }
22777 as_lineno_1=$LINENO
22778 as_lineno_2=$LINENO
22779 test "x$as_lineno_1" != "x$as_lineno_2" &&
22780 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22782 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22783 # uniformly replaced by the line number. The first 'sed' inserts a
22784 # line-number line after each line using $LINENO; the second 'sed'
22785 # does the real work. The second script uses 'N' to pair each
22786 # line-number line with the line containing $LINENO, and appends
22787 # trailing '-' during substitution so that $LINENO is not a special
22788 # case at line end.
22789 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22790 # scripts with optimization help from Paolo Bonzini. Blame Lee
22791 # E. McMahon (1931-1989) for sed's syntax. :-)
22803 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
22806 ' >$as_me.lineno &&
22807 chmod +x $as_me.lineno ||
22808 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22809 { (exit 1); exit 1; }; }
22811 # Don't try to exec as it changes $[0], causing all sort of problems
22812 # (the dirname of $[0] is not the place where we might find the
22813 # original and so on. Autoconf is especially sensible to this).
22815 # Exit status is that of the last command.
22820 ECHO_C= ECHO_N= ECHO_T=
22821 case `echo -n x` in
22823 case `echo 'x\c'` in
22824 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22831 if expr a : '\(a\)' >/dev/null 2>&1; then
22837 rm -f conf$$ conf$$.exe conf$$.file
22839 if ln -s conf$$.file conf$$ 2>/dev/null; then
22840 # We could just check for DJGPP; but this test a) works b) is more generic
22841 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22842 if test -f conf$$.exe; then
22843 # Don't use ln at all; we don't have any links
22848 elif ln conf$$.file conf$$ 2>/dev/null; then
22853 rm -f conf$$ conf$$.exe conf$$.file
22855 if mkdir -p . 2>/dev/null; then
22858 test -d ./-p && rmdir ./-p
22862 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22863 # systems may use methods other than mode bits to determine executability.
22864 cat >conf$$.file <<_ASEOF
22868 chmod +x conf$$.file
22869 if test -x conf$$.file >/dev/null 2>&1; then
22870 as_executable_p="test -x"
22876 # Sed expression to map a string onto a valid CPP name.
22877 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22879 # Sed expression to map a string onto a valid variable name.
22880 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22884 # We need space, tab and new line, in precisely that order.
22894 # Save the log message, to keep $[0] and so on meaningful, and to
22895 # report actual input values of CONFIG_FILES etc. instead of their
22896 # values after options handling.
22898 This file was extended by libltdl $as_me 1.2, which was
22899 generated by GNU Autoconf 2.59c. Invocation command line was
22901 CONFIG_FILES = $CONFIG_FILES
22902 CONFIG_HEADERS = $CONFIG_HEADERS
22903 CONFIG_LINKS = $CONFIG_LINKS
22904 CONFIG_COMMANDS = $CONFIG_COMMANDS
22907 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22912 cat >>$CONFIG_STATUS <<_ACEOF
22913 # Files that config.status was made for.
22914 config_files="$ac_config_files"
22915 config_headers="$ac_config_headers"
22916 config_commands="$ac_config_commands"
22920 cat >>$CONFIG_STATUS <<\_ACEOF
22922 \`$as_me' instantiates files from templates according to the
22923 current configuration.
22925 Usage: $0 [OPTIONS] [FILE]...
22927 -h, --help print this help, then exit
22928 -V, --version print version number, then exit
22929 -q, --quiet do not print progress messages
22930 -d, --debug don't remove temporary files
22931 --recheck update $as_me by reconfiguring in the same conditions
22932 --file=FILE[:TEMPLATE]
22933 instantiate the configuration file FILE
22934 --header=FILE[:TEMPLATE]
22935 instantiate the configuration header FILE
22937 Configuration files:
22940 Configuration headers:
22943 Configuration commands:
22946 Report bugs to <bug-autoconf@gnu.org>."
22949 cat >>$CONFIG_STATUS <<_ACEOF
22951 libltdl config.status 1.2
22952 configured by $0, generated by GNU Autoconf 2.59c,
22953 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22955 Copyright (C) 2005 Free Software Foundation, Inc.
22956 This config.status script is free software; the Free Software Foundation
22957 gives unlimited permission to copy, distribute and modify it."
22965 cat >>$CONFIG_STATUS <<\_ACEOF
22966 # If no file are specified by the user, then we need to provide default
22967 # value. By we need to know if files were specified by the user.
22973 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22974 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22985 # Handling of the options.
22986 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22988 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22989 echo "$ac_cs_version"; exit ;;
22990 --debug | --debu | --deb | --de | --d | -d )
22992 --file | --fil | --fi | --f )
22994 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22995 ac_need_defaults=false;;
22996 --header | --heade | --head | --hea )
22998 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22999 ac_need_defaults=false;;
23001 # Conflict between --help and --header
23002 { echo "$as_me: error: ambiguous option: $1
23003 Try \`$0 --help' for more information." >&2
23004 { (exit 1); exit 1; }; };;
23005 --help | --hel | -h )
23006 echo "$ac_cs_usage"; exit ;;
23007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23008 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23011 # This is an error.
23012 -*) { echo "$as_me: error: unrecognized option: $1
23013 Try \`$0 --help' for more information." >&2
23014 { (exit 1); exit 1; }; } ;;
23016 *) ac_config_targets="$ac_config_targets $1"
23017 ac_need_defaults=false ;;
23023 ac_configure_extra_args=
23025 if $ac_cs_silent; then
23027 ac_configure_extra_args="$ac_configure_extra_args --silent"
23033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23034 ## Running $as_me. ##
23040 cat >>$CONFIG_STATUS <<_ACEOF
23041 if \$ac_cs_recheck; then
23042 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23043 CONFIG_SHELL=$SHELL
23044 export CONFIG_SHELL
23045 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23050 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23054 cat >>$CONFIG_STATUS <<\_ACEOF
23056 # Handling of arguments.
23057 for ac_config_target in $ac_config_targets
23059 case $ac_config_target in
23060 config.h) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23061 depfiles) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23062 Makefile) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23064 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23065 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23066 { (exit 1); exit 1; }; };;
23071 # If the user did not use the arguments to specify the items to instantiate,
23072 # then the envvar interface is used. Set only those that are not.
23073 # We use the long form for the default assignment because of an extremely
23074 # bizarre bug on SunOS 4.1.3.
23075 if $ac_need_defaults; then
23076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23081 # Have a temporary directory for convenience. Make it in the build tree
23082 # simply because there is no reason against having it here, and in addition,
23083 # creating and moving files from /tmp can sometimes cause problems.
23084 # Hook for its removal unless debugging.
23085 # Note that there is a small window in which the directory will not be cleaned:
23086 # after its creation but before its name has been assigned to `$tmp'.
23090 trap 'exit_status=$?
23091 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23093 trap '{ (exit 1); exit 1; }' 1 2 13 15
23095 # Create a (secure) tmp directory for tmp files.
23098 tmp=`(umask 077 && mktemp -d -q "./confXXXXXX") 2>/dev/null` &&
23099 test -n "$tmp" && test -d "$tmp"
23102 tmp=./conf$$-$RANDOM
23103 (umask 077 && mkdir "$tmp")
23106 echo "$me: cannot create a temporary directory in ." >&2
23107 { (exit 1); exit 1; }
23111 # Set up the sed scripts for CONFIG_FILES section.
23114 # No need to generate the scripts if there are no CONFIG_FILES.
23115 # This happens for instance when ./config.status config.h
23116 if test -n "$CONFIG_FILES"; then
23123 for ac_last_try in false false false false false :; do
23124 cat >conf$$subs.sed <<_ACEOF
23125 SHELL!$SHELL$ac_delim
23126 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23127 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23128 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23129 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23130 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23131 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23132 exec_prefix!$exec_prefix$ac_delim
23133 prefix!$prefix$ac_delim
23134 program_transform_name!$program_transform_name$ac_delim
23135 bindir!$bindir$ac_delim
23136 sbindir!$sbindir$ac_delim
23137 libexecdir!$libexecdir$ac_delim
23138 datarootdir!$datarootdir$ac_delim
23139 datadir!$datadir$ac_delim
23140 sysconfdir!$sysconfdir$ac_delim
23141 sharedstatedir!$sharedstatedir$ac_delim
23142 localstatedir!$localstatedir$ac_delim
23143 includedir!$includedir$ac_delim
23144 oldincludedir!$oldincludedir$ac_delim
23145 docdir!$docdir$ac_delim
23146 infodir!$infodir$ac_delim
23147 htmldir!$htmldir$ac_delim
23148 dvidir!$dvidir$ac_delim
23149 pdfdir!$pdfdir$ac_delim
23150 psdir!$psdir$ac_delim
23151 libdir!$libdir$ac_delim
23152 localedir!$localedir$ac_delim
23153 mandir!$mandir$ac_delim
23154 DEFS!$DEFS$ac_delim
23155 ECHO_C!$ECHO_C$ac_delim
23156 ECHO_N!$ECHO_N$ac_delim
23157 ECHO_T!$ECHO_T$ac_delim
23158 LIBS!$LIBS$ac_delim
23159 build_alias!$build_alias$ac_delim
23160 host_alias!$host_alias$ac_delim
23161 target_alias!$target_alias$ac_delim
23162 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23163 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23164 INSTALL_DATA!$INSTALL_DATA$ac_delim
23165 CYGPATH_W!$CYGPATH_W$ac_delim
23166 PACKAGE!$PACKAGE$ac_delim
23167 VERSION!$VERSION$ac_delim
23168 ACLOCAL!$ACLOCAL$ac_delim
23169 AUTOCONF!$AUTOCONF$ac_delim
23170 AUTOMAKE!$AUTOMAKE$ac_delim
23171 AUTOHEADER!$AUTOHEADER$ac_delim
23172 MAKEINFO!$MAKEINFO$ac_delim
23173 install_sh!$install_sh$ac_delim
23174 STRIP!$STRIP$ac_delim
23175 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23176 mkdir_p!$mkdir_p$ac_delim
23178 SET_MAKE!$SET_MAKE$ac_delim
23179 am__leading_dot!$am__leading_dot$ac_delim
23180 AMTAR!$AMTAR$ac_delim
23181 am__tar!$am__tar$ac_delim
23182 am__untar!$am__untar$ac_delim
23184 CFLAGS!$CFLAGS$ac_delim
23185 LDFLAGS!$LDFLAGS$ac_delim
23186 CPPFLAGS!$CPPFLAGS$ac_delim
23187 ac_ct_CC!$ac_ct_CC$ac_delim
23188 EXEEXT!$EXEEXT$ac_delim
23189 OBJEXT!$OBJEXT$ac_delim
23190 DEPDIR!$DEPDIR$ac_delim
23191 am__include!$am__include$ac_delim
23192 am__quote!$am__quote$ac_delim
23193 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23194 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23195 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23196 CCDEPMODE!$CCDEPMODE$ac_delim
23197 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23198 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23199 build!$build$ac_delim
23200 build_cpu!$build_cpu$ac_delim
23201 build_vendor!$build_vendor$ac_delim
23202 build_os!$build_os$ac_delim
23203 host!$host$ac_delim
23204 host_cpu!$host_cpu$ac_delim
23205 host_vendor!$host_vendor$ac_delim
23206 host_os!$host_os$ac_delim
23207 GREP!$GREP$ac_delim
23208 EGREP!$EGREP$ac_delim
23209 LN_S!$LN_S$ac_delim
23210 ECHO!$ECHO$ac_delim
23212 RANLIB!$RANLIB$ac_delim
23213 DLLTOOL!$DLLTOOL$ac_delim
23215 OBJDUMP!$OBJDUMP$ac_delim
23218 CXXFLAGS!$CXXFLAGS$ac_delim
23219 ac_ct_CXX!$ac_ct_CXX$ac_delim
23220 CXXDEPMODE!$CXXDEPMODE$ac_delim
23221 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23222 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23225 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 98; then
23227 elif $ac_last_try; then
23228 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23229 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23230 { (exit 1); exit 1; }; }
23232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23237 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
23238 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
23239 ac_eof=`expr 0$ac_eof + 1`
23242 cat >>$CONFIG_STATUS <<_ACEOF
23243 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23247 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23248 s/^/s,@/; s/!/@,|#_!!_#|/
23251 s/'"$ac_delim"'$/,g/; t
23253 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23254 ' >>$CONFIG_STATUS <conf$$subs.sed
23255 rm -f conf$$subs.sed
23256 cat >>$CONFIG_STATUS <<_ACEOF
23262 for ac_last_try in false false false false false :; do
23263 cat >conf$$subs.sed <<_ACEOF
23264 CXXCPP!$CXXCPP$ac_delim
23266 FFLAGS!$FFLAGS$ac_delim
23267 ac_ct_F77!$ac_ct_F77$ac_delim
23268 LIBTOOL!$LIBTOOL$ac_delim
23269 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23270 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23271 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23272 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23273 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23274 LIBADD_DL!$LIBADD_DL$ac_delim
23275 LIBOBJS!$LIBOBJS$ac_delim
23276 LTLIBOBJS!$LTLIBOBJS$ac_delim
23279 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 13; then
23281 elif $ac_last_try; then
23282 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23283 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23284 { (exit 1); exit 1; }; }
23286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23291 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
23292 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
23293 ac_eof=`expr 0$ac_eof + 1`
23296 cat >>$CONFIG_STATUS <<_ACEOF
23297 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23301 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23302 s/^/s,@/; s/!/@,|#_!!_#|/
23305 s/'"$ac_delim"'$/,g/; t
23307 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23308 ' >>$CONFIG_STATUS <conf$$subs.sed
23309 rm -f conf$$subs.sed
23310 cat >>$CONFIG_STATUS <<_ACEOF
23317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23319 # trailing colons and then remove the whole line if VPATH becomes empty
23320 # (actually we leave an empty line to preserve line numbers).
23321 if test "x$srcdir" = x.; then
23322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23323 s/:*\$(srcdir):*/:/;
23324 s/:*\${srcdir}:*/:/;
23326 s/^\([^=]*=[ ]*\):*/\1/;
23332 cat >>$CONFIG_STATUS <<\_ACEOF
23333 fi # test -n "$CONFIG_FILES"
23336 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23339 :[FHLC]) ac_mode=$ac_tag; continue;;
23341 case $ac_mode$ac_tag in
23343 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23344 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23345 { (exit 1); exit 1; }; };;
23346 :[FH]-) ac_tag=-:-;;
23347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23364 -) ac_f="$tmp/stdin";;
23365 *) # Look for the file first in the build tree, then in the source tree
23366 # (if the path is not absolute). The absolute path cannot be DOS-style,
23367 # because $ac_f cannot contain `:'.
23371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23373 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23374 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23375 { (exit 1); exit 1; }; };;
23377 ac_file_inputs="$ac_file_inputs $ac_f"
23380 # Let's still pretend it is `configure' which instantiates (i.e., don't
23381 # use $as_me), people would be surprised to read:
23382 # /* config.h. Generated by config.status. */
23383 configure_input="Generated from "`IFS=:
23384 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23385 if test x"$ac_file" != x-; then
23386 configure_input="$ac_file. $configure_input"
23387 { echo "$as_me:$LINENO: creating $ac_file" >&5
23388 echo "$as_me: creating $ac_file" >&6;}
23392 *:-:* | *:-) cat >"$tmp/stdin";;
23397 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23399 X"$ac_file" : 'X\(//\)[^/]' \| \
23400 X"$ac_file" : 'X\(//\)$' \| \
23401 X"$ac_file" : 'X\(/\)' \| \
23402 . : '\(.\)' 2>/dev/null ||
23404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23406 /^X\(\/\/\)$/{ s//\1/; q; }
23407 /^X\(\/\).*/{ s//\1/; q; }
23409 { if $as_mkdir_p; then
23410 test -d "$ac_dir" || mkdir -p "$ac_dir"
23414 while test ! -d "$as_dir"; do
23415 as_dirs="$as_dir $as_dirs"
23416 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23418 X"$as_dir" : 'X\(//\)[^/]' \| \
23419 X"$as_dir" : 'X\(//\)$' \| \
23420 X"$as_dir" : 'X\(/\)' \| \
23421 . : '\(.\)' 2>/dev/null ||
23423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23425 /^X\(\/\/\)$/{ s//\1/; q; }
23426 /^X\(\/\).*/{ s//\1/; q; }
23429 test ! -n "$as_dirs" || mkdir $as_dirs
23430 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23431 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23432 { (exit 1); exit 1; }; }; }
23437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23439 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23440 # A ".." for each directory in $ac_dir_suffix.
23441 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23442 case $ac_top_builddir_sub in
23443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23447 ac_abs_top_builddir=$ac_pwd
23448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23449 # for backward compatibility:
23450 ac_top_builddir=$ac_top_build_prefix
23453 .) # We are building in place.
23455 ac_top_srcdir=$ac_top_builddir_sub
23456 ac_abs_top_srcdir=$ac_pwd ;;
23457 [\\/]* | ?:[\\/]* ) # Absolute name.
23458 ac_srcdir=$srcdir$ac_dir_suffix;
23459 ac_top_srcdir=$srcdir
23460 ac_abs_top_srcdir=$srcdir ;;
23461 *) # Relative name.
23462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23463 ac_top_srcdir=$ac_top_build_prefix$srcdir
23464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23477 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23482 # Neutralize VPATH when `$srcdir' = `.'.
23483 # Shell code in configure.ac might set extrasub.
23484 # FIXME: do we really want to maintain this feature?
23485 cat >>$CONFIG_STATUS <<_ACEOF
23489 cat >>$CONFIG_STATUS <<\_ACEOF
23491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23492 s&@configure_input@&$configure_input&;t t
23493 s&@top_builddir@&$ac_top_builddir_sub&;t t
23494 s&@srcdir@&$ac_srcdir&;t t
23495 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23496 s&@top_srcdir@&$ac_top_srcdir&;t t
23497 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23498 s&@builddir@&$ac_builddir&;t t
23499 s&@abs_builddir@&$ac_abs_builddir&;t t
23500 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23501 s&@INSTALL@&$ac_INSTALL&;t t
23502 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23506 -) cat "$tmp/out"; rm -f "$tmp/out";;
23507 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23515 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23516 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23517 # PARAMS is the parameter list in the macro definition--in most cases, it's
23518 # just an empty string.
23520 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
23521 ac_dB='\)[ (].*$,\1define\2'
23525 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
23528 # Transform confdefs.h into a sed script `conftest.defines', that
23529 # substitutes the proper values into config.h.in to produce config.h.
23530 rm -f conftest.defines conftest.tail
23531 # First, append a space to every undef/define line, to ease matching.
23532 echo 's/$/ /' >conftest.defines
23533 # Then, protect against being on the right side of a sed subst, or in
23534 # an unquoted here document, in config.status. If some macros were
23535 # called several times there might be several #defines for the same
23536 # symbol, which is useless. But do not sort them, since the last
23537 # AC_DEFINE must be honored.
23538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23543 s/^[ ]*#[ ]*define[ ][ ]*//
23549 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
23550 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
23551 ' >>conftest.defines
23553 # Remove the space that was appended to ease matching.
23554 # Then replace #undef with comments. This is necessary, for
23555 # example, in the case of _POSIX_SOURCE, which is predefined and required
23556 # on some systems where configure will not decide to define it.
23557 # (The regexp can be short, since the line contains either #define or #undef.)
23559 s,^[ #]*u.*,/* & */,' >>conftest.defines
23561 # Break up conftest.defines:
23562 ac_max_sed_lines=97
23564 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23565 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23566 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23568 ac_in='$ac_file_inputs'
23569 ac_out='"$tmp/out1"'
23570 ac_nxt='"$tmp/out2"'
23574 # Write a here document:
23575 echo ' # First, check the format of the line:
23576 cat >"$tmp/defines.sed" <<CEOF
23577 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/!{
23578 /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/!b
23579 }' >>$CONFIG_STATUS
23580 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23582 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23583 ac_in=$ac_out ac_out=$ac_nxt ac_nxt=$ac_in
23584 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23585 grep . conftest.tail >/dev/null || break
23586 rm -f conftest.defines
23587 mv conftest.tail conftest.defines
23589 rm -f conftest.defines conftest.tail
23591 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23592 cat >>$CONFIG_STATUS <<\_ACEOF
23593 if test x"$ac_file" != x-; then
23594 echo "/* $configure_input */" >"$tmp/config.h"
23595 cat "$ac_result" >>"$tmp/config.h"
23596 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23597 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23598 echo "$as_me: $ac_file is unchanged" >&6;}
23601 mv "$tmp/config.h" $ac_file
23604 echo "/* $configure_input */"
23608 # Compute $ac_file's index in $config_headers.
23610 for _am_header in $config_headers :; do
23611 case $_am_header in
23612 $ac_file | $ac_file:* )
23615 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23618 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23619 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23620 X$ac_file : 'X\(//\)[^/]' \| \
23621 X$ac_file : 'X\(//\)$' \| \
23622 X$ac_file : 'X\(/\)' \| \
23623 . : '\(.\)' 2>/dev/null ||
23625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23627 /^X\(\/\/\)$/{ s//\1/; q; }
23628 /^X\(\/\).*/{ s//\1/; q; }
23629 s/.*/./; q'`/stamp-h$_am_stamp_count
23632 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23633 echo "$as_me: executing $ac_file commands" >&6;}
23638 case $ac_file$ac_mode in
23639 depfiles:C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23640 # Strip MF so we end up with the name of the file.
23641 mf=`echo "$mf" | sed -e 's/:.*$//'`
23642 # Check whether this is an Automake generated Makefile or not.
23643 # We used to match only the files named `Makefile.in', but
23644 # some people rename them; so instead we look at the file content.
23645 # Grep'ing the first line is not enough: some people post-process
23646 # each Makefile.in and add a new line on top of each file to say so.
23647 # So let's grep whole file.
23648 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23649 dirpart=`(dirname "$mf") 2>/dev/null ||
23650 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23651 X"$mf" : 'X\(//\)[^/]' \| \
23652 X"$mf" : 'X\(//\)$' \| \
23653 X"$mf" : 'X\(/\)' \| \
23654 . : '\(.\)' 2>/dev/null ||
23656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23657 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23658 /^X\(\/\/\)$/{ s//\1/; q; }
23659 /^X\(\/\).*/{ s//\1/; q; }
23664 # Extract the definition of DEPDIR, am__include, and am__quote
23665 # from the Makefile without running `make'.
23666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23667 test -z "$DEPDIR" && continue
23668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23669 test -z "am__include" && continue
23670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23671 # When using ansi2knr, U may be empty or an underscore; expand it
23672 U=`sed -n 's/^U = //p' < "$mf"`
23673 # Find all dependency output files, they are included files with
23674 # $(DEPDIR) in their names. We invoke sed twice because it is the
23675 # simplest approach to changing $(DEPDIR) to its actual value in the
23677 for file in `sed -n "
23678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23680 # Make sure the directory exists.
23681 test -f "$dirpart/$file" && continue
23682 fdir=`(dirname "$file") 2>/dev/null ||
23683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23684 X"$file" : 'X\(//\)[^/]' \| \
23685 X"$file" : 'X\(//\)$' \| \
23686 X"$file" : 'X\(/\)' \| \
23687 . : '\(.\)' 2>/dev/null ||
23689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23691 /^X\(\/\/\)$/{ s//\1/; q; }
23692 /^X\(\/\).*/{ s//\1/; q; }
23694 { if $as_mkdir_p; then
23695 test -d $dirpart/$fdir || mkdir -p $dirpart/$fdir
23697 as_dir=$dirpart/$fdir
23699 while test ! -d "$as_dir"; do
23700 as_dirs="$as_dir $as_dirs"
23701 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23703 X"$as_dir" : 'X\(//\)[^/]' \| \
23704 X"$as_dir" : 'X\(//\)$' \| \
23705 X"$as_dir" : 'X\(/\)' \| \
23706 . : '\(.\)' 2>/dev/null ||
23708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23710 /^X\(\/\/\)$/{ s//\1/; q; }
23711 /^X\(\/\).*/{ s//\1/; q; }
23714 test ! -n "$as_dirs" || mkdir $as_dirs
23715 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23716 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23717 { (exit 1); exit 1; }; }; }
23719 # echo "creating $dirpart/$file"
23720 echo '# dummy' > "$dirpart/$file"
23729 { (exit 0); exit 0; }
23731 chmod +x $CONFIG_STATUS
23732 ac_clean_files=$ac_clean_files_save
23735 # configure is writing to config.log, and then calls config.status.
23736 # config.status does its own redirection, appending to config.log.
23737 # Unfortunately, on DOS this fails, as config.log is still kept open
23738 # by configure, so config.status won't be able to write to it; its
23739 # output is simply discarded. So we exec the FD to /dev/null,
23740 # effectively closing config.log, so it can be properly (re)opened and
23741 # appended to by config.status. When coming back to configure, we
23742 # need to make the FD available again.
23743 if test "$no_create" != yes; then
23745 ac_config_status_args=
23746 test "$silent" = yes &&
23747 ac_config_status_args="$ac_config_status_args --quiet"
23749 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23751 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23752 # would make configure fail if this is the last instruction.
23753 $ac_cs_success || { (exit 1); exit 1; }